mirror of
https://gitlab.com/gitlab-org/gitlab-foss.git
synced 2025-07-23 00:47:51 +00:00
13 lines
364 B
Ruby
13 lines
364 B
Ruby
# frozen_string_literal: true
|
|
|
|
class AddAiUsageEventsNamespaceFk < Gitlab::Database::Migration[2.3]
|
|
include Gitlab::Database::PartitioningMigrationHelpers::ForeignKeyHelpers
|
|
|
|
disable_ddl_transaction!
|
|
milestone '18.2'
|
|
|
|
def change
|
|
add_concurrent_partitioned_foreign_key :ai_usage_events, :namespaces, column: :namespace_id, on_delete: :nullify
|
|
end
|
|
end
|