X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/2cd7af7e0b2ad97687849576ed4e3f52c37a6d55..9c0582f88fd2ef4e20c6eb922bcd4cb1a04258d5:/app/models/note_comment.rb diff --git a/app/models/note_comment.rb b/app/models/note_comment.rb index 999d04507..635a5b0de 100644 --- a/app/models/note_comment.rb +++ b/app/models/note_comment.rb @@ -29,7 +29,7 @@ class NoteComment < ApplicationRecord validates :id, :uniqueness => true, :presence => { :on => :update }, :numericality => { :on => :update, :only_integer => true } - validates :note, :presence => true, :associated => true + validates :note, :associated => true validates :visible, :inclusion => [true, false] validates :author, :associated => true validates :event, :inclusion => %w[opened closed reopened commented hidden]