diff options
Diffstat (limited to 'db/post_migrate/20220919050555_drop_tmp_index_user_callouts_on_attention_request_feature_names.rb')
-rw-r--r-- | db/post_migrate/20220919050555_drop_tmp_index_user_callouts_on_attention_request_feature_names.rb | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/db/post_migrate/20220919050555_drop_tmp_index_user_callouts_on_attention_request_feature_names.rb b/db/post_migrate/20220919050555_drop_tmp_index_user_callouts_on_attention_request_feature_names.rb deleted file mode 100644 index e456a91fe3f..00000000000 --- a/db/post_migrate/20220919050555_drop_tmp_index_user_callouts_on_attention_request_feature_names.rb +++ /dev/null @@ -1,18 +0,0 @@ -# frozen_string_literal: true - -class DropTmpIndexUserCalloutsOnAttentionRequestFeatureNames < Gitlab::Database::Migration[2.0] - INDEX_NAME = "tmp_index_user_callouts_on_attention_request_feature_names" - ATTENTION_REQUEST_CALLOUTS = [47, 48] - - disable_ddl_transaction! - - def up - remove_concurrent_index_by_name :user_callouts, INDEX_NAME - end - - def down - add_concurrent_index :user_callouts, [:id], - where: "feature_name IN (#{ATTENTION_REQUEST_CALLOUTS.join(',')})", - name: INDEX_NAME - end -end |