]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/redaction.rb
Add links to the ToU and include them in signup
[rails.git] / app / models / redaction.rb
index d9a5c6cd793091fd893facd7b8130c1af2bc2473..e6d7487066fed12e879442d8e2cae74b9b3c1f81 100644 (file)
@@ -7,7 +7,7 @@
 #  description        :text
 #  created_at         :datetime
 #  updated_at         :datetime
-#  user_id            :bigint(8)        not null
+#  user_id            :integer          not null
 #  description_format :enum             default("markdown"), not null
 #
 # Foreign Keys
@@ -31,8 +31,8 @@ class Redaction < ActiveRecord::Base
   has_many :old_ways
   has_many :old_relations
 
-  validates :title, :description, :invalid_chars => true
-  validates :description, :presence => true
+  validates :title, :presence => true, :characters => true
+  validates :description, :presence => true, :characters => true
   validates :description_format, :inclusion => { :in => %w[text html markdown] }
 
   # this method overrides the AR default to provide the rich