class PCustomerProductPrice < ApplicationRecord belongs_to :p_customer belongs_to :p_product_ref validates :p_customer_id, :presence => true end