summaryrefslogtreecommitdiffstats
path: root/app/models/issue.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-09-15 14:54:15 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-09-15 14:54:15 +0000
commit89b349818bfaee2669aab99df9e11de84c0f145c (patch)
treeca30567f7ce31b9ffdcf57053b6e0d097215d086 /app/models/issue.rb
parent4967f10356ea15f996376839a81e4f0e4947e53c (diff)
downloadredmine-89b349818bfaee2669aab99df9e11de84c0f145c.tar.gz
redmine-89b349818bfaee2669aab99df9e11de84c0f145c.zip
Added 'Estimated hours' attribute on issues.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@731 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/issue.rb')
-rw-r--r--app/models/issue.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/issue.rb b/app/models/issue.rb
index 827c6f70e..23cc71f7c 100644
--- a/app/models/issue.rb
+++ b/app/models/issue.rb
@@ -42,6 +42,7 @@ class Issue < ActiveRecord::Base
validates_presence_of :subject, :description, :priority, :tracker, :author, :status
validates_length_of :subject, :maximum => 255
validates_inclusion_of :done_ratio, :in => 0..100
+ validates_numericality_of :estimated_hours, :allow_nil => true
validates_associated :custom_values, :on => :update
# set default status for new issues