mirror of
https://github.com/discourse/discourse.git
synced 2025-06-06 13:06:56 +08:00
FEATURE: show recent searches in quick search panel (#15024)
This commit is contained in:
9
db/migrate/20211123144714_add_recent_searches.rb
Normal file
9
db/migrate/20211123144714_add_recent_searches.rb
Normal 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
|
Reference in New Issue
Block a user