Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Exercise < ActiveRecord::Base
- has_many :exercise_plans
- end
- class Patient < ActiveRecord::Base
- has_many :exercise_plans # or perhaps just `has_one`?
- end
- class ExercisePlan < ActiveRecord::Base
- belongs_to :patient
- has_and_belongs_to_many :exercises
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement