mirror of
https://github.com/gitlabhq/gitlabhq.git
synced 2025-07-25 17:08:32 +00:00
18 lines
432 B
Ruby
18 lines
432 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Gitlab
|
|
module BackgroundMigration
|
|
class DeleteDuplicateIssuableResourceLinks < BatchedMigrationJob
|
|
operation_name :delete_duplicate_issuable_resource_links
|
|
scope_to ->(relation) { relation.where(is_unique: false) }
|
|
feature_category :database
|
|
|
|
def perform
|
|
each_sub_batch do |sub_batch|
|
|
sub_batch.delete_all
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|