fix database migrations
This commit is contained in:
parent
94e100b78b
commit
133b832d78
2 changed files with 25 additions and 19 deletions
22
db/schema.rb
22
db/schema.rb
|
@ -11,7 +11,7 @@
|
||||||
#
|
#
|
||||||
# It's strongly recommended that you check this file into your version control system.
|
# It's strongly recommended that you check this file into your version control system.
|
||||||
|
|
||||||
ActiveRecord::Schema.define(version: 20140102170431) do
|
ActiveRecord::Schema.define(version: 20140318173000) do
|
||||||
|
|
||||||
create_table "article_categories", force: true do |t|
|
create_table "article_categories", force: true do |t|
|
||||||
t.string "name", default: "", null: false
|
t.string "name", default: "", null: false
|
||||||
|
@ -22,9 +22,9 @@ ActiveRecord::Schema.define(version: 20140102170431) do
|
||||||
|
|
||||||
create_table "article_prices", force: true do |t|
|
create_table "article_prices", force: true do |t|
|
||||||
t.integer "article_id"
|
t.integer "article_id"
|
||||||
t.decimal "price", precision: 8, scale: 2, default: 0.0, null: false
|
t.decimal "price", precision: 8, scale: 2, default: 0, null: false
|
||||||
t.decimal "tax", precision: 8, scale: 2, default: 0.0, null: false
|
t.decimal "tax", precision: 8, scale: 2, default: 0, null: false
|
||||||
t.decimal "deposit", precision: 8, scale: 2, default: 0.0, null: false
|
t.decimal "deposit", precision: 8, scale: 2, default: 0, null: false
|
||||||
t.integer "unit_quantity"
|
t.integer "unit_quantity"
|
||||||
t.datetime "created_at"
|
t.datetime "created_at"
|
||||||
end
|
end
|
||||||
|
@ -43,7 +43,7 @@ ActiveRecord::Schema.define(version: 20140102170431) do
|
||||||
t.datetime "shared_updated_on"
|
t.datetime "shared_updated_on"
|
||||||
t.decimal "price", precision: 8, scale: 2
|
t.decimal "price", precision: 8, scale: 2
|
||||||
t.float "tax"
|
t.float "tax"
|
||||||
t.decimal "deposit", precision: 8, scale: 2, default: 0.0
|
t.decimal "deposit", precision: 8, scale: 2, default: 0
|
||||||
t.integer "unit_quantity", default: 1, null: false
|
t.integer "unit_quantity", default: 1, null: false
|
||||||
t.string "order_number"
|
t.string "order_number"
|
||||||
t.datetime "created_at"
|
t.datetime "created_at"
|
||||||
|
@ -89,7 +89,7 @@ ActiveRecord::Schema.define(version: 20140102170431) do
|
||||||
|
|
||||||
create_table "financial_transactions", force: true do |t|
|
create_table "financial_transactions", force: true do |t|
|
||||||
t.integer "ordergroup_id", default: 0, null: false
|
t.integer "ordergroup_id", default: 0, null: false
|
||||||
t.decimal "amount", precision: 8, scale: 2, default: 0.0, null: false
|
t.decimal "amount", precision: 8, scale: 2, default: 0, null: false
|
||||||
t.text "note", null: false
|
t.text "note", null: false
|
||||||
t.integer "user_id", default: 0, null: false
|
t.integer "user_id", default: 0, null: false
|
||||||
t.datetime "created_on", null: false
|
t.datetime "created_on", null: false
|
||||||
|
@ -123,7 +123,7 @@ ActiveRecord::Schema.define(version: 20140102170431) do
|
||||||
create_table "group_orders", force: true do |t|
|
create_table "group_orders", force: true do |t|
|
||||||
t.integer "ordergroup_id", default: 0, null: false
|
t.integer "ordergroup_id", default: 0, null: false
|
||||||
t.integer "order_id", default: 0, null: false
|
t.integer "order_id", default: 0, null: false
|
||||||
t.decimal "price", precision: 8, scale: 2, default: 0.0, null: false
|
t.decimal "price", precision: 8, scale: 2, default: 0, null: false
|
||||||
t.integer "lock_version", default: 0, null: false
|
t.integer "lock_version", default: 0, null: false
|
||||||
t.datetime "updated_on", null: false
|
t.datetime "updated_on", null: false
|
||||||
t.integer "updated_by_user_id"
|
t.integer "updated_by_user_id"
|
||||||
|
@ -137,7 +137,7 @@ ActiveRecord::Schema.define(version: 20140102170431) do
|
||||||
t.string "type", default: "", null: false
|
t.string "type", default: "", null: false
|
||||||
t.string "name", default: "", null: false
|
t.string "name", default: "", null: false
|
||||||
t.string "description"
|
t.string "description"
|
||||||
t.decimal "account_balance", precision: 8, scale: 2, default: 0.0, null: false
|
t.decimal "account_balance", precision: 8, scale: 2, default: 0, null: false
|
||||||
t.datetime "created_on", null: false
|
t.datetime "created_on", null: false
|
||||||
t.boolean "role_admin", default: false, null: false
|
t.boolean "role_admin", default: false, null: false
|
||||||
t.boolean "role_suppliers", default: false, null: false
|
t.boolean "role_suppliers", default: false, null: false
|
||||||
|
@ -173,9 +173,9 @@ ActiveRecord::Schema.define(version: 20140102170431) do
|
||||||
t.date "date"
|
t.date "date"
|
||||||
t.date "paid_on"
|
t.date "paid_on"
|
||||||
t.text "note"
|
t.text "note"
|
||||||
t.decimal "amount", precision: 8, scale: 2, default: 0.0, null: false
|
t.decimal "amount", precision: 8, scale: 2, default: 0, null: false
|
||||||
t.decimal "deposit", precision: 8, scale: 2, default: 0.0, null: false
|
t.decimal "deposit", precision: 8, scale: 2, default: 0, null: false
|
||||||
t.decimal "deposit_credit", precision: 8, scale: 2, default: 0.0, null: false
|
t.decimal "deposit_credit", precision: 8, scale: 2, default: 0, null: false
|
||||||
t.datetime "created_at"
|
t.datetime "created_at"
|
||||||
t.datetime "updated_at"
|
t.datetime "updated_at"
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,3 +1,9 @@
|
||||||
|
# This migration has a ".skip" suffix to prevent it from being recognised as
|
||||||
|
# a migration. While this migration is relevant for the messages plugin, it
|
||||||
|
# was already included in stock foodsoft when messages were part of its core.
|
||||||
|
# `rake db:install:migrations` would install this migration, resulting in an
|
||||||
|
# attempt to create an already existing messages table.
|
||||||
|
#
|
||||||
# extracted from 20090120184410_road_to_version_three.rb
|
# extracted from 20090120184410_road_to_version_three.rb
|
||||||
class CreateMessages < ActiveRecord::Migration
|
class CreateMessages < ActiveRecord::Migration
|
||||||
def self.up
|
def self.up
|
Loading…
Reference in a new issue