| 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_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