diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2012-01-04 17:10:13 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2012-01-04 17:10:13 -0800 |
commit | fb8b17c720683fab62925f9765fc65c9e0a167c4 (patch) | |
tree | efb1e6e91ff8517aa983a7b27f3d625acac858ab /activerecord/lib | |
parent | e96b3e8d8c361db9acba9fc8a14b28a4315cfc6e (diff) | |
download | rails-fb8b17c720683fab62925f9765fc65c9e0a167c4.tar.gz rails-fb8b17c720683fab62925f9765fc65c9e0a167c4.tar.bz2 rails-fb8b17c720683fab62925f9765fc65c9e0a167c4.zip |
just use the list of formatting keys we care about
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/schema_dumper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/schema_dumper.rb b/activerecord/lib/active_record/schema_dumper.rb index f189a6a688..2a565b51c6 100644 --- a/activerecord/lib/active_record/schema_dumper.rb +++ b/activerecord/lib/active_record/schema_dumper.rb @@ -127,7 +127,7 @@ HEADER end.compact # find all migration keys used in this table - keys = [:name, :limit, :precision, :scale, :default, :null] & column_specs.map(&:keys).flatten + keys = [:name, :limit, :precision, :scale, :default, :null] # figure out the lengths for each column based on above keys lengths = keys.map { |key| |