Commit e9212b0a authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge pull request #2141 from NARKOZ/notes-text-limit

remove length limit from notes
parents c177593e 24e17259
......@@ -32,8 +32,7 @@ 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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment