Skip to content

Commit

Permalink
fixes not seeing changes to the type of a field
Browse files Browse the repository at this point in the history
  • Loading branch information
burnt43 committed Nov 14, 2015
1 parent 8a29ce6 commit 685fed2
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].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 685fed2

Please sign in to comment.