OPTIMIZATION: Add index to post_timings and adjust the query

This commit is contained in:
Robin Ward
2014-08-01 13:09:16 -04:00
parent b414a3590a
commit 09d7a697bf
2 changed files with 8 additions and 4 deletions

View File

@@ -0,0 +1,5 @@
class CreatePostTimingsUserIndex < ActiveRecord::Migration
def change
add_index :post_timings, :user_id
end
end