module Avram::Migrator::StatementHelpers

Included Modules

Direct including types

Defined in:

avram/migrator/statement_helpers.cr

Instance Method Summary

Macro Summary

Instance methods inherited from module Avram::Migrator::IndexStatementHelpers

add_index(column : Symbol, unique = false, using : Symbol = :btree) add_index, index_added?(index : String, column : Symbol) index_added?

Instance Method Detail

def create_foreign_key(from : Symbol, to : Symbol, on_delete : Symbol, column : Symbol | Nil, primary_key = :id) #

[View source]
def create_index(table_name : Symbol, columns : Columns, unique = false, using = :btree) #

[View source]
def drop(table_name) #

[View source]
def drop_index(table_name : Symbol, columns : Columns, if_exists = false, on_delete = :do_nothing) #

[View source]
def make_optional(table : Symbol, column : Symbol) #

[View source]
def make_required(table : Symbol, column : Symbol) #

[View source]

Macro Detail

macro alter(table_name) #

[View source]
macro create(table_name) #

[View source]