Sha256: 826dbde5615a7c62453f303a781487034d4c0775f12490b1db1b3f378096d182

Contents?: true

Size: 232 Bytes

Versions: 1

Compression:

Stored size: 232 Bytes

Contents

module Comee
  module Core
    class ClientOrderItem < ApplicationRecord
      belongs_to :client_order
      belongs_to :product

      validates :quantity, :price, presence: true, numericality: {greater_than: 0}
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
comee_core-0.1.10 app/models/comee/core/client_order_item.rb