Files
codeocean/app/models/subscription.rb
Sebastian Serth 977fa4539e Check polymorphic type in validations
* Previously, some models had "duplicated" `belongs_to` associations, which were now removed (and replaced by the `include Creation`).
2023-08-24 19:32:06 +02:00

8 lines
169 B
Ruby

# frozen_string_literal: true
class Subscription < ApplicationRecord
include Creation
belongs_to :request_for_comment
belongs_to :study_group, optional: true
end