Add event model

This commit is contained in:
Maximilian Grundke
2018-08-14 16:59:58 +02:00
parent 81f1e08cc6
commit d6c64f5b91
3 changed files with 33 additions and 1 deletions

5
app/models/event.rb Normal file
View File

@ -0,0 +1,5 @@
class Event < ActiveRecord::Base
belongs_to :user, polymorphic: true
belongs_to :exercise
belongs_to :file
end