Factory_bot, how to reuse parent factory in relationship where child belongs to both parent and parents parent?

后端 未结 0 601
长发绾君心
长发绾君心 2020-12-28 12:37

Shift belongs_to both Employee and Site while Employee belongs_to Site

Given that, here is a factory:



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