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

app/models/version.rb

index d13387870601ddecca33a62d31df05c9d890e287..ed5b6281213930b244e8ba2b5920bda9347b0916 100644 (file)
@@ -30,6 +30,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