mirror of
https://github.com/discourse/discourse.git
synced 2025-02-06 23:42:59 +08:00
![Krzysztof Kotlarek](/assets/img/avatar_default.png)
When the admin creates a new custom field they can specify if that field should be searchable or not. That setting is taken into consideration for quick search results.
8 lines
198 B
Ruby
8 lines
198 B
Ruby
# frozen_string_literal: true
|
|
|
|
class AddSearchableToUserFields < ActiveRecord::Migration[6.0]
|
|
def change
|
|
add_column :user_fields, :searchable, :boolean, default: :false, null: false
|
|
end
|
|
end
|