mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Introduce an association for the selected_schedule
Association in Program fot the selected_schedule
This commit is contained in:
parent
3f114629f9
commit
beb17165a2
10 changed files with 24 additions and 21 deletions
|
|
@ -4,7 +4,7 @@ namespace :data do
|
|||
task move_events_attributes: :environment do
|
||||
Program.all.each do |program|
|
||||
schedule = Schedule.create(program: program)
|
||||
program.selected_schedule = schedule.id
|
||||
program.selected_schedule = schedule
|
||||
program.save
|
||||
program.events.each do |event|
|
||||
unless event.start_time.nil? && event.room_id.nil?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue