如果这是唯一的一条线,我就在我的种子中创造了一个用户。 rb file:
jim = 工厂:用户,名称=> “Jim Jones”,:email => [电子邮箱: Protect]
How come I end up with two users, one named Jim, and one with a random name as if it was just generated by the factory?
感谢!
John
UPDATE:现在我认识到,原因是正在创建另一个与用户有关系的工厂,我没有具体说明哪一个用户,因此似乎工厂与用户协会正在产生用户。