Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
burnt43 committed Feb 19, 2016
1 parent 685fed2 commit 22dbc73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mini_record/auto_schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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?

Expand Down

0 comments on commit 22dbc73

Please sign in to comment.