Clear schema cache after running tests for migrations

This commit is contained in:
Grzegorz Bizon 2017-08-28 12:49:43 +02:00
parent 073811074b
commit db4bd1a67d
1 changed files with 2 additions and 0 deletions

View File

@ -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)