Files
codeocean/app/models/user_exercise_intervention.rb
2021-05-14 22:03:06 +02:00

12 lines
289 B
Ruby

# frozen_string_literal: true
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