Sha256: 29a24531cc354e996025bbde6c4da4740e1303fcf9a3dfae464692e885076350
Contents?: true
Size: 576 Bytes
Versions: 1
Compression:
Stored size: 576 Bytes
Contents
# Shipment Package 是装运包裹。 # #items 是包裹项。 # #receipts 是收据。 class Unidom::Shipment::ShipmentPackage < Unidom::Shipment::ApplicationRecord self.table_name = 'unidom_shipment_packages' include Unidom::Common::Concerns::ModelExtension validates :serial_number, allow_blank: true, length: { in: 4..columns_hash['serial_number'].limit } has_many :items, class_name: 'Unidom::Shipment::ShipmentPackageItem', foreign_key: :package_id has_many :receipts, class_name: 'Unidom::Shipment::ShipmentReceipt', foreign_key: :package_id end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
unidom-shipment-0.4 | app/models/unidom/shipment/shipment_package.rb |