This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
2023-07-12 00:47:08 -07:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2022-01-23 04:53:58 -08:00
|
|
|
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
|