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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20201005092753_add_framework_id_to_project_framework_settings.rb')
-rw-r--r--db/migrate/20201005092753_add_framework_id_to_project_framework_settings.rb34
1 files changed, 0 insertions, 34 deletions
diff --git a/db/migrate/20201005092753_add_framework_id_to_project_framework_settings.rb b/db/migrate/20201005092753_add_framework_id_to_project_framework_settings.rb
deleted file mode 100644
index f9ac12dcfd2..00000000000
--- a/db/migrate/20201005092753_add_framework_id_to_project_framework_settings.rb
+++ /dev/null
@@ -1,34 +0,0 @@
-# frozen_string_literal: true
-
-class AddFrameworkIdToProjectFrameworkSettings < ActiveRecord::Migration[6.0]
- include Gitlab::Database::MigrationHelpers
-
- DOWNTIME = false
-
- disable_ddl_transaction!
-
- def up
- unless column_exists?(:project_compliance_framework_settings, :framework_id)
- with_lock_retries do
- add_column(:project_compliance_framework_settings, :framework_id, :bigint)
- end
- end
-
- add_concurrent_index(:project_compliance_framework_settings, :framework_id)
-
- add_concurrent_foreign_key(
- :project_compliance_framework_settings,
- :compliance_management_frameworks,
- column: :framework_id,
- on_delete: :cascade
- )
- end
-
- def down
- remove_foreign_key_if_exists(:project_compliance_framework_settings, :compliance_management_frameworks, column: :framework_id)
-
- with_lock_retries do
- remove_column(:project_compliance_framework_settings, :framework_id)
- end
- end
-end