mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
1d6eabb677
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.
24 lines
409 B
YAML
24 lines
409 B
YAML
michael:
|
|
id: 1
|
|
first_name: Michael
|
|
primary_contact_id: 2
|
|
number1_fan_id: 3
|
|
gender: M
|
|
followers_count: 1
|
|
friends_too_count: 1
|
|
david:
|
|
id: 2
|
|
first_name: David
|
|
primary_contact_id: 3
|
|
number1_fan_id: 1
|
|
gender: M
|
|
followers_count: 1
|
|
friends_too_count: 1
|
|
susan:
|
|
id: 3
|
|
first_name: Susan
|
|
primary_contact_id: 2
|
|
number1_fan_id: 1
|
|
gender: F
|
|
followers_count: 1
|
|
friends_too_count: 1
|