mirror of
https://github.com/gitlabhq/gitlabhq.git
synced 2025-07-29 11:57:26 +00:00
21 lines
472 B
Ruby
21 lines
472 B
Ruby
# frozen_string_literal: true
|
|
|
|
class AddO11yMetricsIssueConnectionFk < Gitlab::Database::Migration[2.2]
|
|
disable_ddl_transaction!
|
|
milestone '17.4'
|
|
|
|
def up
|
|
add_concurrent_foreign_key :observability_metrics_issues_connections,
|
|
:projects,
|
|
column: :project_id,
|
|
on_delete: :cascade,
|
|
index: true
|
|
end
|
|
|
|
def down
|
|
with_lock_retries do
|
|
remove_foreign_key :observability_metrics_issues_connections, column: :project_id
|
|
end
|
|
end
|
|
end
|