diff options
Diffstat (limited to 'db/post_migrate/20200311192351_add_index_on_noteable_type_and_noteable_id_to_sent_notifications.rb')
-rw-r--r-- | db/post_migrate/20200311192351_add_index_on_noteable_type_and_noteable_id_to_sent_notifications.rb | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/db/post_migrate/20200311192351_add_index_on_noteable_type_and_noteable_id_to_sent_notifications.rb b/db/post_migrate/20200311192351_add_index_on_noteable_type_and_noteable_id_to_sent_notifications.rb deleted file mode 100644 index fa0246218c3..00000000000 --- a/db/post_migrate/20200311192351_add_index_on_noteable_type_and_noteable_id_to_sent_notifications.rb +++ /dev/null @@ -1,21 +0,0 @@ -# frozen_string_literal: true - -class AddIndexOnNoteableTypeAndNoteableIdToSentNotifications < ActiveRecord::Migration[6.0] - include Gitlab::Database::MigrationHelpers - - DOWNTIME = false - INDEX_NAME = 'index_sent_notifications_on_noteable_type_noteable_id' - - disable_ddl_transaction! - - def up - add_concurrent_index :sent_notifications, - [:noteable_id], - name: INDEX_NAME, - where: "noteable_type = 'Issue'" - end - - def down - remove_concurrent_index_by_name :sent_notifications, INDEX_NAME - end -end |