Oh, now that you said I was able to find that option in the documentation. Thanks.
Em qua, 2 de mai de 2018 20:33, Jeremy Evans <[email protected]> escreveu: > On Wednesday, May 2, 2018 at 3:30:10 PM UTC-7, Rodrigo Rosenfeld Rosas > wrote: >> >> Currently, as far as I know, it's not possible to create a trgm gin index >> using the migrations DSL without resorting to plain SQL. >> >> For example, I'd like to be able to use something like this (assuming >> another migration has already "run 'create extension pgtrgm'" previously): >> >> def change >> create_table(:sample) do >> text :value >> index :value, type: :gin, operator: :gin_trgm_ops >> end >> end >> >> Could that be added for the PG adapter at least? >> > > I think this is already supported by the :opclass option (opclass is the > term PostgreSQL uses for this in their documentation). > > Thanks, > Jeremy > > -- > You received this message because you are subscribed to a topic in the > Google Groups "sequel-talk" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/sequel-talk/y87vhyu3I5M/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/sequel-talk. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "sequel-talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/sequel-talk. For more options, visit https://groups.google.com/d/optout.
