summaryrefslogtreecommitdiff
path: root/lib/gitlab/background_migration/remove_self_managed_wiki_notes.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/background_migration/remove_self_managed_wiki_notes.rb')
-rw-r--r--lib/gitlab/background_migration/remove_self_managed_wiki_notes.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/gitlab/background_migration/remove_self_managed_wiki_notes.rb b/lib/gitlab/background_migration/remove_self_managed_wiki_notes.rb
index 5b1d630bb03..a284c04d4f5 100644
--- a/lib/gitlab/background_migration/remove_self_managed_wiki_notes.rb
+++ b/lib/gitlab/background_migration/remove_self_managed_wiki_notes.rb
@@ -4,10 +4,10 @@ module Gitlab
module BackgroundMigration
# Removes obsolete wiki notes
class RemoveSelfManagedWikiNotes < BatchedMigrationJob
+ operation_name :delete_all
+
def perform
- each_sub_batch(
- operation_name: :delete_all
- ) do |sub_batch|
+ each_sub_batch do |sub_batch|
sub_batch.where(noteable_type: 'Wiki').delete_all
end
end