added intervention controller and stuff

This commit is contained in:
Thomas Hille
2017-02-28 15:24:53 +01:00
parent 2456f46b2b
commit 3d7f5bdf1a
10 changed files with 141 additions and 8 deletions

View File

@ -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