From 9b705fd5386b609c426855ae40724a937e023002 Mon Sep 17 00:00:00 2001 From: Sebastian Serth Date: Thu, 16 Nov 2023 13:40:26 +0100 Subject: [PATCH] Remove erroneous validation from CommunitySolution --- app/models/community_solution.rb | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/models/community_solution.rb b/app/models/community_solution.rb index 6b3c3d15..fea5a72b 100644 --- a/app/models/community_solution.rb +++ b/app/models/community_solution.rb @@ -8,8 +8,6 @@ class CommunitySolution < ApplicationRecord has_and_belongs_to_many :users, polymorphic: true, through: :community_solution_contributions has_many :files, class_name: 'CodeOcean::File', through: :community_solution_contributions - validates :user_type, inclusion: {in: ALLOWED_USER_TYPES} - def to_s "Gemeinschaftslösung für #{exercise}" end