FEATURE: show recent searches in quick search panel (#15024)

This commit is contained in:
Penar Musaraj
2021-11-25 15:44:15 -05:00
committed by GitHub
parent 5647819de4
commit d99deaf1ab
19 changed files with 286 additions and 7 deletions

View File

@ -0,0 +1,9 @@
# frozen_string_literal: true
class AddRecentSearches < ActiveRecord::Migration[6.1]
def change
add_column :user_options, :oldest_search_log_date, :datetime
add_index :search_logs, [:user_id, :created_at], where: 'user_id IS NOT NULL'
end
end