def primary : Bool
#
struct Clear::Model::Schema::Relation
- Clear::Model::Schema::Relation
- Struct
- Value
- Object
Defined in:
clear/model/reflection/schema.crConstructors
Instance Method Summary
- #cache : Bool
- #clone
- #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)
- #foreign_key : String | Nil
- #foreign_key_type : String | Nil
- #name : String
- #nilable : Bool
- #polymorphic : Bool
- #polymorphic_type_column : String | Nil
- #presence : Bool
- #primary : Bool
- #relation : String | Nil
- #relation_type : Symbol
- #through : String | Nil
- #type : String
Constructor Detail
def self.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)
#
Instance Method Detail
def 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)
#