diff options
author | Sean McGivern <sean@mcgivern.me.uk> | 2017-08-28 12:16:03 +0000 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2017-09-02 20:37:51 -0700 |
commit | 2cec1c5484d4592f58c20362235d185c34ab6284 (patch) | |
tree | ee8e88a2d14fef9aabd06272b453b5c5e930ce0e | |
parent | 775cee737b585cc7fa943af21c1d09141952cbfe (diff) | |
download | gitlab-ce-2cec1c5484d4592f58c20362235d185c34ab6284.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 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) |