Module | Sequel::Model::Associations |
In: |
lib/sequel/model/associations.rb
|
Associations are used in order to specify relationships between model classes that reflect relations between tables in the database using foreign keys.
ASSOCIATION_TYPES | = | {} | Map of association type symbols to association reflection classes. |
Set an empty association reflection hash in the model
# File lib/sequel/model/associations.rb, line 12 12: def self.apply(model) 13: model.instance_eval do 14: @association_reflections = {} 15: @autoreloading_associations = {} 16: @cache_associations = true 17: @default_association_options = {} 18: end 19: end