Adding indexes and speeding up doorlog query

This commit is contained in:
2014-11-20 12:56:28 -07:00
parent 98b9db5fe1
commit d1c5dba667
3 changed files with 11 additions and 2 deletions

View File

@@ -0,0 +1,6 @@
class AddIndexesToDoorLog < ActiveRecord::Migration
def change
add_index :door_logs, :key
add_index :door_logs, :created_at
end
end