[#4177] Added Deliverable and it's associations.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
class Deliverable < ActiveRecord::Base
|
||||
unloadable
|
||||
|
||||
# Associations
|
||||
belongs_to :contract
|
||||
belongs_to :manager, :class_name => 'User', :foreign_key => 'manager_id'
|
||||
|
||||
# Validations
|
||||
|
||||
# Accessors
|
||||
end
|
||||
Reference in New Issue
Block a user