Adding indexes and speeding up doorlog query
This commit is contained in:
6
db/migrate/20141120194112_add_indexes_to_door_log.rb
Normal file
6
db/migrate/20141120194112_add_indexes_to_door_log.rb
Normal file
@@ -0,0 +1,6 @@
|
||||
class AddIndexesToDoorLog < ActiveRecord::Migration
|
||||
def change
|
||||
add_index :door_logs, :key
|
||||
add_index :door_logs, :created_at
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user