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?, foreign_key_type : String?, polymorphic : Bool, polymorphic_type_column : String?, through : String?, relation : String?, 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? #

def foreign_key_type : String? #

def name : String #

def nilable : Bool #

def polymorphic : Bool #

def polymorphic_type_column : String? #

def presence : Bool #

def primary : Bool #

def relation : String? #

def relation_type : Symbol #

def through : String? #

def type : String #