diff options
Diffstat (limited to 'db/post_migrate/20210706115312_add_upvotes_count_index_to_issues.rb')
-rw-r--r-- | db/post_migrate/20210706115312_add_upvotes_count_index_to_issues.rb | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/db/post_migrate/20210706115312_add_upvotes_count_index_to_issues.rb b/db/post_migrate/20210706115312_add_upvotes_count_index_to_issues.rb deleted file mode 100644 index 65ec43930ea..00000000000 --- a/db/post_migrate/20210706115312_add_upvotes_count_index_to_issues.rb +++ /dev/null @@ -1,17 +0,0 @@ -# frozen_string_literal: true - -class AddUpvotesCountIndexToIssues < ActiveRecord::Migration[6.1] - include Gitlab::Database::MigrationHelpers - - disable_ddl_transaction! - - INDEX_NAME = 'index_issues_on_project_id_and_upvotes_count' - - def up - add_concurrent_index :issues, [:project_id, :upvotes_count], name: INDEX_NAME - end - - def down - remove_concurrent_index :issues, [:project_id, :upvotes_count], name: INDEX_NAME - end -end |