diff options
Diffstat (limited to 'db/post_migrate/20211103162025_add_index_on_events_using_btree_created_at_id.rb')
-rw-r--r-- | db/post_migrate/20211103162025_add_index_on_events_using_btree_created_at_id.rb | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/db/post_migrate/20211103162025_add_index_on_events_using_btree_created_at_id.rb b/db/post_migrate/20211103162025_add_index_on_events_using_btree_created_at_id.rb deleted file mode 100644 index 33d5833db1a..00000000000 --- a/db/post_migrate/20211103162025_add_index_on_events_using_btree_created_at_id.rb +++ /dev/null @@ -1,17 +0,0 @@ -# frozen_string_literal: true - -class AddIndexOnEventsUsingBtreeCreatedAtId < Gitlab::Database::Migration[1.0] - INDEX_NAME = 'index_events_on_created_at_and_id' - TABLE = :events - COLUMNS = %i[created_at id] - CONSTRAINTS = "created_at > '2021-08-27 00:00:00+00'" - disable_ddl_transaction! - - def up - add_concurrent_index TABLE, COLUMNS, name: INDEX_NAME, where: CONSTRAINTS - end - - def down - remove_concurrent_index TABLE, COLUMNS, name: INDEX_NAME, where: CONSTRAINTS - end -end |