Casecommons / pg_search

pg_search builds ActiveRecord named scopes that take advantage of PostgreSQL’s full text search

Home Page:http://www.casebook.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Enable `pg_tgm` extension

Isaac-alencar opened this issue · comments

hi,

I have a question related to this wiki topic

context:
After follow the steps I managed to install the extension, but it does not automatically updated the schema file appending the enable_extension "pg_trgm" so I had to create a separated migration to achieve this:

class EnablePgTrigramExtension < ActiveRecord::Migration[7.2]
  def change
     enable_extension "pg_trgm"
  end
end

my question:
is that something specific that I had to do ? or we really need to do that? if so, I think we should complement our wiki page