diff options
Diffstat (limited to 'db/post_migrate/20211230112517_remove_index_events_on_author_id_and_action_and_id.rb')
-rw-r--r-- | db/post_migrate/20211230112517_remove_index_events_on_author_id_and_action_and_id.rb | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/db/post_migrate/20211230112517_remove_index_events_on_author_id_and_action_and_id.rb b/db/post_migrate/20211230112517_remove_index_events_on_author_id_and_action_and_id.rb new file mode 100644 index 00000000000..2215a49e286 --- /dev/null +++ b/db/post_migrate/20211230112517_remove_index_events_on_author_id_and_action_and_id.rb @@ -0,0 +1,17 @@ +# frozen_string_literal: true + +class RemoveIndexEventsOnAuthorIdAndActionAndId < Gitlab::Database::Migration[1.0] + INDEX_NAME = 'index_events_on_author_id_and_action_and_id' + + disable_ddl_transaction! + + def up + remove_concurrent_index_by_name :events, name: INDEX_NAME + end + + def down + # no-op + # The index had been added in the same milestone. + # Adding back the index takes a long time and should not be needed. + end +end |