11 lines
259 B
Ruby
11 lines
259 B
Ruby
class UserExerciseIntervention < ApplicationRecord
|
|
|
|
belongs_to :user, polymorphic: true
|
|
belongs_to :intervention
|
|
belongs_to :exercise
|
|
|
|
validates :user, presence: true
|
|
validates :exercise, presence: true
|
|
validates :intervention, presence: true
|
|
|
|
end |