module Avram::Migrator::StatementHelpers
Included Modules
Direct including types
Defined in:
avram/migrator/statement_helpers.crInstance Method Summary
- #create_foreign_key(from : Symbol, to : Symbol, on_delete : Symbol, column : Symbol | Nil, primary_key = :id)
- #create_index(table_name : Symbol, columns : Columns, unique = false, using = :btree)
- #drop(table_name)
- #drop_index(table_name : Symbol, columns : Columns, if_exists = false, on_delete = :do_nothing)
- #make_optional(table : Symbol, column : Symbol)
- #make_required(table : Symbol, column : Symbol)
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)
#
def drop_index(table_name : Symbol, columns : Columns, if_exists = false, on_delete = :do_nothing)
#