Welcome to mirror list, hosted at ThFree Co, Russian Federation.

20230618020202_finish_user_type_migration.rb « post_migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 4a729d5d408b6578c602da1277424b6afd39f7db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# frozen_string_literal: true

class FinishUserTypeMigration < Gitlab::Database::Migration[2.1]
  MIGRATION = 'MigrateHumanUserType'

  disable_ddl_transaction!

  restrict_gitlab_migration gitlab_schema: :gitlab_main

  def up
    ensure_batched_background_migration_is_finished(
      job_class_name: MIGRATION,
      table_name: :users,
      column_name: :id,
      job_arguments: []
    )
  end

  def down
    # no-op
  end
end