class Avram::Migrator::Columns::StringColumn(T)
Defined in:
avram/migrator/columns/string_column.crConstructors
Instance Method Summary
-
#column_type : String
If
case_sensitive?
is false then the column type is set tocitext
which requires thecitext
extension to be enabled otherwise the type istext
Instance methods inherited from class Avram::Migrator::Columns::Base
array!
array!,
as_array_type : String
as_array_type,
build_add_statement_for_alter : String
build_add_statement_for_alter,
build_add_statement_for_create : String
build_add_statement_for_create,
build_change_default_statement(table_name : TableName) : String
build_change_default_statement,
build_change_type_statement(table_name : TableName) : String
build_change_type_statement,
column_type : String
column_type,
set_references(references : String, on_delete : Symbol)set_references(references : Nil, on_delete : Nil)
set_references(references : Nil | String, on_delete : Symbol | Nil) set_references
Constructor methods inherited from class Avram::Migrator::Columns::Base
new(name)
new
Class methods inherited from class Avram::Migrator::Columns::Base
escape_literal(value)
escape_literal,
prepare_value_for_database(value : Array)prepare_value_for_database(value) prepare_value_for_database
Instance methods inherited from class Object
blank_for_validates_required? : Bool
blank_for_validates_required?
Constructor Detail
def self.new(name : String, nilable : Bool | Nil, default : T | Nil, case_sensitive : Bool = true)
#
Instance Method Detail
If case_sensitive?
is false then the column type is set to citext
which requires the citext
extension to be enabled
otherwise the type is text