summaryrefslogtreecommitdiff
path: root/db/post_migrate/20201128210234_schedule_populate_issue_email_participants.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/post_migrate/20201128210234_schedule_populate_issue_email_participants.rb')
-rw-r--r--db/post_migrate/20201128210234_schedule_populate_issue_email_participants.rb31
1 files changed, 0 insertions, 31 deletions
diff --git a/db/post_migrate/20201128210234_schedule_populate_issue_email_participants.rb b/db/post_migrate/20201128210234_schedule_populate_issue_email_participants.rb
deleted file mode 100644
index 6fea683944c..00000000000
--- a/db/post_migrate/20201128210234_schedule_populate_issue_email_participants.rb
+++ /dev/null
@@ -1,31 +0,0 @@
-# frozen_string_literal: true
-
-class SchedulePopulateIssueEmailParticipants < ActiveRecord::Migration[6.0]
- include Gitlab::Database::MigrationHelpers
-
- DOWNTIME = false
- BATCH_SIZE = 1_000
- DELAY_INTERVAL = 2.minutes
- MIGRATION = 'PopulateIssueEmailParticipants'
-
- disable_ddl_transaction!
-
- class Issue < ActiveRecord::Base
- include EachBatch
-
- self.table_name = 'issues'
- end
-
- def up
- queue_background_migration_jobs_by_range_at_intervals(
- Issue.where.not(service_desk_reply_to: nil),
- MIGRATION,
- DELAY_INTERVAL,
- batch_size: BATCH_SIZE
- )
- end
-
- def down
- # no-op
- end
-end