added intervention controller and stuff
This commit is contained in:
@ -4,6 +4,7 @@ class CreateInterventions < ActiveRecord::Migration
|
||||
t.belongs_to :user, polymorphic: true
|
||||
t.belongs_to :exercise
|
||||
t.belongs_to :intervention
|
||||
t.integer :accumulated_worktime_s
|
||||
t.timestamps
|
||||
end
|
||||
|
||||
@ -12,5 +13,10 @@ class CreateInterventions < ActiveRecord::Migration
|
||||
t.text :markup
|
||||
t.timestamps
|
||||
end
|
||||
|
||||
Intervention.createDefaultInterventions
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
Reference in New Issue
Block a user