Removed annoate and hirb Gemfiles.
Annotate: Better look in schema.rb, this reference should be always up to date. Hirb: To reactivate hirb, look in railscasts: http://railscasts.com/episodes/48-console-tricks-revised
This commit is contained in:
parent
af3c07f031
commit
8a74e7d77f
67 changed files with 1 additions and 1056 deletions
5
Gemfile
5
Gemfile
|
@ -20,11 +20,6 @@ gem 'localize_input', :git => "git://github.com/bennibu/localize_input.git"
|
||||||
gem 'acts_as_configurable'
|
gem 'acts_as_configurable'
|
||||||
gem 'wikicloth'
|
gem 'wikicloth'
|
||||||
|
|
||||||
group :development do
|
|
||||||
gem 'annotate'
|
|
||||||
gem 'hirb'
|
|
||||||
end
|
|
||||||
|
|
||||||
group :production do
|
group :production do
|
||||||
gem 'exception_notification', :require => 'exception_notifier'
|
gem 'exception_notification', :require => 'exception_notifier'
|
||||||
end
|
end
|
|
@ -35,7 +35,6 @@ GEM
|
||||||
activesupport (= 3.0.12)
|
activesupport (= 3.0.12)
|
||||||
activesupport (3.0.12)
|
activesupport (3.0.12)
|
||||||
acts_as_configurable (0.0.8)
|
acts_as_configurable (0.0.8)
|
||||||
annotate (2.4.0)
|
|
||||||
arel (2.0.10)
|
arel (2.0.10)
|
||||||
builder (2.1.2)
|
builder (2.1.2)
|
||||||
client_side_validations (3.0.4)
|
client_side_validations (3.0.4)
|
||||||
|
@ -47,7 +46,6 @@ GEM
|
||||||
fastercsv (1.5.4)
|
fastercsv (1.5.4)
|
||||||
haml (3.1.4)
|
haml (3.1.4)
|
||||||
has_scope (0.5.0)
|
has_scope (0.5.0)
|
||||||
hirb (0.3.4)
|
|
||||||
i18n (0.5.0)
|
i18n (0.5.0)
|
||||||
inherited_resources (1.2.2)
|
inherited_resources (1.2.2)
|
||||||
has_scope (~> 0.5.0)
|
has_scope (~> 0.5.0)
|
||||||
|
@ -125,12 +123,10 @@ PLATFORMS
|
||||||
|
|
||||||
DEPENDENCIES
|
DEPENDENCIES
|
||||||
acts_as_configurable
|
acts_as_configurable
|
||||||
annotate
|
|
||||||
client_side_validations
|
client_side_validations
|
||||||
exception_notification
|
exception_notification
|
||||||
fastercsv
|
fastercsv
|
||||||
haml
|
haml
|
||||||
hirb
|
|
||||||
inherited_resources
|
inherited_resources
|
||||||
jquery-rails
|
jquery-rails
|
||||||
localize_input!
|
localize_input!
|
||||||
|
|
|
@ -5,12 +5,3 @@ class ArticleCategory < ActiveRecord::Base
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: article_categories
|
|
||||||
#
|
|
||||||
# id :integer(4) not null, primary key
|
|
||||||
# name :string(255) default(""), not null
|
|
||||||
# description :string(255)
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
|
@ -31,16 +31,3 @@ class ArticlePrice < ActiveRecord::Base
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: article_prices
|
|
||||||
#
|
|
||||||
# id :integer(4) not null, primary key
|
|
||||||
# article_id :integer(4)
|
|
||||||
# price :decimal(8, 2) default(0.0), not null
|
|
||||||
# tax :decimal(8, 2) default(0.0), not null
|
|
||||||
# deposit :decimal(8, 2) default(0.0), not null
|
|
||||||
# unit_quantity :integer(4)
|
|
||||||
# created_at :datetime
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
|
@ -15,13 +15,3 @@ class Assignment < ActiveRecord::Base
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: assignments
|
|
||||||
#
|
|
||||||
# id :integer(4) not null, primary key
|
|
||||||
# user_id :integer(4) default(0), not null
|
|
||||||
# task_id :integer(4) default(0), not null
|
|
||||||
# accepted :boolean(1) default(FALSE)
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
|
@ -19,14 +19,3 @@ class Delivery < ActiveRecord::Base
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: deliveries
|
|
||||||
#
|
|
||||||
# id :integer(4) not null, primary key
|
|
||||||
# supplier_id :integer(4)
|
|
||||||
# delivered_on :date
|
|
||||||
# created_at :datetime
|
|
||||||
# note :text
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
|
@ -15,15 +15,3 @@ class FinancialTransaction < ActiveRecord::Base
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: financial_transactions
|
|
||||||
#
|
|
||||||
# id :integer(4) not null, primary key
|
|
||||||
# ordergroup_id :integer(4) default(0), not null
|
|
||||||
# amount :decimal(8, 2) default(0.0), not null
|
|
||||||
# note :text default(""), not null
|
|
||||||
# user_id :integer(4) default(0), not null
|
|
||||||
# created_on :datetime not null
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
|
@ -25,32 +25,3 @@ class Group < ActiveRecord::Base
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: groups
|
|
||||||
#
|
|
||||||
# id :integer(4) 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(1) default(FALSE), not null
|
|
||||||
# role_suppliers :boolean(1) default(FALSE), not null
|
|
||||||
# role_article_meta :boolean(1) default(FALSE), not null
|
|
||||||
# role_finance :boolean(1) default(FALSE), not null
|
|
||||||
# role_orders :boolean(1) default(FALSE), not null
|
|
||||||
# weekly_task :boolean(1) default(FALSE)
|
|
||||||
# weekday :integer(4)
|
|
||||||
# task_name :string(255)
|
|
||||||
# task_description :string(255)
|
|
||||||
# task_required_users :integer(4) default(1)
|
|
||||||
# deleted_at :datetime
|
|
||||||
# contact_person :string(255)
|
|
||||||
# contact_phone :string(255)
|
|
||||||
# contact_address :string(255)
|
|
||||||
# stats :text
|
|
||||||
# task_duration :integer(4) default(1)
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
|
@ -92,16 +92,3 @@ class GroupOrder < ActiveRecord::Base
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: group_orders
|
|
||||||
#
|
|
||||||
# id :integer(4) not null, primary key
|
|
||||||
# ordergroup_id :integer(4) default(0), not null
|
|
||||||
# order_id :integer(4) default(0), not null
|
|
||||||
# price :decimal(8, 2) default(0.0), not null
|
|
||||||
# lock_version :integer(4) default(0), not null
|
|
||||||
# updated_on :datetime not null
|
|
||||||
# updated_by_user_id :integer(4)
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
|
@ -181,16 +181,3 @@ class GroupOrderArticle < ActiveRecord::Base
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: group_order_articles
|
|
||||||
#
|
|
||||||
# id :integer(4) not null, primary key
|
|
||||||
# group_order_id :integer(4) default(0), not null
|
|
||||||
# order_article_id :integer(4) default(0), not null
|
|
||||||
# quantity :integer(4) default(0), not null
|
|
||||||
# tolerance :integer(4) default(0), not null
|
|
||||||
# updated_on :datetime not null
|
|
||||||
# result :decimal(8, 3)
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
|
@ -11,14 +11,3 @@ class GroupOrderArticleQuantity < ActiveRecord::Base
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: group_order_article_quantities
|
|
||||||
#
|
|
||||||
# id :integer(4) not null, primary key
|
|
||||||
# group_order_article_id :integer(4) default(0), not null
|
|
||||||
# quantity :integer(4) default(0)
|
|
||||||
# tolerance :integer(4) default(0)
|
|
||||||
# created_on :datetime not null
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
|
@ -37,15 +37,3 @@ class Invite < ActiveRecord::Base
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: invites
|
|
||||||
#
|
|
||||||
# id :integer(4) not null, primary key
|
|
||||||
# token :string(255) default(""), not null
|
|
||||||
# expires_at :datetime not null
|
|
||||||
# group_id :integer(4) default(0), not null
|
|
||||||
# user_id :integer(4) default(0), not null
|
|
||||||
# email :string(255) default(""), not null
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
|
@ -19,22 +19,3 @@ class Invoice < ActiveRecord::Base
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: invoices
|
|
||||||
#
|
|
||||||
# id :integer(4) not null, primary key
|
|
||||||
# supplier_id :integer(4)
|
|
||||||
# delivery_id :integer(4)
|
|
||||||
# order_id :integer(4)
|
|
||||||
# number :string(255)
|
|
||||||
# date :date
|
|
||||||
# paid_on :date
|
|
||||||
# note :text
|
|
||||||
# amount :decimal(8, 2) default(0.0), not null
|
|
||||||
# deposit :decimal(8, 2) default(0.0), not null
|
|
||||||
# deposit_credit :decimal(8, 2) default(0.0), not null
|
|
||||||
# created_at :datetime
|
|
||||||
# updated_at :datetime
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
|
@ -16,12 +16,3 @@ class Membership < ActiveRecord::Base
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: memberships
|
|
||||||
#
|
|
||||||
# id :integer(4) not null, primary key
|
|
||||||
# group_id :integer(4) default(0), not null
|
|
||||||
# user_id :integer(4) default(0), not null
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
|
@ -86,17 +86,3 @@ class Message < ActiveRecord::Base
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: messages
|
|
||||||
#
|
|
||||||
# id :integer(4) not null, primary key
|
|
||||||
# sender_id :integer(4)
|
|
||||||
# recipients_ids :text
|
|
||||||
# subject :string(255) not null
|
|
||||||
# body :text
|
|
||||||
# email_state :integer(4) default(0), not null
|
|
||||||
# private :boolean(1) default(FALSE)
|
|
||||||
# created_at :datetime
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
|
@ -220,18 +220,3 @@ class Order < ActiveRecord::Base
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: orders
|
|
||||||
#
|
|
||||||
# id :integer(4) not null, primary key
|
|
||||||
# supplier_id :integer(4)
|
|
||||||
# note :text
|
|
||||||
# starts :datetime
|
|
||||||
# ends :datetime
|
|
||||||
# state :string(255) default("open")
|
|
||||||
# lock_version :integer(4) default(0), not null
|
|
||||||
# updated_by_user_id :integer(4)
|
|
||||||
# foodcoop_result :decimal(8, 2)
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
|
@ -130,17 +130,3 @@ class OrderArticle < ActiveRecord::Base
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: order_articles
|
|
||||||
#
|
|
||||||
# id :integer(4) not null, primary key
|
|
||||||
# order_id :integer(4) default(0), not null
|
|
||||||
# article_id :integer(4) default(0), not null
|
|
||||||
# quantity :integer(4) default(0), not null
|
|
||||||
# tolerance :integer(4) default(0), not null
|
|
||||||
# units_to_order :integer(4) default(0), not null
|
|
||||||
# lock_version :integer(4) default(0), not null
|
|
||||||
# article_price_id :integer(4)
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
|
@ -7,14 +7,3 @@ class OrderComment < ActiveRecord::Base
|
||||||
validates_length_of :text, :minimum => 3
|
validates_length_of :text, :minimum => 3
|
||||||
end
|
end
|
||||||
|
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: order_comments
|
|
||||||
#
|
|
||||||
# id :integer(4) not null, primary key
|
|
||||||
# order_id :integer(4)
|
|
||||||
# user_id :integer(4)
|
|
||||||
# text :text
|
|
||||||
# created_at :datetime
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
|
@ -97,32 +97,3 @@ class Ordergroup < Group
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: groups
|
|
||||||
#
|
|
||||||
# id :integer(4) 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(1) default(FALSE), not null
|
|
||||||
# role_suppliers :boolean(1) default(FALSE), not null
|
|
||||||
# role_article_meta :boolean(1) default(FALSE), not null
|
|
||||||
# role_finance :boolean(1) default(FALSE), not null
|
|
||||||
# role_orders :boolean(1) default(FALSE), not null
|
|
||||||
# weekly_task :boolean(1) default(FALSE)
|
|
||||||
# weekday :integer(4)
|
|
||||||
# task_name :string(255)
|
|
||||||
# task_description :string(255)
|
|
||||||
# task_required_users :integer(4) default(1)
|
|
||||||
# deleted_at :datetime
|
|
||||||
# contact_person :string(255)
|
|
||||||
# contact_phone :string(255)
|
|
||||||
# contact_address :string(255)
|
|
||||||
# stats :text
|
|
||||||
# task_duration :integer(4) default(1)
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
|
@ -52,19 +52,3 @@ class Page < ActiveRecord::Base
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: pages
|
|
||||||
#
|
|
||||||
# id :integer(4) not null, primary key
|
|
||||||
# title :string(255)
|
|
||||||
# body :text
|
|
||||||
# permalink :string(255)
|
|
||||||
# lock_version :integer(4) default(0)
|
|
||||||
# updated_by :integer(4)
|
|
||||||
# redirect :integer(4)
|
|
||||||
# parent_id :integer(4)
|
|
||||||
# created_at :datetime
|
|
||||||
# updated_at :datetime
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
|
@ -1,27 +1,3 @@
|
||||||
# == Schema Information
|
|
||||||
# Schema version: 20090102171850
|
|
||||||
#
|
|
||||||
# Table name: articles
|
|
||||||
#
|
|
||||||
# id :integer(4) not null, primary key
|
|
||||||
# name :string(255) not null
|
|
||||||
# supplier_id :integer(4) not null
|
|
||||||
# number :string(255)
|
|
||||||
# note :string(255)
|
|
||||||
# manufacturer :string(255)
|
|
||||||
# origin :string(255)
|
|
||||||
# unit :string(255)
|
|
||||||
# price :decimal(8, 2) default(0.0), not null
|
|
||||||
# tax :decimal(3, 1) default(7.0), not null
|
|
||||||
# deposit :decimal(8, 2) default(0.0), not null
|
|
||||||
# unit_quantity :decimal(4, 1) default(1.0), not null
|
|
||||||
# scale_quantity :decimal(4, 2)
|
|
||||||
# scale_price :decimal(8, 2)
|
|
||||||
# created_on :datetime
|
|
||||||
# updated_on :datetime
|
|
||||||
# list :string(255)
|
|
||||||
#
|
|
||||||
|
|
||||||
class SharedArticle < ActiveRecord::Base
|
class SharedArticle < ActiveRecord::Base
|
||||||
|
|
||||||
# connect to database from sharedLists-Application
|
# connect to database from sharedLists-Application
|
||||||
|
|
|
@ -14,26 +14,3 @@ class SharedSupplier < ActiveRecord::Base
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: suppliers
|
|
||||||
#
|
|
||||||
# id :integer(4) not null, primary key
|
|
||||||
# name :string(255) not null
|
|
||||||
# address :string(255) not null
|
|
||||||
# phone :string(255) not null
|
|
||||||
# phone2 :string(255)
|
|
||||||
# fax :string(255)
|
|
||||||
# email :string(255)
|
|
||||||
# url :string(255)
|
|
||||||
# delivery_days :string(255)
|
|
||||||
# note :string(255)
|
|
||||||
# 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)
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
|
@ -41,29 +41,3 @@ class StockArticle < Article
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: articles
|
|
||||||
#
|
|
||||||
# id :integer(4) not null, primary key
|
|
||||||
# name :string(255) default(""), not null
|
|
||||||
# supplier_id :integer(4) default(0), not null
|
|
||||||
# article_category_id :integer(4) default(0), not null
|
|
||||||
# unit :string(255) default(""), not null
|
|
||||||
# note :string(255)
|
|
||||||
# availability :boolean(1) default(TRUE), not null
|
|
||||||
# manufacturer :string(255)
|
|
||||||
# origin :string(255)
|
|
||||||
# shared_updated_on :datetime
|
|
||||||
# price :decimal(8, 2)
|
|
||||||
# tax :float
|
|
||||||
# deposit :decimal(8, 2) default(0.0)
|
|
||||||
# unit_quantity :integer(4) default(1), not null
|
|
||||||
# order_number :string(255)
|
|
||||||
# created_at :datetime
|
|
||||||
# updated_at :datetime
|
|
||||||
# deleted_at :datetime
|
|
||||||
# type :string(255)
|
|
||||||
# quantity :integer(4) default(0)
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
|
@ -16,16 +16,3 @@ class StockChange < ActiveRecord::Base
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: stock_changes
|
|
||||||
#
|
|
||||||
# id :integer(4) not null, primary key
|
|
||||||
# delivery_id :integer(4)
|
|
||||||
# order_id :integer(4)
|
|
||||||
# stock_article_id :integer(4)
|
|
||||||
# quantity :integer(4) default(0)
|
|
||||||
# created_at :datetime
|
|
||||||
# stock_taking_id :integer(4)
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
|
@ -12,13 +12,3 @@ class StockTaking < ActiveRecord::Base
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: stock_takings
|
|
||||||
#
|
|
||||||
# id :integer(4) not null, primary key
|
|
||||||
# date :date
|
|
||||||
# note :text
|
|
||||||
# created_at :datetime
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
|
@ -67,25 +67,3 @@ class Supplier < ActiveRecord::Base
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: suppliers
|
|
||||||
#
|
|
||||||
# id :integer(4) not null, primary key
|
|
||||||
# name :string(255) default(""), not null
|
|
||||||
# address :string(255) default(""), not null
|
|
||||||
# phone :string(255) default(""), not null
|
|
||||||
# phone2 :string(255)
|
|
||||||
# fax :string(255)
|
|
||||||
# email :string(255)
|
|
||||||
# url :string(255)
|
|
||||||
# contact_person :string(255)
|
|
||||||
# customer_number :string(255)
|
|
||||||
# delivery_days :string(255)
|
|
||||||
# order_howto :string(255)
|
|
||||||
# note :string(255)
|
|
||||||
# shared_supplier_id :integer(4)
|
|
||||||
# min_order_quantity :string(255)
|
|
||||||
# deleted_at :datetime
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
|
@ -74,21 +74,3 @@ class Task < ActiveRecord::Base
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: tasks
|
|
||||||
#
|
|
||||||
# id :integer(4) not null, primary key
|
|
||||||
# name :string(255) default(""), not null
|
|
||||||
# description :string(255)
|
|
||||||
# due_date :date
|
|
||||||
# done :boolean(1) default(FALSE)
|
|
||||||
# workgroup_id :integer(4)
|
|
||||||
# assigned :boolean(1) default(FALSE)
|
|
||||||
# created_on :datetime not null
|
|
||||||
# updated_on :datetime not null
|
|
||||||
# required_users :integer(4) default(1)
|
|
||||||
# weekly :boolean(1)
|
|
||||||
# duration :integer(4) default(1)
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
|
@ -193,21 +193,3 @@ class User < ActiveRecord::Base
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: users
|
|
||||||
#
|
|
||||||
# id :integer(4) not null, primary key
|
|
||||||
# nick :string(255) default(""), not null
|
|
||||||
# password_hash :string(255) default(""), not null
|
|
||||||
# password_salt :string(255) default(""), not null
|
|
||||||
# first_name :string(255) default(""), not null
|
|
||||||
# last_name :string(255) default(""), not null
|
|
||||||
# email :string(255) default(""), not null
|
|
||||||
# phone :string(255)
|
|
||||||
# created_on :datetime not null
|
|
||||||
# reset_password_token :string(255)
|
|
||||||
# reset_password_expires :datetime
|
|
||||||
# last_login :datetime
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
|
@ -67,32 +67,3 @@ class Workgroup < Group
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: groups
|
|
||||||
#
|
|
||||||
# id :integer(4) 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(1) default(FALSE), not null
|
|
||||||
# role_suppliers :boolean(1) default(FALSE), not null
|
|
||||||
# role_article_meta :boolean(1) default(FALSE), not null
|
|
||||||
# role_finance :boolean(1) default(FALSE), not null
|
|
||||||
# role_orders :boolean(1) default(FALSE), not null
|
|
||||||
# weekly_task :boolean(1) default(FALSE)
|
|
||||||
# weekday :integer(4)
|
|
||||||
# task_name :string(255)
|
|
||||||
# task_description :string(255)
|
|
||||||
# task_required_users :integer(4) default(1)
|
|
||||||
# deleted_at :datetime
|
|
||||||
# contact_person :string(255)
|
|
||||||
# contact_phone :string(255)
|
|
||||||
# contact_address :string(255)
|
|
||||||
# stats :text
|
|
||||||
# task_duration :integer(4) default(1)
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
|
@ -22,9 +22,4 @@ Foodsoft::Application.configure do
|
||||||
|
|
||||||
# Only use best-standards-support built into browsers
|
# Only use best-standards-support built into browsers
|
||||||
config.action_dispatch.best_standards_support = :builtin
|
config.action_dispatch.best_standards_support = :builtin
|
||||||
end
|
end
|
||||||
|
|
||||||
# Enable hirb for better console formatting
|
|
||||||
require "hirb"
|
|
||||||
Hirb.enable
|
|
||||||
|
|
9
test/fixtures/article_categories.yml
vendored
9
test/fixtures/article_categories.yml
vendored
|
@ -7,12 +7,3 @@ vegi:
|
||||||
other:
|
other:
|
||||||
name: Other stuff
|
name: Other stuff
|
||||||
|
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: article_categories
|
|
||||||
#
|
|
||||||
# id :integer(4) not null, primary key
|
|
||||||
# name :string(255) default(""), not null
|
|
||||||
# description :string(255)
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
13
test/fixtures/article_prices.yml
vendored
13
test/fixtures/article_prices.yml
vendored
|
@ -36,16 +36,3 @@ applejuice1:
|
||||||
deposit: 0.15
|
deposit: 0.15
|
||||||
created_at: <%= Time.now.to_s(:db) %>
|
created_at: <%= Time.now.to_s(:db) %>
|
||||||
|
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: article_prices
|
|
||||||
#
|
|
||||||
# id :integer(4) not null, primary key
|
|
||||||
# article_id :integer(4)
|
|
||||||
# price :decimal(8, 2) default(0.0), not null
|
|
||||||
# tax :decimal(8, 2) default(0.0), not null
|
|
||||||
# deposit :decimal(8, 2) default(0.0), not null
|
|
||||||
# unit_quantity :integer(4)
|
|
||||||
# created_at :datetime
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
23
test/fixtures/articles.yml
vendored
23
test/fixtures/articles.yml
vendored
|
@ -81,26 +81,3 @@ applejuice:
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: articles
|
|
||||||
#
|
|
||||||
# id :integer(4) not null, primary key
|
|
||||||
# name :string(255) not null
|
|
||||||
# supplier_id :integer(4) not null
|
|
||||||
# number :string(255)
|
|
||||||
# note :string(255)
|
|
||||||
# manufacturer :string(255)
|
|
||||||
# origin :string(255)
|
|
||||||
# unit :string(255)
|
|
||||||
# price :decimal(8, 2) default(0.0), not null
|
|
||||||
# tax :decimal(3, 1) default(7.0), not null
|
|
||||||
# deposit :decimal(8, 2) default(0.0), not null
|
|
||||||
# unit_quantity :decimal(4, 1) default(1.0), not null
|
|
||||||
# scale_quantity :decimal(4, 2)
|
|
||||||
# scale_price :decimal(8, 2)
|
|
||||||
# created_on :datetime
|
|
||||||
# updated_on :datetime
|
|
||||||
# list :string(255)
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
10
test/fixtures/assignments.yml
vendored
10
test/fixtures/assignments.yml
vendored
|
@ -1,13 +1,3 @@
|
||||||
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
|
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
|
||||||
|
|
||||||
|
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: assignments
|
|
||||||
#
|
|
||||||
# id :integer(4) not null, primary key
|
|
||||||
# user_id :integer(4) default(0), not null
|
|
||||||
# task_id :integer(4) default(0), not null
|
|
||||||
# accepted :boolean(1) default(FALSE)
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
12
test/fixtures/financial_transactions.yml
vendored
12
test/fixtures/financial_transactions.yml
vendored
|
@ -12,15 +12,3 @@ bananas2:
|
||||||
note: Paying in from <%= 1.weeks.ago.strftime("%d.%m.%Y") %>
|
note: Paying in from <%= 1.weeks.ago.strftime("%d.%m.%Y") %>
|
||||||
created_on: <%= 1.weeks.ago.to_s(:db) %>
|
created_on: <%= 1.weeks.ago.to_s(:db) %>
|
||||||
|
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: financial_transactions
|
|
||||||
#
|
|
||||||
# id :integer(4) not null, primary key
|
|
||||||
# ordergroup_id :integer(4) default(0), not null
|
|
||||||
# amount :decimal(8, 2) default(0.0), not null
|
|
||||||
# note :text default(""), not null
|
|
||||||
# user_id :integer(4) default(0), not null
|
|
||||||
# created_on :datetime not null
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
11
test/fixtures/group_order_article_quantities.yml
vendored
11
test/fixtures/group_order_article_quantities.yml
vendored
|
@ -1,14 +1,3 @@
|
||||||
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
|
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
|
||||||
|
|
||||||
|
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: group_order_article_quantities
|
|
||||||
#
|
|
||||||
# id :integer(4) not null, primary key
|
|
||||||
# group_order_article_id :integer(4) default(0), not null
|
|
||||||
# quantity :integer(4) default(0)
|
|
||||||
# tolerance :integer(4) default(0)
|
|
||||||
# created_on :datetime not null
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
29
test/fixtures/groups.yml
vendored
29
test/fixtures/groups.yml
vendored
|
@ -20,32 +20,3 @@ bananas:
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: groups
|
|
||||||
#
|
|
||||||
# id :integer(4) 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(1) default(FALSE), not null
|
|
||||||
# role_suppliers :boolean(1) default(FALSE), not null
|
|
||||||
# role_article_meta :boolean(1) default(FALSE), not null
|
|
||||||
# role_finance :boolean(1) default(FALSE), not null
|
|
||||||
# role_orders :boolean(1) default(FALSE), not null
|
|
||||||
# weekly_task :boolean(1) default(FALSE)
|
|
||||||
# weekday :integer(4)
|
|
||||||
# task_name :string(255)
|
|
||||||
# task_description :string(255)
|
|
||||||
# task_required_users :integer(4) default(1)
|
|
||||||
# deleted_at :datetime
|
|
||||||
# contact_person :string(255)
|
|
||||||
# contact_phone :string(255)
|
|
||||||
# contact_address :string(255)
|
|
||||||
# stats :text
|
|
||||||
# task_duration :integer(4) default(1)
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
9
test/fixtures/memberships.yml
vendored
9
test/fixtures/memberships.yml
vendored
|
@ -7,12 +7,3 @@ second:
|
||||||
user: test
|
user: test
|
||||||
|
|
||||||
|
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: memberships
|
|
||||||
#
|
|
||||||
# id :integer(4) not null, primary key
|
|
||||||
# group_id :integer(4) default(0), not null
|
|
||||||
# user_id :integer(4) default(0), not null
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
14
test/fixtures/messages.yml
vendored
14
test/fixtures/messages.yml
vendored
|
@ -2,17 +2,3 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: messages
|
|
||||||
#
|
|
||||||
# id :integer(4) not null, primary key
|
|
||||||
# sender_id :integer(4)
|
|
||||||
# recipients_ids :text
|
|
||||||
# subject :string(255) not null
|
|
||||||
# body :text
|
|
||||||
# email_state :integer(4) default(0), not null
|
|
||||||
# private :boolean(1) default(FALSE)
|
|
||||||
# created_at :datetime
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
11
test/fixtures/order_comments.yml
vendored
11
test/fixtures/order_comments.yml
vendored
|
@ -1,13 +1,2 @@
|
||||||
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
|
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
|
||||||
|
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: order_comments
|
|
||||||
#
|
|
||||||
# id :integer(4) not null, primary key
|
|
||||||
# order_id :integer(4)
|
|
||||||
# user_id :integer(4)
|
|
||||||
# text :text
|
|
||||||
# created_at :datetime
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
15
test/fixtures/orders.yml
vendored
15
test/fixtures/orders.yml
vendored
|
@ -1,17 +1,2 @@
|
||||||
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
|
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
|
||||||
|
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: orders
|
|
||||||
#
|
|
||||||
# id :integer(4) not null, primary key
|
|
||||||
# supplier_id :integer(4)
|
|
||||||
# note :text
|
|
||||||
# starts :datetime
|
|
||||||
# ends :datetime
|
|
||||||
# state :string(255) default("open")
|
|
||||||
# lock_version :integer(4) default(0), not null
|
|
||||||
# updated_by_user_id :integer(4)
|
|
||||||
# foodcoop_result :decimal(8, 2)
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
16
test/fixtures/pages.yml
vendored
16
test/fixtures/pages.yml
vendored
|
@ -11,19 +11,3 @@ two:
|
||||||
permalink: MyString
|
permalink: MyString
|
||||||
|
|
||||||
|
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: pages
|
|
||||||
#
|
|
||||||
# id :integer(4) not null, primary key
|
|
||||||
# title :string(255)
|
|
||||||
# body :text
|
|
||||||
# permalink :string(255)
|
|
||||||
# lock_version :integer(4) default(0)
|
|
||||||
# updated_by :integer(4)
|
|
||||||
# redirect :integer(4)
|
|
||||||
# parent_id :integer(4)
|
|
||||||
# created_at :datetime
|
|
||||||
# updated_at :datetime
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
13
test/fixtures/stock_changes.yml
vendored
13
test/fixtures/stock_changes.yml
vendored
|
@ -1,15 +1,2 @@
|
||||||
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
|
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
|
||||||
|
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: stock_changes
|
|
||||||
#
|
|
||||||
# id :integer(4) not null, primary key
|
|
||||||
# delivery_id :integer(4)
|
|
||||||
# order_id :integer(4)
|
|
||||||
# stock_article_id :integer(4)
|
|
||||||
# quantity :integer(4) default(0)
|
|
||||||
# created_at :datetime
|
|
||||||
# stock_taking_id :integer(4)
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
10
test/fixtures/stock_takings.yml
vendored
10
test/fixtures/stock_takings.yml
vendored
|
@ -1,13 +1,3 @@
|
||||||
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
|
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
|
||||||
|
|
||||||
|
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: stock_takings
|
|
||||||
#
|
|
||||||
# id :integer(4) not null, primary key
|
|
||||||
# date :date
|
|
||||||
# note :text
|
|
||||||
# created_at :datetime
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
23
test/fixtures/suppliers.yml
vendored
23
test/fixtures/suppliers.yml
vendored
|
@ -47,26 +47,3 @@ terra:
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: suppliers
|
|
||||||
#
|
|
||||||
# id :integer(4) not null, primary key
|
|
||||||
# name :string(255) not null
|
|
||||||
# address :string(255) not null
|
|
||||||
# phone :string(255) not null
|
|
||||||
# phone2 :string(255)
|
|
||||||
# fax :string(255)
|
|
||||||
# email :string(255)
|
|
||||||
# url :string(255)
|
|
||||||
# delivery_days :string(255)
|
|
||||||
# note :string(255)
|
|
||||||
# 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)
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
18
test/fixtures/tasks.yml
vendored
18
test/fixtures/tasks.yml
vendored
|
@ -2,21 +2,3 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: tasks
|
|
||||||
#
|
|
||||||
# id :integer(4) not null, primary key
|
|
||||||
# name :string(255) default(""), not null
|
|
||||||
# description :string(255)
|
|
||||||
# due_date :date
|
|
||||||
# done :boolean(1) default(FALSE)
|
|
||||||
# workgroup_id :integer(4)
|
|
||||||
# assigned :boolean(1) default(FALSE)
|
|
||||||
# created_on :datetime not null
|
|
||||||
# updated_on :datetime not null
|
|
||||||
# required_users :integer(4) default(1)
|
|
||||||
# weekly :boolean(1)
|
|
||||||
# duration :integer(4) default(1)
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
18
test/fixtures/users.yml
vendored
18
test/fixtures/users.yml
vendored
|
@ -16,21 +16,3 @@ test:
|
||||||
password_salt: DxnbIF1h
|
password_salt: DxnbIF1h
|
||||||
created_on: <%= Time.now.to_s(:db) %>
|
created_on: <%= Time.now.to_s(:db) %>
|
||||||
|
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: users
|
|
||||||
#
|
|
||||||
# id :integer(4) not null, primary key
|
|
||||||
# nick :string(255) default(""), not null
|
|
||||||
# password_hash :string(255) default(""), not null
|
|
||||||
# password_salt :string(255) default(""), not null
|
|
||||||
# first_name :string(255) default(""), not null
|
|
||||||
# last_name :string(255) default(""), not null
|
|
||||||
# email :string(255) default(""), not null
|
|
||||||
# phone :string(255)
|
|
||||||
# created_on :datetime not null
|
|
||||||
# reset_password_token :string(255)
|
|
||||||
# reset_password_expires :datetime
|
|
||||||
# last_login :datetime
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
|
@ -9,12 +9,3 @@ class ArticleCategoryTest < Test::Unit::TestCase
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: article_categories
|
|
||||||
#
|
|
||||||
# id :integer(4) not null, primary key
|
|
||||||
# name :string(255) default(""), not null
|
|
||||||
# description :string(255)
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
|
@ -7,16 +7,3 @@ class ArticlePriceTest < ActiveSupport::TestCase
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: article_prices
|
|
||||||
#
|
|
||||||
# id :integer(4) not null, primary key
|
|
||||||
# article_id :integer(4)
|
|
||||||
# price :decimal(8, 2) default(0.0), not null
|
|
||||||
# tax :decimal(8, 2) default(0.0), not null
|
|
||||||
# deposit :decimal(8, 2) default(0.0), not null
|
|
||||||
# unit_quantity :integer(4)
|
|
||||||
# created_at :datetime
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
|
@ -1,29 +1,3 @@
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: articles
|
|
||||||
#
|
|
||||||
# id :integer not null, primary key
|
|
||||||
# name :string(255) default(""), not null
|
|
||||||
# supplier_id :integer default(0), not null
|
|
||||||
# article_category_id :integer default(0), not null
|
|
||||||
# unit :string(255) default(""), not null
|
|
||||||
# note :string(255)
|
|
||||||
# availability :boolean default(TRUE), not null
|
|
||||||
# manufacturer :string(255)
|
|
||||||
# origin :string(255)
|
|
||||||
# shared_updated_on :datetime
|
|
||||||
# price :decimal(, )
|
|
||||||
# tax :float
|
|
||||||
# deposit :decimal(, ) 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)
|
|
||||||
#
|
|
||||||
|
|
||||||
require File.dirname(__FILE__) + '/../test_helper'
|
require File.dirname(__FILE__) + '/../test_helper'
|
||||||
|
|
||||||
class ArticleTest < Test::Unit::TestCase
|
class ArticleTest < Test::Unit::TestCase
|
||||||
|
|
|
@ -10,13 +10,3 @@ class AssignmentTest < Test::Unit::TestCase
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: assignments
|
|
||||||
#
|
|
||||||
# id :integer(4) not null, primary key
|
|
||||||
# user_id :integer(4) default(0), not null
|
|
||||||
# task_id :integer(4) default(0), not null
|
|
||||||
# accepted :boolean(1) default(FALSE)
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
|
@ -9,15 +9,3 @@ class FinancialTransactionTest < Test::Unit::TestCase
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: financial_transactions
|
|
||||||
#
|
|
||||||
# id :integer(4) not null, primary key
|
|
||||||
# ordergroup_id :integer(4) default(0), not null
|
|
||||||
# amount :decimal(8, 2) default(0.0), not null
|
|
||||||
# note :text default(""), not null
|
|
||||||
# user_id :integer(4) default(0), not null
|
|
||||||
# created_on :datetime not null
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
|
@ -9,14 +9,3 @@ class GroupOrderArticleQuantityTest < Test::Unit::TestCase
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: group_order_article_quantities
|
|
||||||
#
|
|
||||||
# id :integer(4) not null, primary key
|
|
||||||
# group_order_article_id :integer(4) default(0), not null
|
|
||||||
# quantity :integer(4) default(0)
|
|
||||||
# tolerance :integer(4) default(0)
|
|
||||||
# created_on :datetime not null
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
|
@ -12,32 +12,3 @@ end
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: groups
|
|
||||||
#
|
|
||||||
# id :integer(4) 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(1) default(FALSE), not null
|
|
||||||
# role_suppliers :boolean(1) default(FALSE), not null
|
|
||||||
# role_article_meta :boolean(1) default(FALSE), not null
|
|
||||||
# role_finance :boolean(1) default(FALSE), not null
|
|
||||||
# role_orders :boolean(1) default(FALSE), not null
|
|
||||||
# weekly_task :boolean(1) default(FALSE)
|
|
||||||
# weekday :integer(4)
|
|
||||||
# task_name :string(255)
|
|
||||||
# task_description :string(255)
|
|
||||||
# task_required_users :integer(4) default(1)
|
|
||||||
# deleted_at :datetime
|
|
||||||
# contact_person :string(255)
|
|
||||||
# contact_phone :string(255)
|
|
||||||
# contact_address :string(255)
|
|
||||||
# stats :text
|
|
||||||
# task_duration :integer(4) default(1)
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
|
@ -9,12 +9,3 @@ class MembershipTest < Test::Unit::TestCase
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: memberships
|
|
||||||
#
|
|
||||||
# id :integer(4) not null, primary key
|
|
||||||
# group_id :integer(4) default(0), not null
|
|
||||||
# user_id :integer(4) default(0), not null
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
|
@ -7,14 +7,3 @@ class OrderCommentTest < ActiveSupport::TestCase
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: order_comments
|
|
||||||
#
|
|
||||||
# id :integer(4) not null, primary key
|
|
||||||
# order_id :integer(4)
|
|
||||||
# user_id :integer(4)
|
|
||||||
# text :text
|
|
||||||
# created_at :datetime
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
|
@ -9,18 +9,3 @@ class OrderTest < Test::Unit::TestCase
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: orders
|
|
||||||
#
|
|
||||||
# id :integer(4) not null, primary key
|
|
||||||
# supplier_id :integer(4)
|
|
||||||
# note :text
|
|
||||||
# starts :datetime
|
|
||||||
# ends :datetime
|
|
||||||
# state :string(255) default("open")
|
|
||||||
# lock_version :integer(4) default(0), not null
|
|
||||||
# updated_by_user_id :integer(4)
|
|
||||||
# foodcoop_result :decimal(8, 2)
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
|
@ -8,19 +8,3 @@ class PageTest < ActiveSupport::TestCase
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: pages
|
|
||||||
#
|
|
||||||
# id :integer(4) not null, primary key
|
|
||||||
# title :string(255)
|
|
||||||
# body :text
|
|
||||||
# permalink :string(255)
|
|
||||||
# lock_version :integer(4) default(0)
|
|
||||||
# updated_by :integer(4)
|
|
||||||
# redirect :integer(4)
|
|
||||||
# parent_id :integer(4)
|
|
||||||
# created_at :datetime
|
|
||||||
# updated_at :datetime
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
|
@ -1,27 +1,3 @@
|
||||||
# == Schema Information
|
|
||||||
# Schema version: 20090317175355
|
|
||||||
#
|
|
||||||
# Table name: articles
|
|
||||||
#
|
|
||||||
# id :integer(4) not null, primary key
|
|
||||||
# name :string(255) not null
|
|
||||||
# supplier_id :integer(4) not null
|
|
||||||
# number :string(255)
|
|
||||||
# note :string(255)
|
|
||||||
# manufacturer :string(255)
|
|
||||||
# origin :string(255)
|
|
||||||
# unit :string(255)
|
|
||||||
# price :decimal(8, 2) default(0.0), not null
|
|
||||||
# tax :decimal(3, 1) default(7.0), not null
|
|
||||||
# deposit :decimal(8, 2) default(0.0), not null
|
|
||||||
# unit_quantity :decimal(4, 1) default(1.0), not null
|
|
||||||
# scale_quantity :decimal(4, 2)
|
|
||||||
# scale_price :decimal(8, 2)
|
|
||||||
# created_on :datetime
|
|
||||||
# updated_on :datetime
|
|
||||||
# list :string(255)
|
|
||||||
#
|
|
||||||
|
|
||||||
require File.dirname(__FILE__) + '/../test_helper'
|
require File.dirname(__FILE__) + '/../test_helper'
|
||||||
|
|
||||||
class SharedArticleTest < Test::Unit::TestCase
|
class SharedArticleTest < Test::Unit::TestCase
|
||||||
|
|
|
@ -9,26 +9,3 @@ class SharedSupplierTest < Test::Unit::TestCase
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: suppliers
|
|
||||||
#
|
|
||||||
# id :integer(4) not null, primary key
|
|
||||||
# name :string(255) not null
|
|
||||||
# address :string(255) not null
|
|
||||||
# phone :string(255) not null
|
|
||||||
# phone2 :string(255)
|
|
||||||
# fax :string(255)
|
|
||||||
# email :string(255)
|
|
||||||
# url :string(255)
|
|
||||||
# delivery_days :string(255)
|
|
||||||
# note :string(255)
|
|
||||||
# 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)
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
|
@ -8,29 +8,3 @@ class StockArticleTest < ActiveSupport::TestCase
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: articles
|
|
||||||
#
|
|
||||||
# id :integer(4) not null, primary key
|
|
||||||
# name :string(255) default(""), not null
|
|
||||||
# supplier_id :integer(4) default(0), not null
|
|
||||||
# article_category_id :integer(4) default(0), not null
|
|
||||||
# unit :string(255) default(""), not null
|
|
||||||
# note :string(255)
|
|
||||||
# availability :boolean(1) default(TRUE), not null
|
|
||||||
# manufacturer :string(255)
|
|
||||||
# origin :string(255)
|
|
||||||
# shared_updated_on :datetime
|
|
||||||
# price :decimal(8, 2)
|
|
||||||
# tax :float
|
|
||||||
# deposit :decimal(8, 2) default(0.0)
|
|
||||||
# unit_quantity :integer(4) default(1), not null
|
|
||||||
# order_number :string(255)
|
|
||||||
# created_at :datetime
|
|
||||||
# updated_at :datetime
|
|
||||||
# deleted_at :datetime
|
|
||||||
# type :string(255)
|
|
||||||
# quantity :integer(4) default(0)
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
|
@ -7,16 +7,3 @@ class StockChangeTest < ActiveSupport::TestCase
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: stock_changes
|
|
||||||
#
|
|
||||||
# id :integer(4) not null, primary key
|
|
||||||
# delivery_id :integer(4)
|
|
||||||
# order_id :integer(4)
|
|
||||||
# stock_article_id :integer(4)
|
|
||||||
# quantity :integer(4) default(0)
|
|
||||||
# created_at :datetime
|
|
||||||
# stock_taking_id :integer(4)
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
|
@ -7,13 +7,3 @@ class StockTakingTest < ActiveSupport::TestCase
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: stock_takings
|
|
||||||
#
|
|
||||||
# id :integer(4) not null, primary key
|
|
||||||
# date :date
|
|
||||||
# note :text
|
|
||||||
# created_at :datetime
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
|
@ -21,25 +21,3 @@ class SupplierTest < Test::Unit::TestCase
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: suppliers
|
|
||||||
#
|
|
||||||
# id :integer(4) not null, primary key
|
|
||||||
# name :string(255) default(""), not null
|
|
||||||
# address :string(255) default(""), not null
|
|
||||||
# phone :string(255) default(""), not null
|
|
||||||
# phone2 :string(255)
|
|
||||||
# fax :string(255)
|
|
||||||
# email :string(255)
|
|
||||||
# url :string(255)
|
|
||||||
# contact_person :string(255)
|
|
||||||
# customer_number :string(255)
|
|
||||||
# delivery_days :string(255)
|
|
||||||
# order_howto :string(255)
|
|
||||||
# note :string(255)
|
|
||||||
# shared_supplier_id :integer(4)
|
|
||||||
# min_order_quantity :string(255)
|
|
||||||
# deleted_at :datetime
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
|
@ -11,21 +11,3 @@ end
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: tasks
|
|
||||||
#
|
|
||||||
# id :integer(4) not null, primary key
|
|
||||||
# name :string(255) default(""), not null
|
|
||||||
# description :string(255)
|
|
||||||
# due_date :date
|
|
||||||
# done :boolean(1) default(FALSE)
|
|
||||||
# workgroup_id :integer(4)
|
|
||||||
# assigned :boolean(1) default(FALSE)
|
|
||||||
# created_on :datetime not null
|
|
||||||
# updated_on :datetime not null
|
|
||||||
# required_users :integer(4) default(1)
|
|
||||||
# weekly :boolean(1)
|
|
||||||
# duration :integer(4) default(1)
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
|
@ -32,21 +32,3 @@ class UserTest < Test::Unit::TestCase
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: users
|
|
||||||
#
|
|
||||||
# id :integer(4) not null, primary key
|
|
||||||
# nick :string(255) default(""), not null
|
|
||||||
# password_hash :string(255) default(""), not null
|
|
||||||
# password_salt :string(255) default(""), not null
|
|
||||||
# first_name :string(255) default(""), not null
|
|
||||||
# last_name :string(255) default(""), not null
|
|
||||||
# email :string(255) default(""), not null
|
|
||||||
# phone :string(255)
|
|
||||||
# created_on :datetime not null
|
|
||||||
# reset_password_token :string(255)
|
|
||||||
# reset_password_expires :datetime
|
|
||||||
# last_login :datetime
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
|
@ -10,32 +10,3 @@ end
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: groups
|
|
||||||
#
|
|
||||||
# id :integer(4) 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(1) default(FALSE), not null
|
|
||||||
# role_suppliers :boolean(1) default(FALSE), not null
|
|
||||||
# role_article_meta :boolean(1) default(FALSE), not null
|
|
||||||
# role_finance :boolean(1) default(FALSE), not null
|
|
||||||
# role_orders :boolean(1) default(FALSE), not null
|
|
||||||
# weekly_task :boolean(1) default(FALSE)
|
|
||||||
# weekday :integer(4)
|
|
||||||
# task_name :string(255)
|
|
||||||
# task_description :string(255)
|
|
||||||
# task_required_users :integer(4) default(1)
|
|
||||||
# deleted_at :datetime
|
|
||||||
# contact_person :string(255)
|
|
||||||
# contact_phone :string(255)
|
|
||||||
# contact_address :string(255)
|
|
||||||
# stats :text
|
|
||||||
# task_duration :integer(4) default(1)
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue