mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 09:36:19 -05:00
b4844d4477
(in some cases search was not finding accounts)
11 lines
298 B
Ruby
11 lines
298 B
Ruby
class CorrectUsernameSearch < ActiveRecord::Migration
|
|
def up
|
|
execute "update user_search_data
|
|
set search_data = TO_TSVECTOR('simple', username_lower || ' ' || lower(name))
|
|
from users
|
|
where users.id = user_search_data.user_id"
|
|
end
|
|
|
|
def down
|
|
end
|
|
end
|