diff options
author | Sean McGivern <sean@gitlab.com> | 2017-07-28 10:44:33 +0100 |
---|---|---|
committer | Sean McGivern <sean@gitlab.com> | 2017-07-31 11:18:55 +0100 |
commit | 57a5544f883ad9687c38270519edc7914912af5d (patch) | |
tree | cf7713439a19e40d2c0b69fff197d3db0a74c8ed /spec/spec_helper.rb | |
parent | 4c89929fb4211aa1cf5f311a0cec89988de45184 (diff) | |
download | gitlab-ce-57a5544f883ad9687c38270519edc7914912af5d.tar.gz |
Remove events column from notification settings33620-remove-events-from-notification_settings
This was migrated to separate columns in 9.4, and now just needs to be removed
for real.
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r-- | spec/spec_helper.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 85335643921..609998d6e9c 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -129,10 +129,14 @@ RSpec.configure do |config| config.before(:example, :migration) do ActiveRecord::Migrator .migrate(migrations_paths, previous_migration.version) + + ActiveRecord::Base.descendants.each(&:reset_column_information) end config.after(:example, :migration) do ActiveRecord::Migrator.migrate(migrations_paths) + + ActiveRecord::Base.descendants.each(&:reset_column_information) end config.around(:each, :nested_groups) do |example| |