class PProductSpec < ApplicationRecord belongs_to :p_product def name self.code.to_s+" "+self.description.to_s end end