From 2c974a8aa503ea002a35513bb2cdc32a1249577d Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Fri, 31 Jan 2020 16:10:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E9=9B=86=E4=B8=8D=E8=83=BD?= =?UTF-8?q?=E8=B6=85=E8=BF=87=E5=9B=BA=E5=AE=9A=E7=9A=84=E4=B8=AA=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/models/challenge_answer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/challenge_answer.rb b/app/models/challenge_answer.rb index 32e74542d..8196a7b7e 100644 --- a/app/models/challenge_answer.rb +++ b/app/models/challenge_answer.rb @@ -3,7 +3,7 @@ class ChallengeAnswer < ApplicationRecord belongs_to :challenge has_many :game_answers, :dependent => :destroy - validates :contents, length: { maximum: 5000 , too_long: "不能超过25000个字符"} + validates :contents, length: { maximum: 25000 , too_long: "不能超过25000个字符"} def view_answer_time(user_id) game_answers.where(user_id: user_id).last&.view_time