Duplicate Records created from Association
问题 I am using Mongoid, Rails and Fabrications and at a total loss with how this is happening. Any thoughts very appreciated, but I know this pretty complicated. I just want to fabricate a user and have only four joined groups, but I keep getting eight loaded. Here is the relevant section of my code @user1 = Fabricate.build(:registered) @user1.joined_groups << [common_group, cali_group, ca46, Fabricate(:polco_group, {:name => "Gang of 13", :type => :custom})] When I run @user1.joined_groups.size