This project is archived and is in readonly mode.
Changeset [afa0c7f728a8896c9ee9d932033e08a4c99dfd50] by Brad Greenlee
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
Committed by Repository
- 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
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>