class Jennifer::Migration::Version

Defined in:

jennifer/migration/version.cr

Constant Summary

RELATION_NAMES = [] of String

Constructors

Class Method Summary

Instance Method Summary

Instance methods inherited from class Jennifer::Model::Base

delete delete, destroy destroy, id id, primary primary

Class methods inherited from class Jennifer::Model::Base

all all, c(name) c, delete(*ids) delete, delete_all delete_all, destroy(*ids) destroy, destroy_all destroy_all, search_by_sql(query : String, args = [] of Supportable) search_by_sql, table_name(value : String | Symbol)
table_name : String
table_name
, where(&) where

Instance methods inherited from module Jennifer::Support

pluralize(str : String) pluralize, singularize(str : String) singularize

Constructor Detail

def self.new(values : Hash | NamedTuple, new_record : Bool) #

def self.new(__temp_78 : MySql::ResultSet | MySql::TextResultSet) #

creates object from db tuple


def self.new(values : Hash | NamedTuple) #

def self.new #

def self.new(**values) #

Class Method Detail

def self._id #

def self._version #

def self.create(values : Hash | NamedTuple) #

def self.create #

def self.create(**values) #

def self.field_count #

def self.field_names #

def self.primary #

def self.primary_field_name #

def self.primary_field_type #

def self.relation(name : String) #

[View source]
def self.relations #

[View source]

Instance Method Detail

def attribute(name : String) #

def attribute(name : Symbol) #

def attributes_hash #

def id : Int32? #

def id=(_id : Int32 | Nil) #

def init_primary_field(value : Int32) #

def new_record? : Bool #

def primary : Int32? #

def save #

def set_relation(name, hash) #

def to_h #

def version : String #

def version=(_version : String) #