gitlab-org--gitlab-foss/lib/gitlab/background_migration/remove_self_managed_wiki_no...

17 lines
357 B
Ruby

# frozen_string_literal: true
module Gitlab
module BackgroundMigration
# Removes obsolete wiki notes
class RemoveSelfManagedWikiNotes < BatchedMigrationJob
operation_name :delete_all
def perform
each_sub_batch do |sub_batch|
sub_batch.where(noteable_type: 'Wiki').delete_all
end
end
end
end
end