module Avram::Migrator::IndexStatementHelpers

Direct including types

Defined in:

avram/migrator/index_statement_helpers.cr

Instance Method Summary

Instance Method Detail

def add_index(column : Symbol, unique = false, using : Symbol = :btree) #

Generates raw sql for adding an index to a table column. Accepts 'unique' and 'using' options.


[View source]
def index_added?(index : String, column : Symbol) #

Returns false unless matching index exists. Ignores UNIQUE


[View source]