Sha256: 2fccd83afb6cbaa888e59c7f4e201371885f0daa9c8c213949e55aed7e4f61a6

Contents?: true

Size: 314 Bytes

Versions: 8

Compression:

Stored size: 314 Bytes

Contents

module Comee
  module Core
    class ShipmentInstruction < ApplicationRecord
      enum :status, {draft: 0, confirmed: 1}

      belongs_to :client
      has_many :shipment_instruction_items

      validates :reference_no, presence: true, uniqueness: true
      validates :status, presence: true
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
comee_core-0.1.83 app/models/comee/core/shipment_instruction.rb
comee_core-0.1.82 app/models/comee/core/shipment_instruction.rb
comee_core-0.1.81 app/models/comee/core/shipment_instruction.rb
comee_core-0.1.80 app/models/comee/core/shipment_instruction.rb
comee_core-0.1.79 app/models/comee/core/shipment_instruction.rb
comee_core-0.1.78 app/models/comee/core/shipment_instruction.rb
comee_core-0.1.77 app/models/comee/core/shipment_instruction.rb
comee_core-0.1.76 app/models/comee/core/shipment_instruction.rb