Class: Session
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Session
- Defined in:
- api/app/models/session.rb
Overview
Represents a specific time range (start_time to end_time) that a number of seats are available for an event.
Participants are scheduled for sessions.
Schema
- [Integer]
reservation_id, null: false - [DateTime]
start_time, null: false - [DateTime]
end_time, null: false - [Integer]
seats, default: 0, null: false - [DateTime]
created_at - [DateTime]
updated_at - [Boolean]
active, default: true, null: false
Instance Method Summary collapse
-
#bookings ⇒ Object
after_update :unschedule_subjects, if: proc { !active && saved_change_to_active? }.
- #destroy_or_deactivate ⇒ Object
- #report_name ⇒ Object
Instance Method Details
#bookings ⇒ Object
after_update :unschedule_subjects, if: proc { !active && saved_change_to_active? }