mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Track Schedule and EventSchedule
This commit is contained in:
parent
b982d18bbb
commit
7d70f7685e
5 changed files with 44 additions and 6 deletions
|
|
@ -2,4 +2,12 @@ class Schedule < ActiveRecord::Base
|
|||
belongs_to :program
|
||||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue