class CurrencyPrice < ActiveRecord::Base belongs_to :variant validates_presence_of :price validates_numericality_of :price validates_presence_of :variant validates_presence_of :currency def self.currency_types [ ["USD"], ["GBP"], ["CHF"], ["EUR"] ] end end