class

CollectPointsTour

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

採集地点と採集行の多対多アソシエーションを作るための中間テーブル用モデル

Constants

ASSOCIATIONS = [{type: CollectPoint, assoc_name: collect_point, foreign_key: :collectpoint_id, relationship_type: :belongs_to, through: nil, base_query_class: nil}, {type: Tour, assoc_name: tour, foreign_key: :tour_id, relationship_type: :belongs_to, through: nil, base_query_class: nil}] of Nil

採集地点と採集行の多対多アソシエーションを作るための中間テーブル用モデル

COLUMNS = [{name: id, type: Int32, nilable: false, autogenerated: true, value: nil, serialized: false, allow_blank: false}, {name: collectpoint_id, type: CollectPoint::PrimaryKeyType, nilable: false, autogenerated: false, value: nil, serialized: false, allow_blank: false}, {name: tour_id, type: Tour::PrimaryKeyType, nilable: false, autogenerated: false, value: nil, serialized: false, allow_blank: false}] of Nil

採集地点と採集行の多対多アソシエーションを作るための中間テーブル用モデル

PRIMARY_KEY_NAME = :id
PRIMARY_KEY_TYPE = Int32

Constructors

new(id : Int32, collectpoint_id : UUID, tour_id : UUID)
new(rs : DB::ResultSet)

採集地点と採集行の多対多アソシエーションを作るための中間テーブル用モデル

Class methods

column_names
columns
ensure_correct_column_mappings!
from_rs(rs : DB::ResultSet)

採集地点と採集行の多対多アソシエーションを作るための中間テーブル用モデル

primary_key_name
Source
schema_enforcer_validations
table_name

Instance methods

base_query_class

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

collect_point
collect_point!
collect_point_count
collect_point_preloaded?

Returns true if the association has been preloaded

collect_point_query
collectpoint_id
delete_operation_class
id
save_operation_class
tour
tour!
tour_count
tour_id
tour_preloaded?

Returns true if the association has been preloaded

tour_query

Macros

default_columns
Source

Nested types