Created
March 13, 2009 14:38
-
-
Save luizcarvalho/78583 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@res = ActiveRecord::Base.establish_connection(:password=>"xxx", :port=>5432, :username=>"postgres", :adapter=>"postgresql", :encoding=>"utf8", :min_messages=>"warning", :database=>"transat", :host=>"000.000.000.000") | |
con = ActiveRecord::Base.connection | |
attrs = con.columns("tr_veiculo") | |
attrs.each do |attr| | |
puts attr.name | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment