mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-30 10:58:31 -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
|