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,6 +4,6 @@ class CreateSchedules < ActiveRecord::Migration
|
|||
t.belongs_to :program, index: true
|
||||
t.timestamps null: false
|
||||
end
|
||||
add_column :programs, :selected_schedule, :integer # Selected schedule ID
|
||||
add_reference :programs, :selected_schedule, index: true
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue