diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-10-19 21:10:06 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-10-19 21:10:06 +0300 |
commit | b45b4fa37b88501538b4139ef9f2f2777414d630 (patch) | |
tree | c3de025a8db9ad2cfd056795bbded5054ad15261 /spec/support/migration.rb | |
parent | 2b5469a93eb16d5a24c02105e2251e65a75ba915 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/support/migration.rb')
-rw-r--r-- | spec/support/migration.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/support/migration.rb b/spec/support/migration.rb index 24e2fc2ff31..3c359af886d 100644 --- a/spec/support/migration.rb +++ b/spec/support/migration.rb @@ -19,9 +19,13 @@ RSpec.configure do |config| # Each example may call `migrate!`, so we must ensure we are migrated down every time config.before(:each, :migration) do use_fake_application_settings + + schema_migrate_down! end config.after(:context, :migration) do + schema_migrate_up! + Gitlab::CurrentSettings.clear_in_memory_application_settings! end end |