Casecommons / pg_search

pg_search builds ActiveRecord named scopes that take advantage of PostgreSQL’s full text search
http://www.casebook.net
MIT License
1.35k stars 371 forks source link

Enable `pg_tgm` extension #541

Open Isaac-alencar opened 3 months ago

Isaac-alencar commented 3 months ago

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