diff options
author | Robert Speicher <robert@gitlab.com> | 2018-08-17 17:10:12 +0000 |
---|---|---|
committer | Robert Speicher <robert@gitlab.com> | 2018-08-17 17:10:12 +0000 |
commit | 120ce02e5e7e72654cb42edddc25ff3b057ec136 (patch) | |
tree | dc612e487ea3d84cc7848ff5cb74660a3d79bf5a /spec/migrations | |
parent | a58d0a0182d06efbbde57821e71c305518325d6f (diff) | |
parent | 9606dbbb033567de9831a8cdea0e56236e7d2eb2 (diff) | |
download | gitlab-ce-120ce02e5e7e72654cb42edddc25ff3b057ec136.tar.gz |
Merge branch 'blacklist-destroy-all' into 'master'
Blacklist the use of destroy_all
See merge request gitlab-org/gitlab-ce!21250
Diffstat (limited to 'spec/migrations')
-rw-r--r-- | spec/migrations/schedule_create_gpg_key_subkeys_from_gpg_keys_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/migrations/schedule_create_gpg_key_subkeys_from_gpg_keys_spec.rb b/spec/migrations/schedule_create_gpg_key_subkeys_from_gpg_keys_spec.rb index 96bef107599..c4427910518 100644 --- a/spec/migrations/schedule_create_gpg_key_subkeys_from_gpg_keys_spec.rb +++ b/spec/migrations/schedule_create_gpg_key_subkeys_from_gpg_keys_spec.rb @@ -6,7 +6,7 @@ describe ScheduleCreateGpgKeySubkeysFromGpgKeys, :migration, :sidekiq do create(:gpg_key, id: 1, key: GpgHelpers::User1.public_key) # rubocop:disable RSpec/FactoriesInMigrationSpecs create(:gpg_key, id: 2, key: GpgHelpers::User3.public_key) # rubocop:disable RSpec/FactoriesInMigrationSpecs # Delete all subkeys so they can be recreated - GpgKeySubkey.destroy_all + GpgKeySubkey.destroy_all # rubocop: disable DestroyAll end it 'correctly schedules background migrations' do |