class

Ralph::Migrations::Schema::GinIndexDefinition

Inherits Reference / Object

Represents a GIN (Generalized Inverted Index) index

GIN indexes are optimized for searching within complex data types:

  • JSONB containment queries (@>, ?, ?|, ?&)
  • Array overlap/containment (&&, @>, <@)
  • Full-text search (@@)

Example

create_table :posts do |t|
  t.jsonb :metadata
  t.gin_index :metadata
end

Constructors

new(table : String, column : String, name : String, fastupdate : Bool = true)
Source

Instance methods

column
Source
fastupdate
Source
name
Source
table
Source
to_drop_sql
Source
to_sql
Source