diff options
Diffstat (limited to 'db/migrate/20210526181821_add_foreign_key_for_latest_pipeline_id_to_ci_pipelines.rb')
-rw-r--r-- | db/migrate/20210526181821_add_foreign_key_for_latest_pipeline_id_to_ci_pipelines.rb | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/db/migrate/20210526181821_add_foreign_key_for_latest_pipeline_id_to_ci_pipelines.rb b/db/migrate/20210526181821_add_foreign_key_for_latest_pipeline_id_to_ci_pipelines.rb deleted file mode 100644 index adcac5e2637..00000000000 --- a/db/migrate/20210526181821_add_foreign_key_for_latest_pipeline_id_to_ci_pipelines.rb +++ /dev/null @@ -1,17 +0,0 @@ -# frozen_string_literal: true - -class AddForeignKeyForLatestPipelineIdToCiPipelines < ActiveRecord::Migration[6.0] - include Gitlab::Database::MigrationHelpers - - disable_ddl_transaction! - - def up - add_concurrent_foreign_key :vulnerability_statistics, :ci_pipelines, column: :latest_pipeline_id, on_delete: :nullify - end - - def down - with_lock_retries do - remove_foreign_key_if_exists :vulnerability_statistics, :ci_pipelines - end - end -end |