Added data validation for Rates. #1917

This commit is contained in:
Eric Davis committed 2009-01-16 14:14:21 -08:00
1 parent 3f39bdaa6b
commit 48d394704a
2 files changed
+46

No files matched your search

+3
View File
@@ -2,4 +2,7 @@ class Rate < ActiveRecord::Base
belongs_to :project
belongs_to :user
has_many :time_entries
validates_presence_of :user_id
validates_presence_of :date_in_effect
end