Class Sequel::Model::Associations::OneThroughOneAssociationReflection
In: lib/sequel/model/associations.rb
Parent: ManyToManyAssociationReflection

Methods

Included Modules

SingularAssociationReflection

Public Instance methods

one_through_one associations should not singularize the association name when creating the foreign key.

[Source]

      # File lib/sequel/model/associations.rb, line 1439
1439:         def default_right_key
1440: 
1441:           "#{self[:name]}_id"
1442:         end

one_through_one associations have no reciprocals

[Source]

      # File lib/sequel/model/associations.rb, line 1444
1444:         def reciprocal
1445:           nil
1446:         end

[Validate]