字符限制

dev_tj
cxt 5 years ago
parent e9cee80255
commit eeacb3941b

@ -1,7 +1,7 @@
class TestSet < ApplicationRecord class TestSet < ApplicationRecord
# match_rule: 匹配规则: full 完全匹配, last 末尾匹配 # match_rule: 匹配规则: full 完全匹配, last 末尾匹配
# #
validates :input, length: { maximum: 500 } validates :input, length: { maximum: 5000 }
validates :input, length: { maximum: 500 } validates :input, length: { maximum: 5000 }
end end

Loading…
Cancel
Save