Sha256: 42a942c56fcca0dcf2cb412bab7469336a64bfe2b7692431713a05fd52cf3a1a
Contents?: true
Size: 506 Bytes
Versions: 17
Compression:
Stored size: 506 Bytes
Contents
module Ecom module Core class TaskInspectionChecklist < ApplicationRecord NOT_INSPECTED = 'Not Inspected'.freeze IN_PROGRESS = 'In Progress'.freeze PASS = 'Pass'.freeze FAIL = 'Fail'.freeze INSPECTION_STATUSES = [NOT_INSPECTED, IN_PROGRESS, PASS, FAIL].freeze belongs_to :inspected_by, class_name: 'Ecom::Core::User' belongs_to :task validates :name, :status, presence: true validates :status, inclusion: INSPECTION_STATUSES end end end
Version data entries
17 entries across 17 versions & 1 rubygems