Remove erroneous validation from CommunitySolution
This commit is contained in:

committed by
Sebastian Serth

parent
988aefdbf9
commit
9b705fd538
@ -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
|
||||
|
Reference in New Issue
Block a user