forked from berserker/microblog
add index_notifications_on_id_and_account_id_and_activity_type on notifications table (#4750)
parent
aefb4719bc
commit
672df4ecc0
2 changed files with 7 additions and 1 deletions
@ -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 |
Loading…
Reference in new issue