Ralph::Migrations::Schema::PartialIndexDefinition
Represents a partial index (index with WHERE condition)
Partial indexes only index rows matching the WHERE condition, making them smaller and faster for specific queries.
Example
# Only index active users
add_partial_index :users, :email, condition: "active = true"
# Only index published posts
add_partial_index :posts, :title, condition: "status = 'published'"
Constructors
Instance methods
column
Sourcecondition
Sourcename
Sourcetable
Sourceto_drop_sql
Sourceto_sql
Sourceunique
Source