Added data validation for Rates. #1917
This commit is contained in:
1 parent
3f39bdaa6b
commit
48d394704a
2 files changed
+46
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user