Lustra::Migration::Table
Inherits Lustra::Migration::FullTextSearchableTableHelpers < Lustra::Migration::Operation < Lustra::ErrorMessages < Reference < Object
Reopen Table to add the helpers
Constructors
Instance methods
add_column(column, type, default = nil, null = true, primary = false, index = false, unique = false, array = false, comment : String | Nil = nil)
Add/alter a column for this table.
add_fkey(fields : Array(String), table : String, foreign_fields : Array(String), on_delete : String, primary : Bool)
Sourcecolumn(name, type, default = nil, null = true, primary = false, index = false, unique = false, array = false, comment : String | Nil = nil)
Sourcecolumn_operations
Sourcedown
Sourcefkey_operations
Sourcefull_name
SourceAdd or replace an index for this table.
Alias for add_index
index_operations
Sourceis_create?
Sourcename
Sourcereferences(to, name : String | Nil = nil, on_delete = "restrict", type = "bigint", null = false, foreign_key = "id", primary = false)
Sourceschema
Sourceup
SourceMacros
method_missing(caller)
DEPRECATED Method missing is used to generate add_column using the method name as column type (ActiveRecord's style)