Class: Session

Inherits:
ApplicationRecord
  • Object
show all
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

Instance Method Details

#bookingsObject

after_update :unschedule_subjects, if: proc { !active && saved_change_to_active? }

#destroy_or_deactivateObject

#report_nameObject