diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-11-18 16:16:36 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-11-18 16:16:36 +0300 |
commit | 311b0269b4eb9839fa63f80c8d7a58f32b8138a0 (patch) | |
tree | 07e7870bca8aed6d61fdcc810731c50d2c40af47 /db/migrate/20200922075244_add_compliance_framework_model.rb | |
parent | 27909cef6c4170ed9205afa7426b8d3de47cbb0c (diff) |
Add latest changes from gitlab-org/gitlab@14-5-stable-eev14.5.0-rc42
Diffstat (limited to 'db/migrate/20200922075244_add_compliance_framework_model.rb')
-rw-r--r-- | db/migrate/20200922075244_add_compliance_framework_model.rb | 32 |
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 |