Merge branches 'dev_aliyun' and 'develop' of https://bdgit.educoder.net/Hjqreturn/educoder into develop
commit
9b487c7ce7
@ -1,6 +1,6 @@
|
|||||||
class ChallengeQuestion < ApplicationRecord
|
class ChallengeQuestion < ApplicationRecord
|
||||||
belongs_to :challenge_choose
|
belongs_to :challenge_choose
|
||||||
|
|
||||||
validates :option_name, length: { maximum: 500 }
|
validates :option_name, length: { maximum: 500, too_long: "选项不能超过500个字符" }
|
||||||
|
|
||||||
end
|
end
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
class MessageDetail < ApplicationRecord
|
class MessageDetail < ApplicationRecord
|
||||||
belongs_to :message, :touch => true
|
belongs_to :message, :touch => true
|
||||||
validates :content, length: { maximum: 5000 }
|
validates :content, length: { maximum: 5000, too_long: "内容不能超过5000个字符" }
|
||||||
|
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in new issue