diff options
Diffstat (limited to 'db/post_migrate/20221121000127_index_security_scans_on_created_at_and_id_for_non_purged_records.rb')
-rw-r--r-- | db/post_migrate/20221121000127_index_security_scans_on_created_at_and_id_for_non_purged_records.rb | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/db/post_migrate/20221121000127_index_security_scans_on_created_at_and_id_for_non_purged_records.rb b/db/post_migrate/20221121000127_index_security_scans_on_created_at_and_id_for_non_purged_records.rb deleted file mode 100644 index 0085005166f..00000000000 --- a/db/post_migrate/20221121000127_index_security_scans_on_created_at_and_id_for_non_purged_records.rb +++ /dev/null @@ -1,16 +0,0 @@ -# frozen_string_literal: true - -class IndexSecurityScansOnCreatedAtAndIdForNonPurgedRecords < Gitlab::Database::Migration[2.0] - INDEX_NAME = :index_security_scans_for_non_purged_records - PURGED_STATE = 6 - - disable_ddl_transaction! - - def up - add_concurrent_index :security_scans, %w[created_at id], where: "status != #{PURGED_STATE}", name: INDEX_NAME - end - - def down - remove_concurrent_index_by_name :security_scans, INDEX_NAME - end -end |