Sha256: 4437c46f6e52de220ea9751d6d7437e8a0097f0b8f5813039103aee3dbc82029

Contents?: true

Size: 247 Bytes

Versions: 4

Compression:

Stored size: 247 Bytes

Contents

class Task < ActiveRecord::Base
  belongs_to :project
  has_many :milestones, :as => :trackable, :inverse_of => :trackable
  
  validates :project, :presence => true
  validates :start_date, :presence => true
  validates_associated :milestones
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
freeform-2.0.4 spec/dummy/app/models/task.rb
freeform-2.0.3 spec/dummy/app/models/task.rb
freeform-2.0.2 spec/dummy/app/models/task.rb
freeform-2.0.1 spec/dummy/app/models/task.rb