struct

Takarik::Data::Associations::Association

Inherits Struct < Value < Object

Constructors

new(name : String, type : AssociationType, class_type : BaseModel.class | Nil, foreign_key : String, primary_key : String = "id", dependent : Symbol | Nil = nil, optional : Bool = false, through : String | Nil = nil, join_table : String | Nil = nil, polymorphic : Bool = false, as_name : String | Nil = nil, polymorphic_type : String | Nil = nil)
Source

Instance methods

as_name
Source
class_type
Source
dependent
Source
foreign_key
Source
join_table
Source
name
Source
optional
Source
polymorphic
Source
polymorphic_type
Source
primary_key
Source
through
Source
type
Source