Added duration to tasks. Annotated all models.

This commit is contained in:
benni 2011-05-07 20:50:39 +02:00
parent face58ebef
commit dcd2a514a6
30 changed files with 494 additions and 431 deletions

View file

@ -1,13 +1,3 @@
# == Schema Information
#
# Table name: assignments
#
# id :integer not null, primary key
# user_id :integer default(0), not null
# task_id :integer default(0), not null
# accepted :boolean
#
class Assignment < ActiveRecord::Base
belongs_to :user
@ -23,3 +13,14 @@ class Assignment < ActiveRecord::Base
self.task.update_attribute(:assigned, false) if self.task.assignments.empty?
end
end
# == Schema Information
#
# Table name: assignments
#
# id :integer not null, primary key
# user_id :integer default(0), not null
# task_id :integer default(0), not null
# accepted :boolean default(FALSE)
#