[#4177] Added Deliverable and it's associations.

This commit is contained in:
Eric Davis
2010-06-17 13:41:49 -07:00
parent 512db4bcf4
commit 0695eb3e8e
5 changed files with 44 additions and 0 deletions
+1
View File
@@ -4,6 +4,7 @@ class Contract < ActiveRecord::Base
# Associations
belongs_to :project
belongs_to :account_executive, :class_name => 'User', :foreign_key => 'account_executive_id'
has_many :deliverables
# Validations
validates_presence_of :name