Sha256: 17d3a15879f7cd57b5aafb56f6bdb1d546a17e32e2782a649006426a54379f16

Contents?: true

Size: 365 Bytes

Versions: 1

Compression:

Stored size: 365 Bytes

Contents

# Grouped Inventory Item 是分组库存项。
class Unidom::Inventory::GroupedInventoryItem < ActiveRecord::Base

  self.table_name = 'unidom_grouped_inventory_items'

  include Unidom::Common::Concerns::ModelExtension

  belongs_to :stored, polymorphic: true
  belongs_to :store,  polymorphic: true

  validates :quantity, presence: true, numericality: true

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
unidom-inventory-0.1 app/models/unidom/inventory/grouped_inventory_item.rb