Luna::BaseMigration
Rails-ish migration base
Constructors
Instance methods
---- Column helpers ----
add_index(table : Symbol | String, cols : Symbol | Array(Symbol), unique : Bool = false, name : String | Nil = nil)
---- Index helpers ----
change
---- Directional API (choose one style) ----
Implement either change (default) or up/down.
change_table : yields a builder that just appends ALTERs
connection_name
Sourcecreate_table(name : Symbol | String, id : Bool | Symbol = true, force : Bool = false, & : Migrations::TableDefinition -> )
---- Table builder (Rails-like) ----
down
Sourceremove_index(table : Symbol | String, name : String | Nil = nil, columns : Array(Symbol) | Nil = nil)
Sourceup
Source