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/20200922075244_add_compliance_framework_model.rb')
-rw-r--r--db/migrate/20200922075244_add_compliance_framework_model.rb32
1 files changed, 0 insertions, 32 deletions
diff --git a/db/migrate/20200922075244_add_compliance_framework_model.rb b/db/migrate/20200922075244_add_compliance_framework_model.rb
deleted file mode 100644
index 376482d9005..00000000000
--- a/db/migrate/20200922075244_add_compliance_framework_model.rb
+++ /dev/null
@@ -1,32 +0,0 @@
-# frozen_string_literal: true
-
-class AddComplianceFrameworkModel < ActiveRecord::Migration[6.0]
- include Gitlab::Database::MigrationHelpers
- DOWNTIME = false
-
- disable_ddl_transaction!
-
- def up
- unless table_exists?(:compliance_management_frameworks)
- with_lock_retries do
- create_table :compliance_management_frameworks do |t|
- t.references :group, foreign_key: { to_table: :namespaces, on_delete: :cascade }, null: false, index: false
- t.text :name, null: false
- t.text :description, null: false
- t.text :color, null: false
- t.index [:group_id, :name], unique: true
- end
- end
- end
-
- add_text_limit :compliance_management_frameworks, :name, 255
- add_text_limit :compliance_management_frameworks, :description, 255
- add_text_limit :compliance_management_frameworks, :color, 10
- end
-
- def down
- with_lock_retries do
- drop_table :compliance_management_frameworks
- end
- end
-end