summaryrefslogtreecommitdiff
path: root/db/migrate/20210106153021_drop_tmp_index_on_emails.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20210106153021_drop_tmp_index_on_emails.rb')
-rw-r--r--db/migrate/20210106153021_drop_tmp_index_on_emails.rb20
1 files changed, 0 insertions, 20 deletions
diff --git a/db/migrate/20210106153021_drop_tmp_index_on_emails.rb b/db/migrate/20210106153021_drop_tmp_index_on_emails.rb
deleted file mode 100644
index 94b4a5437af..00000000000
--- a/db/migrate/20210106153021_drop_tmp_index_on_emails.rb
+++ /dev/null
@@ -1,20 +0,0 @@
-# frozen_string_literal: true
-
-class DropTmpIndexOnEmails < ActiveRecord::Migration[6.0]
- include Gitlab::Database::MigrationHelpers
-
- DOWNTIME = false
- EMAIL_INDEX_NAME = 'tmp_index_for_email_unconfirmation_migration'
-
- disable_ddl_transaction!
-
- def up
- Gitlab::BackgroundMigration.steal('WrongfullyConfirmedEmailUnconfirmer')
-
- remove_concurrent_index_by_name(:emails, EMAIL_INDEX_NAME)
- end
-
- def down
- add_concurrent_index(:emails, :id, where: 'confirmed_at IS NOT NULL', name: EMAIL_INDEX_NAME)
- end
-end