mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
10 lines
264 B
Ruby
10 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
|