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