Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Do it in style

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4032 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
commit 3cec029685cdbfa820eb6b4a98daf81ed80e1d27 1 parent 5b63c84
@dhh dhh authored
View
4 activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb
@@ -193,9 +193,9 @@ def tables(name = nil) #:nodoc:
end
def columns(table_name, name = nil) #:nodoc:
- table_structure(table_name).map { |field|
+ table_structure(table_name).map do |field|
SQLiteColumn.new(field['name'], field['dflt_value'], field['type'], field['notnull'] == "0")
- }
+ end
end
def indexes(table_name, name = nil) #:nodoc:
Please sign in to comment.
Something went wrong with that request. Please try again.