Sha256: 0fa725e852b2cd1b798479d514ad5557b474c808bdb0ab23ffa49702faf8c89c

Contents?: true

Size: 344 Bytes

Versions: 9

Compression:

Stored size: 344 Bytes

Contents

module Logistics
  module Core
    class Carrier < ApplicationRecord
      validates :name, presence: true, uniqueness: true
      validates :email, presence: true
      validates :carrier_type_id, presence: true
      belongs_to :carrier_type
      has_many :carrier_agents
      has_many :agents, :through => :carrier_agents
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
logistics_core-21.11.2 app/models/logistics/core/carrier.rb
logistics_core-21.11.1 app/models/logistics/core/carrier.rb
logistics_core-21.08.1 app/models/logistics/core/carrier.rb
logistics_core-21.03.1 app/models/logistics/core/carrier.rb
logistics_core-20.10.3 app/models/logistics/core/carrier.rb
logistics_core-20.10.2 app/models/logistics/core/carrier.rb
logistics_core-20.10.1 app/models/logistics/core/carrier.rb
logistics_core-20.9.1 app/models/logistics/core/carrier.rb
logistics_core-20.8.1 app/models/logistics/core/carrier.rb