about summary refs log tree commit diff
path: root/db/migrate/20200216000613_remove_unused_indexes_2020_02.rb
blob: feb42f3459a18763b69b5a13234b7ff1ab5a4bee (plain) (blame)
1
2
3
4
5
6
7
class RemoveUnusedIndexes202002 < ActiveRecord::Migration[5.2]
  def change
    if index_exists? :statuses, name: 'index_statuses_on_account_id_and_id_and_visibility_not_hidden'
      remove_index :statuses, name: 'index_statuses_on_account_id_and_id_and_visibility_not_hidden'
    end
  end
end