From 605ab0923cff056b1c2ce6f9ed8cf4d972736995 Mon Sep 17 00:00:00 2001 From: cxt <853663049@qq.com> Date: Wed, 16 Oct 2019 16:52:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=9C=E4=B8=9A=E8=AF=B4=E6=98=8E=E5=8A=A0?= =?UTF-8?q?=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/models/homework_common.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/models/homework_common.rb b/app/models/homework_common.rb index fc2dd3ea4..def3b6b0d 100644 --- a/app/models/homework_common.rb +++ b/app/models/homework_common.rb @@ -37,6 +37,7 @@ class HomeworkCommon < ApplicationRecord validates :name, length: { maximum: 60 } validates :description, length: { maximum: 15000 } + validates :explanation, length: { maximum: 5000 } validates :reference_answer, length: { maximum: 15000 } # after_update :update_activity