Skip to content

Commit 685fed2

Browse files
committed
fixes not seeing changes to the type of a field
1 parent 8a29ce6 commit 685fed2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/mini_record/auto_schema.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ def field_attr_changes(field_name)
239239
# Next, iterate through our extended attributes, looking for any differences
240240
# This catches stuff like :null, :precision, etc
241241
# Ignore junk attributes that different versions of Rails include
242-
[:name, :limit, :precision, :scale, :default, :null].each do |att|
242+
[:name, :limit, :precision, :scale, :default, :null, :type].each do |att|
243243
value = fields[field][att]
244244
value = true if att == :null && value.nil?
245245

0 commit comments

Comments
 (0)