aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/friendship.rb
Commit message (Collapse)AuthorAgeFilesLines
* Refactor Person/Friendship relationships to be more intuitiveMack Earnhardt2013-03-171-1/+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/+4
associations with the same foreign key. This closes #5200.