Sha256: 654f0eb8138cf0fca0ba6712ed5e7afe9bf5d1b36f288813583dc8e1086c0197

Contents?: true

Size: 243 Bytes

Versions: 9

Compression:

Stored size: 243 Bytes

Contents

module Logistics
  module Core
    class Transporter < ApplicationRecord
      validates :name, presence: true, allow_blank: false
      validates :name, uniqueness: true

      belongs_to :country
      has_many :route_rates
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

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