Sha256: ce3d8857025020a12580fc4459ee3d206eda14942007aad74a4fb324b910b6c1

Contents?: true

Size: 264 Bytes

Versions: 4

Compression:

Stored size: 264 Bytes

Contents

module Mks
  module Edm
    class EquipmentLocation < ApplicationRecord
      belongs_to :location_type

      validates :code, :name, presence: true
      validates :code, uniqueness: true

      delegate(:name, to: :location_type, prefix: true)
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mks_edm-1.0.5 app/models/mks/edm/equipment_location.rb
mks_edm-1.0.4 app/models/mks/edm/equipment_location.rb
mks_edm-1.0.2 app/models/mks/edm/equipment_location.rb
mks_edm-1.0.1 app/models/mks/edm/equipment_location.rb