Clear schema cache after running tests for migrations
This commit is contained in:
parent
073811074b
commit
db4bd1a67d
|
@ -16,6 +16,8 @@ module MigrationsHelpers
|
|||
end
|
||||
|
||||
def reset_column_in_migration_models
|
||||
ActiveRecord::Base.clear_cache!
|
||||
|
||||
described_class.constants.sort.each do |name|
|
||||
const = described_class.const_get(name)
|
||||
|
||||
|
|
Loading…
Reference in New Issue