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?
- #foreign_key_type : String?
- #name : String
- #nilable : Bool
- #polymorphic : Bool
- #polymorphic_type_column : String?
- #presence : Bool
- #primary : Bool
- #relation : String?
- #relation_type : Symbol
- #through : String?
- #type : String
Constructor Detail
def self.new(name : String, type : String, nilable : Bool, relation_type : Symbol, foreign_key : String?, foreign_key_type : String?, polymorphic : Bool, polymorphic_type_column : String?, through : String?, relation : String?, 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)
#