This project is archived and is in readonly mode.
Changeset [afa0c7f728a8896c9ee9d932033e08a4c99dfd50] by Brad Greenlee
Revision afa0c7f728a8896c9ee9d932033e08a4c99dfd50,
committed by Repository
· July 6th, 2008 @ 07:25 PM
Add support for :primary_key option to has_one as well as has_many so that a key other than the default primary key can be used for the association
Signed-off-by: Michael Koziarski
5 changed files
-
M
activerecord/lib/active_record/associations.rb -
M
activerecord/lib/active_record/associations/has_one_association.rb -
M
activerecord/test/cases/associations/has_one_associations_test.rb -
M
activerecord/test/cases/reflection_test.rb -
M
activerecord/test/models/company.rb