Class: TimeOffBlockedDay

Inherits:
ApplicationRecord show all
Defined in:
app/models/time_off_blocked_day.rb

Overview

== Schema Information

Table name: time_off_blocked_days
Database name: primary

id :bigint not null, primary key
blocked_date :date not null
departments :string default([]), is an Array
reason :string
created_at :datetime not null
updated_at :datetime not null

Indexes

index_time_off_blocked_days_on_blocked_date (blocked_date)
index_time_off_blocked_days_on_reason (reason)

Instance Attribute Summary collapse

Method Summary

Methods inherited from ApplicationRecord

ransackable_associations, ransackable_attributes, ransackable_scopes, ransortable_attributes, #to_relation

Methods included from Models::EventPublishable

#publish_event

Instance Attribute Details

#blocked_dateObject (readonly)



21
# File 'app/models/time_off_blocked_day.rb', line 21

validates :blocked_date, presence: true