Merge pull request #2141 from NARKOZ/notes-text-limit
remove length limit from notes
This commit is contained in:
commit
e9212b0aa2
|
@ -32,8 +32,7 @@ class Note < ActiveRecord::Base
|
||||||
delegate :name, to: :project, prefix: true
|
delegate :name, to: :project, prefix: true
|
||||||
delegate :name, :email, to: :author, prefix: true
|
delegate :name, :email, to: :author, prefix: true
|
||||||
|
|
||||||
validates :project, presence: true
|
validates :note, :project, presence: true
|
||||||
validates :note, presence: true, length: { within: 0..5000 }
|
|
||||||
validates :attachment, file_size: { maximum: 10.megabytes.to_i }
|
validates :attachment, file_size: { maximum: 10.megabytes.to_i }
|
||||||
|
|
||||||
mount_uploader :attachment, AttachmentUploader
|
mount_uploader :attachment, AttachmentUploader
|
||||||
|
|
Loading…
Reference in a new issue