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 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.

Reply via email to