about summary refs log tree commit diff
path: root/db/migrate/20220105163928_remove_mentions_status_id_index.rb
blob: 56e903719288d423af684996ec012c8e45517f7f (plain) (blame)
1
2
3
4
5
6
7
8
9
class RemoveMentionsStatusIdIndex < ActiveRecord::Migration[6.1]
  def up
    remove_index :mentions, name: :mentions_status_id_index if index_exists?(:mentions, :status_id, name: :mentions_status_id_index)
  end

  def down
    # As this index should not exist and is a duplicate of another index, do not re-create it
  end
end