diff --git a/app/models/note.rb b/app/models/note.rb
index e3e522a8d0ffc89a5930ad6831826d90974e9a18..5f669c02e8ba155c5fcd9176edec0350089ed582 100644
--- a/app/models/note.rb
+++ b/app/models/note.rb
@@ -29,6 +29,7 @@ class Note < ActiveRecord::Base
   # Attachments are deprecated and are handled by Markdown uploader
   validates :attachment, file_size: { maximum: :max_attachment_size }
 
+  validates :noteable_type, presence: true
   validates :noteable_id, presence: true, unless: :for_commit?
   validates :commit_id, presence: true, if: :for_commit?
   validates :author, presence: true