PERF: add missing index on post actions

This commit is contained in:
Sam 2015-05-13 19:43:51 +10:00
parent 51d82fc25d
commit 8362993099
1 changed files with 5 additions and 0 deletions

View File

@ -0,0 +1,5 @@
class AddIndexOnPostActions < ActiveRecord::Migration
def change
add_index :post_actions, [:user_id, :post_action_type_id], where: 'deleted_at IS NULL'
end
end