summaryrefslogtreecommitdiff
path: root/db/post_migrate/20211230112517_remove_index_events_on_author_id_and_action_and_id.rb
blob: 2215a49e28665e314123793179a5c098819eefa8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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