module Sequel::Model::Associations
Associations
are used in order to specify relationships between model classes that reflect relations between tables in the database using foreign keys.
Constants
- ASSOCIATION_TYPES
-
Map of association type symbols to association reflection classes.
Public Class Methods
Source
# File lib/sequel/model/associations.rb 12 def self.apply(model) 13 model.instance_exec do 14 @association_reflections = {} 15 @autoreloading_associations = {} 16 @cache_associations = true 17 @default_eager_limit_strategy = true 18 @default_association_options = {} 19 @default_association_type_options = {} 20 @dataset_module_class = DatasetModule 21 end 22 end
Set an empty association reflection hash in the model