summaryrefslogtreecommitdiffstats
path: root/redmine/app/models/version.rb
diff options
context:
space:
mode:
Diffstat (limited to 'redmine/app/models/version.rb')
-rw-r--r--redmine/app/models/version.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/redmine/app/models/version.rb b/redmine/app/models/version.rb
index 70bd6e1c3..0ae1edda8 100644
--- a/redmine/app/models/version.rb
+++ b/redmine/app/models/version.rb
@@ -23,6 +23,7 @@ class Version < ActiveRecord::Base
validates_presence_of :name
validates_uniqueness_of :name, :scope => [:project_id]
+ validates_format_of :effective_date, :with => /^\d{4}-\d{2}-\d{2}$/, :message => :activerecord_error_not_a_date
private
def check_integrity