Sha256: 4d012ccc13499a9d6efb053efd1c4edb5daf52bf5fd2fb8ce74999628243e436

Contents?: true

Size: 592 Bytes

Versions: 11

Compression:

Stored size: 592 Bytes

Contents

##
# Shipment Package Item 是装运包裹内容。

class Unidom::Shipment::ShipmentPackageItem < Unidom::Shipment::ApplicationRecord

  self.table_name = 'unidom_shipment_package_items'

  include Unidom::Common::Concerns::ModelExtension

  validates :quantity, presence: true, numericality: { greater_than: 0, less_than: 1_000_000_000 }

  belongs_to :package,       class_name: 'Unidom::Shipment::ShipmentPackage'
  belongs_to :shipment_item, class_name: 'Unidom::Shipment::ShipmentItem'

end unless Unidom::Common::Neglection.namespace_neglected? 'Unidom::Shipment::ShipmentPackageItem'

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
unidom-shipment-1.0 app/models/unidom/shipment/shipment_package_item.rb
unidom-shipment-0.7.8 app/models/unidom/shipment/shipment_package_item.rb
unidom-shipment-0.7.7 app/models/unidom/shipment/shipment_package_item.rb
unidom-shipment-0.7.6 app/models/unidom/shipment/shipment_package_item.rb
unidom-shipment-0.7.5 app/models/unidom/shipment/shipment_package_item.rb
unidom-shipment-0.7.4 app/models/unidom/shipment/shipment_package_item.rb
unidom-shipment-0.7.3 app/models/unidom/shipment/shipment_package_item.rb
unidom-shipment-0.7.2 app/models/unidom/shipment/shipment_package_item.rb
unidom-shipment-0.7.1 app/models/unidom/shipment/shipment_package_item.rb
unidom-shipment-0.7 app/models/unidom/shipment/shipment_package_item.rb
unidom-shipment-0.6.2 app/models/unidom/shipment/shipment_package_item.rb