New annotation, because of db switch to mysql.
Background: sqlite has some problems with decimal option.
This commit is contained in:
parent
c2496aa4fd
commit
46450cebef
60 changed files with 623 additions and 568 deletions
19
test/fixtures/article_categories.yml
vendored
19
test/fixtures/article_categories.yml
vendored
|
|
@ -1,12 +1,3 @@
|
|||
# == Schema Information
|
||||
#
|
||||
# Table name: article_categories
|
||||
#
|
||||
# id :integer not null, primary key
|
||||
# name :string(255) default(""), not null
|
||||
# description :string(255)
|
||||
#
|
||||
|
||||
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
|
||||
fruits:
|
||||
name: Fruits
|
||||
|
|
@ -15,3 +6,13 @@ vegi:
|
|||
name: Vegetables
|
||||
other:
|
||||
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)
|
||||
#
|
||||
|
||||
|
|
|
|||
27
test/fixtures/article_prices.yml
vendored
27
test/fixtures/article_prices.yml
vendored
|
|
@ -1,16 +1,3 @@
|
|||
# == Schema Information
|
||||
#
|
||||
# Table name: article_prices
|
||||
#
|
||||
# id :integer not null, primary key
|
||||
# article_id :integer
|
||||
# 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
|
||||
# created_at :datetime
|
||||
#
|
||||
|
||||
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
|
||||
|
||||
banana1:
|
||||
|
|
@ -48,3 +35,17 @@ applejuice1:
|
|||
unit_quantity: 1
|
||||
deposit: 0.15
|
||||
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
|
||||
#
|
||||
|
||||
|
|
|
|||
1
test/fixtures/articles.yml
vendored
1
test/fixtures/articles.yml
vendored
|
|
@ -80,6 +80,7 @@ applejuice:
|
|||
|
||||
|
||||
|
||||
|
||||
# == Schema Information
|
||||
#
|
||||
# Table name: articles
|
||||
|
|
|
|||
9
test/fixtures/assignments.yml
vendored
9
test/fixtures/assignments.yml
vendored
|
|
@ -1,12 +1,13 @@
|
|||
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
|
||||
|
||||
|
||||
# == 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)
|
||||
# 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)
|
||||
#
|
||||
|
||||
|
|
|
|||
25
test/fixtures/financial_transactions.yml
vendored
25
test/fixtures/financial_transactions.yml
vendored
|
|
@ -1,15 +1,3 @@
|
|||
# == Schema Information
|
||||
#
|
||||
# Table name: financial_transactions
|
||||
#
|
||||
# id :integer not null, primary key
|
||||
# ordergroup_id :integer default(0), not null
|
||||
# amount :decimal(8, 2) default(0.0), not null
|
||||
# note :text not null
|
||||
# user_id :integer default(0), not null
|
||||
# created_on :datetime not null
|
||||
#
|
||||
|
||||
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
|
||||
bananas1:
|
||||
ordergroup: bananas
|
||||
|
|
@ -23,3 +11,16 @@ bananas2:
|
|||
amount: 100.00
|
||||
note: Paying in from <%= 1.weeks.ago.strftime("%d.%m.%Y") %>
|
||||
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
|
||||
#
|
||||
|
||||
|
|
|
|||
13
test/fixtures/group_order_article_quantities.yml
vendored
13
test/fixtures/group_order_article_quantities.yml
vendored
|
|
@ -1,13 +1,14 @@
|
|||
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
|
||||
|
||||
|
||||
# == Schema Information
|
||||
#
|
||||
# Table name: group_order_article_quantities
|
||||
#
|
||||
# id :integer not null, primary key
|
||||
# group_order_article_id :integer default(0), not null
|
||||
# quantity :integer default(0)
|
||||
# tolerance :integer default(0)
|
||||
# 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
|
||||
#
|
||||
|
||||
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
|
||||
|
||||
|
|
|
|||
23
test/fixtures/groups.yml
vendored
23
test/fixtures/groups.yml
vendored
|
|
@ -19,32 +19,33 @@ bananas:
|
|||
|
||||
|
||||
|
||||
|
||||
# == Schema Information
|
||||
#
|
||||
# Table name: groups
|
||||
#
|
||||
# id :integer not null, primary key
|
||||
# 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(, ) default(0.0), not null
|
||||
# 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
|
||||
# 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 default(1)
|
||||
# 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 default(1)
|
||||
# task_duration :integer(4) default(1)
|
||||
#
|
||||
|
||||
|
|
|
|||
19
test/fixtures/memberships.yml
vendored
19
test/fixtures/memberships.yml
vendored
|
|
@ -1,12 +1,3 @@
|
|||
# == Schema Information
|
||||
#
|
||||
# Table name: memberships
|
||||
#
|
||||
# id :integer not null, primary key
|
||||
# group_id :integer default(0), not null
|
||||
# user_id :integer default(0), not null
|
||||
#
|
||||
|
||||
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
|
||||
first:
|
||||
group: admins
|
||||
|
|
@ -15,3 +6,13 @@ second:
|
|||
group: bananas
|
||||
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
|
||||
#
|
||||
|
||||
|
|
|
|||
9
test/fixtures/messages.yml
vendored
9
test/fixtures/messages.yml
vendored
|
|
@ -1,17 +1,18 @@
|
|||
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
|
||||
|
||||
|
||||
|
||||
# == Schema Information
|
||||
#
|
||||
# Table name: messages
|
||||
#
|
||||
# id :integer not null, primary key
|
||||
# sender_id :integer
|
||||
# id :integer(4) not null, primary key
|
||||
# sender_id :integer(4)
|
||||
# recipients_ids :text
|
||||
# subject :string(255) not null
|
||||
# body :text
|
||||
# email_state :integer default(0), not null
|
||||
# private :boolean default(FALSE)
|
||||
# email_state :integer(4) default(0), not null
|
||||
# private :boolean(1) default(FALSE)
|
||||
# created_at :datetime
|
||||
#
|
||||
|
||||
|
|
|
|||
9
test/fixtures/order_comments.yml
vendored
9
test/fixtures/order_comments.yml
vendored
|
|
@ -1,12 +1,13 @@
|
|||
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
|
||||
|
||||
# == Schema Information
|
||||
#
|
||||
# Table name: order_comments
|
||||
#
|
||||
# id :integer not null, primary key
|
||||
# order_id :integer
|
||||
# user_id :integer
|
||||
# id :integer(4) not null, primary key
|
||||
# order_id :integer(4)
|
||||
# user_id :integer(4)
|
||||
# text :text
|
||||
# created_at :datetime
|
||||
#
|
||||
|
||||
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
|
||||
|
|
|
|||
11
test/fixtures/orders.yml
vendored
11
test/fixtures/orders.yml
vendored
|
|
@ -1,16 +1,17 @@
|
|||
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
|
||||
|
||||
# == Schema Information
|
||||
#
|
||||
# Table name: orders
|
||||
#
|
||||
# id :integer not null, primary key
|
||||
# supplier_id :integer
|
||||
# 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 default(0), not null
|
||||
# updated_by_user_id :integer
|
||||
# lock_version :integer(4) default(0), not null
|
||||
# updated_by_user_id :integer(4)
|
||||
# foodcoop_result :decimal(8, 2)
|
||||
#
|
||||
|
||||
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
|
||||
|
|
|
|||
11
test/fixtures/pages.yml
vendored
11
test/fixtures/pages.yml
vendored
|
|
@ -10,18 +10,19 @@ two:
|
|||
body: MyText
|
||||
permalink: MyString
|
||||
|
||||
|
||||
# == Schema Information
|
||||
#
|
||||
# Table name: pages
|
||||
#
|
||||
# id :integer not null, primary key
|
||||
# id :integer(4) not null, primary key
|
||||
# title :string(255)
|
||||
# body :text
|
||||
# permalink :string(255)
|
||||
# lock_version :integer default(0)
|
||||
# updated_by :integer
|
||||
# redirect :integer
|
||||
# parent_id :integer
|
||||
# lock_version :integer(4) default(0)
|
||||
# updated_by :integer(4)
|
||||
# redirect :integer(4)
|
||||
# parent_id :integer(4)
|
||||
# created_at :datetime
|
||||
# updated_at :datetime
|
||||
#
|
||||
|
|
|
|||
15
test/fixtures/stock_changes.yml
vendored
15
test/fixtures/stock_changes.yml
vendored
|
|
@ -1,14 +1,15 @@
|
|||
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
|
||||
|
||||
# == Schema Information
|
||||
#
|
||||
# Table name: stock_changes
|
||||
#
|
||||
# id :integer not null, primary key
|
||||
# delivery_id :integer
|
||||
# order_id :integer
|
||||
# stock_article_id :integer
|
||||
# quantity :integer default(0)
|
||||
# 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
|
||||
# stock_taking_id :integer(4)
|
||||
#
|
||||
|
||||
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
|
||||
|
|
|
|||
7
test/fixtures/stock_takings.yml
vendored
7
test/fixtures/stock_takings.yml
vendored
|
|
@ -1,12 +1,13 @@
|
|||
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
|
||||
|
||||
|
||||
# == Schema Information
|
||||
#
|
||||
# Table name: stock_takings
|
||||
#
|
||||
# id :integer not null, primary key
|
||||
# id :integer(4) not null, primary key
|
||||
# date :date
|
||||
# note :text
|
||||
# created_at :datetime
|
||||
#
|
||||
|
||||
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
|
||||
|
||||
|
|
|
|||
2
test/fixtures/suppliers.yml
vendored
2
test/fixtures/suppliers.yml
vendored
|
|
@ -45,6 +45,8 @@ terra:
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
# == Schema Information
|
||||
#
|
||||
# Table name: suppliers
|
||||
|
|
|
|||
15
test/fixtures/tasks.yml
vendored
15
test/fixtures/tasks.yml
vendored
|
|
@ -1,21 +1,22 @@
|
|||
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
|
||||
|
||||
|
||||
|
||||
# == Schema Information
|
||||
#
|
||||
# Table name: tasks
|
||||
#
|
||||
# id :integer not null, primary key
|
||||
# id :integer(4) 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)
|
||||
# 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 default(1)
|
||||
# weekly :boolean
|
||||
# duration :integer default(1)
|
||||
# required_users :integer(4) default(1)
|
||||
# weekly :boolean(1)
|
||||
# duration :integer(4) default(1)
|
||||
#
|
||||
|
||||
|
|
|
|||
37
test/fixtures/users.yml
vendored
37
test/fixtures/users.yml
vendored
|
|
@ -1,21 +1,3 @@
|
|||
# == Schema Information
|
||||
#
|
||||
# Table name: users
|
||||
#
|
||||
# id :integer 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
|
||||
#
|
||||
|
||||
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
|
||||
admin:
|
||||
nick: admin
|
||||
|
|
@ -33,3 +15,22 @@ test:
|
|||
password_hash: 5549cd54032a72435037893b02d95ebef13cdc57
|
||||
password_salt: DxnbIF1h
|
||||
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
|
||||
#
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue