diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-08-28 13:49:43 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-08-28 13:49:43 +0300 |
commit | db4bd1a67d0d2acd7cde8b0ffedcab4e5eaf934e (patch) | |
tree | 6aae52f76eff4a555de3efdd546c118011eaca60 /spec/support | |
parent | 073811074bf15742a86572b933b0e3ad0f06107b (diff) |
Clear schema cache after running tests for migrations
Diffstat (limited to 'spec/support')
-rw-r--r-- | spec/support/migrations_helpers.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/support/migrations_helpers.rb b/spec/support/migrations_helpers.rb index 255b3d96a62..4ca019c1b05 100644 --- a/spec/support/migrations_helpers.rb +++ b/spec/support/migrations_helpers.rb @@ -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) |