diff --git a/lib/mini_record/auto_schema.rb b/lib/mini_record/auto_schema.rb index e267d6b..c5a402a 100644 --- a/lib/mini_record/auto_schema.rb +++ b/lib/mini_record/auto_schema.rb @@ -239,7 +239,7 @@ def field_attr_changes(field_name) # Next, iterate through our extended attributes, looking for any differences # This catches stuff like :null, :precision, etc # Ignore junk attributes that different versions of Rails include - [:name, :limit, :precision, :scale, :default, :null, :type].each do |att| + [:name, :limit, :precision, :scale, :default, :null,:type].each do |att| value = fields[field][att] value = true if att == :null && value.nil?