Ralph::Migrations::Schema::GinIndexDefinition
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
Instance methods
column
Sourcefastupdate
Sourcename
Sourcetable
Sourceto_drop_sql
Sourceto_sql
Source