debian-mirror-gitlab/db/post_migrate/20211018101852_add_fk_to_tmp_project_id_column_on_namespaces_table.rb
2021-12-11 22:18:48 +05:30

14 lines
319 B
Ruby

# 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