作业说明加限制

competitions
cxt 5 years ago
parent eb51424fba
commit 605ab0923c

@ -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

Loading…
Cancel
Save