From 685fed2e5753de146455ea7d285b8b6828f8abdd Mon Sep 17 00:00:00 2001 From: James Carson Date: Sat, 14 Nov 2015 18:26:42 -0500 Subject: [PATCH] fixes not seeing changes to the type of a field --- lib/mini_record/auto_schema.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mini_record/auto_schema.rb b/lib/mini_record/auto_schema.rb index 24224f9..e267d6b 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].each do |att| + [:name, :limit, :precision, :scale, :default, :null, :type].each do |att| value = fields[field][att] value = true if att == :null && value.nil?