]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/changeset_comment.rb
Add explicit primary key declaration for changeset subscriptions
[rails.git] / app / models / changeset_comment.rb
index ec563d6c773ea50bd36adb1798adece578542085..2fedadff04129e72e0d5eaee741309246c485d28 100644 (file)
@@ -7,6 +7,7 @@ class ChangesetComment < ActiveRecord::Base
   validates :changeset, :presence => true, :associated => true
   validates :author, :presence => true, :associated => true
   validates :visible, :inclusion => [true, false]
+  validates :body, :format => /\A[^\x00-\x08\x0b-\x0c\x0e-\x1f\x7f\ufffe\uffff]*\z/
 
   # Return the comment text
   def body