add index_notifications_on_id_and_account_id_and_activity_type on notifications table (#4750)

This commit is contained in:
takayamaki 2017-09-05 19:30:01 +09:00 committed by Eugen Rochko
parent aefb4719bc
commit 672df4ecc0
2 changed files with 7 additions and 1 deletions

View file

@ -0,0 +1,5 @@
class AddIndexIdAccountIdActivityTypeOnNotifications < ActiveRecord::Migration[5.1]
def change
add_index :notifications, [:id, :account_id, :activity_type], order: { id: :desc }
end
end