diff --git a/hobofields/lib/hobo_fields/field_spec.rb b/hobofields/lib/hobo_fields/field_spec.rb index 90c3d333e..9b2d85ecf 100644 --- a/hobofields/lib/hobo_fields/field_spec.rb +++ b/hobofields/lib/hobo_fields/field_spec.rb @@ -81,8 +81,12 @@ def different_to?(col_spec) # we should be able to use col_spec.comment, but col_spec has # a nil table_name for some strange reason. begin - col_comment = ActiveRecord::Base.try.column_comment(col_spec.name, model.table_name) - col_comment != nil && col_comment != comment + if model.table_exists? + col_comment = ActiveRecord::Base.try.column_comment(col_spec.name, model.table_name) + col_comment != nil && col_comment != comment + else + true + end end || begin check_attributes = [:null, :default]