X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/64816e50b57ced52f5fb0082f97b2844e002cf11..c2f23fea6a7821a4ad4c97fd65744b138ec86267:/app/models/redaction.rb diff --git a/app/models/redaction.rb b/app/models/redaction.rb index b835864db..d9a5c6cd7 100644 --- a/app/models/redaction.rb +++ b/app/models/redaction.rb @@ -7,7 +7,7 @@ # description :text # created_at :datetime # updated_at :datetime -# user_id :integer not null +# user_id :bigint(8) not null # description_format :enum default("markdown"), not null # # Foreign Keys @@ -31,6 +31,7 @@ class Redaction < ActiveRecord::Base has_many :old_ways has_many :old_relations + validates :title, :description, :invalid_chars => true validates :description, :presence => true validates :description_format, :inclusion => { :in => %w[text html markdown] }