Sha256: d6531d9724b80a7e5ea193d711318d144910e2fba63d81c2727a34fa989e71ab

Contents?: true

Size: 275 Bytes

Versions: 9

Compression:

Stored size: 275 Bytes

Contents

module Logistics
  module Core
    class Agent < ApplicationRecord
      validates :name, :email, :contact_telephone, presence: true
      validates :name, uniqueness: true
      has_many :carrier_agents
      has_many :carriers, :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/agent.rb
logistics_core-21.11.1 app/models/logistics/core/agent.rb
logistics_core-21.08.1 app/models/logistics/core/agent.rb
logistics_core-21.03.1 app/models/logistics/core/agent.rb
logistics_core-20.10.3 app/models/logistics/core/agent.rb
logistics_core-20.10.2 app/models/logistics/core/agent.rb
logistics_core-20.10.1 app/models/logistics/core/agent.rb
logistics_core-20.9.1 app/models/logistics/core/agent.rb
logistics_core-20.8.1 app/models/logistics/core/agent.rb