diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-05-26 15:46:45 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-05-26 15:46:45 +0300 |
commit | 918ababba6fce694c61d54bb2ff6983a886f696a (patch) | |
tree | 1d502368d29711fb4c2fae814b4fb99bb8ca4bfe /spec/support/db_cleaner.rb | |
parent | 0f9fbae78a51f7bf4df50d96060087e1cf903b05 (diff) |
Add pipeline stages post deployment migration
Diffstat (limited to 'spec/support/db_cleaner.rb')
-rw-r--r-- | spec/support/db_cleaner.rb | 4 |
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 |