Fix Rails/ReversibleMigration
cop for remove_index
(#30832)
This commit is contained in:
parent
8922786ef4
commit
4682804448
6 changed files with 11 additions and 11 deletions
|
@ -5,6 +5,6 @@ class MoreFasterIndexOnNotifications < ActiveRecord::Migration[5.2]
|
|||
|
||||
def change
|
||||
add_index :notifications, [:account_id, :id], order: { id: :desc }, algorithm: :concurrently
|
||||
remove_index :notifications, name: :index_notifications_on_id_and_account_id_and_activity_type
|
||||
remove_index :notifications, [:id, :account_id, :activity_type], name: :index_notifications_on_id_and_account_id_and_activity_type
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue