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

20211018101852_add_fk_to_tmp_project_id_column_on_namespaces_table.rb « post_migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f2772389d028d86c2c27bf4114143a46edb8c40f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

class AddFkToTmpProjectIdColumnOnNamespacesTable < Gitlab::Database::Migration[1.0]
  disable_ddl_transaction!

  def up
    add_concurrent_foreign_key :namespaces, :projects, column: :tmp_project_id
  end

  def down
    remove_foreign_key :namespaces, column: :tmp_project_id
  end
end