class

Draw

Inherits DB::Mappable < Avram::PrimaryKeyMethods < LuckyCache::Cachable < BaseModel < LuckyCache::Cachable < Avram::Model < Avram::SchemaEnforcer < Avram::Polymorphic < Avram::Associations < Avram::Associations::BelongsTo < Avram::Associations::HasOne < Avram::Associations::HasMany < Reference < Object

Constants

ASSOCIATIONS = [{type: Bonspiel, assoc_name: bonspiel, foreign_key: :bonspiel_id, relationship_type: :belongs_to, through: nil}, {type: Game, assoc_name: games, foreign_key: :draw_id, relationship_type: :has_many, through: nil}] of Nil
COLUMNS = [{name: id, type: Int64, nilable: false, autogenerated: true, value: nil, serialized: false}, {name: created_at, type: Time, nilable: false, autogenerated: true, value: nil, serialized: false}, {name: updated_at, type: Time, nilable: false, autogenerated: true, value: nil, serialized: false}, {name: start_at, type: Time, nilable: false, autogenerated: false, value: nil, serialized: false}, {name: bonspiel_id, type: Bonspiel::PrimaryKeyType, nilable: false, autogenerated: false, value: nil, serialized: false}] of Nil
PRIMARY_KEY_NAME = :id
PRIMARY_KEY_TYPE = Int64

Constructors

new(id : Int64, created_at : Time, updated_at : Time, start_at : Time, bonspiel_id : Int64)
new(__temp_190 : DB::ResultSet)

Class methods

column_names
columns
ensure_correct_column_mappings!
from_rs(__temp_190 : DB::ResultSet)
primary_key_name
schema_enforcer_validations
table_name

Instance methods

_preloaded_games=(_preloaded_games : Nil | Array(Game))
base_query_class

This makes it easy for plugins and extensions to use the base SaveOperation

bonspiel
bonspiel!
bonspiel_count
bonspiel_id
bonspiel_id=(_bonspiel_id : Bonspiel::PrimaryKeyType::Lucky::ColumnType)
bonspiel_query
created_at
created_at=(_created_at : Time::Lucky::ColumnType)
delete_operation_class
games
games!
Source
games_count
games_query
id
id=(_id : Int64::Lucky::ColumnType)
next

Returns cached value

Source
next__tuple_cached

Checks the passed arguments against the memoized args and runs the method body if it is the very first call or the arguments do not match

Source
next__uncached

Returns uncached value

Source
previous

Returns cached value

Source
previous__tuple_cached

Checks the passed arguments against the memoized args and runs the method body if it is the very first call or the arguments do not match

Source
previous__uncached

Returns uncached value

Source
save_operation_class
start_at
start_at=(_start_at : Time::Lucky::ColumnType)
to_s

Returns a nicely readable and concise string representation of this object, typically intended for users.

This method should usually not be overridden. It delegates to #to_s(IO) which can be overridden for custom implementations.

Also see #inspect.

Source
updated_at
updated_at=(_updated_at : Time::Lucky::ColumnType)

Nested types