X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/3cf3b3ce4e9551d532fee3b26c1f0a708cf53388..619ac4c5b2fbdbc610007376ee11e3921e475520:/app/models/note_comment.rb diff --git a/app/models/note_comment.rb b/app/models/note_comment.rb index eed917eee..999d04507 100644 --- a/app/models/note_comment.rb +++ b/app/models/note_comment.rb @@ -25,7 +25,7 @@ class NoteComment < ApplicationRecord belongs_to :note, :touch => true - belongs_to :author, :class_name => "User" + belongs_to :author, :class_name => "User", :optional => true validates :id, :uniqueness => true, :presence => { :on => :update }, :numericality => { :on => :update, :only_integer => true }