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:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-05-26 15:46:45 +0300
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-05-26 15:46:45 +0300
commit918ababba6fce694c61d54bb2ff6983a886f696a (patch)
tree1d502368d29711fb4c2fae814b4fb99bb8ca4bfe /spec/support/db_cleaner.rb
parent0f9fbae78a51f7bf4df50d96060087e1cf903b05 (diff)
Add pipeline stages post deployment migration
Diffstat (limited to 'spec/support/db_cleaner.rb')
-rw-r--r--spec/support/db_cleaner.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/support/db_cleaner.rb b/spec/support/db_cleaner.rb
index 6f31828b825..7f5769209bb 100644
--- a/spec/support/db_cleaner.rb
+++ b/spec/support/db_cleaner.rb
@@ -19,6 +19,10 @@ RSpec.configure do |config|
DatabaseCleaner.strategy = :truncation
end
+ config.before(:each, :migration) do
+ DatabaseCleaner.strategy = :truncation
+ end
+
config.before(:each) do
DatabaseCleaner.start
end