This better describes what the model represents, which is the relationship between the two users.
6 lines
150 B
Ruby
6 lines
150 B
Ruby
FactoryBot.define do
|
|
factory :friendship do
|
|
association :befriender, :factory => :user
|
|
association :befriendee, :factory => :user
|
|
end
|
|
end
|