Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean McGivern <sean@mcgivern.me.uk>2017-08-28 15:16:03 +0300
committerStan Hu <stanhu@gmail.com>2017-09-03 06:37:51 +0300
commit2cec1c5484d4592f58c20362235d185c34ab6284 (patch)
treeee8e88a2d14fef9aabd06272b453b5c5e930ce0e
parent775cee737b585cc7fa943af21c1d09141952cbfe (diff)
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.rb2
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)