mirror of https://github.com/mastodon/mastodon
add index_notifications_on_id_and_account_id_and_activity_type on notifications table (#4750)
parent
aefb4719bc
commit
672df4ecc0
@ -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