class

Ralph::Migrations::Schema::FullTextIndexDefinition

Inherits Reference / Object

Represents a full-text search GIN index

Creates a GIN index on a tsvector expression for efficient full-text search.

Example

create_table :articles do |t|
  t.string :title
  t.text :content
  t.full_text_index :title
  t.full_text_index [:title, :content], config: "english"
end

Constructors

new(table : String, columns : String | Array(String), name : String, config : String = "english", fastupdate : Bool = true)
Source

Instance methods

columns
Source
config
Source
fastupdate
Source
name
Source
table
Source
to_drop_sql
Source
to_sql
Source