Rails FactoryBot with multiple object of has_many associations

前端 未结 0 1876
情深已故
情深已故 2021-01-17 08:09

I\'ve got 3 models:

class Company < ApplicationRecord
  has_many :shipments
end

class Product < ApplicationRecord
  belongs_to :shipment
end

class Shi         


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