Sha256: 25134a9ee1bf8bfbea850ae8a96a51f26b40d6869ef9f1b7e2e878525b09b4b8

Contents?: true

Size: 393 Bytes

Versions: 5

Compression:

Stored size: 393 Bytes

Contents

# Serialized Inventory Item 是序列化库存项。

class Unidom::Inventory::SerializedInventoryItem < ActiveRecord::Base

  self.table_name = 'unidom_serialized_inventory_items'

  include Unidom::Common::Concerns::ModelExtension
  include Unidom::Inventory::Concerns::AsInventoryItem

  validates :serial_number, presence: true, length: { in: 2..columns_hash['serial_number'].limit }

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
unidom-inventory-0.7 app/models/unidom/inventory/serialized_inventory_item.rb
unidom-inventory-0.6 app/models/unidom/inventory/serialized_inventory_item.rb
unidom-inventory-0.5 app/models/unidom/inventory/serialized_inventory_item.rb
unidom-inventory-0.4 app/models/unidom/inventory/serialized_inventory_item.rb
unidom-inventory-0.3 app/models/unidom/inventory/serialized_inventory_item.rb