just use the list of formatting keys we care about

This commit is contained in:
Aaron Patterson 2012-01-04 17:10:13 -08:00
parent e96b3e8d8c
commit fb8b17c720

@ -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|