diff options
Diffstat (limited to 'db/migrate/20201208143911_add_approvals_created_at_index.rb')
-rw-r--r-- | db/migrate/20201208143911_add_approvals_created_at_index.rb | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/db/migrate/20201208143911_add_approvals_created_at_index.rb b/db/migrate/20201208143911_add_approvals_created_at_index.rb deleted file mode 100644 index cfec6b257c2..00000000000 --- a/db/migrate/20201208143911_add_approvals_created_at_index.rb +++ /dev/null @@ -1,19 +0,0 @@ -# frozen_string_literal: true - -class AddApprovalsCreatedAtIndex < ActiveRecord::Migration[6.0] - include Gitlab::Database::MigrationHelpers - - DOWNTIME = false - - disable_ddl_transaction! - - INDEX_NAME = 'index_approvals_on_merge_request_id_and_created_at' - - def up - add_concurrent_index :approvals, [:merge_request_id, :created_at], name: INDEX_NAME - end - - def down - remove_concurrent_index_by_name :approvals, INDEX_NAME - end -end |