diff options
Diffstat (limited to 'db/migrate/20210803110920_add_unique_index_to_vulnerability_flags_table.rb')
-rw-r--r-- | db/migrate/20210803110920_add_unique_index_to_vulnerability_flags_table.rb | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/db/migrate/20210803110920_add_unique_index_to_vulnerability_flags_table.rb b/db/migrate/20210803110920_add_unique_index_to_vulnerability_flags_table.rb deleted file mode 100644 index 38d72496484..00000000000 --- a/db/migrate/20210803110920_add_unique_index_to_vulnerability_flags_table.rb +++ /dev/null @@ -1,17 +0,0 @@ -# frozen_string_literal: true - -class AddUniqueIndexToVulnerabilityFlagsTable < ActiveRecord::Migration[6.1] - include Gitlab::Database::MigrationHelpers - - INDEX_NAME = 'index_vulnerability_flags_on_unique_columns' - - disable_ddl_transaction! - - def up - add_concurrent_index :vulnerability_flags, [:vulnerability_occurrence_id, :flag_type, :origin], name: INDEX_NAME, unique: true - end - - def down - remove_concurrent_index_by_name :vulnerability_flags, INDEX_NAME - end -end |