lib/ridgepole/diff.rb in ridgepole-0.7.0.beta12 vs lib/ridgepole/diff.rb in ridgepole-0.7.0.beta13

- old
+ new

@@ -312,9 +312,14 @@ opts[:default] = nil end if Ridgepole::ConnectionAdapters.mysql? opts[:unsigned] = false unless opts.has_key?(:unsigned) + + if attrs[:type] == :integer and opts[:limit] == Ridgepole::DefaultsLimit.default_limit(:bigint, @options) + attrs[:type] = :bigint + opts.delete(:limit) + end end end def normalize_index_options!(opts) # XXX: MySQL only?