debian-mirror-gitlab/db/post_migrate/20210909104800_reschedule_extract_project_topics_into_separate_table_2.rb
2021-11-11 11:23:49 +05:30

17 lines
369 B
Ruby

# frozen_string_literal: true
class RescheduleExtractProjectTopicsIntoSeparateTable2 < Gitlab::Database::Migration[1.0]
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