20220105163928_remove_mentions_status_id_index.rb 329 B

123456789
  1. class RemoveMentionsStatusIdIndex < ActiveRecord::Migration[6.1]
  2. def up
  3. remove_index :mentions, name: :mentions_status_id_index if index_exists?(:mentions, :status_id, name: :mentions_status_id_index)
  4. end
  5. def down
  6. # As this index should not exist and is a duplicate of another index, do not re-create it
  7. end
  8. end