summaryrefslogtreecommitdiff
path: root/db/post_migrate/20210830104800_reschedule_extract_project_topics_into_separate_table.rb
blob: d6b2db7790f1e5237fc27b7d9b138e3547ab43f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# frozen_string_literal: true

class RescheduleExtractProjectTopicsIntoSeparateTable < ActiveRecord::Migration[6.0]
  include Gitlab::Database::MigrationHelpers

  MIGRATION = 'ExtractProjectTopicsIntoSeparateTable'
  DELAY_INTERVAL = 4.minutes

  disable_ddl_transaction!

  def up
    requeue_background_migration_jobs_by_range_at_intervals(MIGRATION, DELAY_INTERVAL)
  end

  def down
    # no-op
  end
end