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
#
require File.dirname(__FILE__) + '/../test_helper'
class AssignmentTest < Test::Unit::TestCase
@ -18,3 +8,14 @@ class AssignmentTest < Test::Unit::TestCase
assert true
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)
#

View file

@ -1,30 +1,3 @@
# == Schema Information
#
# Table name: groups
#
# id :integer not null, primary key
# type :string(255) default(""), not null
# name :string(255) default(""), not null
# description :string(255)
# account_balance :decimal(, ) default(0.0), not null
# account_updated :datetime
# created_on :datetime not null
# role_admin :boolean not null
# role_suppliers :boolean not null
# role_article_meta :boolean not null
# role_finance :boolean not null
# role_orders :boolean not null
# weekly_task :boolean
# weekday :integer
# task_name :string(255)
# task_description :string(255)
# task_required_users :integer default(1)
# deleted_at :datetime
# contact_person :string(255)
# contact_phone :string(255)
# contact_address :string(255)
#
require File.dirname(__FILE__) + '/../test_helper'
class GroupTest < Test::Unit::TestCase
@ -35,3 +8,32 @@ class GroupTest < Test::Unit::TestCase
assert true
end
end
# == Schema Information
#
# Table name: groups
#
# id :integer not null, primary key
# type :string(255) default(""), not null
# name :string(255) default(""), not null
# description :string(255)
# account_balance :decimal(8, 2) default(0.0), not null
# account_updated :datetime
# created_on :datetime not null
# role_admin :boolean default(FALSE), not null
# role_suppliers :boolean default(FALSE), not null
# role_article_meta :boolean default(FALSE), not null
# role_finance :boolean default(FALSE), not null
# role_orders :boolean default(FALSE), not null
# weekly_task :boolean default(FALSE)
# weekday :integer
# task_name :string(255)
# task_description :string(255)
# task_required_users :integer default(1)
# deleted_at :datetime
# contact_person :string(255)
# contact_phone :string(255)
# contact_address :string(255)
# stats :text
#

View file

@ -1,3 +1,12 @@
require 'test_helper'
class PageTest < ActiveSupport::TestCase
# Replace this with your real tests.
test "the truth" do
assert true
end
end
# == Schema Information
#
# Table name: pages
@ -9,15 +18,8 @@
# lock_version :integer default(0)
# updated_by :integer
# redirect :integer
# parent_id :integer
# created_at :datetime
# updated_at :datetime
#
require 'test_helper'
class PageTest < ActiveSupport::TestCase
# Replace this with your real tests.
test "the truth" do
assert true
end
end

View file

@ -1,5 +1,15 @@
require File.dirname(__FILE__) + '/../test_helper'
class SharedSupplierTest < Test::Unit::TestCase
fixtures :shared_suppliers
# Replace this with your real tests.
def test_truth
assert true
end
end
# == Schema Information
# Schema version: 20090317175355
#
# Table name: suppliers
#
@ -16,15 +26,9 @@
# created_on :datetime
# updated_on :datetime
# lists :string(255)
# bnn_sync :boolean(1) default(FALSE)
# bnn_host :string(255)
# bnn_user :string(255)
# bnn_password :string(255)
#
require File.dirname(__FILE__) + '/../test_helper'
class SharedSupplierTest < Test::Unit::TestCase
fixtures :shared_suppliers
# Replace this with your real tests.
def test_truth
assert true
end
end

View file

@ -1,3 +1,12 @@
require 'test_helper'
class StockArticleTest < ActiveSupport::TestCase
# Replace this with your real tests.
test "the truth" do
assert true
end
end
# == Schema Information
#
# Table name: articles
@ -12,23 +21,15 @@
# manufacturer :string(255)
# origin :string(255)
# shared_updated_on :datetime
# price :decimal(, )
# price :decimal(8, 2)
# tax :float
# deposit :decimal(, ) default(0.0)
# deposit :decimal(8, 2) default(0.0)
# unit_quantity :integer default(1), not null
# order_number :string(255)
# created_at :datetime
# updated_at :datetime
# quantity :integer default(0)
# deleted_at :datetime
# type :string(255)
# quantity :integer default(0)
#
require 'test_helper'
class StockArticleTest < ActiveSupport::TestCase
# Replace this with your real tests.
test "the truth" do
assert true
end
end

View file

@ -1,19 +1,3 @@
# == Schema Information
#
# Table name: tasks
#
# id :integer not null, primary key
# name :string(255) default(""), not null
# description :string(255)
# due_date :date
# done :boolean
# workgroup_id :integer
# assigned :boolean
# created_on :datetime not null
# updated_on :datetime not null
# required_users :integer default(1)
#
require File.dirname(__FILE__) + '/../test_helper'
class TaskTest < Test::Unit::TestCase
@ -24,3 +8,22 @@ class TaskTest < Test::Unit::TestCase
assert true
end
end
# == Schema Information
#
# Table name: tasks
#
# id :integer not null, primary key
# name :string(255) default(""), not null
# description :string(255)
# due_date :date
# done :boolean default(FALSE)
# workgroup_id :integer
# assigned :boolean default(FALSE)
# created_on :datetime not null
# updated_on :datetime not null
# required_users :integer default(1)
# weekly :boolean
# duration :integer
#

View file

@ -1,30 +1,3 @@
# == Schema Information
#
# Table name: groups
#
# id :integer not null, primary key
# type :string(255) default(""), not null
# name :string(255) default(""), not null
# description :string(255)
# account_balance :decimal(, ) default(0.0), not null
# account_updated :datetime
# created_on :datetime not null
# role_admin :boolean not null
# role_suppliers :boolean not null
# role_article_meta :boolean not null
# role_finance :boolean not null
# role_orders :boolean not null
# weekly_task :boolean
# weekday :integer
# task_name :string(255)
# task_description :string(255)
# task_required_users :integer default(1)
# deleted_at :datetime
# contact_person :string(255)
# contact_phone :string(255)
# contact_address :string(255)
#
require 'test_helper'
class WorkgroupTest < ActiveSupport::TestCase
@ -33,3 +6,32 @@ class WorkgroupTest < ActiveSupport::TestCase
assert true
end
end
# == Schema Information
#
# Table name: groups
#
# id :integer not null, primary key
# type :string(255) default(""), not null
# name :string(255) default(""), not null
# description :string(255)
# account_balance :decimal(8, 2) default(0.0), not null
# account_updated :datetime
# created_on :datetime not null
# role_admin :boolean default(FALSE), not null
# role_suppliers :boolean default(FALSE), not null
# role_article_meta :boolean default(FALSE), not null
# role_finance :boolean default(FALSE), not null
# role_orders :boolean default(FALSE), not null
# weekly_task :boolean default(FALSE)
# weekday :integer
# task_name :string(255)
# task_description :string(255)
# task_required_users :integer default(1)
# deleted_at :datetime
# contact_person :string(255)
# contact_phone :string(255)
# contact_address :string(255)
# stats :text
#