parent
12746914e1
commit
e581771ec1
@ -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, too_long: "内容不能超过5000个字符" }
|
validates :content, length: { maximum: 10000, too_long: "内容不能超过10000个字符" }
|
||||||
|
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in new issue