PERF: add missing index on post actions
This commit is contained in:
parent
51d82fc25d
commit
8362993099
|
@ -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
|
Loading…
Reference in New Issue