blob: e0e73b27ab7d9f1168a42cebdf7416ed0570dbb6 (
plain) (
blame)
1
2
3
4
5
6
7
8
|
class MoreFasterIndexOnNotifications < ActiveRecord::Migration[5.2]
disable_ddl_transaction!
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
end
end
|