提交 24e17259 编写于 作者: N Nihad Abbasov

remove length limit from notes

上级 c177593e
......@@ -32,11 +32,10 @@ class Note < ActiveRecord::Base
delegate :name, to: :project, prefix: true
delegate :name, :email, to: :author, prefix: true
validates :project, presence: true
validates :note, presence: true, length: { within: 0..5000 }
validates :note, :project, presence: true
validates :attachment, file_size: { maximum: 10.megabytes.to_i }
mount_uploader :attachment, AttachmentUploader
mount_uploader :attachment, AttachmentUploader
# Scopes
scope :common, ->{ where(noteable_id: nil) }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册