lib/ridgepole/diff.rb in ridgepole-0.5.1 vs lib/ridgepole/diff.rb in ridgepole-0.5.2.beta
- old
+ new
@@ -253,10 +253,10 @@
if not opts.has_key?(:default) and opts[:null]
opts[:default] = nil
end
# XXX: MySQL only?
- if @options[:enable_mysql_unsigned]
+ if @options[:enable_mysql_unsigned] or @options[:enable_mysql_awesome]
opts[:unsigned] = false unless opts.has_key?(:unsigned)
end
if @options[:normalize_mysql_float] and attrs[:type] == :float
opts.delete(:limit) if opts[:limit] == 24