Class: TimeOffBlockedDay
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- TimeOffBlockedDay
- 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
- #blocked_date ⇒ Object readonly
Method Summary
Methods inherited from ApplicationRecord
ransackable_associations, ransackable_attributes, ransackable_scopes, ransortable_attributes, #to_relation
Methods included from Models::EventPublishable
Instance Attribute Details
#blocked_date ⇒ Object (readonly)
21 |
# File 'app/models/time_off_blocked_day.rb', line 21 validates :blocked_date, presence: true |