2018-05-07 16:47:29 -07:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
2016-07-08 13:28:02 +02:00
|
|
|
class CreateSchedules < ActiveRecord::Migration
|
|
|
|
|
def change
|
|
|
|
|
create_table :schedules do |t|
|
|
|
|
|
t.belongs_to :program, index: true
|
|
|
|
|
t.timestamps null: false
|
|
|
|
|
end
|
2016-07-28 12:50:32 +02:00
|
|
|
add_reference :programs, :selected_schedule, index: true
|
2016-07-08 13:28:02 +02:00
|
|
|
end
|
|
|
|
|
end
|