Sha256: ce84455324b709f59239a24c5365c2ae3266f9b3abd29d7509c585d06c0fcf6e
Contents?: true
Size: 251 Bytes
Versions: 5
Compression:
Stored size: 251 Bytes
Contents
class Market::Property < ActiveRecord::Base has_many :product_properties, dependent: :destroy, inverse_of: :property, class_name: '::Market::ProductProperty' has_many :products, through: :product_properties validates :name, presence: true end
Version data entries
5 entries across 5 versions & 1 rubygems