12 lines
289 B
Ruby
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
|