Find or create record through factory_girl association

前端 未结 0 1310
借酒劲吻你
借酒劲吻你 2020-12-23 06:41

I have a User model that belongs to a Group. Group must have unique name attribute. User factory and group factory are defined as:

Factory.define :user do |f         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题