price_line_resp_select relations
This commit is contained in:
parent
4b29b62e47
commit
8f120baa3f
@ -3,6 +3,12 @@ class PriceLine < ApplicationRecord
|
||||
belongs_to :p_product
|
||||
belongs_to :p_product_ref
|
||||
belongs_to :p_product_power
|
||||
has_many :price_line_resp_selects, :foreign_key => :price_line_demand
|
||||
has_many :price_line_resps, through: :price_line_resp_selects, :source => :price_line_resp
|
||||
|
||||
|
||||
#has_many :price_line_demands, through: :price_line_resp_selects
|
||||
|
||||
default_scope { order('position ASC') }
|
||||
|
||||
validates :p_product_ref_id, :presence => true, :if => :p_product_ref_needed?
|
||||
|
Reference in New Issue
Block a user