summaryrefslogtreecommitdiff
path: root/db/post_migrate/20221021082313_finish_reset_duplicate_ci_runners_token_encrypted_values.rb
blob: ba08322b1fffcee36df52583fb3f112be208a975 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# frozen_string_literal: true

class FinishResetDuplicateCiRunnersTokenEncryptedValues < Gitlab::Database::Migration[2.0]
  disable_ddl_transaction!

  restrict_gitlab_migration gitlab_schema: :gitlab_ci

  def up
    ensure_batched_background_migration_is_finished(
      job_class_name: 'ResetDuplicateCiRunnersTokenEncryptedValues',
      table_name: :ci_runners,
      column_name: :id,
      job_arguments: [],
      finalize: true
    )
  end

  def down
    # no-op
  end
end