shoppe 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (137) hide show
  1. data/MIT-LICENSE +20 -0
  2. data/Rakefile +18 -0
  3. data/app/assets/images/shoppe/document.svg +1 -0
  4. data/app/assets/images/shoppe/logo.svg +47 -0
  5. data/app/assets/images/shoppe/shoppe.svg +25 -0
  6. data/app/assets/images/shoppe/square.svg +9 -0
  7. data/app/assets/images/shoppe/statuses/accepted.svg +14 -0
  8. data/app/assets/images/shoppe/statuses/paid.svg +16 -0
  9. data/app/assets/images/shoppe/statuses/received.svg +15 -0
  10. data/app/assets/images/shoppe/statuses/rejected.svg +14 -0
  11. data/app/assets/images/shoppe/statuses/shipped.svg +14 -0
  12. data/app/assets/javascripts/shoppe/application.coffee +11 -0
  13. data/app/assets/stylesheets/shoppe/application.scss +302 -0
  14. data/app/assets/stylesheets/shoppe/elements.scss +73 -0
  15. data/app/assets/stylesheets/shoppe/reset.scss +93 -0
  16. data/app/assets/stylesheets/shoppe/sub.scss +90 -0
  17. data/app/assets/stylesheets/shoppe/variables.scss +1 -0
  18. data/app/controllers/shoppe/application_controller.rb +39 -0
  19. data/app/controllers/shoppe/attachments_controller.rb +12 -0
  20. data/app/controllers/shoppe/dashboard_controller.rb +7 -0
  21. data/app/controllers/shoppe/delivery_service_prices_controller.rb +42 -0
  22. data/app/controllers/shoppe/delivery_services_controller.rb +45 -0
  23. data/app/controllers/shoppe/orders_controller.rb +36 -0
  24. data/app/controllers/shoppe/product_categories_controller.rb +45 -0
  25. data/app/controllers/shoppe/products_controller.rb +45 -0
  26. data/app/controllers/shoppe/sessions_controller.rb +31 -0
  27. data/app/controllers/shoppe/users_controller.rb +46 -0
  28. data/app/helpers/shoppe/application_helper.rb +10 -0
  29. data/app/helpers/shoppe/shoppe_helper.rb +28 -0
  30. data/app/mailers/shoppe/order_mailer.rb +25 -0
  31. data/app/mailers/shoppe/user_mailer.rb +10 -0
  32. data/app/models/shoppe/delivery_service.rb +22 -0
  33. data/app/models/shoppe/delivery_service_price.rb +19 -0
  34. data/app/models/shoppe/order.rb +325 -0
  35. data/app/models/shoppe/order_item.rb +113 -0
  36. data/app/models/shoppe/product.rb +56 -0
  37. data/app/models/shoppe/product_category.rb +22 -0
  38. data/app/models/shoppe/user.rb +41 -0
  39. data/app/views/layouts/shoppe/application.html.haml +35 -0
  40. data/app/views/layouts/shoppe/sub.html.haml +10 -0
  41. data/app/views/shoppe/delivery_service_prices/_form.html.haml +28 -0
  42. data/app/views/shoppe/delivery_service_prices/edit.html.haml +5 -0
  43. data/app/views/shoppe/delivery_service_prices/index.html.haml +22 -0
  44. data/app/views/shoppe/delivery_service_prices/new.html.haml +5 -0
  45. data/app/views/shoppe/delivery_services/_form.html.haml +35 -0
  46. data/app/views/shoppe/delivery_services/edit.html.haml +5 -0
  47. data/app/views/shoppe/delivery_services/index.html.haml +24 -0
  48. data/app/views/shoppe/delivery_services/new.html.haml +5 -0
  49. data/app/views/shoppe/order_mailer/accepted.text.erb +12 -0
  50. data/app/views/shoppe/order_mailer/received.text.erb +12 -0
  51. data/app/views/shoppe/order_mailer/rejected.text.erb +10 -0
  52. data/app/views/shoppe/order_mailer/shipped.text.erb +16 -0
  53. data/app/views/shoppe/orders/index.html.haml +60 -0
  54. data/app/views/shoppe/orders/show.html.haml +117 -0
  55. data/app/views/shoppe/product_categories/_form.html.haml +25 -0
  56. data/app/views/shoppe/product_categories/edit.html.haml +6 -0
  57. data/app/views/shoppe/product_categories/index.html.haml +15 -0
  58. data/app/views/shoppe/product_categories/new.html.haml +5 -0
  59. data/app/views/shoppe/products/_form.html.haml +71 -0
  60. data/app/views/shoppe/products/edit.html.haml +5 -0
  61. data/app/views/shoppe/products/index.html.haml +27 -0
  62. data/app/views/shoppe/products/new.html.haml +5 -0
  63. data/app/views/shoppe/sessions/new.html.haml +12 -0
  64. data/app/views/shoppe/sessions/reset.html.haml +11 -0
  65. data/app/views/shoppe/user_mailer/new_password.text.erb +9 -0
  66. data/app/views/shoppe/users/_form.html.haml +26 -0
  67. data/app/views/shoppe/users/edit.html.haml +5 -0
  68. data/app/views/shoppe/users/index.html.haml +17 -0
  69. data/app/views/shoppe/users/new.html.haml +5 -0
  70. data/config/routes.rb +24 -0
  71. data/config/shoppe.example.yml +6 -0
  72. data/db/migrate/20130926094549_create_shoppe_initial_schema.rb +116 -0
  73. data/db/seeds.rb +85 -0
  74. data/db/seeds_data/poe400.jpg +0 -0
  75. data/db/seeds_data/snom-870-blk.jpg +0 -0
  76. data/db/seeds_data/snom-870-grey.jpg +0 -0
  77. data/db/seeds_data/snom-mm2.jpg +0 -0
  78. data/db/seeds_data/spa303.jpg +0 -0
  79. data/db/seeds_data/t18p.jpg +0 -0
  80. data/db/seeds_data/t20p.jpg +0 -0
  81. data/db/seeds_data/t22p.jpg +0 -0
  82. data/db/seeds_data/t26p.jpg +0 -0
  83. data/db/seeds_data/t41pn.jpg +0 -0
  84. data/db/seeds_data/t46gn.jpg +0 -0
  85. data/db/seeds_data/w52p.jpg +0 -0
  86. data/db/seeds_data/yhs32.jpg +0 -0
  87. data/lib/shoppe.rb +41 -0
  88. data/lib/shoppe/engine.rb +35 -0
  89. data/lib/shoppe/errors/inappropriate_delivery_service.rb +11 -0
  90. data/lib/shoppe/errors/insufficient_stock_to_fulfil.rb +19 -0
  91. data/lib/shoppe/errors/not_enough_stock.rb +19 -0
  92. data/lib/shoppe/errors/payment_declined.rb +15 -0
  93. data/lib/shoppe/setup_generator.rb +14 -0
  94. data/lib/shoppe/version.rb +3 -0
  95. data/lib/tasks/shoppe.rake +17 -0
  96. data/test/dummy/README.rdoc +28 -0
  97. data/test/dummy/Rakefile +6 -0
  98. data/test/dummy/app/assets/javascripts/application.js +13 -0
  99. data/test/dummy/app/assets/stylesheets/application.css +13 -0
  100. data/test/dummy/app/controllers/application_controller.rb +5 -0
  101. data/test/dummy/app/helpers/application_helper.rb +2 -0
  102. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  103. data/test/dummy/bin/bundle +3 -0
  104. data/test/dummy/bin/rails +4 -0
  105. data/test/dummy/bin/rake +4 -0
  106. data/test/dummy/config.ru +4 -0
  107. data/test/dummy/config/application.rb +23 -0
  108. data/test/dummy/config/boot.rb +5 -0
  109. data/test/dummy/config/database.yml +25 -0
  110. data/test/dummy/config/environment.rb +5 -0
  111. data/test/dummy/config/environments/development.rb +29 -0
  112. data/test/dummy/config/environments/production.rb +80 -0
  113. data/test/dummy/config/environments/test.rb +36 -0
  114. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  115. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  116. data/test/dummy/config/initializers/inflections.rb +16 -0
  117. data/test/dummy/config/initializers/mime_types.rb +5 -0
  118. data/test/dummy/config/initializers/secret_token.rb +12 -0
  119. data/test/dummy/config/initializers/session_store.rb +3 -0
  120. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  121. data/test/dummy/config/locales/en.yml +23 -0
  122. data/test/dummy/config/routes.rb +3 -0
  123. data/test/dummy/config/shoppe.yml +7 -0
  124. data/test/dummy/db/development.sqlite3 +0 -0
  125. data/test/dummy/db/schema.rb +119 -0
  126. data/test/dummy/db/test.sqlite3 +0 -0
  127. data/test/dummy/log/development.log +893 -0
  128. data/test/dummy/log/test.log +6397 -0
  129. data/test/dummy/public/404.html +58 -0
  130. data/test/dummy/public/422.html +58 -0
  131. data/test/dummy/public/500.html +57 -0
  132. data/test/dummy/public/favicon.ico +0 -0
  133. data/test/models/shoppe/basket_test.rb +26 -0
  134. data/test/models/shoppe/user_test.rb +37 -0
  135. data/test/shoppe_test.rb +17 -0
  136. data/test/test_helper.rb +4 -0
  137. metadata +453 -0
