##// END OF EJS Templates
Merged r14267 (#19840)....
Jean-Philippe Lang -
r13897:842ee8a5e03a
parent child
Show More
@@ -31,6 +31,7 class Version < ActiveRecord::Base
31 31 validates_presence_of :name
32 32 validates_uniqueness_of :name, :scope => [:project_id]
33 33 validates_length_of :name, :maximum => 60
34 validates_length_of :description, :maximum => 255
34 35 validates :effective_date, :date => true
35 36 validates_inclusion_of :status, :in => VERSION_STATUSES
36 37 validates_inclusion_of :sharing, :in => VERSION_SHARINGS
General Comments 0
You need to be logged in to leave comments. Login now