Add position attribute to relation between exercise collection and exercises

This commit is contained in:
Maximilian Grundke
2018-07-03 15:23:00 +02:00
parent 0395d5b038
commit b68b3bc2b0
5 changed files with 31 additions and 11 deletions

View File

@ -14,7 +14,8 @@ class Exercise < ActiveRecord::Base
has_and_belongs_to_many :proxy_exercises
has_many :user_proxy_exercise_exercises
has_and_belongs_to_many :exercise_collections
has_many :exercise_collection_items
has_many :exercise_collections, through: :exercise_collection_items
has_many :user_exercise_interventions
has_many :interventions, through: :user_exercise_interventions
has_many :exercise_tags