@@ -0,0 +1,3 @@
1
+ Dummy::Application.routes.draw do
2
+ mount Shoppe::Engine, :at => '/shoppe'
3
+ end
@@ -0,0 +1,7 @@
1
+ # !! Remember to restart your server after making changes to this file.
2
+
3
+ store_name: Example Store
4
+ email_address: sales@example.com
5
+ storefront_theme: default
6
+ currency_unit: '£'
7
+ tax_name: VAT
@@ -0,0 +1,119 @@
1
+ # encoding: UTF-8
2
+ # This file is auto-generated from the current state of the database. Instead
3
+ # of editing this file, please use the migrations feature of Active Record to
4
+ # incrementally modify your database, and then regenerate this schema definition.
5
+ #
6
+ # Note that this schema.rb definition is the authoritative source for your
7
+ # database schema. If you need to create the application database on another
8
+ # system, you should be using db:schema:load, not running all the migrations
9
+ # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
+ # you'll amass, the slower it'll run and the greater likelihood for issues).
11
+ #
12
+ # It's strongly recommended that you check this file into your version control system.
13
+
14
+ ActiveRecord::Schema.define(version: 20131006144849) do
15
+
16
+ create_table "shoppe_delivery_service_prices", force: true do |t|
17
+ t.integer "delivery_service_id"
18
+ t.string "code"
19
+ t.decimal "price", precision: 8, scale: 2
20
+ t.decimal "tax_rate", precision: 8, scale: 2
21
+ t.decimal "min_weight", precision: 8, scale: 2
22
+ t.decimal "max_weight", precision: 8, scale: 2
23
+ t.datetime "created_at"
24
+ t.datetime "updated_at"
25
+ end
26
+
27
+ create_table "shoppe_delivery_services", force: true do |t|
28
+ t.string "name"
29
+ t.string "code"
30
+ t.boolean "default", default: false
31
+ t.boolean "active", default: true
32
+ t.datetime "created_at"
33
+ t.datetime "updated_at"
34
+ t.string "courier"
35
+ t.string "tracking_url"
36
+ end
37
+
38
+ create_table "shoppe_order_items", force: true do |t|
39
+ t.integer "order_id"
40
+ t.integer "product_id"
41
+ t.integer "quantity", default: 1
42
+ t.decimal "unit_price", precision: 8, scale: 2
43
+ t.decimal "tax_amount", precision: 8, scale: 2
44
+ t.decimal "tax_rate", precision: 8, scale: 2
45
+ t.decimal "weight", precision: 8, scale: 3, default: 0.0
46
+ t.datetime "created_at"
47
+ t.datetime "updated_at"
48
+ end
49
+
50
+ create_table "shoppe_orders", force: true do |t|
51
+ t.string "token"
52
+ t.string "first_name"
53
+ t.string "last_name"
54
+ t.string "company"
55
+ t.string "address1"
56
+ t.string "address2"
57
+ t.string "address3"
58
+ t.string "address4"
59
+ t.string "postcode"
60
+ t.string "email_address"
61
+ t.string "phone_number"
62
+ t.string "status"
63
+ t.datetime "received_at"
64
+ t.datetime "accepted_at"
65
+ t.datetime "shipped_at"
66
+ t.datetime "created_at"
67
+ t.datetime "updated_at"
68
+ t.integer "delivery_service_id"
69
+ t.decimal "delivery_price", precision: 8, scale: 2
70
+ t.decimal "delivery_tax_rate", precision: 8, scale: 2
71
+ t.decimal "delivery_tax_amount", precision: 8, scale: 2
72
+ t.datetime "paid_at"
73
+ t.integer "accepted_by"
74
+ t.integer "shipped_by"
75
+ t.string "consignment_number"
76
+ t.datetime "rejected_at"
77
+ t.integer "rejected_by"
78
+ t.string "ip_address"
79
+ t.string "country"
80
+ t.string "payment_reference"
81
+ t.string "payment_method"
82
+ end
83
+
84
+ create_table "shoppe_product_categories", force: true do |t|
85
+ t.string "name"
86
+ t.string "permalink"
87
+ t.text "description"
88
+ t.datetime "created_at"
89
+ t.datetime "updated_at"
90
+ end
91
+
92
+ create_table "shoppe_products", force: true do |t|
93
+ t.integer "product_category_id"
94
+ t.string "title"
95
+ t.string "sku"
96
+ t.string "permalink"
97
+ t.text "description"
98
+ t.text "short_description"
99
+ t.boolean "active", default: true
100
+ t.decimal "weight", precision: 8, scale: 3, default: 0.0
101
+ t.decimal "price", precision: 8, scale: 2, default: 0.0
102
+ t.decimal "tax_rate", precision: 8, scale: 2, default: 0.0
103
+ t.integer "stock", default: 0
104
+ t.datetime "created_at"
105
+ t.datetime "updated_at"
106
+ t.boolean "featured", default: false
107
+ t.text "in_the_box"
108
+ end
109
+
110
+ create_table "shoppe_users", force: true do |t|
111
+ t.string "first_name"
112
+ t.string "last_name"
113
+ t.string "email_address"
114
+ t.string "password_digest"
115
+ t.datetime "created_at"
116
+ t.datetime "updated_at"
117
+ end
118
+
119
+ end
File without changes
@@ -0,0 +1,893 @@
1
+  (1.6ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
2
+  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
3
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
4
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
5
+ Migrating to CreateProductCategories (20130926094549)
6
+  (0.0ms) begin transaction
7
+  (0.5ms) CREATE TABLE "shoppe_product_categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "permalink" varchar(255), "description" text, "created_at" datetime, "updated_at" datetime) 
8
+ SQL (1.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130926094549"]]
9
+  (2.2ms) commit transaction
10
+ Migrating to CreateProducts (20130926094551)
11
+  (0.1ms) begin transaction
12
+  (0.4ms) CREATE TABLE "shoppe_products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "product_category_id" integer, "title" varchar(255), "sku" varchar(255), "permalink" varchar(255), "description" text, "short_description" text, "active" boolean DEFAULT 't', "weight" decimal(8,3) DEFAULT 0.0, "price" decimal(8,2) DEFAULT 0.0, "vat_rate" decimal(8,2) DEFAULT 0.0, "stock" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime) 
13
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130926094551"]]
14
+  (1.0ms) commit transaction
15
+ Migrating to CreateOrders (20130926094647)
16
+  (0.1ms) begin transaction
17
+  (0.3ms) CREATE TABLE "shoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "approved_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime) 
18
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130926094647"]]
19
+  (0.9ms) commit transaction
20
+ Migrating to CreateOrderItems (20130926094654)
21
+  (0.1ms) begin transaction
22
+  (0.3ms) CREATE TABLE "shoppe_order_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "order_id" integer, "parent_type" varchar(255), "parent_id" integer, "quantity" integer DEFAULT 1, "unit_price" decimal(8,2), "vat_amount" decimal(8,2), "vat_rate" decimal(8,2), "weight" decimal(8,3) DEFAULT 0, "created_at" datetime, "updated_at" datetime) 
23
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130926094654"]]
24
+  (0.9ms) commit transaction
25
+ Migrating to CreateImages (20130926104450)
26
+  (0.1ms) begin transaction
27
+  (0.3ms) CREATE TABLE "shoppe_attachments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "parent_id" integer, "parent_type" varchar(255), "token" varchar(255), "role" varchar(255), "file_name" varchar(255), "file_type" varchar(255), "data" blob(10485760), "created_at" datetime, "updated_at" datetime) 
28
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130926104450"]]
29
+  (0.8ms) commit transaction
30
+ Migrating to CreateUsers (20130926151718)
31
+  (0.1ms) begin transaction
32
+  (0.4ms) CREATE TABLE "shoppe_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "email_address" varchar(255), "password_digest" varchar(255), "created_at" datetime, "updated_at" datetime) 
33
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130926151718"]]
34
+  (1.1ms) commit transaction
35
+ Migrating to AddCardTokenToOrders (20130927113134)
36
+  (0.1ms) begin transaction
37
+  (0.8ms) ALTER TABLE "shoppe_orders" ADD "stripe_customer_token" varchar(255)
38
+  (0.1ms) ALTER TABLE "shoppe_orders" ADD "stripe_payment_token" varchar(255)
39
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130927113134"]]
40
+  (1.0ms) commit transaction
41
+ Migrating to CreateDeliveryServices (20130927130022)
42
+  (0.1ms) begin transaction
43
+  (0.3ms) CREATE TABLE "shoppe_delivery_services" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "code" varchar(255), "default" boolean DEFAULT 't', "min_weight" decimal(8,3), "max_weight" decimal(8,3), "price" decimal(8,2) DEFAULT 0, "vat_rate" decimal(8,2), "active" boolean DEFAULT 't', "created_at" datetime, "updated_at" datetime)
44
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130927130022"]]
45
+  (1.1ms) commit transaction
46
+ Migrating to AddDeliveryServiceToOrder (20130927132143)
47
+  (0.1ms) begin transaction
48
+  (0.3ms) ALTER TABLE "shoppe_orders" ADD "delivery_service_id" integer
49
+  (0.1ms) ALTER TABLE "shoppe_orders" ADD "delivery_price" decimal(8,2) DEFAULT 0.0
50
+  (0.1ms) ALTER TABLE "shoppe_orders" ADD "delivery_vat_rate" decimal(8,2) DEFAULT 0.0
51
+  (0.1ms) ALTER TABLE "shoppe_orders" ADD "delivery_vat_amount" decimal(8,2) DEFAULT 0.0
52
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130927132143"]]
53
+  (0.9ms) commit transaction
54
+ Migrating to AddPaymentDateToOrders (20130927150025)
55
+  (0.1ms) begin transaction
56
+  (0.3ms) ALTER TABLE "shoppe_orders" ADD "paid_at" datetime
57
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130927150025"]]
58
+  (0.8ms) commit transaction
59
+ Migrating to RenameStripePaymentToken (20130928111819)
60
+  (0.1ms) begin transaction
61
+  (0.5ms) CREATE TEMPORARY TABLE "ashoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "approved_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "stripe_customer_token" varchar(255), "payment_reference" varchar(255), "delivery_service_id" integer, "delivery_price" decimal(8,2) DEFAULT 0.0, "delivery_vat_rate" decimal(8,2) DEFAULT 0.0, "delivery_vat_amount" decimal(8,2) DEFAULT 0.0, "paid_at" datetime) 
62
+  (0.1ms) SELECT * FROM "shoppe_orders"
63
+  (0.4ms) DROP TABLE "shoppe_orders"
64
+  (0.2ms) CREATE TABLE "shoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "approved_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "stripe_customer_token" varchar(255), "payment_reference" varchar(255), "delivery_service_id" integer, "delivery_price" decimal(8,2) DEFAULT 0.0, "delivery_vat_rate" decimal(8,2) DEFAULT 0.0, "delivery_vat_amount" decimal(8,2) DEFAULT 0.0, "paid_at" datetime)
65
+  (0.1ms) SELECT * FROM "ashoppe_orders"
66
+  (0.3ms) DROP TABLE "ashoppe_orders"
67
+  (0.2ms) ALTER TABLE "shoppe_orders" ADD "payment_method" varchar(255)
68
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130928111819"]]
69
+  (1.1ms) commit transaction
70
+ Migrating to AddApporovedUsers (20130928131502)
71
+  (0.1ms) begin transaction
72
+  (0.5ms) ALTER TABLE "shoppe_orders" ADD "approved_by" integer
73
+  (0.2ms) ALTER TABLE "shoppe_orders" ADD "shipped_by" integer
74
+  (0.2ms) ALTER TABLE "shoppe_orders" ADD "consignment_number" varchar(255)
75
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130928131502"]]
76
+  (0.8ms) commit transaction
77
+ Migrating to AddCourierDetailsToShippingMethods (20130928134518)
78
+  (0.1ms) begin transaction
79
+  (0.4ms) ALTER TABLE "shoppe_delivery_services" ADD "courier" varchar(255)
80
+  (0.2ms) ALTER TABLE "shoppe_delivery_services" ADD "tracking_url" varchar(255)
81
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130928134518"]]
82
+  (1.0ms) commit transaction
83
+ Migrating to AddRejectionToOrders (20130928173818)
84
+  (0.1ms) begin transaction
85
+  (0.5ms) ALTER TABLE "shoppe_orders" ADD "rejected_at" datetime
86
+  (0.2ms) ALTER TABLE "shoppe_orders" ADD "rejected_by" integer
87
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130928173818"]]
88
+  (0.9ms) commit transaction
89
+ Migrating to SortOutOrdersForGateways (20130928180041)
90
+  (0.1ms) begin transaction
91
+  (0.2ms) CREATE TEMPORARY TABLE "ashoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "approved_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "stripe_customer_token" varchar(255), "payment_reference" varchar(255), "delivery_service_id" integer, "delivery_price" decimal(8,2) DEFAULT 0.0, "delivery_vat_rate" decimal(8,2) DEFAULT 0.0, "delivery_vat_amount" decimal(8,2) DEFAULT 0.0, "paid_at" datetime, "payment_method" varchar(255), "approved_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer) 
92
+  (0.1ms) SELECT * FROM "shoppe_orders"
93
+  (0.2ms) DROP TABLE "shoppe_orders"
94
+  (0.1ms) CREATE TABLE "shoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "approved_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "payment_reference" varchar(255), "delivery_service_id" integer, "delivery_price" decimal(8,2) DEFAULT 0.0, "delivery_vat_rate" decimal(8,2) DEFAULT 0.0, "delivery_vat_amount" decimal(8,2) DEFAULT 0.0, "paid_at" datetime, "payment_method" varchar(255), "approved_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer)
95
+  (0.1ms) SELECT * FROM "ashoppe_orders"
96
+  (0.1ms) DROP TABLE "ashoppe_orders"
97
+  (0.1ms) CREATE TEMPORARY TABLE "ashoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "approved_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "payment_reference" varchar(255), "delivery_service_id" integer, "delivery_price" decimal(8,2) DEFAULT 0.0, "delivery_vat_rate" decimal(8,2) DEFAULT 0.0, "delivery_vat_amount" decimal(8,2) DEFAULT 0.0, "paid_at" datetime, "payment_method" varchar(255), "approved_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer) 
98
+  (0.1ms) SELECT * FROM "shoppe_orders"
99
+  (0.4ms) DROP TABLE "shoppe_orders"
100
+  (0.2ms) CREATE TABLE "shoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "approved_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "delivery_service_id" integer, "delivery_price" decimal(8,2) DEFAULT 0.0, "delivery_vat_rate" decimal(8,2) DEFAULT 0.0, "delivery_vat_amount" decimal(8,2) DEFAULT 0.0, "paid_at" datetime, "payment_method" varchar(255), "approved_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer)
101
+  (0.1ms) SELECT * FROM "ashoppe_orders"
102
+  (0.2ms) DROP TABLE "ashoppe_orders"
103
+  (0.2ms) CREATE TEMPORARY TABLE "ashoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "approved_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "delivery_service_id" integer, "delivery_price" decimal(8,2) DEFAULT 0.0, "delivery_vat_rate" decimal(8,2) DEFAULT 0.0, "delivery_vat_amount" decimal(8,2) DEFAULT 0.0, "paid_at" datetime, "payment_method" varchar(255), "approved_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer) 
104
+  (0.1ms) SELECT * FROM "shoppe_orders"
105
+  (0.1ms) DROP TABLE "shoppe_orders"
106
+  (0.2ms) CREATE TABLE "shoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "approved_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "delivery_service_id" integer, "delivery_price" decimal(8,2) DEFAULT 0.0, "delivery_vat_rate" decimal(8,2) DEFAULT 0.0, "delivery_vat_amount" decimal(8,2) DEFAULT 0.0, "paid_at" datetime, "approved_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer)
107
+  (0.1ms) SELECT * FROM "ashoppe_orders"
108
+  (0.1ms) DROP TABLE "ashoppe_orders"
109
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130928180041"]]
110
+  (0.9ms) commit transaction
111
+ Migrating to CreateNiftyKeyValueStoreTable (20130928185655)
112
+  (0.1ms) begin transaction
113
+  (0.3ms) CREATE TABLE "shoppe_key_value_store" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "parent_id" integer, "parent_type" varchar(255), "group" varchar(255), "name" varchar(255), "value" varchar(255))
114
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130928185655"]]
115
+  (0.8ms) commit transaction
116
+ Migrating to AddPaymentGatewayToOrders (20130928193023)
117
+  (0.1ms) begin transaction
118
+  (0.4ms) ALTER TABLE "shoppe_orders" ADD "payment_gateway_module" varchar(255)
119
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130928193023"]]
120
+  (1.0ms) commit transaction
121
+ Migrating to UpdateDatabaseColumnsForAccepted (20130928201257)
122
+  (0.1ms) begin transaction
123
+  (0.3ms) CREATE TEMPORARY TABLE "ashoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "accepted_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "delivery_service_id" integer, "delivery_price" decimal(8,2) DEFAULT 0.0, "delivery_vat_rate" decimal(8,2) DEFAULT 0.0, "delivery_vat_amount" decimal(8,2) DEFAULT 0.0, "paid_at" datetime, "approved_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer, "payment_gateway_module" varchar(255))
124
+  (0.2ms) SELECT * FROM "shoppe_orders"
125
+  (0.3ms) DROP TABLE "shoppe_orders"
126
+  (0.2ms) CREATE TABLE "shoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "accepted_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "delivery_service_id" integer, "delivery_price" decimal(8,2) DEFAULT 0.0, "delivery_vat_rate" decimal(8,2) DEFAULT 0.0, "delivery_vat_amount" decimal(8,2) DEFAULT 0.0, "paid_at" datetime, "approved_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer, "payment_gateway_module" varchar(255)) 
127
+  (0.1ms) SELECT * FROM "ashoppe_orders"
128
+  (0.1ms) DROP TABLE "ashoppe_orders"
129
+  (0.2ms) CREATE TEMPORARY TABLE "ashoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "accepted_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "delivery_service_id" integer, "delivery_price" decimal(8,2) DEFAULT 0.0, "delivery_vat_rate" decimal(8,2) DEFAULT 0.0, "delivery_vat_amount" decimal(8,2) DEFAULT 0.0, "paid_at" datetime, "accepted_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer, "payment_gateway_module" varchar(255))
130
+  (0.1ms) SELECT * FROM "shoppe_orders"
131
+  (0.3ms) DROP TABLE "shoppe_orders"
132
+  (0.3ms) CREATE TABLE "shoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "accepted_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "delivery_service_id" integer, "delivery_price" decimal(8,2) DEFAULT 0.0, "delivery_vat_rate" decimal(8,2) DEFAULT 0.0, "delivery_vat_amount" decimal(8,2) DEFAULT 0.0, "paid_at" datetime, "accepted_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer, "payment_gateway_module" varchar(255)) 
133
+  (0.2ms) SELECT * FROM "ashoppe_orders"
134
+  (0.2ms) DROP TABLE "ashoppe_orders"
135
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130928201257"]]
136
+  (1.3ms) commit transaction
137
+ Migrating to AddIpAddressToOrders (20130929151744)
138
+  (0.1ms) begin transaction
139
+  (0.4ms) ALTER TABLE "shoppe_orders" ADD "ip_address" varchar(255)
140
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130929151744"]]
141
+  (0.9ms) commit transaction
142
+ Migrating to ChangeOrderItemsToBeNonPolymorphic (20130929203421)
143
+  (0.1ms) begin transaction
144
+  (0.2ms) CREATE TEMPORARY TABLE "ashoppe_order_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "order_id" integer, "parent_type" varchar(255), "product_id" integer, "quantity" integer DEFAULT 1, "unit_price" decimal(8,2), "vat_amount" decimal(8,2), "vat_rate" decimal(8,2), "weight" decimal(8,3) DEFAULT 0.0, "created_at" datetime, "updated_at" datetime) 
145
+  (0.1ms) SELECT * FROM "shoppe_order_items"
146
+  (0.3ms) DROP TABLE "shoppe_order_items"
147
+  (0.1ms) CREATE TABLE "shoppe_order_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "order_id" integer, "parent_type" varchar(255), "product_id" integer, "quantity" integer DEFAULT 1, "unit_price" decimal(8,2), "vat_amount" decimal(8,2), "vat_rate" decimal(8,2), "weight" decimal(8,3) DEFAULT 0.0, "created_at" datetime, "updated_at" datetime)
148
+  (0.1ms) SELECT * FROM "ashoppe_order_items"
149
+  (0.1ms) DROP TABLE "ashoppe_order_items"
150
+  (0.2ms) CREATE TEMPORARY TABLE "ashoppe_order_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "order_id" integer, "parent_type" varchar(255), "product_id" integer, "quantity" integer DEFAULT 1, "unit_price" decimal(8,2), "vat_amount" decimal(8,2), "vat_rate" decimal(8,2), "weight" decimal(8,3) DEFAULT 0.0, "created_at" datetime, "updated_at" datetime) 
151
+  (0.1ms) SELECT * FROM "shoppe_order_items"
152
+  (0.2ms) DROP TABLE "shoppe_order_items"
153
+  (0.2ms) CREATE TABLE "shoppe_order_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "order_id" integer, "product_id" integer, "quantity" integer DEFAULT 1, "unit_price" decimal(8,2), "vat_amount" decimal(8,2), "vat_rate" decimal(8,2), "weight" decimal(8,3) DEFAULT 0.0, "created_at" datetime, "updated_at" datetime)
154
+  (0.1ms) SELECT * FROM "ashoppe_order_items"
155
+  (0.1ms) DROP TABLE "ashoppe_order_items"
156
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130929203421"]]
157
+  (0.7ms) commit transaction
158
+ Migrating to AddFeaturedBooleanToProducts (20130930181344)
159
+  (0.1ms) begin transaction
160
+  (0.3ms) ALTER TABLE "shoppe_products" ADD "featured" boolean DEFAULT 'f'
161
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130930181344"]]
162
+  (0.6ms) commit transaction
163
+ Migrating to RenameVatToTax (20131002154122)
164
+  (0.1ms) begin transaction
165
+  (0.2ms) CREATE TEMPORARY TABLE "ashoppe_products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "product_category_id" integer, "title" varchar(255), "sku" varchar(255), "permalink" varchar(255), "description" text, "short_description" text, "active" boolean DEFAULT 't', "weight" decimal(8,3) DEFAULT 0.0, "price" decimal(8,2) DEFAULT 0.0, "tax_rate" decimal(8,2) DEFAULT 0.0, "stock" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime, "featured" boolean DEFAULT 'f')
166
+  (0.1ms) SELECT * FROM "shoppe_products"
167
+  (0.3ms) DROP TABLE "shoppe_products"
168
+  (0.2ms) CREATE TABLE "shoppe_products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "product_category_id" integer, "title" varchar(255), "sku" varchar(255), "permalink" varchar(255), "description" text, "short_description" text, "active" boolean DEFAULT 't', "weight" decimal(8,3) DEFAULT 0.0, "price" decimal(8,2) DEFAULT 0.0, "tax_rate" decimal(8,2) DEFAULT 0.0, "stock" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime, "featured" boolean DEFAULT 'f') 
169
+  (0.1ms) SELECT * FROM "ashoppe_products"
170
+  (0.1ms) DROP TABLE "ashoppe_products"
171
+  (0.2ms) CREATE TEMPORARY TABLE "ashoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "accepted_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "delivery_service_id" integer, "delivery_price" decimal(8,2) DEFAULT 0.0, "delivery_tax_rate" decimal(8,2) DEFAULT 0.0, "delivery_vat_amount" decimal(8,2) DEFAULT 0.0, "paid_at" datetime, "accepted_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer, "payment_gateway_module" varchar(255), "ip_address" varchar(255))
172
+  (0.1ms) SELECT * FROM "shoppe_orders"
173
+  (0.3ms) DROP TABLE "shoppe_orders"
174
+  (0.1ms) CREATE TABLE "shoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "accepted_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "delivery_service_id" integer, "delivery_price" decimal(8,2) DEFAULT 0.0, "delivery_tax_rate" decimal(8,2) DEFAULT 0.0, "delivery_vat_amount" decimal(8,2) DEFAULT 0.0, "paid_at" datetime, "accepted_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer, "payment_gateway_module" varchar(255), "ip_address" varchar(255)) 
175
+  (0.1ms) SELECT * FROM "ashoppe_orders"
176
+  (0.1ms) DROP TABLE "ashoppe_orders"
177
+  (0.2ms) CREATE TEMPORARY TABLE "ashoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "accepted_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "delivery_service_id" integer, "delivery_price" decimal(8,2) DEFAULT 0.0, "delivery_tax_rate" decimal(8,2) DEFAULT 0.0, "delivery_tax_amount" decimal(8,2) DEFAULT 0.0, "paid_at" datetime, "accepted_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer, "payment_gateway_module" varchar(255), "ip_address" varchar(255))
178
+  (0.1ms) SELECT * FROM "shoppe_orders"
179
+  (0.1ms) DROP TABLE "shoppe_orders"
180
+  (0.2ms) CREATE TABLE "shoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "accepted_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "delivery_service_id" integer, "delivery_price" decimal(8,2) DEFAULT 0.0, "delivery_tax_rate" decimal(8,2) DEFAULT 0.0, "delivery_tax_amount" decimal(8,2) DEFAULT 0.0, "paid_at" datetime, "accepted_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer, "payment_gateway_module" varchar(255), "ip_address" varchar(255)) 
181
+  (0.1ms) SELECT * FROM "ashoppe_orders"
182
+  (0.1ms) DROP TABLE "ashoppe_orders"
183
+  (0.1ms) CREATE TEMPORARY TABLE "ashoppe_order_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "order_id" integer, "product_id" integer, "quantity" integer DEFAULT 1, "unit_price" decimal(8,2), "tax_amount" decimal(8,2), "vat_rate" decimal(8,2), "weight" decimal(8,3) DEFAULT 0.0, "created_at" datetime, "updated_at" datetime)
184
+  (0.1ms) SELECT * FROM "shoppe_order_items"
185
+  (0.2ms) DROP TABLE "shoppe_order_items"
186
+  (0.1ms) CREATE TABLE "shoppe_order_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "order_id" integer, "product_id" integer, "quantity" integer DEFAULT 1, "unit_price" decimal(8,2), "tax_amount" decimal(8,2), "vat_rate" decimal(8,2), "weight" decimal(8,3) DEFAULT 0.0, "created_at" datetime, "updated_at" datetime) 
187
+  (0.1ms) SELECT * FROM "ashoppe_order_items"
188
+  (0.1ms) DROP TABLE "ashoppe_order_items"
189
+  (0.1ms) CREATE TEMPORARY TABLE "ashoppe_order_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "order_id" integer, "product_id" integer, "quantity" integer DEFAULT 1, "unit_price" decimal(8,2), "tax_amount" decimal(8,2), "tax_rate" decimal(8,2), "weight" decimal(8,3) DEFAULT 0.0, "created_at" datetime, "updated_at" datetime)
190
+  (0.1ms) SELECT * FROM "shoppe_order_items"
191
+  (0.1ms) DROP TABLE "shoppe_order_items"
192
+  (0.1ms) CREATE TABLE "shoppe_order_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "order_id" integer, "product_id" integer, "quantity" integer DEFAULT 1, "unit_price" decimal(8,2), "tax_amount" decimal(8,2), "tax_rate" decimal(8,2), "weight" decimal(8,3) DEFAULT 0.0, "created_at" datetime, "updated_at" datetime) 
193
+  (0.1ms) SELECT * FROM "ashoppe_order_items"
194
+  (0.1ms) DROP TABLE "ashoppe_order_items"
195
+  (0.2ms) CREATE TEMPORARY TABLE "ashoppe_delivery_services" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "code" varchar(255), "default" boolean DEFAULT 't', "min_weight" decimal(8,3), "max_weight" decimal(8,3), "price" decimal(8,2) DEFAULT 0.0, "tax_rate" decimal(8,2), "active" boolean DEFAULT 't', "created_at" datetime, "updated_at" datetime, "courier" varchar(255), "tracking_url" varchar(255))
196
+  (0.1ms) SELECT * FROM "shoppe_delivery_services"
197
+  (0.1ms) DROP TABLE "shoppe_delivery_services"
198
+  (0.1ms) CREATE TABLE "shoppe_delivery_services" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "code" varchar(255), "default" boolean DEFAULT 't', "min_weight" decimal(8,3), "max_weight" decimal(8,3), "price" decimal(8,2) DEFAULT 0.0, "tax_rate" decimal(8,2), "active" boolean DEFAULT 't', "created_at" datetime, "updated_at" datetime, "courier" varchar(255), "tracking_url" varchar(255)) 
199
+  (0.1ms) SELECT * FROM "ashoppe_delivery_services"
200
+  (0.1ms) DROP TABLE "ashoppe_delivery_services"
201
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131002154122"]]
202
+  (1.3ms) commit transaction
203
+ Migrating to CreateDeliveryServicePrices (20131002155246)
204
+  (0.1ms) begin transaction
205
+  (0.3ms) CREATE TABLE "shoppe_delivery_service_prices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "delivery_service_id" integer, "code" varchar(255), "price" decimal(8,2), "tax_rate" decimal(8,2), "min_weight" decimal(8,2), "max_weight" decimal(8,2), "created_at" datetime, "updated_at" datetime) 
206
+  (0.1ms) CREATE TEMPORARY TABLE "ashoppe_delivery_services" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "code" varchar(255), "default" boolean DEFAULT 't', "min_weight" decimal(8,3), "max_weight" decimal(8,3), "price" decimal(8,2) DEFAULT 0.0, "tax_rate" decimal(8,2), "active" boolean DEFAULT 't', "created_at" datetime, "updated_at" datetime, "courier" varchar(255), "tracking_url" varchar(255))
207
+  (0.1ms) SELECT * FROM "shoppe_delivery_services"
208
+  (0.3ms) DROP TABLE "shoppe_delivery_services"
209
+  (0.1ms) CREATE TABLE "shoppe_delivery_services" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "code" varchar(255), "default" boolean DEFAULT 't', "min_weight" decimal(8,3), "max_weight" decimal(8,3), "tax_rate" decimal(8,2), "active" boolean DEFAULT 't', "created_at" datetime, "updated_at" datetime, "courier" varchar(255), "tracking_url" varchar(255)) 
210
+  (0.1ms) SELECT * FROM "ashoppe_delivery_services"
211
+  (0.1ms) DROP TABLE "ashoppe_delivery_services"
212
+  (0.1ms) CREATE TEMPORARY TABLE "ashoppe_delivery_services" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "code" varchar(255), "default" boolean DEFAULT 't', "min_weight" decimal(8,3), "max_weight" decimal(8,3), "tax_rate" decimal(8,2), "active" boolean DEFAULT 't', "created_at" datetime, "updated_at" datetime, "courier" varchar(255), "tracking_url" varchar(255))
213
+  (0.1ms) SELECT * FROM "shoppe_delivery_services"
214
+  (0.1ms) DROP TABLE "shoppe_delivery_services"
215
+  (0.1ms) CREATE TABLE "shoppe_delivery_services" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "code" varchar(255), "default" boolean DEFAULT 't', "min_weight" decimal(8,3), "max_weight" decimal(8,3), "active" boolean DEFAULT 't', "created_at" datetime, "updated_at" datetime, "courier" varchar(255), "tracking_url" varchar(255)) 
216
+  (0.1ms) SELECT * FROM "ashoppe_delivery_services"
217
+  (0.1ms) DROP TABLE "ashoppe_delivery_services"
218
+  (0.1ms) CREATE TEMPORARY TABLE "ashoppe_delivery_services" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "code" varchar(255), "default" boolean DEFAULT 't', "min_weight" decimal(8,3), "max_weight" decimal(8,3), "active" boolean DEFAULT 't', "created_at" datetime, "updated_at" datetime, "courier" varchar(255), "tracking_url" varchar(255))
219
+  (0.0ms) SELECT * FROM "shoppe_delivery_services"
220
+  (0.1ms) DROP TABLE "shoppe_delivery_services"
221
+  (0.1ms) CREATE TABLE "shoppe_delivery_services" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "code" varchar(255), "default" boolean DEFAULT 't', "max_weight" decimal(8,3), "active" boolean DEFAULT 't', "created_at" datetime, "updated_at" datetime, "courier" varchar(255), "tracking_url" varchar(255)) 
222
+  (0.0ms) SELECT * FROM "ashoppe_delivery_services"
223
+  (0.1ms) DROP TABLE "ashoppe_delivery_services"
224
+  (0.1ms) CREATE TEMPORARY TABLE "ashoppe_delivery_services" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "code" varchar(255), "default" boolean DEFAULT 't', "max_weight" decimal(8,3), "active" boolean DEFAULT 't', "created_at" datetime, "updated_at" datetime, "courier" varchar(255), "tracking_url" varchar(255))
225
+  (0.0ms) SELECT * FROM "shoppe_delivery_services"
226
+  (0.1ms) DROP TABLE "shoppe_delivery_services"
227
+  (0.1ms) CREATE TABLE "shoppe_delivery_services" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "code" varchar(255), "default" boolean DEFAULT 't', "active" boolean DEFAULT 't', "created_at" datetime, "updated_at" datetime, "courier" varchar(255), "tracking_url" varchar(255)) 
228
+  (0.0ms) SELECT * FROM "ashoppe_delivery_services"
229
+  (0.1ms) DROP TABLE "ashoppe_delivery_services"
230
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131002155246"]]
231
+  (1.0ms) commit transaction
232
+ Migrating to DefaultShouldNotBeTrueForDeliveryServices (20131002162301)
233
+  (0.1ms) begin transaction
234
+  (0.1ms) CREATE TEMPORARY TABLE "ashoppe_delivery_services" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "code" varchar(255), "default" boolean DEFAULT 't', "active" boolean DEFAULT 't', "created_at" datetime, "updated_at" datetime, "courier" varchar(255), "tracking_url" varchar(255)) 
235
+  (0.1ms) SELECT * FROM "shoppe_delivery_services"
236
+  (0.2ms) DROP TABLE "shoppe_delivery_services"
237
+  (0.1ms) CREATE TABLE "shoppe_delivery_services" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "code" varchar(255), "default" boolean DEFAULT 'f', "active" boolean DEFAULT 't', "created_at" datetime, "updated_at" datetime, "courier" varchar(255), "tracking_url" varchar(255))
238
+  (0.0ms) SELECT * FROM "ashoppe_delivery_services"
239
+  (0.1ms) DROP TABLE "ashoppe_delivery_services"
240
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131002162301"]]
241
+  (0.9ms) commit transaction
242
+ Migrating to ChangeDefaultsForDeliveryValuesOnOrders (20131003163827)
243
+  (0.1ms) begin transaction
244
+  (0.2ms) CREATE TEMPORARY TABLE "ashoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "accepted_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "delivery_service_id" integer, "delivery_price" decimal(8,2) DEFAULT 0.0, "delivery_tax_rate" decimal(8,2) DEFAULT 0.0, "delivery_tax_amount" decimal(8,2) DEFAULT 0.0, "paid_at" datetime, "accepted_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer, "payment_gateway_module" varchar(255), "ip_address" varchar(255))
245
+  (0.1ms) SELECT * FROM "shoppe_orders"
246
+  (0.4ms) DROP TABLE "shoppe_orders"
247
+  (0.2ms) CREATE TABLE "shoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "accepted_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "delivery_service_id" integer, "delivery_price" decimal(8,2), "delivery_tax_rate" decimal(8,2) DEFAULT 0.0, "delivery_tax_amount" decimal(8,2) DEFAULT 0.0, "paid_at" datetime, "accepted_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer, "payment_gateway_module" varchar(255), "ip_address" varchar(255)) 
248
+  (0.1ms) SELECT * FROM "ashoppe_orders"
249
+  (0.1ms) DROP TABLE "ashoppe_orders"
250
+  (0.2ms) CREATE TEMPORARY TABLE "ashoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "accepted_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "delivery_service_id" integer, "delivery_price" decimal(8,2), "delivery_tax_rate" decimal(8,2) DEFAULT 0.0, "delivery_tax_amount" decimal(8,2) DEFAULT 0.0, "paid_at" datetime, "accepted_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer, "payment_gateway_module" varchar(255), "ip_address" varchar(255))
251
+  (0.1ms) SELECT * FROM "shoppe_orders"
252
+  (0.3ms) DROP TABLE "shoppe_orders"
253
+  (0.2ms) CREATE TABLE "shoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "accepted_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "delivery_service_id" integer, "delivery_price" decimal(8,2), "delivery_tax_rate" decimal(8,2), "delivery_tax_amount" decimal(8,2) DEFAULT 0.0, "paid_at" datetime, "accepted_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer, "payment_gateway_module" varchar(255), "ip_address" varchar(255)) 
254
+  (0.1ms) SELECT * FROM "ashoppe_orders"
255
+  (0.2ms) DROP TABLE "ashoppe_orders"
256
+  (0.2ms) CREATE TEMPORARY TABLE "ashoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "accepted_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "delivery_service_id" integer, "delivery_price" decimal(8,2), "delivery_tax_rate" decimal(8,2), "delivery_tax_amount" decimal(8,2) DEFAULT 0.0, "paid_at" datetime, "accepted_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer, "payment_gateway_module" varchar(255), "ip_address" varchar(255))
257
+  (0.1ms) SELECT * FROM "shoppe_orders"
258
+  (0.1ms) DROP TABLE "shoppe_orders"
259
+  (0.1ms) CREATE TABLE "shoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "accepted_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "delivery_service_id" integer, "delivery_price" decimal(8,2), "delivery_tax_rate" decimal(8,2), "delivery_tax_amount" decimal(8,2), "paid_at" datetime, "accepted_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer, "payment_gateway_module" varchar(255), "ip_address" varchar(255)) 
260
+  (0.1ms) SELECT * FROM "ashoppe_orders"
261
+  (0.1ms) DROP TABLE "ashoppe_orders"
262
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131003163827"]]
263
+  (1.0ms) commit transaction
264
+ Migrating to AddCountryToOrders (20131004185043)
265
+  (0.1ms) begin transaction
266
+  (0.3ms) ALTER TABLE "shoppe_orders" ADD "country" varchar(255)
267
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131004185043"]]
268
+  (0.9ms) commit transaction
269
+ Migrating to AddBoxFieldsToProducts (20131004193320)
270
+  (0.1ms) begin transaction
271
+  (0.4ms) ALTER TABLE "shoppe_products" ADD "in_the_box" text
272
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131004193320"]]
273
+  (1.0ms) commit transaction
274
+ Migrating to AddPaymentReferenceFields (20131006144849)
275
+  (0.1ms) begin transaction
276
+  (0.4ms) ALTER TABLE "shoppe_orders" ADD "payment_reference" varchar(255)
277
+  (0.2ms) ALTER TABLE "shoppe_orders" ADD "payment_method" varchar(255)
278
+  (0.2ms) CREATE TEMPORARY TABLE "ashoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "accepted_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "delivery_service_id" integer, "delivery_price" decimal(8,2), "delivery_tax_rate" decimal(8,2), "delivery_tax_amount" decimal(8,2), "paid_at" datetime, "accepted_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer, "payment_gateway_module" varchar(255), "ip_address" varchar(255), "country" varchar(255), "payment_reference" varchar(255), "payment_method" varchar(255)) 
279
+  (0.1ms) SELECT * FROM "shoppe_orders"
280
+  (0.4ms) DROP TABLE "shoppe_orders"
281
+  (0.2ms) CREATE TABLE "shoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "accepted_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "delivery_service_id" integer, "delivery_price" decimal(8,2), "delivery_tax_rate" decimal(8,2), "delivery_tax_amount" decimal(8,2), "paid_at" datetime, "accepted_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer, "ip_address" varchar(255), "country" varchar(255), "payment_reference" varchar(255), "payment_method" varchar(255))
282
+  (0.1ms) SELECT * FROM "ashoppe_orders"
283
+  (0.1ms) DROP TABLE "ashoppe_orders"
284
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131006144849"]]
285
+  (1.0ms) commit transaction
286
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
287
+  (3.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
288
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
289
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
290
+ Migrating to CreateProductCategories (20130926094549)
291
+  (0.1ms) begin transaction
292
+  (0.3ms) CREATE TABLE "shoppe_product_categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "permalink" varchar(255), "description" text, "created_at" datetime, "updated_at" datetime) 
293
+ SQL (1.5ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130926094549"]]
294
+  (1.0ms) commit transaction
295
+ Migrating to CreateProducts (20130926094551)
296
+  (0.1ms) begin transaction
297
+  (0.4ms) CREATE TABLE "shoppe_products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "product_category_id" integer, "title" varchar(255), "sku" varchar(255), "permalink" varchar(255), "description" text, "short_description" text, "active" boolean DEFAULT 't', "weight" decimal(8,3) DEFAULT 0.0, "price" decimal(8,2) DEFAULT 0.0, "vat_rate" decimal(8,2) DEFAULT 0.0, "stock" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime) 
298
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130926094551"]]
299
+  (0.9ms) commit transaction
300
+ Migrating to CreateOrders (20130926094647)
301
+  (0.1ms) begin transaction
302
+  (0.4ms) CREATE TABLE "shoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "approved_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime) 
303
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130926094647"]]
304
+  (0.7ms) commit transaction
305
+ Migrating to CreateOrderItems (20130926094654)
306
+  (0.1ms) begin transaction
307
+  (0.4ms) CREATE TABLE "shoppe_order_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "order_id" integer, "parent_type" varchar(255), "parent_id" integer, "quantity" integer DEFAULT 1, "unit_price" decimal(8,2), "vat_amount" decimal(8,2), "vat_rate" decimal(8,2), "weight" decimal(8,3) DEFAULT 0, "created_at" datetime, "updated_at" datetime) 
308
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130926094654"]]
309
+  (0.8ms) commit transaction
310
+ Migrating to CreateImages (20130926104450)
311
+  (0.1ms) begin transaction
312
+  (0.3ms) CREATE TABLE "shoppe_attachments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "parent_id" integer, "parent_type" varchar(255), "token" varchar(255), "role" varchar(255), "file_name" varchar(255), "file_type" varchar(255), "data" blob(10485760), "created_at" datetime, "updated_at" datetime) 
313
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130926104450"]]
314
+  (0.7ms) commit transaction
315
+ Migrating to CreateUsers (20130926151718)
316
+  (0.1ms) begin transaction
317
+  (0.3ms) CREATE TABLE "shoppe_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "email_address" varchar(255), "password_digest" varchar(255), "created_at" datetime, "updated_at" datetime) 
318
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130926151718"]]
319
+  (0.6ms) commit transaction
320
+ Migrating to AddCardTokenToOrders (20130927113134)
321
+  (0.1ms) begin transaction
322
+  (0.3ms) ALTER TABLE "shoppe_orders" ADD "stripe_customer_token" varchar(255)
323
+  (0.1ms) ALTER TABLE "shoppe_orders" ADD "stripe_payment_token" varchar(255)
324
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130927113134"]]
325
+  (0.7ms) commit transaction
326
+ Migrating to CreateDeliveryServices (20130927130022)
327
+  (0.1ms) begin transaction
328
+  (0.3ms) CREATE TABLE "shoppe_delivery_services" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "code" varchar(255), "default" boolean DEFAULT 't', "min_weight" decimal(8,3), "max_weight" decimal(8,3), "price" decimal(8,2) DEFAULT 0, "vat_rate" decimal(8,2), "active" boolean DEFAULT 't', "created_at" datetime, "updated_at" datetime)
329
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130927130022"]]
330
+  (0.6ms) commit transaction
331
+ Migrating to AddDeliveryServiceToOrder (20130927132143)
332
+  (0.1ms) begin transaction
333
+  (0.4ms) ALTER TABLE "shoppe_orders" ADD "delivery_service_id" integer
334
+  (0.2ms) ALTER TABLE "shoppe_orders" ADD "delivery_price" decimal(8,2) DEFAULT 0.0
335
+  (0.2ms) ALTER TABLE "shoppe_orders" ADD "delivery_vat_rate" decimal(8,2) DEFAULT 0.0
336
+  (0.1ms) ALTER TABLE "shoppe_orders" ADD "delivery_vat_amount" decimal(8,2) DEFAULT 0.0
337
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130927132143"]]
338
+  (0.9ms) commit transaction
339
+ Migrating to AddPaymentDateToOrders (20130927150025)
340
+  (0.1ms) begin transaction
341
+  (0.4ms) ALTER TABLE "shoppe_orders" ADD "paid_at" datetime
342
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130927150025"]]
343
+  (0.8ms) commit transaction
344
+ Migrating to RenameStripePaymentToken (20130928111819)
345
+  (0.1ms) begin transaction
346
+  (0.5ms) CREATE TEMPORARY TABLE "ashoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "approved_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "stripe_customer_token" varchar(255), "payment_reference" varchar(255), "delivery_service_id" integer, "delivery_price" decimal(8,2) DEFAULT 0.0, "delivery_vat_rate" decimal(8,2) DEFAULT 0.0, "delivery_vat_amount" decimal(8,2) DEFAULT 0.0, "paid_at" datetime) 
347
+  (0.1ms) SELECT * FROM "shoppe_orders"
348
+  (0.2ms) DROP TABLE "shoppe_orders"
349
+  (0.1ms) CREATE TABLE "shoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "approved_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "stripe_customer_token" varchar(255), "payment_reference" varchar(255), "delivery_service_id" integer, "delivery_price" decimal(8,2) DEFAULT 0.0, "delivery_vat_rate" decimal(8,2) DEFAULT 0.0, "delivery_vat_amount" decimal(8,2) DEFAULT 0.0, "paid_at" datetime)
350
+  (0.1ms) SELECT * FROM "ashoppe_orders"
351
+  (0.2ms) DROP TABLE "ashoppe_orders"
352
+  (0.1ms) ALTER TABLE "shoppe_orders" ADD "payment_method" varchar(255)
353
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130928111819"]]
354
+  (0.9ms) commit transaction
355
+ Migrating to AddApporovedUsers (20130928131502)
356
+  (0.1ms) begin transaction
357
+  (0.3ms) ALTER TABLE "shoppe_orders" ADD "approved_by" integer
358
+  (0.2ms) ALTER TABLE "shoppe_orders" ADD "shipped_by" integer
359
+  (0.2ms) ALTER TABLE "shoppe_orders" ADD "consignment_number" varchar(255)
360
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130928131502"]]
361
+  (0.8ms) commit transaction
362
+ Migrating to AddCourierDetailsToShippingMethods (20130928134518)
363
+  (0.1ms) begin transaction
364
+  (0.3ms) ALTER TABLE "shoppe_delivery_services" ADD "courier" varchar(255)
365
+  (0.1ms) ALTER TABLE "shoppe_delivery_services" ADD "tracking_url" varchar(255)
366
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130928134518"]]
367
+  (0.8ms) commit transaction
368
+ Migrating to AddRejectionToOrders (20130928173818)
369
+  (0.1ms) begin transaction
370
+  (0.3ms) ALTER TABLE "shoppe_orders" ADD "rejected_at" datetime
371
+  (0.2ms) ALTER TABLE "shoppe_orders" ADD "rejected_by" integer
372
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130928173818"]]
373
+  (0.7ms) commit transaction
374
+ Migrating to SortOutOrdersForGateways (20130928180041)
375
+  (0.1ms) begin transaction
376
+  (0.3ms) CREATE TEMPORARY TABLE "ashoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "approved_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "stripe_customer_token" varchar(255), "payment_reference" varchar(255), "delivery_service_id" integer, "delivery_price" decimal(8,2) DEFAULT 0.0, "delivery_vat_rate" decimal(8,2) DEFAULT 0.0, "delivery_vat_amount" decimal(8,2) DEFAULT 0.0, "paid_at" datetime, "payment_method" varchar(255), "approved_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer) 
377
+  (0.1ms) SELECT * FROM "shoppe_orders"
378
+  (0.3ms) DROP TABLE "shoppe_orders"
379
+  (0.2ms) CREATE TABLE "shoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "approved_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "payment_reference" varchar(255), "delivery_service_id" integer, "delivery_price" decimal(8,2) DEFAULT 0.0, "delivery_vat_rate" decimal(8,2) DEFAULT 0.0, "delivery_vat_amount" decimal(8,2) DEFAULT 0.0, "paid_at" datetime, "payment_method" varchar(255), "approved_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer)
380
+  (0.1ms) SELECT * FROM "ashoppe_orders"
381
+  (0.1ms) DROP TABLE "ashoppe_orders"
382
+  (0.3ms) CREATE TEMPORARY TABLE "ashoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "approved_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "payment_reference" varchar(255), "delivery_service_id" integer, "delivery_price" decimal(8,2) DEFAULT 0.0, "delivery_vat_rate" decimal(8,2) DEFAULT 0.0, "delivery_vat_amount" decimal(8,2) DEFAULT 0.0, "paid_at" datetime, "payment_method" varchar(255), "approved_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer) 
383
+  (0.1ms) SELECT * FROM "shoppe_orders"
384
+  (0.3ms) DROP TABLE "shoppe_orders"
385
+  (0.2ms) CREATE TABLE "shoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "approved_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "delivery_service_id" integer, "delivery_price" decimal(8,2) DEFAULT 0.0, "delivery_vat_rate" decimal(8,2) DEFAULT 0.0, "delivery_vat_amount" decimal(8,2) DEFAULT 0.0, "paid_at" datetime, "payment_method" varchar(255), "approved_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer)
386
+  (0.1ms) SELECT * FROM "ashoppe_orders"
387
+  (0.1ms) DROP TABLE "ashoppe_orders"
388
+  (0.2ms) CREATE TEMPORARY TABLE "ashoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "approved_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "delivery_service_id" integer, "delivery_price" decimal(8,2) DEFAULT 0.0, "delivery_vat_rate" decimal(8,2) DEFAULT 0.0, "delivery_vat_amount" decimal(8,2) DEFAULT 0.0, "paid_at" datetime, "payment_method" varchar(255), "approved_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer) 
389
+  (0.1ms) SELECT * FROM "shoppe_orders"
390
+  (0.1ms) DROP TABLE "shoppe_orders"
391
+  (0.2ms) CREATE TABLE "shoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "approved_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "delivery_service_id" integer, "delivery_price" decimal(8,2) DEFAULT 0.0, "delivery_vat_rate" decimal(8,2) DEFAULT 0.0, "delivery_vat_amount" decimal(8,2) DEFAULT 0.0, "paid_at" datetime, "approved_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer)
392
+  (0.1ms) SELECT * FROM "ashoppe_orders"
393
+  (0.1ms) DROP TABLE "ashoppe_orders"
394
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130928180041"]]
395
+  (1.2ms) commit transaction
396
+ Migrating to CreateNiftyKeyValueStoreTable (20130928185655)
397
+  (0.1ms) begin transaction
398
+  (0.6ms) CREATE TABLE "shoppe_key_value_store" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "parent_id" integer, "parent_type" varchar(255), "group" varchar(255), "name" varchar(255), "value" varchar(255))
399
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130928185655"]]
400
+  (0.8ms) commit transaction
401
+ Migrating to AddPaymentGatewayToOrders (20130928193023)
402
+  (0.1ms) begin transaction
403
+  (0.4ms) ALTER TABLE "shoppe_orders" ADD "payment_gateway_module" varchar(255)
404
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130928193023"]]
405
+  (0.9ms) commit transaction
406
+ Migrating to UpdateDatabaseColumnsForAccepted (20130928201257)
407
+  (0.1ms) begin transaction
408
+  (0.3ms) CREATE TEMPORARY TABLE "ashoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "accepted_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "delivery_service_id" integer, "delivery_price" decimal(8,2) DEFAULT 0.0, "delivery_vat_rate" decimal(8,2) DEFAULT 0.0, "delivery_vat_amount" decimal(8,2) DEFAULT 0.0, "paid_at" datetime, "approved_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer, "payment_gateway_module" varchar(255))
409
+  (0.1ms) SELECT * FROM "shoppe_orders"
410
+  (0.2ms) DROP TABLE "shoppe_orders"
411
+  (0.2ms) CREATE TABLE "shoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "accepted_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "delivery_service_id" integer, "delivery_price" decimal(8,2) DEFAULT 0.0, "delivery_vat_rate" decimal(8,2) DEFAULT 0.0, "delivery_vat_amount" decimal(8,2) DEFAULT 0.0, "paid_at" datetime, "approved_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer, "payment_gateway_module" varchar(255)) 
412
+  (0.1ms) SELECT * FROM "ashoppe_orders"
413
+  (0.1ms) DROP TABLE "ashoppe_orders"
414
+  (0.2ms) CREATE TEMPORARY TABLE "ashoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "accepted_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "delivery_service_id" integer, "delivery_price" decimal(8,2) DEFAULT 0.0, "delivery_vat_rate" decimal(8,2) DEFAULT 0.0, "delivery_vat_amount" decimal(8,2) DEFAULT 0.0, "paid_at" datetime, "accepted_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer, "payment_gateway_module" varchar(255))
415
+  (0.1ms) SELECT * FROM "shoppe_orders"
416
+  (0.3ms) DROP TABLE "shoppe_orders"
417
+  (0.2ms) CREATE TABLE "shoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "accepted_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "delivery_service_id" integer, "delivery_price" decimal(8,2) DEFAULT 0.0, "delivery_vat_rate" decimal(8,2) DEFAULT 0.0, "delivery_vat_amount" decimal(8,2) DEFAULT 0.0, "paid_at" datetime, "accepted_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer, "payment_gateway_module" varchar(255)) 
418
+  (0.1ms) SELECT * FROM "ashoppe_orders"
419
+  (0.2ms) DROP TABLE "ashoppe_orders"
420
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130928201257"]]
421
+  (0.8ms) commit transaction
422
+ Migrating to AddIpAddressToOrders (20130929151744)
423
+  (0.1ms) begin transaction
424
+  (0.5ms) ALTER TABLE "shoppe_orders" ADD "ip_address" varchar(255)
425
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130929151744"]]
426
+  (0.7ms) commit transaction
427
+ Migrating to ChangeOrderItemsToBeNonPolymorphic (20130929203421)
428
+  (0.1ms) begin transaction
429
+  (0.2ms) CREATE TEMPORARY TABLE "ashoppe_order_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "order_id" integer, "parent_type" varchar(255), "product_id" integer, "quantity" integer DEFAULT 1, "unit_price" decimal(8,2), "vat_amount" decimal(8,2), "vat_rate" decimal(8,2), "weight" decimal(8,3) DEFAULT 0.0, "created_at" datetime, "updated_at" datetime) 
430
+  (0.1ms) SELECT * FROM "shoppe_order_items"
431
+  (0.2ms) DROP TABLE "shoppe_order_items"
432
+  (0.1ms) CREATE TABLE "shoppe_order_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "order_id" integer, "parent_type" varchar(255), "product_id" integer, "quantity" integer DEFAULT 1, "unit_price" decimal(8,2), "vat_amount" decimal(8,2), "vat_rate" decimal(8,2), "weight" decimal(8,3) DEFAULT 0.0, "created_at" datetime, "updated_at" datetime)
433
+  (0.1ms) SELECT * FROM "ashoppe_order_items"
434
+  (0.1ms) DROP TABLE "ashoppe_order_items"
435
+  (0.1ms) CREATE TEMPORARY TABLE "ashoppe_order_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "order_id" integer, "parent_type" varchar(255), "product_id" integer, "quantity" integer DEFAULT 1, "unit_price" decimal(8,2), "vat_amount" decimal(8,2), "vat_rate" decimal(8,2), "weight" decimal(8,3) DEFAULT 0.0, "created_at" datetime, "updated_at" datetime) 
436
+  (0.1ms) SELECT * FROM "shoppe_order_items"
437
+  (0.2ms) DROP TABLE "shoppe_order_items"
438
+  (0.1ms) CREATE TABLE "shoppe_order_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "order_id" integer, "product_id" integer, "quantity" integer DEFAULT 1, "unit_price" decimal(8,2), "vat_amount" decimal(8,2), "vat_rate" decimal(8,2), "weight" decimal(8,3) DEFAULT 0.0, "created_at" datetime, "updated_at" datetime)
439
+  (0.1ms) SELECT * FROM "ashoppe_order_items"
440
+  (0.1ms) DROP TABLE "ashoppe_order_items"
441
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130929203421"]]
442
+  (1.0ms) commit transaction
443
+ Migrating to AddFeaturedBooleanToProducts (20130930181344)
444
+  (0.1ms) begin transaction
445
+  (0.4ms) ALTER TABLE "shoppe_products" ADD "featured" boolean DEFAULT 'f'
446
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130930181344"]]
447
+  (0.9ms) commit transaction
448
+ Migrating to RenameVatToTax (20131002154122)
449
+  (0.1ms) begin transaction
450
+  (0.4ms) CREATE TEMPORARY TABLE "ashoppe_products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "product_category_id" integer, "title" varchar(255), "sku" varchar(255), "permalink" varchar(255), "description" text, "short_description" text, "active" boolean DEFAULT 't', "weight" decimal(8,3) DEFAULT 0.0, "price" decimal(8,2) DEFAULT 0.0, "tax_rate" decimal(8,2) DEFAULT 0.0, "stock" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime, "featured" boolean DEFAULT 'f')
451
+  (0.1ms) SELECT * FROM "shoppe_products"
452
+  (0.3ms) DROP TABLE "shoppe_products"
453
+  (0.2ms) CREATE TABLE "shoppe_products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "product_category_id" integer, "title" varchar(255), "sku" varchar(255), "permalink" varchar(255), "description" text, "short_description" text, "active" boolean DEFAULT 't', "weight" decimal(8,3) DEFAULT 0.0, "price" decimal(8,2) DEFAULT 0.0, "tax_rate" decimal(8,2) DEFAULT 0.0, "stock" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime, "featured" boolean DEFAULT 'f') 
454
+  (0.1ms) SELECT * FROM "ashoppe_products"
455
+  (0.1ms) DROP TABLE "ashoppe_products"
456
+  (0.2ms) CREATE TEMPORARY TABLE "ashoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "accepted_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "delivery_service_id" integer, "delivery_price" decimal(8,2) DEFAULT 0.0, "delivery_tax_rate" decimal(8,2) DEFAULT 0.0, "delivery_vat_amount" decimal(8,2) DEFAULT 0.0, "paid_at" datetime, "accepted_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer, "payment_gateway_module" varchar(255), "ip_address" varchar(255))
457
+  (0.1ms) SELECT * FROM "shoppe_orders"
458
+  (0.3ms) DROP TABLE "shoppe_orders"
459
+  (0.2ms) CREATE TABLE "shoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "accepted_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "delivery_service_id" integer, "delivery_price" decimal(8,2) DEFAULT 0.0, "delivery_tax_rate" decimal(8,2) DEFAULT 0.0, "delivery_vat_amount" decimal(8,2) DEFAULT 0.0, "paid_at" datetime, "accepted_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer, "payment_gateway_module" varchar(255), "ip_address" varchar(255)) 
460
+  (0.1ms) SELECT * FROM "ashoppe_orders"
461
+  (0.1ms) DROP TABLE "ashoppe_orders"
462
+  (0.2ms) CREATE TEMPORARY TABLE "ashoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "accepted_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "delivery_service_id" integer, "delivery_price" decimal(8,2) DEFAULT 0.0, "delivery_tax_rate" decimal(8,2) DEFAULT 0.0, "delivery_tax_amount" decimal(8,2) DEFAULT 0.0, "paid_at" datetime, "accepted_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer, "payment_gateway_module" varchar(255), "ip_address" varchar(255))
463
+  (0.1ms) SELECT * FROM "shoppe_orders"
464
+  (0.1ms) DROP TABLE "shoppe_orders"
465
+  (0.2ms) CREATE TABLE "shoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "accepted_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "delivery_service_id" integer, "delivery_price" decimal(8,2) DEFAULT 0.0, "delivery_tax_rate" decimal(8,2) DEFAULT 0.0, "delivery_tax_amount" decimal(8,2) DEFAULT 0.0, "paid_at" datetime, "accepted_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer, "payment_gateway_module" varchar(255), "ip_address" varchar(255)) 
466
+  (0.1ms) SELECT * FROM "ashoppe_orders"
467
+  (0.1ms) DROP TABLE "ashoppe_orders"
468
+  (0.1ms) CREATE TEMPORARY TABLE "ashoppe_order_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "order_id" integer, "product_id" integer, "quantity" integer DEFAULT 1, "unit_price" decimal(8,2), "tax_amount" decimal(8,2), "vat_rate" decimal(8,2), "weight" decimal(8,3) DEFAULT 0.0, "created_at" datetime, "updated_at" datetime)
469
+  (0.1ms) SELECT * FROM "shoppe_order_items"
470
+  (0.1ms) DROP TABLE "shoppe_order_items"
471
+  (0.1ms) CREATE TABLE "shoppe_order_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "order_id" integer, "product_id" integer, "quantity" integer DEFAULT 1, "unit_price" decimal(8,2), "tax_amount" decimal(8,2), "vat_rate" decimal(8,2), "weight" decimal(8,3) DEFAULT 0.0, "created_at" datetime, "updated_at" datetime) 
472
+  (0.1ms) SELECT * FROM "ashoppe_order_items"
473
+  (0.1ms) DROP TABLE "ashoppe_order_items"
474
+  (0.1ms) CREATE TEMPORARY TABLE "ashoppe_order_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "order_id" integer, "product_id" integer, "quantity" integer DEFAULT 1, "unit_price" decimal(8,2), "tax_amount" decimal(8,2), "tax_rate" decimal(8,2), "weight" decimal(8,3) DEFAULT 0.0, "created_at" datetime, "updated_at" datetime)
475
+  (0.1ms) SELECT * FROM "shoppe_order_items"
476
+  (0.1ms) DROP TABLE "shoppe_order_items"
477
+  (0.1ms) CREATE TABLE "shoppe_order_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "order_id" integer, "product_id" integer, "quantity" integer DEFAULT 1, "unit_price" decimal(8,2), "tax_amount" decimal(8,2), "tax_rate" decimal(8,2), "weight" decimal(8,3) DEFAULT 0.0, "created_at" datetime, "updated_at" datetime) 
478
+  (0.1ms) SELECT * FROM "ashoppe_order_items"
479
+  (0.1ms) DROP TABLE "ashoppe_order_items"
480
+  (0.1ms) CREATE TEMPORARY TABLE "ashoppe_delivery_services" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "code" varchar(255), "default" boolean DEFAULT 't', "min_weight" decimal(8,3), "max_weight" decimal(8,3), "price" decimal(8,2) DEFAULT 0.0, "tax_rate" decimal(8,2), "active" boolean DEFAULT 't', "created_at" datetime, "updated_at" datetime, "courier" varchar(255), "tracking_url" varchar(255))
481
+  (0.1ms) SELECT * FROM "shoppe_delivery_services"
482
+  (0.1ms) DROP TABLE "shoppe_delivery_services"
483
+  (0.1ms) CREATE TABLE "shoppe_delivery_services" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "code" varchar(255), "default" boolean DEFAULT 't', "min_weight" decimal(8,3), "max_weight" decimal(8,3), "price" decimal(8,2) DEFAULT 0.0, "tax_rate" decimal(8,2), "active" boolean DEFAULT 't', "created_at" datetime, "updated_at" datetime, "courier" varchar(255), "tracking_url" varchar(255)) 
484
+  (0.1ms) SELECT * FROM "ashoppe_delivery_services"
485
+  (0.1ms) DROP TABLE "ashoppe_delivery_services"
486
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131002154122"]]
487
+  (1.4ms) commit transaction
488
+ Migrating to CreateDeliveryServicePrices (20131002155246)
489
+  (0.1ms) begin transaction
490
+  (0.3ms) CREATE TABLE "shoppe_delivery_service_prices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "delivery_service_id" integer, "code" varchar(255), "price" decimal(8,2), "tax_rate" decimal(8,2), "min_weight" decimal(8,2), "max_weight" decimal(8,2), "created_at" datetime, "updated_at" datetime) 
491
+  (0.1ms) CREATE TEMPORARY TABLE "ashoppe_delivery_services" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "code" varchar(255), "default" boolean DEFAULT 't', "min_weight" decimal(8,3), "max_weight" decimal(8,3), "price" decimal(8,2) DEFAULT 0.0, "tax_rate" decimal(8,2), "active" boolean DEFAULT 't', "created_at" datetime, "updated_at" datetime, "courier" varchar(255), "tracking_url" varchar(255))
492
+  (0.1ms) SELECT * FROM "shoppe_delivery_services"
493
+  (0.3ms) DROP TABLE "shoppe_delivery_services"
494
+  (0.1ms) CREATE TABLE "shoppe_delivery_services" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "code" varchar(255), "default" boolean DEFAULT 't', "min_weight" decimal(8,3), "max_weight" decimal(8,3), "tax_rate" decimal(8,2), "active" boolean DEFAULT 't', "created_at" datetime, "updated_at" datetime, "courier" varchar(255), "tracking_url" varchar(255)) 
495
+  (0.1ms) SELECT * FROM "ashoppe_delivery_services"
496
+  (0.1ms) DROP TABLE "ashoppe_delivery_services"
497
+  (0.1ms) CREATE TEMPORARY TABLE "ashoppe_delivery_services" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "code" varchar(255), "default" boolean DEFAULT 't', "min_weight" decimal(8,3), "max_weight" decimal(8,3), "tax_rate" decimal(8,2), "active" boolean DEFAULT 't', "created_at" datetime, "updated_at" datetime, "courier" varchar(255), "tracking_url" varchar(255))
498
+  (0.0ms) SELECT * FROM "shoppe_delivery_services"
499
+  (0.1ms) DROP TABLE "shoppe_delivery_services"
500
+  (0.1ms) CREATE TABLE "shoppe_delivery_services" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "code" varchar(255), "default" boolean DEFAULT 't', "min_weight" decimal(8,3), "max_weight" decimal(8,3), "active" boolean DEFAULT 't', "created_at" datetime, "updated_at" datetime, "courier" varchar(255), "tracking_url" varchar(255)) 
501
+  (0.1ms) SELECT * FROM "ashoppe_delivery_services"
502
+  (0.1ms) DROP TABLE "ashoppe_delivery_services"
503
+  (0.2ms) CREATE TEMPORARY TABLE "ashoppe_delivery_services" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "code" varchar(255), "default" boolean DEFAULT 't', "min_weight" decimal(8,3), "max_weight" decimal(8,3), "active" boolean DEFAULT 't', "created_at" datetime, "updated_at" datetime, "courier" varchar(255), "tracking_url" varchar(255))
504
+  (0.1ms) SELECT * FROM "shoppe_delivery_services"
505
+  (0.2ms) DROP TABLE "shoppe_delivery_services"
506
+  (0.2ms) CREATE TABLE "shoppe_delivery_services" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "code" varchar(255), "default" boolean DEFAULT 't', "max_weight" decimal(8,3), "active" boolean DEFAULT 't', "created_at" datetime, "updated_at" datetime, "courier" varchar(255), "tracking_url" varchar(255)) 
507
+  (0.1ms) SELECT * FROM "ashoppe_delivery_services"
508
+  (0.1ms) DROP TABLE "ashoppe_delivery_services"
509
+  (0.1ms) CREATE TEMPORARY TABLE "ashoppe_delivery_services" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "code" varchar(255), "default" boolean DEFAULT 't', "max_weight" decimal(8,3), "active" boolean DEFAULT 't', "created_at" datetime, "updated_at" datetime, "courier" varchar(255), "tracking_url" varchar(255))
510
+  (0.1ms) SELECT * FROM "shoppe_delivery_services"
511
+  (0.1ms) DROP TABLE "shoppe_delivery_services"
512
+  (0.1ms) CREATE TABLE "shoppe_delivery_services" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "code" varchar(255), "default" boolean DEFAULT 't', "active" boolean DEFAULT 't', "created_at" datetime, "updated_at" datetime, "courier" varchar(255), "tracking_url" varchar(255)) 
513
+  (0.0ms) SELECT * FROM "ashoppe_delivery_services"
514
+  (0.1ms) DROP TABLE "ashoppe_delivery_services"
515
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131002155246"]]
516
+  (1.2ms) commit transaction
517
+ Migrating to DefaultShouldNotBeTrueForDeliveryServices (20131002162301)
518
+  (0.1ms) begin transaction
519
+  (0.2ms) CREATE TEMPORARY TABLE "ashoppe_delivery_services" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "code" varchar(255), "default" boolean DEFAULT 't', "active" boolean DEFAULT 't', "created_at" datetime, "updated_at" datetime, "courier" varchar(255), "tracking_url" varchar(255)) 
520
+  (0.1ms) SELECT * FROM "shoppe_delivery_services"
521
+  (0.3ms) DROP TABLE "shoppe_delivery_services"
522
+  (0.1ms) CREATE TABLE "shoppe_delivery_services" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "code" varchar(255), "default" boolean DEFAULT 'f', "active" boolean DEFAULT 't', "created_at" datetime, "updated_at" datetime, "courier" varchar(255), "tracking_url" varchar(255))
523
+  (0.1ms) SELECT * FROM "ashoppe_delivery_services"
524
+  (0.1ms) DROP TABLE "ashoppe_delivery_services"
525
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131002162301"]]
526
+  (0.8ms) commit transaction
527
+ Migrating to ChangeDefaultsForDeliveryValuesOnOrders (20131003163827)
528
+  (0.1ms) begin transaction
529
+  (0.3ms) CREATE TEMPORARY TABLE "ashoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "accepted_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "delivery_service_id" integer, "delivery_price" decimal(8,2) DEFAULT 0.0, "delivery_tax_rate" decimal(8,2) DEFAULT 0.0, "delivery_tax_amount" decimal(8,2) DEFAULT 0.0, "paid_at" datetime, "accepted_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer, "payment_gateway_module" varchar(255), "ip_address" varchar(255))
530
+  (0.2ms) SELECT * FROM "shoppe_orders"
531
+  (0.3ms) DROP TABLE "shoppe_orders"
532
+  (0.2ms) CREATE TABLE "shoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "accepted_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "delivery_service_id" integer, "delivery_price" decimal(8,2), "delivery_tax_rate" decimal(8,2) DEFAULT 0.0, "delivery_tax_amount" decimal(8,2) DEFAULT 0.0, "paid_at" datetime, "accepted_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer, "payment_gateway_module" varchar(255), "ip_address" varchar(255)) 
533
+  (0.1ms) SELECT * FROM "ashoppe_orders"
534
+  (0.1ms) DROP TABLE "ashoppe_orders"
535
+  (0.2ms) CREATE TEMPORARY TABLE "ashoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "accepted_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "delivery_service_id" integer, "delivery_price" decimal(8,2), "delivery_tax_rate" decimal(8,2) DEFAULT 0.0, "delivery_tax_amount" decimal(8,2) DEFAULT 0.0, "paid_at" datetime, "accepted_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer, "payment_gateway_module" varchar(255), "ip_address" varchar(255))
536
+  (0.1ms) SELECT * FROM "shoppe_orders"
537
+  (0.3ms) DROP TABLE "shoppe_orders"
538
+  (0.2ms) CREATE TABLE "shoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "accepted_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "delivery_service_id" integer, "delivery_price" decimal(8,2), "delivery_tax_rate" decimal(8,2), "delivery_tax_amount" decimal(8,2) DEFAULT 0.0, "paid_at" datetime, "accepted_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer, "payment_gateway_module" varchar(255), "ip_address" varchar(255)) 
539
+  (0.1ms) SELECT * FROM "ashoppe_orders"
540
+  (0.1ms) DROP TABLE "ashoppe_orders"
541
+  (0.2ms) CREATE TEMPORARY TABLE "ashoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "accepted_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "delivery_service_id" integer, "delivery_price" decimal(8,2), "delivery_tax_rate" decimal(8,2), "delivery_tax_amount" decimal(8,2) DEFAULT 0.0, "paid_at" datetime, "accepted_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer, "payment_gateway_module" varchar(255), "ip_address" varchar(255))
542
+  (0.1ms) SELECT * FROM "shoppe_orders"
543
+  (0.1ms) DROP TABLE "shoppe_orders"
544
+  (0.2ms) CREATE TABLE "shoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "accepted_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "delivery_service_id" integer, "delivery_price" decimal(8,2), "delivery_tax_rate" decimal(8,2), "delivery_tax_amount" decimal(8,2), "paid_at" datetime, "accepted_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer, "payment_gateway_module" varchar(255), "ip_address" varchar(255)) 
545
+  (0.1ms) SELECT * FROM "ashoppe_orders"
546
+  (0.2ms) DROP TABLE "ashoppe_orders"
547
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131003163827"]]
548
+  (1.0ms) commit transaction
549
+ Migrating to AddCountryToOrders (20131004185043)
550
+  (0.1ms) begin transaction
551
+  (0.5ms) ALTER TABLE "shoppe_orders" ADD "country" varchar(255)
552
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131004185043"]]
553
+  (0.9ms) commit transaction
554
+ Migrating to AddBoxFieldsToProducts (20131004193320)
555
+  (0.1ms) begin transaction
556
+  (0.5ms) ALTER TABLE "shoppe_products" ADD "in_the_box" text
557
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131004193320"]]
558
+  (0.8ms) commit transaction
559
+ Migrating to AddPaymentReferenceFields (20131006144849)
560
+  (0.1ms) begin transaction
561
+  (0.3ms) ALTER TABLE "shoppe_orders" ADD "payment_reference" varchar(255)
562
+  (0.2ms) ALTER TABLE "shoppe_orders" ADD "payment_method" varchar(255)
563
+  (0.2ms) CREATE TEMPORARY TABLE "ashoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "accepted_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "delivery_service_id" integer, "delivery_price" decimal(8,2), "delivery_tax_rate" decimal(8,2), "delivery_tax_amount" decimal(8,2), "paid_at" datetime, "accepted_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer, "payment_gateway_module" varchar(255), "ip_address" varchar(255), "country" varchar(255), "payment_reference" varchar(255), "payment_method" varchar(255)) 
564
+  (0.1ms) SELECT * FROM "shoppe_orders"
565
+  (0.3ms) DROP TABLE "shoppe_orders"
566
+  (0.2ms) CREATE TABLE "shoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "accepted_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "delivery_service_id" integer, "delivery_price" decimal(8,2), "delivery_tax_rate" decimal(8,2), "delivery_tax_amount" decimal(8,2), "paid_at" datetime, "accepted_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer, "ip_address" varchar(255), "country" varchar(255), "payment_reference" varchar(255), "payment_method" varchar(255))
567
+  (0.1ms) SELECT * FROM "ashoppe_orders"
568
+  (0.2ms) DROP TABLE "ashoppe_orders"
569
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131006144849"]]
570
+  (0.8ms) commit transaction
571
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
572
+  (2.6ms) CREATE TABLE "shoppe_attachments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "parent_id" integer, "parent_type" varchar(255), "token" varchar(255), "role" varchar(255), "file_name" varchar(255), "file_type" varchar(255), "data" blob(10485760), "created_at" datetime, "updated_at" datetime) 
573
+  (1.1ms) CREATE TABLE "shoppe_delivery_service_prices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "delivery_service_id" integer, "code" varchar(255), "price" decimal(8,2), "tax_rate" decimal(8,2), "min_weight" decimal(8,2), "max_weight" decimal(8,2), "created_at" datetime, "updated_at" datetime)
574
+  (1.4ms) CREATE TABLE "shoppe_delivery_services" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "code" varchar(255), "default" boolean DEFAULT 'f', "active" boolean DEFAULT 't', "created_at" datetime, "updated_at" datetime, "courier" varchar(255), "tracking_url" varchar(255)) 
575
+  (1.1ms) CREATE TABLE "shoppe_key_value_store" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "parent_id" integer, "parent_type" varchar(255), "group" varchar(255), "name" varchar(255), "value" varchar(255))
576
+  (1.0ms) CREATE TABLE "shoppe_order_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "order_id" integer, "product_id" integer, "quantity" integer DEFAULT 1, "unit_price" decimal(8,2), "tax_amount" decimal(8,2), "tax_rate" decimal(8,2), "weight" decimal(8,3) DEFAULT 0.0, "created_at" datetime, "updated_at" datetime) 
577
+  (1.1ms) CREATE TABLE "shoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "accepted_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "delivery_service_id" integer, "delivery_price" decimal(8,2), "delivery_tax_rate" decimal(8,2), "delivery_tax_amount" decimal(8,2), "paid_at" datetime, "accepted_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer, "ip_address" varchar(255), "country" varchar(255), "payment_reference" varchar(255), "payment_method" varchar(255))
578
+  (0.7ms) CREATE TABLE "shoppe_product_categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "permalink" varchar(255), "description" text, "created_at" datetime, "updated_at" datetime) 
579
+  (1.1ms) CREATE TABLE "shoppe_products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "product_category_id" integer, "title" varchar(255), "sku" varchar(255), "permalink" varchar(255), "description" text, "short_description" text, "active" boolean DEFAULT 't', "weight" decimal(8,3) DEFAULT 0.0, "price" decimal(8,2) DEFAULT 0.0, "tax_rate" decimal(8,2) DEFAULT 0.0, "stock" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime, "featured" boolean DEFAULT 'f', "in_the_box" text)
580
+  (0.8ms) CREATE TABLE "shoppe_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "email_address" varchar(255), "password_digest" varchar(255), "created_at" datetime, "updated_at" datetime) 
581
+  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
582
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
583
+  (0.1ms) SELECT version FROM "schema_migrations"
584
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20131006144849')
585
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926094549')
586
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926094551')
587
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926094647')
588
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926094654')
589
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926104450')
590
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926151718')
591
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130927113134')
592
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130927130022')
593
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130927132143')
594
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130927150025')
595
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928111819')
596
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928131502')
597
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928134518')
598
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928173818')
599
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928180041')
600
+  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928185655')
601
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928193023')
602
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928201257')
603
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130929151744')
604
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130929203421')
605
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130930181344')
606
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131002154122')
607
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20131002155246')
608
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20131002162301')
609
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131003163827')
610
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131004185043')
611
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131004193320')
612
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
613
+ Migrating to CreateNiftyAttachmentsTable (20131007130530)
614
+  (0.1ms) begin transaction
615
+  (0.5ms) CREATE TABLE "nifty_attachments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "parent_id" integer, "parent_type" varchar(255), "token" varchar(255), "digest" varchar(255), "role" varchar(255), "file_name" varchar(255), "file_type" varchar(255), "data" blob(10485760), "created_at" datetime, "updated_at" datetime) 
616
+ SQL (1.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131007130530"]]
617
+  (2.5ms) commit transaction
618
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
619
+  (3.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
620
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
621
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
622
+ Migrating to CreateProductCategories (20130926094549)
623
+  (0.0ms) begin transaction
624
+  (0.3ms) CREATE TABLE "shoppe_product_categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "permalink" varchar(255), "description" text, "created_at" datetime, "updated_at" datetime) 
625
+ SQL (1.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130926094549"]]
626
+  (0.8ms) commit transaction
627
+ Migrating to CreateProducts (20130926094551)
628
+  (0.1ms) begin transaction
629
+  (0.4ms) CREATE TABLE "shoppe_products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "product_category_id" integer, "title" varchar(255), "sku" varchar(255), "permalink" varchar(255), "description" text, "short_description" text, "active" boolean DEFAULT 't', "weight" decimal(8,3) DEFAULT 0.0, "price" decimal(8,2) DEFAULT 0.0, "vat_rate" decimal(8,2) DEFAULT 0.0, "stock" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime) 
630
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130926094551"]]
631
+  (0.8ms) commit transaction
632
+ Migrating to CreateOrders (20130926094647)
633
+  (0.0ms) begin transaction
634
+  (0.3ms) CREATE TABLE "shoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "approved_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime) 
635
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130926094647"]]
636
+  (0.9ms) commit transaction
637
+ Migrating to CreateOrderItems (20130926094654)
638
+  (0.1ms) begin transaction
639
+  (0.3ms) CREATE TABLE "shoppe_order_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "order_id" integer, "parent_type" varchar(255), "parent_id" integer, "quantity" integer DEFAULT 1, "unit_price" decimal(8,2), "vat_amount" decimal(8,2), "vat_rate" decimal(8,2), "weight" decimal(8,3) DEFAULT 0, "created_at" datetime, "updated_at" datetime) 
640
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130926094654"]]
641
+  (0.8ms) commit transaction
642
+ Migrating to CreateUsers (20130926151718)
643
+  (0.1ms) begin transaction
644
+  (0.3ms) CREATE TABLE "shoppe_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "email_address" varchar(255), "password_digest" varchar(255), "created_at" datetime, "updated_at" datetime) 
645
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130926151718"]]
646
+  (0.9ms) commit transaction
647
+ Migrating to AddCardTokenToOrders (20130927113134)
648
+  (0.1ms) begin transaction
649
+  (0.3ms) ALTER TABLE "shoppe_orders" ADD "stripe_customer_token" varchar(255)
650
+  (0.2ms) ALTER TABLE "shoppe_orders" ADD "stripe_payment_token" varchar(255)
651
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130927113134"]]
652
+  (0.8ms) commit transaction
653
+ Migrating to CreateDeliveryServices (20130927130022)
654
+  (0.1ms) begin transaction
655
+  (0.3ms) CREATE TABLE "shoppe_delivery_services" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "code" varchar(255), "default" boolean DEFAULT 't', "min_weight" decimal(8,3), "max_weight" decimal(8,3), "price" decimal(8,2) DEFAULT 0, "vat_rate" decimal(8,2), "active" boolean DEFAULT 't', "created_at" datetime, "updated_at" datetime)
656
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130927130022"]]
657
+  (0.8ms) commit transaction
658
+ Migrating to AddDeliveryServiceToOrder (20130927132143)
659
+  (0.1ms) begin transaction
660
+  (0.3ms) ALTER TABLE "shoppe_orders" ADD "delivery_service_id" integer
661
+  (0.1ms) ALTER TABLE "shoppe_orders" ADD "delivery_price" decimal(8,2) DEFAULT 0.0
662
+  (0.2ms) ALTER TABLE "shoppe_orders" ADD "delivery_vat_rate" decimal(8,2) DEFAULT 0.0
663
+  (0.1ms) ALTER TABLE "shoppe_orders" ADD "delivery_vat_amount" decimal(8,2) DEFAULT 0.0
664
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130927132143"]]
665
+  (0.8ms) commit transaction
666
+ Migrating to AddPaymentDateToOrders (20130927150025)
667
+  (0.1ms) begin transaction
668
+  (0.4ms) ALTER TABLE "shoppe_orders" ADD "paid_at" datetime
669
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130927150025"]]
670
+  (0.7ms) commit transaction
671
+ Migrating to RenameStripePaymentToken (20130928111819)
672
+  (0.1ms) begin transaction
673
+  (0.6ms) CREATE TEMPORARY TABLE "ashoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "approved_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "stripe_customer_token" varchar(255), "payment_reference" varchar(255), "delivery_service_id" integer, "delivery_price" decimal(8,2) DEFAULT 0.0, "delivery_vat_rate" decimal(8,2) DEFAULT 0.0, "delivery_vat_amount" decimal(8,2) DEFAULT 0.0, "paid_at" datetime) 
674
+  (0.1ms) SELECT * FROM "shoppe_orders"
675
+  (0.2ms) DROP TABLE "shoppe_orders"
676
+  (0.1ms) CREATE TABLE "shoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "approved_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "stripe_customer_token" varchar(255), "payment_reference" varchar(255), "delivery_service_id" integer, "delivery_price" decimal(8,2) DEFAULT 0.0, "delivery_vat_rate" decimal(8,2) DEFAULT 0.0, "delivery_vat_amount" decimal(8,2) DEFAULT 0.0, "paid_at" datetime)
677
+  (0.1ms) SELECT * FROM "ashoppe_orders"
678
+  (0.3ms) DROP TABLE "ashoppe_orders"
679
+  (0.1ms) ALTER TABLE "shoppe_orders" ADD "payment_method" varchar(255)
680
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130928111819"]]
681
+  (1.0ms) commit transaction
682
+ Migrating to AddApporovedUsers (20130928131502)
683
+  (0.1ms) begin transaction
684
+  (0.3ms) ALTER TABLE "shoppe_orders" ADD "approved_by" integer
685
+  (0.2ms) ALTER TABLE "shoppe_orders" ADD "shipped_by" integer
686
+  (0.2ms) ALTER TABLE "shoppe_orders" ADD "consignment_number" varchar(255)
687
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130928131502"]]
688
+  (0.8ms) commit transaction
689
+ Migrating to AddCourierDetailsToShippingMethods (20130928134518)
690
+  (0.1ms) begin transaction
691
+  (0.4ms) ALTER TABLE "shoppe_delivery_services" ADD "courier" varchar(255)
692
+  (0.1ms) ALTER TABLE "shoppe_delivery_services" ADD "tracking_url" varchar(255)
693
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130928134518"]]
694
+  (0.8ms) commit transaction
695
+ Migrating to AddRejectionToOrders (20130928173818)
696
+  (0.1ms) begin transaction
697
+  (0.4ms) ALTER TABLE "shoppe_orders" ADD "rejected_at" datetime
698
+  (0.2ms) ALTER TABLE "shoppe_orders" ADD "rejected_by" integer
699
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130928173818"]]
700
+  (0.8ms) commit transaction
701
+ Migrating to SortOutOrdersForGateways (20130928180041)
702
+  (0.1ms) begin transaction
703
+  (0.2ms) CREATE TEMPORARY TABLE "ashoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "approved_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "stripe_customer_token" varchar(255), "payment_reference" varchar(255), "delivery_service_id" integer, "delivery_price" decimal(8,2) DEFAULT 0.0, "delivery_vat_rate" decimal(8,2) DEFAULT 0.0, "delivery_vat_amount" decimal(8,2) DEFAULT 0.0, "paid_at" datetime, "payment_method" varchar(255), "approved_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer) 
704
+  (0.1ms) SELECT * FROM "shoppe_orders"
705
+  (0.3ms) DROP TABLE "shoppe_orders"
706
+  (0.2ms) CREATE TABLE "shoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "approved_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "payment_reference" varchar(255), "delivery_service_id" integer, "delivery_price" decimal(8,2) DEFAULT 0.0, "delivery_vat_rate" decimal(8,2) DEFAULT 0.0, "delivery_vat_amount" decimal(8,2) DEFAULT 0.0, "paid_at" datetime, "payment_method" varchar(255), "approved_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer)
707
+  (0.1ms) SELECT * FROM "ashoppe_orders"
708
+  (0.1ms) DROP TABLE "ashoppe_orders"
709
+  (0.2ms) CREATE TEMPORARY TABLE "ashoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "approved_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "payment_reference" varchar(255), "delivery_service_id" integer, "delivery_price" decimal(8,2) DEFAULT 0.0, "delivery_vat_rate" decimal(8,2) DEFAULT 0.0, "delivery_vat_amount" decimal(8,2) DEFAULT 0.0, "paid_at" datetime, "payment_method" varchar(255), "approved_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer) 
710
+  (0.1ms) SELECT * FROM "shoppe_orders"
711
+  (0.3ms) DROP TABLE "shoppe_orders"
712
+  (0.2ms) CREATE TABLE "shoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "approved_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "delivery_service_id" integer, "delivery_price" decimal(8,2) DEFAULT 0.0, "delivery_vat_rate" decimal(8,2) DEFAULT 0.0, "delivery_vat_amount" decimal(8,2) DEFAULT 0.0, "paid_at" datetime, "payment_method" varchar(255), "approved_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer)
713
+  (0.1ms) SELECT * FROM "ashoppe_orders"
714
+  (0.1ms) DROP TABLE "ashoppe_orders"
715
+  (0.2ms) CREATE TEMPORARY TABLE "ashoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "approved_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "delivery_service_id" integer, "delivery_price" decimal(8,2) DEFAULT 0.0, "delivery_vat_rate" decimal(8,2) DEFAULT 0.0, "delivery_vat_amount" decimal(8,2) DEFAULT 0.0, "paid_at" datetime, "payment_method" varchar(255), "approved_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer) 
716
+  (0.1ms) SELECT * FROM "shoppe_orders"
717
+  (0.2ms) DROP TABLE "shoppe_orders"
718
+  (0.2ms) CREATE TABLE "shoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "approved_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "delivery_service_id" integer, "delivery_price" decimal(8,2) DEFAULT 0.0, "delivery_vat_rate" decimal(8,2) DEFAULT 0.0, "delivery_vat_amount" decimal(8,2) DEFAULT 0.0, "paid_at" datetime, "approved_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer)
719
+  (0.1ms) SELECT * FROM "ashoppe_orders"
720
+  (0.1ms) DROP TABLE "ashoppe_orders"
721
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130928180041"]]
722
+  (0.9ms) commit transaction
723
+ Migrating to AddPaymentGatewayToOrders (20130928193023)
724
+  (0.1ms) begin transaction
725
+  (0.5ms) ALTER TABLE "shoppe_orders" ADD "payment_gateway_module" varchar(255)
726
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130928193023"]]
727
+  (0.8ms) commit transaction
728
+ Migrating to UpdateDatabaseColumnsForAccepted (20130928201257)
729
+  (0.1ms) begin transaction
730
+  (0.2ms) CREATE TEMPORARY TABLE "ashoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "accepted_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "delivery_service_id" integer, "delivery_price" decimal(8,2) DEFAULT 0.0, "delivery_vat_rate" decimal(8,2) DEFAULT 0.0, "delivery_vat_amount" decimal(8,2) DEFAULT 0.0, "paid_at" datetime, "approved_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer, "payment_gateway_module" varchar(255))
731
+  (0.1ms) SELECT * FROM "shoppe_orders"
732
+  (0.3ms) DROP TABLE "shoppe_orders"
733
+  (0.2ms) CREATE TABLE "shoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "accepted_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "delivery_service_id" integer, "delivery_price" decimal(8,2) DEFAULT 0.0, "delivery_vat_rate" decimal(8,2) DEFAULT 0.0, "delivery_vat_amount" decimal(8,2) DEFAULT 0.0, "paid_at" datetime, "approved_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer, "payment_gateway_module" varchar(255)) 
734
+  (0.1ms) SELECT * FROM "ashoppe_orders"
735
+  (0.1ms) DROP TABLE "ashoppe_orders"
736
+  (0.2ms) CREATE TEMPORARY TABLE "ashoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "accepted_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "delivery_service_id" integer, "delivery_price" decimal(8,2) DEFAULT 0.0, "delivery_vat_rate" decimal(8,2) DEFAULT 0.0, "delivery_vat_amount" decimal(8,2) DEFAULT 0.0, "paid_at" datetime, "accepted_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer, "payment_gateway_module" varchar(255))
737
+  (0.1ms) SELECT * FROM "shoppe_orders"
738
+  (0.3ms) DROP TABLE "shoppe_orders"
739
+  (0.2ms) CREATE TABLE "shoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "accepted_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "delivery_service_id" integer, "delivery_price" decimal(8,2) DEFAULT 0.0, "delivery_vat_rate" decimal(8,2) DEFAULT 0.0, "delivery_vat_amount" decimal(8,2) DEFAULT 0.0, "paid_at" datetime, "accepted_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer, "payment_gateway_module" varchar(255)) 
740
+  (0.1ms) SELECT * FROM "ashoppe_orders"
741
+  (0.1ms) DROP TABLE "ashoppe_orders"
742
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130928201257"]]
743
+  (1.0ms) commit transaction
744
+ Migrating to AddIpAddressToOrders (20130929151744)
745
+  (0.1ms) begin transaction
746
+  (0.4ms) ALTER TABLE "shoppe_orders" ADD "ip_address" varchar(255)
747
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130929151744"]]
748
+  (0.8ms) commit transaction
749
+ Migrating to ChangeOrderItemsToBeNonPolymorphic (20130929203421)
750
+  (0.1ms) begin transaction
751
+  (0.2ms) CREATE TEMPORARY TABLE "ashoppe_order_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "order_id" integer, "parent_type" varchar(255), "product_id" integer, "quantity" integer DEFAULT 1, "unit_price" decimal(8,2), "vat_amount" decimal(8,2), "vat_rate" decimal(8,2), "weight" decimal(8,3) DEFAULT 0.0, "created_at" datetime, "updated_at" datetime) 
752
+  (0.1ms) SELECT * FROM "shoppe_order_items"
753
+  (0.3ms) DROP TABLE "shoppe_order_items"
754
+  (0.1ms) CREATE TABLE "shoppe_order_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "order_id" integer, "parent_type" varchar(255), "product_id" integer, "quantity" integer DEFAULT 1, "unit_price" decimal(8,2), "vat_amount" decimal(8,2), "vat_rate" decimal(8,2), "weight" decimal(8,3) DEFAULT 0.0, "created_at" datetime, "updated_at" datetime)
755
+  (0.0ms) SELECT * FROM "ashoppe_order_items"
756
+  (0.1ms) DROP TABLE "ashoppe_order_items"
757
+  (0.1ms) CREATE TEMPORARY TABLE "ashoppe_order_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "order_id" integer, "parent_type" varchar(255), "product_id" integer, "quantity" integer DEFAULT 1, "unit_price" decimal(8,2), "vat_amount" decimal(8,2), "vat_rate" decimal(8,2), "weight" decimal(8,3) DEFAULT 0.0, "created_at" datetime, "updated_at" datetime) 
758
+  (0.1ms) SELECT * FROM "shoppe_order_items"
759
+  (0.3ms) DROP TABLE "shoppe_order_items"
760
+  (0.2ms) CREATE TABLE "shoppe_order_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "order_id" integer, "product_id" integer, "quantity" integer DEFAULT 1, "unit_price" decimal(8,2), "vat_amount" decimal(8,2), "vat_rate" decimal(8,2), "weight" decimal(8,3) DEFAULT 0.0, "created_at" datetime, "updated_at" datetime)
761
+  (0.1ms) SELECT * FROM "ashoppe_order_items"
762
+  (0.1ms) DROP TABLE "ashoppe_order_items"
763
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130929203421"]]
764
+  (1.0ms) commit transaction
765
+ Migrating to AddFeaturedBooleanToProducts (20130930181344)
766
+  (0.1ms) begin transaction
767
+  (0.3ms) ALTER TABLE "shoppe_products" ADD "featured" boolean DEFAULT 'f'
768
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130930181344"]]
769
+  (0.9ms) commit transaction
770
+ Migrating to RenameVatToTax (20131002154122)
771
+  (0.1ms) begin transaction
772
+  (0.2ms) CREATE TEMPORARY TABLE "ashoppe_products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "product_category_id" integer, "title" varchar(255), "sku" varchar(255), "permalink" varchar(255), "description" text, "short_description" text, "active" boolean DEFAULT 't', "weight" decimal(8,3) DEFAULT 0.0, "price" decimal(8,2) DEFAULT 0.0, "tax_rate" decimal(8,2) DEFAULT 0.0, "stock" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime, "featured" boolean DEFAULT 'f')
773
+  (0.1ms) SELECT * FROM "shoppe_products"
774
+  (0.3ms) DROP TABLE "shoppe_products"
775
+  (0.1ms) CREATE TABLE "shoppe_products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "product_category_id" integer, "title" varchar(255), "sku" varchar(255), "permalink" varchar(255), "description" text, "short_description" text, "active" boolean DEFAULT 't', "weight" decimal(8,3) DEFAULT 0.0, "price" decimal(8,2) DEFAULT 0.0, "tax_rate" decimal(8,2) DEFAULT 0.0, "stock" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime, "featured" boolean DEFAULT 'f') 
776
+  (0.1ms) SELECT * FROM "ashoppe_products"
777
+  (0.1ms) DROP TABLE "ashoppe_products"
778
+  (0.2ms) CREATE TEMPORARY TABLE "ashoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "accepted_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "delivery_service_id" integer, "delivery_price" decimal(8,2) DEFAULT 0.0, "delivery_tax_rate" decimal(8,2) DEFAULT 0.0, "delivery_vat_amount" decimal(8,2) DEFAULT 0.0, "paid_at" datetime, "accepted_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer, "payment_gateway_module" varchar(255), "ip_address" varchar(255))
779
+  (0.1ms) SELECT * FROM "shoppe_orders"
780
+  (0.3ms) DROP TABLE "shoppe_orders"
781
+  (0.1ms) CREATE TABLE "shoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "accepted_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "delivery_service_id" integer, "delivery_price" decimal(8,2) DEFAULT 0.0, "delivery_tax_rate" decimal(8,2) DEFAULT 0.0, "delivery_vat_amount" decimal(8,2) DEFAULT 0.0, "paid_at" datetime, "accepted_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer, "payment_gateway_module" varchar(255), "ip_address" varchar(255)) 
782
+  (0.1ms) SELECT * FROM "ashoppe_orders"
783
+  (0.3ms) DROP TABLE "ashoppe_orders"
784
+  (0.2ms) CREATE TEMPORARY TABLE "ashoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "accepted_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "delivery_service_id" integer, "delivery_price" decimal(8,2) DEFAULT 0.0, "delivery_tax_rate" decimal(8,2) DEFAULT 0.0, "delivery_tax_amount" decimal(8,2) DEFAULT 0.0, "paid_at" datetime, "accepted_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer, "payment_gateway_module" varchar(255), "ip_address" varchar(255))
785
+  (0.1ms) SELECT * FROM "shoppe_orders"
786
+  (0.2ms) DROP TABLE "shoppe_orders"
787
+  (0.2ms) CREATE TABLE "shoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "accepted_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "delivery_service_id" integer, "delivery_price" decimal(8,2) DEFAULT 0.0, "delivery_tax_rate" decimal(8,2) DEFAULT 0.0, "delivery_tax_amount" decimal(8,2) DEFAULT 0.0, "paid_at" datetime, "accepted_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer, "payment_gateway_module" varchar(255), "ip_address" varchar(255)) 
788
+  (0.1ms) SELECT * FROM "ashoppe_orders"
789
+  (0.2ms) DROP TABLE "ashoppe_orders"
790
+  (0.2ms) CREATE TEMPORARY TABLE "ashoppe_order_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "order_id" integer, "product_id" integer, "quantity" integer DEFAULT 1, "unit_price" decimal(8,2), "tax_amount" decimal(8,2), "vat_rate" decimal(8,2), "weight" decimal(8,3) DEFAULT 0.0, "created_at" datetime, "updated_at" datetime)
791
+  (0.1ms) SELECT * FROM "shoppe_order_items"
792
+  (0.2ms) DROP TABLE "shoppe_order_items"
793
+  (0.1ms) CREATE TABLE "shoppe_order_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "order_id" integer, "product_id" integer, "quantity" integer DEFAULT 1, "unit_price" decimal(8,2), "tax_amount" decimal(8,2), "vat_rate" decimal(8,2), "weight" decimal(8,3) DEFAULT 0.0, "created_at" datetime, "updated_at" datetime) 
794
+  (0.1ms) SELECT * FROM "ashoppe_order_items"
795
+  (0.1ms) DROP TABLE "ashoppe_order_items"
796
+  (0.1ms) CREATE TEMPORARY TABLE "ashoppe_order_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "order_id" integer, "product_id" integer, "quantity" integer DEFAULT 1, "unit_price" decimal(8,2), "tax_amount" decimal(8,2), "tax_rate" decimal(8,2), "weight" decimal(8,3) DEFAULT 0.0, "created_at" datetime, "updated_at" datetime)
797
+  (0.0ms) SELECT * FROM "shoppe_order_items"
798
+  (0.1ms) DROP TABLE "shoppe_order_items"
799
+  (0.1ms) CREATE TABLE "shoppe_order_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "order_id" integer, "product_id" integer, "quantity" integer DEFAULT 1, "unit_price" decimal(8,2), "tax_amount" decimal(8,2), "tax_rate" decimal(8,2), "weight" decimal(8,3) DEFAULT 0.0, "created_at" datetime, "updated_at" datetime) 
800
+  (0.0ms) SELECT * FROM "ashoppe_order_items"
801
+  (0.1ms) DROP TABLE "ashoppe_order_items"
802
+  (0.1ms) CREATE TEMPORARY TABLE "ashoppe_delivery_services" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "code" varchar(255), "default" boolean DEFAULT 't', "min_weight" decimal(8,3), "max_weight" decimal(8,3), "price" decimal(8,2) DEFAULT 0.0, "tax_rate" decimal(8,2), "active" boolean DEFAULT 't', "created_at" datetime, "updated_at" datetime, "courier" varchar(255), "tracking_url" varchar(255))
803
+  (0.1ms) SELECT * FROM "shoppe_delivery_services"
804
+  (0.1ms) DROP TABLE "shoppe_delivery_services"
805
+  (0.2ms) CREATE TABLE "shoppe_delivery_services" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "code" varchar(255), "default" boolean DEFAULT 't', "min_weight" decimal(8,3), "max_weight" decimal(8,3), "price" decimal(8,2) DEFAULT 0.0, "tax_rate" decimal(8,2), "active" boolean DEFAULT 't', "created_at" datetime, "updated_at" datetime, "courier" varchar(255), "tracking_url" varchar(255)) 
806
+  (0.1ms) SELECT * FROM "ashoppe_delivery_services"
807
+  (0.1ms) DROP TABLE "ashoppe_delivery_services"
808
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131002154122"]]
809
+  (1.0ms) commit transaction
810
+ Migrating to CreateDeliveryServicePrices (20131002155246)
811
+  (0.1ms) begin transaction
812
+  (0.4ms) CREATE TABLE "shoppe_delivery_service_prices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "delivery_service_id" integer, "code" varchar(255), "price" decimal(8,2), "tax_rate" decimal(8,2), "min_weight" decimal(8,2), "max_weight" decimal(8,2), "created_at" datetime, "updated_at" datetime) 
813
+  (0.1ms) CREATE TEMPORARY TABLE "ashoppe_delivery_services" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "code" varchar(255), "default" boolean DEFAULT 't', "min_weight" decimal(8,3), "max_weight" decimal(8,3), "price" decimal(8,2) DEFAULT 0.0, "tax_rate" decimal(8,2), "active" boolean DEFAULT 't', "created_at" datetime, "updated_at" datetime, "courier" varchar(255), "tracking_url" varchar(255))
814
+  (0.1ms) SELECT * FROM "shoppe_delivery_services"
815
+  (0.2ms) DROP TABLE "shoppe_delivery_services"
816
+  (0.1ms) CREATE TABLE "shoppe_delivery_services" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "code" varchar(255), "default" boolean DEFAULT 't', "min_weight" decimal(8,3), "max_weight" decimal(8,3), "tax_rate" decimal(8,2), "active" boolean DEFAULT 't', "created_at" datetime, "updated_at" datetime, "courier" varchar(255), "tracking_url" varchar(255)) 
817
+  (0.1ms) SELECT * FROM "ashoppe_delivery_services"
818
+  (0.1ms) DROP TABLE "ashoppe_delivery_services"
819
+  (0.1ms) CREATE TEMPORARY TABLE "ashoppe_delivery_services" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "code" varchar(255), "default" boolean DEFAULT 't', "min_weight" decimal(8,3), "max_weight" decimal(8,3), "tax_rate" decimal(8,2), "active" boolean DEFAULT 't', "created_at" datetime, "updated_at" datetime, "courier" varchar(255), "tracking_url" varchar(255))
820
+  (0.1ms) SELECT * FROM "shoppe_delivery_services"
821
+  (0.1ms) DROP TABLE "shoppe_delivery_services"
822
+  (0.1ms) CREATE TABLE "shoppe_delivery_services" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "code" varchar(255), "default" boolean DEFAULT 't', "min_weight" decimal(8,3), "max_weight" decimal(8,3), "active" boolean DEFAULT 't', "created_at" datetime, "updated_at" datetime, "courier" varchar(255), "tracking_url" varchar(255)) 
823
+  (0.0ms) SELECT * FROM "ashoppe_delivery_services"
824
+  (0.1ms) DROP TABLE "ashoppe_delivery_services"
825
+  (0.2ms) CREATE TEMPORARY TABLE "ashoppe_delivery_services" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "code" varchar(255), "default" boolean DEFAULT 't', "min_weight" decimal(8,3), "max_weight" decimal(8,3), "active" boolean DEFAULT 't', "created_at" datetime, "updated_at" datetime, "courier" varchar(255), "tracking_url" varchar(255))
826
+  (0.0ms) SELECT * FROM "shoppe_delivery_services"
827
+  (0.1ms) DROP TABLE "shoppe_delivery_services"
828
+  (0.1ms) CREATE TABLE "shoppe_delivery_services" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "code" varchar(255), "default" boolean DEFAULT 't', "max_weight" decimal(8,3), "active" boolean DEFAULT 't', "created_at" datetime, "updated_at" datetime, "courier" varchar(255), "tracking_url" varchar(255)) 
829
+  (0.1ms) SELECT * FROM "ashoppe_delivery_services"
830
+  (0.1ms) DROP TABLE "ashoppe_delivery_services"
831
+  (0.1ms) CREATE TEMPORARY TABLE "ashoppe_delivery_services" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "code" varchar(255), "default" boolean DEFAULT 't', "max_weight" decimal(8,3), "active" boolean DEFAULT 't', "created_at" datetime, "updated_at" datetime, "courier" varchar(255), "tracking_url" varchar(255))
832
+  (0.0ms) SELECT * FROM "shoppe_delivery_services"
833
+  (0.1ms) DROP TABLE "shoppe_delivery_services"
834
+  (0.1ms) CREATE TABLE "shoppe_delivery_services" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "code" varchar(255), "default" boolean DEFAULT 't', "active" boolean DEFAULT 't', "created_at" datetime, "updated_at" datetime, "courier" varchar(255), "tracking_url" varchar(255)) 
835
+  (0.0ms) SELECT * FROM "ashoppe_delivery_services"
836
+  (0.1ms) DROP TABLE "ashoppe_delivery_services"
837
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131002155246"]]
838
+  (1.1ms) commit transaction
839
+ Migrating to DefaultShouldNotBeTrueForDeliveryServices (20131002162301)
840
+  (0.1ms) begin transaction
841
+  (0.2ms) CREATE TEMPORARY TABLE "ashoppe_delivery_services" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "code" varchar(255), "default" boolean DEFAULT 't', "active" boolean DEFAULT 't', "created_at" datetime, "updated_at" datetime, "courier" varchar(255), "tracking_url" varchar(255)) 
842
+  (0.1ms) SELECT * FROM "shoppe_delivery_services"
843
+  (0.2ms) DROP TABLE "shoppe_delivery_services"
844
+  (0.1ms) CREATE TABLE "shoppe_delivery_services" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "code" varchar(255), "default" boolean DEFAULT 'f', "active" boolean DEFAULT 't', "created_at" datetime, "updated_at" datetime, "courier" varchar(255), "tracking_url" varchar(255))
845
+  (0.1ms) SELECT * FROM "ashoppe_delivery_services"
846
+  (0.1ms) DROP TABLE "ashoppe_delivery_services"
847
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131002162301"]]
848
+  (0.7ms) commit transaction
849
+ Migrating to ChangeDefaultsForDeliveryValuesOnOrders (20131003163827)
850
+  (0.1ms) begin transaction
851
+  (0.2ms) CREATE TEMPORARY TABLE "ashoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "accepted_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "delivery_service_id" integer, "delivery_price" decimal(8,2) DEFAULT 0.0, "delivery_tax_rate" decimal(8,2) DEFAULT 0.0, "delivery_tax_amount" decimal(8,2) DEFAULT 0.0, "paid_at" datetime, "accepted_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer, "payment_gateway_module" varchar(255), "ip_address" varchar(255))
852
+  (0.1ms) SELECT * FROM "shoppe_orders"
853
+  (0.3ms) DROP TABLE "shoppe_orders"
854
+  (0.2ms) CREATE TABLE "shoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "accepted_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "delivery_service_id" integer, "delivery_price" decimal(8,2), "delivery_tax_rate" decimal(8,2) DEFAULT 0.0, "delivery_tax_amount" decimal(8,2) DEFAULT 0.0, "paid_at" datetime, "accepted_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer, "payment_gateway_module" varchar(255), "ip_address" varchar(255)) 
855
+  (0.1ms) SELECT * FROM "ashoppe_orders"
856
+  (0.1ms) DROP TABLE "ashoppe_orders"
857
+  (0.2ms) CREATE TEMPORARY TABLE "ashoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "accepted_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "delivery_service_id" integer, "delivery_price" decimal(8,2), "delivery_tax_rate" decimal(8,2) DEFAULT 0.0, "delivery_tax_amount" decimal(8,2) DEFAULT 0.0, "paid_at" datetime, "accepted_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer, "payment_gateway_module" varchar(255), "ip_address" varchar(255))
858
+  (0.1ms) SELECT * FROM "shoppe_orders"
859
+  (0.3ms) DROP TABLE "shoppe_orders"
860
+  (0.1ms) CREATE TABLE "shoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "accepted_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "delivery_service_id" integer, "delivery_price" decimal(8,2), "delivery_tax_rate" decimal(8,2), "delivery_tax_amount" decimal(8,2) DEFAULT 0.0, "paid_at" datetime, "accepted_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer, "payment_gateway_module" varchar(255), "ip_address" varchar(255)) 
861
+  (0.1ms) SELECT * FROM "ashoppe_orders"
862
+  (0.1ms) DROP TABLE "ashoppe_orders"
863
+  (0.2ms) CREATE TEMPORARY TABLE "ashoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "accepted_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "delivery_service_id" integer, "delivery_price" decimal(8,2), "delivery_tax_rate" decimal(8,2), "delivery_tax_amount" decimal(8,2) DEFAULT 0.0, "paid_at" datetime, "accepted_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer, "payment_gateway_module" varchar(255), "ip_address" varchar(255))
864
+  (0.1ms) SELECT * FROM "shoppe_orders"
865
+  (0.1ms) DROP TABLE "shoppe_orders"
866
+  (0.2ms) CREATE TABLE "shoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "accepted_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "delivery_service_id" integer, "delivery_price" decimal(8,2), "delivery_tax_rate" decimal(8,2), "delivery_tax_amount" decimal(8,2), "paid_at" datetime, "accepted_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer, "payment_gateway_module" varchar(255), "ip_address" varchar(255)) 
867
+  (0.1ms) SELECT * FROM "ashoppe_orders"
868
+  (0.1ms) DROP TABLE "ashoppe_orders"
869
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131003163827"]]
870
+  (1.0ms) commit transaction
871
+ Migrating to AddCountryToOrders (20131004185043)
872
+  (0.1ms) begin transaction
873
+  (0.4ms) ALTER TABLE "shoppe_orders" ADD "country" varchar(255)
874
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131004185043"]]
875
+  (0.9ms) commit transaction
876
+ Migrating to AddBoxFieldsToProducts (20131004193320)
877
+  (0.0ms) begin transaction
878
+  (0.3ms) ALTER TABLE "shoppe_products" ADD "in_the_box" text
879
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131004193320"]]
880
+  (0.8ms) commit transaction
881
+ Migrating to AddPaymentReferenceFields (20131006144849)
882
+  (0.1ms) begin transaction
883
+  (0.4ms) ALTER TABLE "shoppe_orders" ADD "payment_reference" varchar(255)
884
+  (0.2ms) ALTER TABLE "shoppe_orders" ADD "payment_method" varchar(255)
885
+  (0.2ms) CREATE TEMPORARY TABLE "ashoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "accepted_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "delivery_service_id" integer, "delivery_price" decimal(8,2), "delivery_tax_rate" decimal(8,2), "delivery_tax_amount" decimal(8,2), "paid_at" datetime, "accepted_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer, "payment_gateway_module" varchar(255), "ip_address" varchar(255), "country" varchar(255), "payment_reference" varchar(255), "payment_method" varchar(255)) 
886
+  (0.1ms) SELECT * FROM "shoppe_orders"
887
+  (0.3ms) DROP TABLE "shoppe_orders"
888
+  (0.2ms) CREATE TABLE "shoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "accepted_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "delivery_service_id" integer, "delivery_price" decimal(8,2), "delivery_tax_rate" decimal(8,2), "delivery_tax_amount" decimal(8,2), "paid_at" datetime, "accepted_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer, "ip_address" varchar(255), "country" varchar(255), "payment_reference" varchar(255), "payment_method" varchar(255))
889
+  (0.1ms) SELECT * FROM "ashoppe_orders"
890
+  (0.1ms) DROP TABLE "ashoppe_orders"
891
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131006144849"]]
892
+  (0.7ms) commit transaction
893
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"