Add index for SearchLog#created_at.

Admin search logs filters by `created_at` so this will help.
This commit is contained in:
Guo Xiang Tan 2019-03-26 20:37:33 +08:00
parent 3aa32c3170
commit cf9d8c1ad3

View File

@ -0,0 +1,5 @@
class AddIndexCreatedAtOnSearchLogs < ActiveRecord::Migration[5.2]
def change
add_index :search_logs, :created_at
end
end