primary_key_name
SourceSpecimenLabelLabelSpecimen
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: Specimen, assoc_name: specimen, foreign_key: :specimen_id,
relationship_type: :belongs_to,
through: nil, base_query_class: nil}, {type: SpecimenLabel, assoc_name: specimen_label, foreign_key: :specimenlabel_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: specimen_id, type: Specimen::PrimaryKeyType, nilable: false, autogenerated: false, value: nil, serialized: false, allow_blank: false}, {name: specimenlabel_id, type: SpecimenLabel::PrimaryKeyType, nilable: false, autogenerated: false, value: nil, serialized: false, allow_blank: false}] of Nil
標本ラベルと標本の多対多アソシエーションを作るための中間テーブル用モデル
PRIMARY_KEY_NAME = :id
PRIMARY_KEY_TYPE = Int32
Constructors
new(rs : DB::ResultSet)
標本ラベルと標本の多対多アソシエーションを作るための中間テーブル用モデル
Class methods
column_names
columns
ensure_correct_column_mappings!
from_rs(rs : DB::ResultSet)
標本ラベルと標本の多対多アソシエーションを作るための中間テーブル用モデル
schema_enforcer_validations
table_name
Instance methods
base_query_class
This makes it easy for plugins and extensions to use the base SaveOperation
delete_operation_class
id
save_operation_class
specimen
specimen!
specimen_count
specimen_id
specimen_label
specimen_label!
specimen_label_count
specimen_label_preloaded?
Returns true if the association has been preloaded
specimen_label_query
specimen_preloaded?
Returns true if the association has been preloaded
specimen_query
specimenlabel_id
Macros
default_columns
Source