mirror of
https://github.com/discourse/discourse.git
synced 2025-05-28 13:51:18 +08:00
DEV: update syntax tree to latest (#24623)
update format to latest syntax tree
This commit is contained in:
@ -4,11 +4,11 @@ class UserCustomField < ActiveRecord::Base
|
||||
belongs_to :user
|
||||
|
||||
scope :searchable,
|
||||
-> {
|
||||
-> do
|
||||
joins(
|
||||
"INNER JOIN user_fields ON user_fields.id = REPLACE(user_custom_fields.name, 'user_field_', '')::INTEGER AND user_fields.searchable IS TRUE AND user_custom_fields.name like 'user_field_%'",
|
||||
)
|
||||
}
|
||||
end
|
||||
end
|
||||
|
||||
# == Schema Information
|
||||
|
Reference in New Issue
Block a user