17 lines
357 B
Ruby
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
|