diff options
author | Rubén Dávila <ruben@gitlab.com> | 2017-10-04 18:44:49 -0500 |
---|---|---|
committer | Rubén Dávila <ruben@gitlab.com> | 2017-10-05 08:26:02 -0500 |
commit | dd139e65b53f30eae2d8bb50dff180e8eab11fe4 (patch) | |
tree | 32411533b4ccfdfb6a2f08e2df0f2bb2b383e61d /db | |
parent | 2577cc99818bd0332aa78018de666579971341c8 (diff) | |
download | gitlab-ce-dd139e65b53f30eae2d8bb50dff180e8eab11fe4.tar.gz |
Invalidate GpgSignatures associated to GpgKeySubkeys when revoking the GpgKey
Diffstat (limited to 'db')
-rw-r--r-- | db/post_migrate/20171002161539_create_gpg_key_subkeys_for_existing_gpg_keys.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/db/post_migrate/20171002161539_create_gpg_key_subkeys_for_existing_gpg_keys.rb b/db/post_migrate/20171002161539_create_gpg_key_subkeys_for_existing_gpg_keys.rb index 346dfb1a4b6..04c81ea684f 100644 --- a/db/post_migrate/20171002161539_create_gpg_key_subkeys_for_existing_gpg_keys.rb +++ b/db/post_migrate/20171002161539_create_gpg_key_subkeys_for_existing_gpg_keys.rb @@ -30,7 +30,7 @@ class CreateGpgKeySubkeysForExistingGpgKeys < ActiveRecord::Migration def up GpgKey.with_subkeys.each_batch do |batch| batch.each do |gpg_key| - return if gpg_key.subkeys.any? + next if gpg_key.subkeys.any? create_subkeys(gpg_key) && update_signatures(gpg_key) end |