mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
16 lines
353 B
Ruby
16 lines
353 B
Ruby
# frozen_string_literal: true
|
|
|
|
class Schedule < ApplicationRecord
|
|
belongs_to :program
|
|
belongs_to :track
|
|
has_many :event_schedules, dependent: :destroy
|
|
has_many :events, through: :event_schedules
|
|
|
|
has_paper_trail ignore: [:updated_at], meta: { conference_id: :conference_id }
|
|
|
|
private
|
|
|
|
def conference_id
|
|
program.conference_id
|
|
end
|
|
end
|