diff options
Diffstat (limited to 'db/migrate/20201004163918_remove_project_id_and_id_index_from_vulnerabilities_table.rb')
-rw-r--r-- | db/migrate/20201004163918_remove_project_id_and_id_index_from_vulnerabilities_table.rb | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/db/migrate/20201004163918_remove_project_id_and_id_index_from_vulnerabilities_table.rb b/db/migrate/20201004163918_remove_project_id_and_id_index_from_vulnerabilities_table.rb deleted file mode 100644 index 73028b6b795..00000000000 --- a/db/migrate/20201004163918_remove_project_id_and_id_index_from_vulnerabilities_table.rb +++ /dev/null @@ -1,19 +0,0 @@ -# frozen_string_literal: true - -class RemoveProjectIdAndIdIndexFromVulnerabilitiesTable < ActiveRecord::Migration[6.0] - include Gitlab::Database::MigrationHelpers - - DOWNTIME = false - INDEX_NAME = 'index_vulnerabilities_on_project_id_and_id' - - disable_ddl_transaction! - - def up - Gitlab::BackgroundMigration.steal('PopulateResolvedOnDefaultBranchColumn') - remove_concurrent_index_by_name :vulnerabilities, INDEX_NAME - end - - def down - add_concurrent_index :vulnerabilities, [:project_id, :id], name: INDEX_NAME - end -end |