You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
educoder/app/models/test_set.rb

8 lines
302 B

6 years ago
class TestSet < ApplicationRecord
5 years ago
# match_rule: 匹配规则: full 完全匹配, last 末尾匹配
#
validates :input, length: { maximum: 65000, too_long: "不能超过65000个字符" }
validates :output, length: { maximum: 65000, too_long: "不能超过65000个字符" }
6 years ago
end