gitlab-ce/lib/gitlab/background_migration/remove_self_managed_wiki_no...

18 lines
390 B
Ruby

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