spec/dummy/app/models/project.rb in freeform-1.0.11 vs spec/dummy/app/models/project.rb in freeform-2.0.0
- old
+ new
@@ -1,9 +1,9 @@
class Project < ActiveRecord::Base
- belongs_to :company
+ belongs_to :owner, :polymorphic => true
has_many :tasks
has_many :assignments, :class_name => 'ProjectTask'
- validates :company, :presence => true
+ validates :owner, :presence => true
validates :name, :presence => true
validates :due_date, :presence => true
-end
+end
\ No newline at end of file