Sha256: ae3ca7bf0b4b2e642734a18708fa2dfd02efc7eee6fcd6682a85e6459d357c27

Contents?: true

Size: 414 Bytes

Versions: 1

Compression:

Stored size: 414 Bytes

Contents

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

class Unidom::Inventory::SerializedInventoryItem < Unidom::Inventory::ApplicationRecord

  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

1 entries across 1 versions & 1 rubygems

Version Path
unidom-inventory-0.7.4 app/models/unidom/inventory/serialized_inventory_item.rb