Chatwoot/db/migrate/20221212061802_enable_multi_searchable.rb

11 lines
232 B
Ruby
Raw Normal View History

class EnableMultiSearchable < ActiveRecord::Migration[6.1]
def up
2022-12-19 16:59:48 +00:00
::Conversations::MultiSearchJob.perform_now
execute 'CREATE EXTENSION IF NOT EXISTS pg_trgm;'
end
def down
PgSearch::Document.delete_all
end
end