mirror of
https://github.com/discourse/discourse.git
synced 2024-11-28 19:53:53 -06:00
005f623c42
Add a new column - `user_agent` - to the `SearchLog` table. This column can be null as we are only allowing a the user-agent string to have a max length of 2000 characters. In the case the user-agent string surpasses the max characters allowed, we simply nullify the value, and save/write the log as normal.
8 lines
191 B
Ruby
8 lines
191 B
Ruby
# frozen_string_literal: true
|
|
|
|
class AddUserAgentToSearchLogs < ActiveRecord::Migration[7.1]
|
|
def change
|
|
add_column :search_logs, :user_agent, :string, null: true, limit: 2000
|
|
end
|
|
end
|