
* Previously, some models had "duplicated" `belongs_to` associations, which were now removed (and replaced by the `include Creation`).
10 lines
234 B
Ruby
10 lines
234 B
Ruby
# frozen_string_literal: true
|
|
|
|
class UserProxyExerciseExercise < ApplicationRecord
|
|
include Creation
|
|
belongs_to :exercise
|
|
belongs_to :proxy_exercise
|
|
|
|
validates :user_id, uniqueness: {scope: %i[proxy_exercise_id user_type]}
|
|
end
|