]> source.dussan.org Git - redmine.git/commitdiff
Merged r14267 (#19840).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 30 May 2015 08:10:28 +0000 (08:10 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 30 May 2015 08:10:28 +0000 (08:10 +0000)
git-svn-id: http://svn.redmine.org/redmine/branches/3.0-stable@14279 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/version.rb

index b486777935188a0b1c50433f679bfdbe8f9c7143..e4cbcc16cd7ce477052000f342312a82a12304fc 100644 (file)
@@ -31,6 +31,7 @@ class Version < ActiveRecord::Base
   validates_presence_of :name
   validates_uniqueness_of :name, :scope => [:project_id]
   validates_length_of :name, :maximum => 60
+  validates_length_of :description, :maximum => 255
   validates :effective_date, :date => true
   validates_inclusion_of :status, :in => VERSION_STATUSES
   validates_inclusion_of :sharing, :in => VERSION_SHARINGS