Clear::Migration::Table
Inherits Clear::Migration::FullTextSearchableTableHelpers < Clear::Migration::Operation < Clear::ErrorMessages < Reference < Object
Reopen Table to add the helpers
Constructors
new(name : String, schema : String, is_create : Bool)
SourceInstance methods
add_column(column, type, default = nil, null = true, primary = false, index = false, unique = false, array = false)
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)
Sourcecolumn_operations
Sourcedown
Sourcefkey_operations
Sourcefull_name
Sourceindex(field : String | Symbol, name = nil, using = nil, unique = false)
Add 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)