PERF: missing index on notifications

this was slowing down acting on a post
This commit is contained in:
Sam 2015-06-17 18:05:52 +10:00
parent 0bb78ff53c
commit 1aa7cf842a

View file

@ -0,0 +1,5 @@
class AddIndexOnPostNotifications < ActiveRecord::Migration
def change
add_index :notifications, [:user_id, :topic_id, :post_number]
end
end