aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/fixtures/people.yml
Commit message (Collapse)AuthorAgeFilesLines
* Refactor Person/Friendship relationships to be more intuitiveMack Earnhardt2013-03-171-0/+3
| | | | | | | | PR #5210 added a Friendship model to illustrate a bug, but in doing so created a confusing structure because both belongs_to declarations in Friendship referred to the same side of the join. The new structure maintains the integrity of the bug test while changing the follower relationship to be more useful for other testing.
* reset_counters() was crashing when there were multiple belongs_to ↵Dave Desrochers2012-08-211-0/+3
| | | | | | associations with the same foreign key. This closes #5200.
* Fixed limited eager loading associations with numbers in the name [#2668 ↵Benjamin Floering2009-05-181-1/+4
| | | | | | state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Preload uses exclusive scope [#643 state:resolved]Frederick Cheung2008-12-261-1/+10
| | | | | | | | | With self referential associations, the scope for the the top level should not affect fetching of associations, for example when doing Person.male.find :all, :include => :friends we should load all of the friends for each male, not just the male friends.
* Fix that batched :include would pull in duplicate records in some cases. ↵Jeremy Kemper2008-02-281-1/+4
| | | | | | Closes #11215 [Catfish] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8942 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added automated optimistic locking if the field lock_version is present #384 ↵David Heinemeier Hansson2004-12-311-0/+3
[Michael Koziarski] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@295 5ecf4fe2-1ee6-0310-87b1-e25e094e27de