debian-mirror-gitlab/db/post_migrate/20220331133802_schedule_backfill_topics_title.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
410 B
Ruby
Raw Normal View History

2022-07-16 23:28:13 +05:30
# frozen_string_literal: true
class ScheduleBackfillTopicsTitle < Gitlab::Database::Migration[1.0]
MIGRATION = 'BackfillTopicsTitle'
DELAY_INTERVAL = 2.minutes
disable_ddl_transaction!
def up
queue_background_migration_jobs_by_range_at_intervals(
define_batchable_model('topics'),
MIGRATION,
DELAY_INTERVAL,
track_jobs: true
)
end
def down
# no-op
end
end