20220105163928_remove_mentions_status_id_index.rb 360 B

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