mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-16 05:04:03 +00:00
For the schedule versioning in the admin interface (having multiple possible shcedules) we need to change some models and associations. It has also been create a rake:move_events_attributes task to migrate the data. User Interface addapted to make use of the introduced associations and models
9 lines
264 B
Ruby
9 lines
264 B
Ruby
class CreateSchedules < ActiveRecord::Migration
|
|
def change
|
|
create_table :schedules do |t|
|
|
t.belongs_to :program, index: true
|
|
t.timestamps null: false
|
|
end
|
|
add_column :programs, :selected_schedule, :integer # Selected schedule ID
|
|
end
|
|
end
|