From db4bd1a67d0d2acd7cde8b0ffedcab4e5eaf934e Mon Sep 17 00:00:00 2001 From: Grzegorz Bizon Date: Mon, 28 Aug 2017 12:49:43 +0200 Subject: [PATCH] Clear schema cache after running tests for migrations --- 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 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)