Permalink
Browse files

just use the list of formatting keys we care about

  • Loading branch information...
1 parent e96b3e8 commit fb8b17c720683fab62925f9765fc65c9e0a167c4 @tenderlove tenderlove committed Jan 5, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/schema_dumper.rb
@@ -127,7 +127,7 @@ def table(table, stream)
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|

0 comments on commit fb8b17c

Please sign in to comment.