mirror of
https://github.com/discourse/discourse.git
synced 2024-11-30 12:55:31 +08:00
e29605b79f
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
|