struct

Clear::Model::Schema::Relation

Inherits Struct < Value < Object

Constructors

new(name : String, type : String, nilable : Bool, relation_type : Symbol, foreign_key : String | Nil, foreign_key_type : String | Nil, polymorphic : Bool, polymorphic_type_column : String | Nil, through : String | Nil, relation : String | Nil, primary : Bool, presence : Bool, cache : Bool)
Source

Instance methods

cache
clone
Source
copy_with(name _name = @name, type _type = @type, nilable _nilable = @nilable, relation_type _relation_type = @relation_type, foreign_key _foreign_key = @foreign_key, foreign_key_type _foreign_key_type = @foreign_key_type, polymorphic _polymorphic = @polymorphic, polymorphic_type_column _polymorphic_type_column = @polymorphic_type_column, through _through = @through, relation _relation = @relation, primary _primary = @primary, presence _presence = @presence, cache _cache = @cache)
Source
foreign_key
foreign_key_type
name
nilable
polymorphic
polymorphic_type_column
presence
primary
relation
relation_type
through
type