Revert commented backend code
This commit is contained in:
parent
d082049466
commit
dc19d6da8d
2 changed files with 2 additions and 2 deletions
|
@ -4,7 +4,7 @@ module MultiSearchableHelpers
|
||||||
included do
|
included do
|
||||||
PgSearch.multisearch_options = {
|
PgSearch.multisearch_options = {
|
||||||
using: {
|
using: {
|
||||||
# trigram: {},
|
trigram: {},
|
||||||
tsearch: {
|
tsearch: {
|
||||||
prefix: true,
|
prefix: true,
|
||||||
any_word: true,
|
any_word: true,
|
||||||
|
|
|
@ -3,7 +3,7 @@ class EnableMultiSearchable < ActiveRecord::Migration[6.1]
|
||||||
Contact.rebuild_pg_search_documents
|
Contact.rebuild_pg_search_documents
|
||||||
PgSearch::Multisearch.rebuild(Conversation)
|
PgSearch::Multisearch.rebuild(Conversation)
|
||||||
PgSearch::Multisearch.rebuild(Message)
|
PgSearch::Multisearch.rebuild(Message)
|
||||||
# execute 'create extension pg_trgm;'
|
execute 'create extension pg_trgm;'
|
||||||
end
|
end
|
||||||
|
|
||||||
def down
|
def down
|
||||||
|
|
Loading…
Reference in a new issue