Sha256: d173b1e19a707378d58f6e41bf513752b508fccc1993503ce14ccc37ce6b8059

Contents?: true

Size: 173 Bytes

Versions: 15

Compression:

Stored size: 173 Bytes

Contents

module Ecom
  module Core
    class UnitOfMeasure < ApplicationRecord
      validates :code, :name, presence: true
      validates :code, uniqueness: true
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
ecom_core-1.3.13 app/models/ecom/core/unit_of_measure.rb
ecom_core-1.3.12 app/models/ecom/core/unit_of_measure.rb
ecom_core-1.3.11 app/models/ecom/core/unit_of_measure.rb
ecom_core-1.3.10 app/models/ecom/core/unit_of_measure.rb
ecom_core-1.3.9 app/models/ecom/core/unit_of_measure.rb
ecom_core-1.3.8 app/models/ecom/core/unit_of_measure.rb
ecom_core-1.3.7 app/models/ecom/core/unit_of_measure.rb
ecom_core-1.3.6 app/models/ecom/core/unit_of_measure.rb
ecom_core-1.3.5 app/models/ecom/core/unit_of_measure.rb
ecom_core-1.3.4 app/models/ecom/core/unit_of_measure.rb
ecom_core-1.3.3 app/models/ecom/core/unit_of_measure.rb
ecom_core-1.3.2 app/models/ecom/core/unit_of_measure.rb
ecom_core-1.3.1 app/models/ecom/core/unit_of_measure.rb
ecom_core-1.3.0 app/models/ecom/core/unit_of_measure.rb
ecom_core-1.2.36 app/models/ecom/core/unit_of_measure.rb