module Ecom module Core class AvailableUnitOfMeasurement < ApplicationRecord validates :material_type_id, :material_type, :measurement_unit_id, :measurement_unit, presence: true belongs_to :material_type belongs_to :measurement_unit end end end