diff --git a/app/models/course_second_category.rb b/app/models/course_second_category.rb index 125a81cb6..630b74807 100644 --- a/app/models/course_second_category.rb +++ b/app/models/course_second_category.rb @@ -5,7 +5,7 @@ class CourseSecondCategory < ApplicationRecord belongs_to :course_module has_many :homework_commons - validates :name, length: { maximum: 30 } + validates :name, length: { maximum: 60 } def category_type_str category_type == "graduation" && name == "毕设选题" ? "graduation_topics" : (