diff --git a/app/models/concerns/multi_searchable_helpers.rb b/app/models/concerns/multi_searchable_helpers.rb index 0d0d8728c..82b168189 100644 --- a/app/models/concerns/multi_searchable_helpers.rb +++ b/app/models/concerns/multi_searchable_helpers.rb @@ -4,7 +4,7 @@ module MultiSearchableHelpers included do PgSearch.multisearch_options = { using: { - # trigram: {}, + trigram: {}, tsearch: { prefix: true, any_word: true, diff --git a/db/migrate/20221212061802_enable_multi_searchable.rb b/db/migrate/20221212061802_enable_multi_searchable.rb index dba66f28d..d96eec08a 100644 --- a/db/migrate/20221212061802_enable_multi_searchable.rb +++ b/db/migrate/20221212061802_enable_multi_searchable.rb @@ -3,7 +3,7 @@ class EnableMultiSearchable < ActiveRecord::Migration[6.1] Contact.rebuild_pg_search_documents PgSearch::Multisearch.rebuild(Conversation) PgSearch::Multisearch.rebuild(Message) - # execute 'create extension pg_trgm;' + execute 'create extension pg_trgm;' end def down