discourse/db/migrate/20210420015635_add_searchable_to_user_fields.rb
Krzysztof Kotlarek e29605b79f
FEATURE: the ability to search users by custom fields (#12762)
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.
2021-04-27 15:52:45 +10:00

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