Sha256: 2a3faaa187929ed24632ac2015ec3ddfb5e37e14180a5ec53c90ddcc274ff0f0
Contents?: true
Size: 449 Bytes
Versions: 4
Compression:
Stored size: 449 Bytes
Contents
module Mks module Edm class Equipment < ApplicationRecord include Mks::Edm::Defaults self.table_name = 'mks_edm_equipments' belongs_to :equipment_category validates :code, :name, presence: true validates :code, uniqueness: true delegate(:id, to: :equipment_category, prefix: true) delegate(:name, to: :equipment_category, prefix: true) default :minimum_acquisition_time, 0 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.rb |
mks_edm-1.0.4 | app/models/mks/edm/equipment.rb |
mks_edm-1.0.2 | app/models/mks/edm/equipment.rb |
mks_edm-1.0.1 | app/models/mks/edm/equipment.rb |