struct Clear::Model::Schema::Relation

Defined in:

clear/model/reflection/schema.cr

Constructors

Instance Method Summary

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) #

[View source]

Instance Method Detail

def cache : Bool #

def clone #

[View source]
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) #

[View source]
def foreign_key : String | Nil #

def foreign_key_type : String | Nil #

def name : String #

def nilable : Bool #

def polymorphic : Bool #

def polymorphic_type_column : String | Nil #

def presence : Bool #

def primary : Bool #

def relation : String | Nil #

def relation_type : Symbol #

def through : String | Nil #

def type : String #