Sha256: f4158933653db163890e908b194ff0cfaeb1e898cb31e801aad8c2da1fde79ff
Contents?: true
Size: 251 Bytes
Versions: 1
Compression:
Stored size: 251 Bytes
Contents
module Ecom module Core class AttendanceSheet < ApplicationRecord validates :date, presence: true, uniqueness: true def self.create_current AttendanceSheet.where(date: Date.today).first_or_create end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ecom_core-1.1.8 | app/models/ecom/core/attendance_sheet.rb |