Sha256: 9f6c40cdbcedef797ba9f5d06867c9e367bf212d4356095f53a6ece5d47b887f
Contents?: true
Size: 295 Bytes
Versions: 133
Compression:
Stored size: 295 Bytes
Contents
module Spree class PropertyPrototype < Spree::Base belongs_to :prototype, class_name: 'Spree::Prototype' belongs_to :property, class_name: 'Spree::Property' validates :prototype, :property, presence: true validates :prototype_id, uniqueness: { scope: :property_id } end end
Version data entries
133 entries across 133 versions & 1 rubygems