mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +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
11 lines
304 B
Ruby
11 lines
304 B
Ruby
class CreateEventSchedules < ActiveRecord::Migration
|
|
def change
|
|
create_table :event_schedules do |t|
|
|
t.belongs_to :event, index: true
|
|
t.belongs_to :schedule, index: true
|
|
t.belongs_to :room, index: true
|
|
t.datetime :start_time
|
|
t.timestamps null: false
|
|
end
|
|
end
|
|
end
|