Files
gitlink-forgeplus/app/models/challenge_question.rb
2020-03-09 00:40:16 +08:00

7 lines
176 B
Ruby

class ChallengeQuestion < ApplicationRecord
belongs_to :challenge_choose
validates :option_name, length: { maximum: 500, too_long: "不能超过500个字符" }
end