mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 00:27:10 +08:00

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
|