struct

Ralph::Schema::ModelColumn

Inherits Struct / Value / Object

Column definition from a model

Constructors

new(name : String, crystal_type : String, sql_type : Symbol, nullable : Bool, primary_key : Bool, default : String | Int32 | Int64 | Float64 | Bool | Nil)
Source

Instance methods

clone
Source
copy_with(name _name = @name, crystal_type _crystal_type = @crystal_type, sql_type _sql_type = @sql_type, nullable _nullable = @nullable, primary_key _primary_key = @primary_key, default _default = @default)
Source
crystal_type
default
name
nullable
primary_key
sql_type