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/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.rb16
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