Added duration to tasks. Annotated all models.
This commit is contained in:
parent
face58ebef
commit
dcd2a514a6
30 changed files with 494 additions and 431 deletions
|
|
@ -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)
|
||||
#
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue