From 2cec1c5484d4592f58c20362235d185c34ab6284 Mon Sep 17 00:00:00 2001 From: Sean McGivern Date: Mon, 28 Aug 2017 12:16:03 +0000 Subject: Merge branch 'fix/gb/clear-schema-cache-after-running-migration-tests' into 'master' Clear schema cache after running tests for migrations Closes #37086 See merge request !13870 --- spec/support/migrations_helpers.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spec/support/migrations_helpers.rb b/spec/support/migrations_helpers.rb index 3e8c6b54c5a..dc64200a919 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) -- cgit v1.2.3