Sha256: bde33cdb65bcd3787e7e52f7e1c38398efd67c0952f7a950fc5ca4840fe8fb10
Contents?: true
Size: 555 Bytes
Versions: 5
Compression:
Stored size: 555 Bytes
Contents
module Mks module Rate class RateChangeRequest < ApplicationRecord SUBMITTED = 'SUBMITTED' APPROVED = 'APPROVED' DECLINED = 'DECLINED' validates :reference_number, :authorized_by, :effective_on, :authorized_on, :rates, :status, presence: true validates :reference_number, uniqueness: true validates_inclusion_of :status, in: %w[SUBMITTED APPROVED DECLINED] belongs_to :created_by, class_name: 'Mks::Auth::User' belongs_to :approved_by, class_name: 'Mks::Auth::User', optional: true end end end
Version data entries
5 entries across 5 versions & 1 rubygems