Sha256: 9ad3db698e4eb2463fff8e94b055949c1e0b9894d7166535b5fcf17abd48f2c5
Contents?: true
Size: 1017 Bytes
Versions: 2
Compression:
Stored size: 1017 Bytes
Contents
## # Shipment 是装运。 class Unidom::Shipment::Shipment < Unidom::Shipment::ApplicationRecord self.table_name = 'unidom_shipments' include Unidom::Common::Concerns::ModelExtension include ProgneTapera::EnumCode validates :estimated_amount, presence: true, numericality: { greater_than_or_equal_to: 0 } validates :actual_amount, presence: true, numericality: { greater_than_or_equal_to: 0 } belongs_to :sender_party, polymorphic: true belongs_to :sender_agent, polymorphic: true belongs_to :sender_location, polymorphic: true belongs_to :sender_contact, polymorphic: true belongs_to :receiver_party, polymorphic: true belongs_to :receiver_agent, polymorphic: true belongs_to :receiver_location, polymorphic: true belongs_to :receiver_contact, polymorphic: true has_many :items, class_name: 'Unidom::Shipment::ShipmentItem' code :conveyance, Unidom::Shipment::Conveyance end unless Unidom::Common::Neglection.namespace_neglected? 'Unidom::Shipment::Shipment'
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
unidom-shipment-0.7 | app/models/unidom/shipment/shipment.rb |
unidom-shipment-0.6.2 | app/models/unidom/shipment/shipment.rb |