diff options
author | Sean McGivern <sean@mcgivern.me.uk> | 2017-08-28 12:16:03 +0000 |
---|---|---|
committer | Sean McGivern <sean@mcgivern.me.uk> | 2017-08-28 12:16:03 +0000 |
commit | 58bddf28a7b2f39fd004a2a5d23d016cfd4948f7 (patch) | |
tree | f481db0bc0edda058477324104b1a1fda4012fab | |
parent | f03705f01ba49ee98ffe49746b0491668c1ed556 (diff) | |
parent | db4bd1a67d0d2acd7cde8b0ffedcab4e5eaf934e (diff) | |
download | gitlab-ce-58bddf28a7b2f39fd004a2a5d23d016cfd4948f7.tar.gz |
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
-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) |