diff --git a/app/models/p_product_ref.rb b/app/models/p_product_ref.rb index 9a7fccf..8e08f51 100644 --- a/app/models/p_product_ref.rb +++ b/app/models/p_product_ref.rb @@ -10,6 +10,8 @@ class PProductRef < ApplicationRecord belongs_to :p_product_color + has_many :line_stocks + has_many :p_articles has_many :p_article_serial_nums, through: :p_articles accepts_nested_attributes_for :p_article_serial_nums, allow_destroy: true