PERF: missing index on useractions making user page slow

This commit is contained in:
Sam 2015-05-14 14:39:04 +10:00
parent e074651fdc
commit 2b2d0e803f
1 changed files with 5 additions and 0 deletions

View File

@ -0,0 +1,5 @@
class AddUserActionsAllIndex < ActiveRecord::Migration
def change
add_index :user_actions, [:user_id, :created_at, :action_type], name: 'idx_user_actions_speed_up_user_all'
end
end