Sha256: 063b290b163700bf22cf93c4a9905786b96b0ecb5b3d60b323066f48a74f2334
Contents?: true
Size: 391 Bytes
Versions: 3
Compression:
Stored size: 391 Bytes
Contents
module Ecom module Core class Booking < ApplicationRecord APPROVED = 'Approved'.freeze UNAPPROVED = 'Unapproved'.freeze STATUSES = [APPROVED, UNAPPROVED].freeze belongs_to :equipment_request belongs_to :booked_by, class_name: 'Ecom::Core::User' has_many :booked_items validates :status, presence: true, inclusion: STATUSES end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ecom_core-1.2.16 | app/models/ecom/core/booking.rb |
ecom_core-1.2.15 | app/models/ecom/core/booking.rb |
ecom_core-1.2.14 | app/models/ecom/core/booking.rb |