mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-11 07:15:55 +08:00
init project
This commit is contained in:
5
app/models/message_detail.rb
Normal file
5
app/models/message_detail.rb
Normal file
@@ -0,0 +1,5 @@
|
||||
class MessageDetail < ApplicationRecord
|
||||
belongs_to :message, :touch => true
|
||||
validates :content, length: { maximum: 10000, too_long: "内容不能超过10000个字符" }
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user