Method: Sequel::Schema::CreateTableGenerator#full_text_index

Defined in:
lib/sequel/database/schema_generator.rb

#full_text_index(columns, opts = OPTS) ⇒ Object

Add a full text index on the given columns. See #index for additional options.

PostgreSQL specific options:

:index_type

Can be set to :gist to use a GIST index instead of the default GIN index.

:language

Set a language to use for the index (default: simple).

[View source]

226
227
228
# File 'lib/sequel/database/schema_generator.rb', line 226

def full_text_index(columns, opts = OPTS)
  index(columns, opts.merge(:type => :full_text))
end