module Avram::Migrator::IndexStatementHelpers
Direct including types
- Avram::Migrator::AlterTableStatement
- Avram::Migrator::CreateIndexStatement
- Avram::Migrator::CreateTableStatement
- Avram::Migrator::DropIndexStatement
- Avram::Migrator::StatementHelpers
Defined in:
avram/migrator/index_statement_helpers.crInstance Method Summary
-
#add_index(column : Symbol, unique = false, using : Symbol = :btree)
Generates raw sql for adding an index to a table column.
-
#index_added?(index : String, column : Symbol)
Returns false unless matching index exists.
Instance Method Detail
Generates raw sql for adding an index to a table column. Accepts 'unique' and 'using' options.
Returns false unless matching index exists. Ignores UNIQUE