shoppe 0.0.15 → 0.0.16

Sign up to get free protection for your applications and to get access to all the features.
Files changed (199) hide show
  1. data/README.rdoc +1 -0
  2. data/Rakefile +21 -1
  3. data/app/assets/javascripts/shoppe/application.coffee +5 -0
  4. data/app/assets/stylesheets/shoppe/application.scss +16 -3
  5. data/app/assets/stylesheets/shoppe/elements.scss +8 -0
  6. data/app/assets/stylesheets/shoppe/printable.scss +67 -0
  7. data/app/controllers/shoppe/application_controller.rb +1 -10
  8. data/app/controllers/shoppe/orders_controller.rb +4 -0
  9. data/app/controllers/shoppe/sessions_controller.rb +1 -0
  10. data/app/controllers/shoppe/settings_controller.rb +12 -0
  11. data/app/controllers/shoppe/users_controller.rb +2 -2
  12. data/app/controllers/shoppe/variants_controller.rb +1 -1
  13. data/app/helpers/shoppe/application_helper.rb +63 -8
  14. data/app/mailers/shoppe/order_mailer.rb +5 -7
  15. data/app/mailers/shoppe/user_mailer.rb +2 -2
  16. data/app/models/shoppe/country.rb +17 -1
  17. data/app/models/shoppe/delivery_service.rb +15 -0
  18. data/app/models/shoppe/delivery_service_price.rb +17 -0
  19. data/app/models/shoppe/order.rb +82 -9
  20. data/app/models/shoppe/order_item.rb +18 -0
  21. data/app/models/shoppe/product.rb +26 -1
  22. data/app/models/shoppe/product/product_attributes.rb +1 -1
  23. data/app/models/shoppe/product/variants.rb +3 -3
  24. data/app/models/shoppe/product_attribute.rb +15 -0
  25. data/app/models/shoppe/product_category.rb +12 -0
  26. data/app/models/shoppe/setting.rb +59 -0
  27. data/app/models/shoppe/stock_level_adjustment.rb +15 -0
  28. data/app/models/shoppe/tax_rate.rb +13 -1
  29. data/app/models/shoppe/user.rb +13 -0
  30. data/app/views/layouts/shoppe/application.html.haml +2 -1
  31. data/app/views/layouts/shoppe/printable.html.haml +11 -0
  32. data/app/views/shoppe/delivery_service_prices/index.html.haml +1 -1
  33. data/app/views/shoppe/order_mailer/accepted.text.erb +2 -2
  34. data/app/views/shoppe/order_mailer/received.text.erb +2 -2
  35. data/app/views/shoppe/order_mailer/rejected.text.erb +2 -2
  36. data/app/views/shoppe/order_mailer/shipped.text.erb +2 -2
  37. data/app/views/shoppe/orders/despatch_note.html.haml +45 -0
  38. data/app/views/shoppe/orders/index.html.haml +2 -2
  39. data/app/views/shoppe/orders/show.html.haml +21 -11
  40. data/app/views/shoppe/settings/edit.html.haml +19 -0
  41. data/app/views/shoppe/user_mailer/new_password.text.erb +1 -1
  42. data/app/views/shoppe/variants/form.html.haml +4 -0
  43. data/config/locales/en.yml +34 -0
  44. data/config/routes.rb +5 -0
  45. data/db/migrate/20130926094549_create_shoppe_initial_schema.rb +92 -33
  46. data/db/seeds.rb +1 -1
  47. data/lib/shoppe.rb +13 -35
  48. data/lib/shoppe/engine.rb +6 -6
  49. data/lib/shoppe/settings.rb +28 -0
  50. data/lib/shoppe/settings_loader.rb +16 -0
  51. data/lib/shoppe/setup_generator.rb +0 -4
  52. data/lib/shoppe/version.rb +1 -1
  53. data/test/{dummy → app}/README.rdoc +0 -0
  54. data/test/{dummy → app}/Rakefile +0 -0
  55. data/test/{dummy → app}/app/assets/javascripts/application.js +0 -0
  56. data/test/{dummy → app}/app/assets/stylesheets/application.css +0 -0
  57. data/test/{dummy → app}/app/controllers/application_controller.rb +0 -0
  58. data/test/{dummy → app}/app/helpers/application_helper.rb +0 -0
  59. data/test/{dummy → app}/app/views/layouts/application.html.erb +0 -0
  60. data/test/{dummy → app}/bin/bundle +0 -0
  61. data/test/{dummy → app}/bin/rails +0 -0
  62. data/test/{dummy → app}/bin/rake +0 -0
  63. data/test/{dummy → app}/config.ru +0 -0
  64. data/test/{dummy → app}/config/application.rb +0 -0
  65. data/test/{dummy → app}/config/boot.rb +0 -0
  66. data/test/app/config/database.example.yml +30 -0
  67. data/test/{dummy → app}/config/database.yml +9 -5
  68. data/test/{dummy → app}/config/environment.rb +0 -0
  69. data/test/{dummy → app}/config/environments/development.rb +0 -0
  70. data/test/{dummy → app}/config/environments/production.rb +0 -0
  71. data/test/{dummy → app}/config/environments/test.rb +0 -0
  72. data/test/{dummy → app}/config/initializers/backtrace_silencers.rb +0 -0
  73. data/test/{dummy → app}/config/initializers/filter_parameter_logging.rb +0 -0
  74. data/test/{dummy → app}/config/initializers/inflections.rb +0 -0
  75. data/test/{dummy → app}/config/initializers/mime_types.rb +0 -0
  76. data/test/{dummy → app}/config/initializers/secret_token.rb +0 -0
  77. data/test/app/config/initializers/session_store.rb +3 -0
  78. data/test/{dummy → app}/config/initializers/wrap_parameters.rb +0 -0
  79. data/test/{dummy → app}/config/locales/en.yml +0 -0
  80. data/test/{dummy → app}/config/routes.rb +0 -0
  81. data/{config/shoppe.example.yml → test/app/config/shoppe.yml} +0 -0
  82. data/test/{dummy → app}/db/development.sqlite3 +0 -0
  83. data/test/{dummy → app}/db/migrate/20131017165217_create_nifty_attachments_table.rb +0 -0
  84. data/test/{dummy → app}/db/migrate/20131017165222_create_nifty_key_value_store_table.rb +0 -0
  85. data/test/{dummy → app}/db/schema.rb +31 -16
  86. data/test/{dummy → app}/db/test.sqlite3 +0 -0
  87. data/test/app/log/development.log +8093 -0
  88. data/test/{dummy → app}/log/test.log +0 -0
  89. data/test/{dummy → app}/public/404.html +0 -0
  90. data/test/{dummy → app}/public/422.html +0 -0
  91. data/test/{dummy → app}/public/500.html +0 -0
  92. data/test/{dummy → app}/public/favicon.ico +0 -0
  93. data/test/app/tmp/cache/assets/development/sass/7c98994848dbb534749f971b176724aa382339bb/dialog.scssc +0 -0
  94. data/test/app/tmp/cache/assets/development/sass/edac894564dae62b78e653a08d1c41f10ade93f9/application.scssc +0 -0
  95. data/test/app/tmp/cache/assets/development/sass/edac894564dae62b78e653a08d1c41f10ade93f9/dialog.scssc +0 -0
  96. data/test/app/tmp/cache/assets/development/sass/edac894564dae62b78e653a08d1c41f10ade93f9/elements.scssc +0 -0
  97. data/test/app/tmp/cache/assets/development/sass/edac894564dae62b78e653a08d1c41f10ade93f9/reset.scssc +0 -0
  98. data/test/app/tmp/cache/assets/development/sass/edac894564dae62b78e653a08d1c41f10ade93f9/sub.scssc +0 -0
  99. data/test/app/tmp/cache/assets/development/sass/edac894564dae62b78e653a08d1c41f10ade93f9/variables.scssc +0 -0
  100. data/test/app/tmp/cache/assets/development/sprockets/06d540cec125e08e63a898c35e8235d6 +0 -0
  101. data/test/app/tmp/cache/assets/development/sprockets/0a6bca3e510625f255083bd154cc470b +0 -0
  102. data/test/app/tmp/cache/assets/development/sprockets/0d8942b2279b6bc7c68b3db3e2e4c342 +0 -0
  103. data/test/app/tmp/cache/assets/development/sprockets/122a65fdcbb923c3c1cd95549ef52f43 +0 -0
  104. data/test/app/tmp/cache/assets/development/sprockets/140840b7aefa4bf5beda2c32e20374a6 +0 -0
  105. data/test/app/tmp/cache/assets/development/sprockets/160ddfa6141944c4a03757fe91643137 +0 -0
  106. data/test/app/tmp/cache/assets/development/sprockets/1bb0d399b6b81fc3b47ff794b066873f +0 -0
  107. data/test/app/tmp/cache/assets/development/sprockets/1e1679158bd397a720be46fa3a5876a3 +0 -0
  108. data/test/app/tmp/cache/assets/development/sprockets/2a75ba35f8e751887ba89a914363fefd +0 -0
  109. data/test/app/tmp/cache/assets/development/sprockets/2cc6ef740b5691af5ee246c0dbc68f14 +0 -0
  110. data/test/app/tmp/cache/assets/development/sprockets/2f80004fb2e2ce07283a83ac15cf920a +0 -0
  111. data/test/app/tmp/cache/assets/development/sprockets/322295abdd8625fcce4da08f9565cc63 +0 -0
  112. data/test/app/tmp/cache/assets/development/sprockets/421b79f445cd87f3532a5c445877cbec +0 -0
  113. data/test/app/tmp/cache/assets/development/sprockets/4528fe4a109cad1ff031659cd9eeae17 +0 -0
  114. data/test/app/tmp/cache/assets/development/sprockets/45a9c7dfe9986570daa4c972277375ec +0 -0
  115. data/test/app/tmp/cache/assets/development/sprockets/48b2cd7153bbc442eaa84c3e24e963e0 +0 -0
  116. data/test/app/tmp/cache/assets/development/sprockets/4c3fef5a3e293ed6b6df3d869f54e1d1 +0 -0
  117. data/test/app/tmp/cache/assets/development/sprockets/4c8cb5cfd87990ebddbaa5b5fd594be5 +0 -0
  118. data/test/app/tmp/cache/assets/development/sprockets/4cefa37a52d669d3ca7e6aa1e1aaf435 +0 -0
  119. data/test/app/tmp/cache/assets/development/sprockets/4ea4f5c13aaeda9a7d39684ab72fa710 +0 -0
  120. data/test/app/tmp/cache/assets/development/sprockets/4ecd1cb66cb36718daadcfba0aa42c1e +0 -0
  121. data/test/app/tmp/cache/assets/development/sprockets/4ed3cbd180c275b98627eaeea4c9c838 +0 -0
  122. data/test/app/tmp/cache/assets/development/sprockets/519aa2b3c3ab8fd8f065c56507111878 +0 -0
  123. data/test/app/tmp/cache/assets/development/sprockets/51d409a48872319ac6a731aa880e6368 +0 -0
  124. data/test/app/tmp/cache/assets/development/sprockets/55bae604bcb5ccf7d9e0ed0fd61953b6 +0 -0
  125. data/test/app/tmp/cache/assets/development/sprockets/5805d2c402f412642d86ec03a7ec4a3d +0 -0
  126. data/test/app/tmp/cache/assets/development/sprockets/5cd772b44cdeae4d3b37b62193e946eb +0 -0
  127. data/test/app/tmp/cache/assets/development/sprockets/5f32b259cbcc52156d2fe21c185d9390 +0 -0
  128. data/test/app/tmp/cache/assets/development/sprockets/656ea3403f27a33b86d5bf9e8a0c0e46 +0 -0
  129. data/test/app/tmp/cache/assets/development/sprockets/679705affe2ad274da1ad48cb5137c21 +0 -0
  130. data/test/app/tmp/cache/assets/development/sprockets/69a687de4cbb95365bf8aa2037d63726 +0 -0
  131. data/test/app/tmp/cache/assets/development/sprockets/69d5224a79e874431294e8adf04e7d65 +0 -0
  132. data/test/app/tmp/cache/assets/development/sprockets/6bc5a76ff13bc4daebb7e164a4b64196 +0 -0
  133. data/test/app/tmp/cache/assets/development/sprockets/6c1a5456c2e5d87285dd1910762fe01e +0 -0
  134. data/test/app/tmp/cache/assets/development/sprockets/6d52ff2c9298014f2d648eb9e04a61a6 +0 -0
  135. data/test/app/tmp/cache/assets/development/sprockets/7938636d16e11b754d4dd046b89863c4 +0 -0
  136. data/test/app/tmp/cache/assets/development/sprockets/7ce7981501e05438faa017eb2e197379 +0 -0
  137. data/test/app/tmp/cache/assets/development/sprockets/7e232a7b4ac10fe1350e2b9b05ab0b02 +0 -0
  138. data/test/app/tmp/cache/assets/development/sprockets/81d7800826e89041f377af8570b8324f +0 -0
  139. data/test/app/tmp/cache/assets/development/sprockets/81f524fed55fe63e95c1aeccb5d83571 +0 -0
  140. data/test/app/tmp/cache/assets/development/sprockets/85984636ee801f63af86b35d7697d4c5 +0 -0
  141. data/test/app/tmp/cache/assets/development/sprockets/88de2cf8ce5990c5fa59f7c9f4599a65 +0 -0
  142. data/test/app/tmp/cache/assets/development/sprockets/8932a78ffe18ad2e3bb7ceb90ac4b933 +0 -0
  143. data/test/app/tmp/cache/assets/development/sprockets/8d6fd863923e78438318b02bf83be1c4 +0 -0
  144. data/test/app/tmp/cache/assets/development/sprockets/8f43db1e57a90ffbae3be00a895d5a09 +0 -0
  145. data/test/app/tmp/cache/assets/development/sprockets/91e11940ab63a407af03d21720ac2951 +0 -0
  146. data/test/app/tmp/cache/assets/development/sprockets/938abfdc262a8ab42e768545640bfb2a +0 -0
  147. data/test/app/tmp/cache/assets/development/sprockets/9e760b9565b110e433b7e42f827cb5f8 +0 -0
  148. data/test/app/tmp/cache/assets/development/sprockets/9e8fbfd56e8ef705ba94bb03b5b3696e +0 -0
  149. data/test/app/tmp/cache/assets/development/sprockets/9ebbf73fb48cdf8bc07a8bfdd6d14328 +0 -0
  150. data/test/app/tmp/cache/assets/development/sprockets/9f240d481b0818a6da0b1a1aaaac2b54 +0 -0
  151. data/test/app/tmp/cache/assets/development/sprockets/a2b956b30a80f996b5aeb1b2f226775c +0 -0
  152. data/test/app/tmp/cache/assets/development/sprockets/a5b5ed9849e8019160b73aa554132b37 +0 -0
  153. data/test/app/tmp/cache/assets/development/sprockets/a692ba7ed6cff183bb840c2622233c87 +0 -0
  154. data/test/app/tmp/cache/assets/development/sprockets/a951f4ceb83ae691f002b4f6183bc1ed +0 -0
  155. data/test/app/tmp/cache/assets/development/sprockets/accc4dc17ef18d0b510917a005340da5 +0 -0
  156. data/test/app/tmp/cache/assets/development/sprockets/b2db166e9974feb35358e7fcce87cb39 +0 -0
  157. data/test/app/tmp/cache/assets/development/sprockets/b519a4f6c5b5a0d9236bdca14e0eb00d +0 -0
  158. data/test/app/tmp/cache/assets/development/sprockets/b5cbeb3def40b118469fff2d80c1b596 +0 -0
  159. data/test/app/tmp/cache/assets/development/sprockets/b6f65271a0e77b349529ce9148dd2782 +0 -0
  160. data/test/app/tmp/cache/assets/development/sprockets/b9ad7ea18b7e55c3626a15d1dae142ed +0 -0
  161. data/test/app/tmp/cache/assets/development/sprockets/bc384ea2fdcc667aa4282209caba921f +0 -0
  162. data/test/app/tmp/cache/assets/development/sprockets/bcf06bf434bb3d3a5769036d6e24b301 +0 -0
  163. data/test/app/tmp/cache/assets/development/sprockets/bd83357635155d3457747e92e47da0ed +0 -0
  164. data/test/app/tmp/cache/assets/development/sprockets/c39634555e4eba3595350eeea648ddf4 +0 -0
  165. data/test/app/tmp/cache/assets/development/sprockets/c3ef336ca8f7e64969d8bfdcf837ad10 +0 -0
  166. data/test/app/tmp/cache/assets/development/sprockets/c55037904a95162828e5d0b087677878 +0 -0
  167. data/test/app/tmp/cache/assets/development/sprockets/c733f1a2fe9d05a3a634ff64a394f64b +0 -0
  168. data/test/app/tmp/cache/assets/development/sprockets/c83a337688a52890ba93372fea6ec932 +0 -0
  169. data/test/app/tmp/cache/assets/development/sprockets/ca92d0dbc43c066af9b31f2bc26d038d +0 -0
  170. data/test/app/tmp/cache/assets/development/sprockets/cae2fc80bfbc81ec7b6c11a72be18c98 +0 -0
  171. data/test/app/tmp/cache/assets/development/sprockets/cd665363677ffcef0dde972284e8d942 +0 -0
  172. data/test/app/tmp/cache/assets/development/sprockets/d5154a1eda9cfbfe54e091d6ead1ac5f +0 -0
  173. data/test/app/tmp/cache/assets/development/sprockets/daa7fa7a610bc5951cc3c4403f290eb6 +0 -0
  174. data/test/app/tmp/cache/assets/development/sprockets/dabc0e94bc1e37007351ac756dd2dd6a +0 -0
  175. data/test/app/tmp/cache/assets/development/sprockets/edf3c55a27678996371bffe56298925b +0 -0
  176. data/test/app/tmp/cache/assets/development/sprockets/f0f04c3b2b0091fa3ca4a1edacc23a1c +0 -0
  177. data/test/app/tmp/cache/assets/development/sprockets/f8610737fbfdcb85db95ae7c6a70514e +0 -0
  178. data/test/app/tmp/restart.txt +0 -0
  179. data/test/shoppe_test.rb +0 -5
  180. data/test/test_helper.rb +1 -1
  181. metadata +298 -98
  182. data/app/helpers/shoppe/shoppe_helper.rb +0 -30
  183. data/db/migrate/20131012123829_create_shoppe_product_attributes.rb +0 -11
  184. data/db/migrate/20131012163301_add_public_boolean_to_product_attributes.rb +0 -5
  185. data/db/migrate/20131013123937_add_cost_prices_to_various_objects.rb +0 -8
  186. data/db/migrate/20131013131658_add_stock_control_boolean_to_products.rb +0 -5
  187. data/db/migrate/20131017144430_create_shoppe_stock_level_adjustments.rb +0 -18
  188. data/db/migrate/20131017180920_create_shoppe_countries.rb +0 -16
  189. data/db/migrate/20131017183211_create_shoppe_tax_rates.rb +0 -26
  190. data/db/migrate/20131020204719_add_countries_to_tax_rates_and_delivery_prices.rb +0 -6
  191. data/db/migrate/20131021135208_add_notes_to_orders.rb +0 -5
  192. data/db/migrate/20131022090919_refactor_order_items_to_allow_any_product.rb +0 -6
  193. data/db/migrate/20131022092904_rename_product_title_to_name.rb +0 -5
  194. data/db/migrate/20131022093538_stock_level_adjustments_should_be_polymorphic.rb +0 -6
  195. data/db/migrate/20131022135331_add_parent_id_to_products.rb +0 -5
  196. data/db/migrate/20131022145653_cost_price_should_be_default_to_zero.rb +0 -9
  197. data/test/dummy/config/initializers/session_store.rb +0 -3
  198. data/test/dummy/config/shoppe.yml +0 -7
  199. data/test/dummy/log/development.log +0 -1162
@@ -1,30 +0,0 @@
1
- module Shoppe::ShoppeHelper
2
-
3
- def status_tag(status)
4
- content_tag :span, status, :class => "status-tag #{status}"
5
- end
6
-
7
- def attachment_preview(attachment, options = {})
8
- if attachment
9
- String.new.tap do |s|
10
- if attachment.image?
11
- style = "style='background-image:url(#{attachment.path})'"
12
- else
13
- style = ''
14
- end
15
- s << "<div class='attachmentPreview #{attachment.image? ? 'image' : 'doc'}'>"
16
- s << "<div class='imgContainer'><div class='img' #{style}></div></div>"
17
- s << "<div class='desc'>"
18
- s << "<span class='filename'><a href='#{attachment_path(attachment)}'>#{attachment.file_name}</a></span>"
19
- s << "<span class='delete'>"
20
- s << link_to("Delete this file?", attachment_path(attachment), :method => :delete, :data => {:confirm => "Are you sure you wish to remove this attachment?"})
21
- s << "</span>"
22
- s << "</div>"
23
- s << "</div>"
24
- end.html_safe
25
- elsif !options[:hide_if_blank]
26
- "<div class='attachmentPreview'><div class='imgContainer'><div class='img none'></div></div><div class='desc none'>No attachment</div></div>".html_safe
27
- end
28
- end
29
-
30
- end
@@ -1,11 +0,0 @@
1
- class CreateShoppeProductAttributes < ActiveRecord::Migration
2
- def change
3
- create_table :shoppe_product_attributes do |t|
4
- t.integer :product_id
5
- t.string :key, :value
6
- t.integer :position, :default => 1
7
- t.boolean :searchable, :default => true
8
- t.timestamps
9
- end
10
- end
11
- end
@@ -1,5 +0,0 @@
1
- class AddPublicBooleanToProductAttributes < ActiveRecord::Migration
2
- def change
3
- add_column :shoppe_product_attributes, :public, :boolean, :default => true
4
- end
5
- end
@@ -1,8 +0,0 @@
1
- class AddCostPricesToVariousObjects < ActiveRecord::Migration
2
- def change
3
- add_column :shoppe_products, :cost_price, :decimal, :precision => 8, :scale => 2, :after => :price
4
- add_column :shoppe_delivery_service_prices, :cost_price, :decimal, :precision => 8, :scale => 2, :after => :price
5
- add_column :shoppe_order_items, :unit_cost_price, :decimal, :precision => 8, :scale => 2, :after => :unit_price
6
- add_column :shoppe_orders, :delivery_cost_price, :decimal, :precision => 8, :scale => 2, :after => :delivery_price
7
- end
8
- end
@@ -1,5 +0,0 @@
1
- class AddStockControlBooleanToProducts < ActiveRecord::Migration
2
- def change
3
- add_column :shoppe_products, :stock_control, :boolean, :default => true
4
- end
5
- end
@@ -1,18 +0,0 @@
1
- class CreateShoppeStockLevelAdjustments < ActiveRecord::Migration
2
- def up
3
- create_table :shoppe_stock_level_adjustments do |t|
4
- t.integer :product_id
5
- t.string :description
6
- t.integer :adjustment, :default => 0
7
- t.string :parent_type
8
- t.integer :parent_id
9
- t.timestamps
10
- end
11
- remove_column :shoppe_products, :stock
12
- end
13
-
14
- def down
15
- drop_table :shoppe_stock_level_adjustments
16
- add_column :shoppe_products, :stock, :integer, :default => 0, :before => :weight
17
- end
18
- end
@@ -1,16 +0,0 @@
1
- class CreateShoppeCountries < ActiveRecord::Migration
2
- def up
3
- create_table :shoppe_countries do |t|
4
- t.string :name, :code2, :code3, :continent, :tld, :currency
5
- t.boolean :eu_member, :default => false
6
- end
7
- add_column :shoppe_orders, :country_id, :integer, :after => :postcode
8
- remove_column :shoppe_orders, :country
9
- end
10
-
11
- def down
12
- add_column :shoppe_orders, :country, :string, :after => :ip_address
13
- remove_column :shoppe_orders, :country_id
14
- drop_table :shoppe_countries
15
- end
16
- end
@@ -1,26 +0,0 @@
1
- class CreateShoppeTaxRates < ActiveRecord::Migration
2
- def up
3
- create_table :shoppe_tax_rates do |t|
4
- t.string :name
5
- t.decimal :rate, :precision => 8, :scale => 2
6
- t.timestamps
7
- end
8
-
9
- add_column :shoppe_products, :tax_rate_id, :integer, :after => :tax_rate
10
- remove_column :shoppe_products, :tax_rate
11
-
12
- add_column :shoppe_delivery_service_prices, :tax_rate_id, :integer, :after => :tax_rate
13
- remove_column :shoppe_delivery_service_prices, :tax_rate
14
-
15
- end
16
-
17
- def down
18
- add_column :shoppe_delivery_service_prices, :tax_rate, :decimal, :precision => 8, :scale => 2, :after => :price
19
- remove_column :shoppe_delivery_service_prices, :tax_rate_id
20
-
21
- add_column :shoppe_products, :tax_rate, :decimal, :precision => 8, :scale => 2, :after => :price
22
- remove_column :shoppe_products, :tax_rate_id
23
-
24
- drop_table :shoppe_tax_rates
25
- end
26
- end
@@ -1,6 +0,0 @@
1
- class AddCountriesToTaxRatesAndDeliveryPrices < ActiveRecord::Migration
2
- def change
3
- add_column :shoppe_delivery_service_prices, :country_ids, :text
4
- add_column :shoppe_tax_rates, :country_ids, :text
5
- end
6
- end
@@ -1,5 +0,0 @@
1
- class AddNotesToOrders < ActiveRecord::Migration
2
- def change
3
- add_column :shoppe_orders, :notes, :text
4
- end
5
- end
@@ -1,6 +0,0 @@
1
- class RefactorOrderItemsToAllowAnyProduct < ActiveRecord::Migration
2
- def change
3
- rename_column :shoppe_order_items, :product_id, :ordered_item_id
4
- add_column :shoppe_order_items, :ordered_item_type, :string, :after => :ordered_item_id
5
- end
6
- end
@@ -1,5 +0,0 @@
1
- class RenameProductTitleToName < ActiveRecord::Migration
2
- def change
3
- rename_column :shoppe_products, :title, :name
4
- end
5
- end
@@ -1,6 +0,0 @@
1
- class StockLevelAdjustmentsShouldBePolymorphic < ActiveRecord::Migration
2
- def change
3
- rename_column :shoppe_stock_level_adjustments, :product_id, :item_id
4
- add_column :shoppe_stock_level_adjustments, :item_type, :string, :after => :item_id
5
- end
6
- end
@@ -1,5 +0,0 @@
1
- class AddParentIdToProducts < ActiveRecord::Migration
2
- def change
3
- add_column :shoppe_products, :parent_id, :integer, :after => :id
4
- end
5
- end
@@ -1,9 +0,0 @@
1
- class CostPriceShouldBeDefaultToZero < ActiveRecord::Migration
2
- def up
3
- change_column_default :shoppe_products, :cost_price, 0.0
4
- end
5
-
6
- def down
7
- change_column_default :shoppe_products, :cost_price, nil
8
- end
9
- end
@@ -1,3 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- Dummy::Application.config.session_store :cookie_store, key: '_dummy_session'
@@ -1,7 +0,0 @@
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: '&pound;'
7
- tax_name: VAT
@@ -1,1162 +0,0 @@
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"
894
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
895
- Migrating to CreateShoppeProductAttributes (20131012123829)
896
-  (0.1ms) begin transaction
897
-  (0.4ms) CREATE TABLE "shoppe_product_attributes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "product_id" integer, "key" varchar(255), "value" varchar(255), "position" integer DEFAULT 1, "searchable" boolean DEFAULT 't', "created_at" datetime, "updated_at" datetime) 
898
- SQL (1.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131012123829"]]
899
-  (2.4ms) commit transaction
900
- Migrating to AddPublicBooleanToProductAttributes (20131012163301)
901
-  (0.1ms) begin transaction
902
-  (0.7ms) ALTER TABLE "shoppe_product_attributes" ADD "public" boolean DEFAULT 't'
903
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131012163301"]]
904
-  (0.8ms) commit transaction
905
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
906
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
907
- Migrating to AddCostPricesToVariousObjects (20131013123937)
908
-  (0.1ms) begin transaction
909
-  (0.4ms) ALTER TABLE "shoppe_products" ADD "cost_price" decimal(8,2)
910
-  (0.2ms) ALTER TABLE "shoppe_delivery_service_prices" ADD "cost_price" decimal(8,2)
911
-  (0.1ms) ALTER TABLE "shoppe_order_items" ADD "unit_cost_price" decimal(8,2)
912
-  (0.2ms) ALTER TABLE "shoppe_orders" ADD "delivery_cost_price" decimal(8,2)
913
- SQL (1.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131013123937"]]
914
-  (1.1ms) commit transaction
915
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
916
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
917
- Migrating to AddStockControlBooleanToProducts (20131013131658)
918
-  (0.0ms) begin transaction
919
-  (0.4ms) ALTER TABLE "shoppe_products" ADD "stock_control" boolean DEFAULT 't'
920
- SQL (1.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131013131658"]]
921
-  (2.7ms) commit transaction
922
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
923
- ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
924
- Migrating to CreateShoppeStockLevelAdjustments (20131017144430)
925
-  (0.1ms) begin transaction
926
-  (0.5ms) CREATE TABLE "shoppe_stock_level_adjustments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "product_id" integer, "description" varchar(255), "adjustment" integer DEFAULT 0, "parent_type" varchar(255), "parent_id" integer, "created_at" datetime, "updated_at" datetime) 
927
- SQL (1.6ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131017144430"]]
928
-  (0.9ms) commit transaction
929
- ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
930
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
931
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
932
- Migrating to CreateShoppeStockLevelAdjustments (20131017144430)
933
-  (0.1ms) begin transaction
934
-  (0.5ms) DROP TABLE "shoppe_stock_level_adjustments"
935
- SQL (2.0ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20131017144430'
936
-  (0.7ms) commit transaction
937
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
938
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
939
- Migrating to CreateShoppeStockLevelAdjustments (20131017144430)
940
-  (0.1ms) begin transaction
941
-  (0.5ms) CREATE TABLE "shoppe_stock_level_adjustments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "product_id" integer, "description" varchar(255), "adjustment" integer DEFAULT 0, "parent_type" varchar(255), "parent_id" integer, "created_at" datetime, "updated_at" datetime) 
942
-  (1.6ms) rollback transaction
943
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
944
- Migrating to CreateShoppeStockLevelAdjustments (20131017144430)
945
-  (0.1ms) begin transaction
946
-  (0.5ms) 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', "in_the_box" text, "cost_price" decimal(8,2), "stock_control" boolean DEFAULT 't') 
947
-  (0.1ms) SELECT * FROM "shoppe_products"
948
-  (0.2ms) DROP TABLE "shoppe_products"
949
-  (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, "created_at" datetime, "updated_at" datetime, "featured" boolean DEFAULT 'f', "in_the_box" text, "cost_price" decimal(8,2), "stock_control" boolean DEFAULT 't')
950
-  (0.1ms) SELECT * FROM "ashoppe_products"
951
-  (0.2ms) DROP TABLE "ashoppe_products"
952
- SQL (22.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131017144430"]]
953
-  (2.5ms) commit transaction
954
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
955
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
956
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
957
- Migrating to CreateShoppeStockLevelAdjustments (20131017144430)
958
-  (0.1ms) begin transaction
959
-  (0.2ms) DROP TABLE "shoppe_stock_level_adjustments"
960
- SQLite3::SQLException: no such table: shoppe_stock_level_adjustments: DROP TABLE "shoppe_stock_level_adjustments"
961
-  (0.0ms) rollback transaction
962
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
963
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
964
- Migrating to CreateShoppeStockLevelAdjustments (20131017144430)
965
-  (0.1ms) begin transaction
966
-  (0.2ms) DROP TABLE "shoppe_stock_level_adjustments"
967
- SQLite3::SQLException: no such table: shoppe_stock_level_adjustments: DROP TABLE "shoppe_stock_level_adjustments"
968
-  (0.0ms) rollback transaction
969
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
970
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
971
- Migrating to CreateShoppeStockLevelAdjustments (20131017144430)
972
-  (0.0ms) begin transaction
973
-  (0.5ms) ALTER TABLE "shoppe_products" ADD "stock" integer DEFAULT 0
974
- SQL (1.3ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20131017144430'
975
-  (2.5ms) commit transaction
976
- ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
977
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
978
- Migrating to CreateShoppeStockLevelAdjustments (20131017144430)
979
-  (0.1ms) begin transaction
980
-  (0.5ms) CREATE TABLE "shoppe_stock_level_adjustments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "product_id" integer, "description" varchar(255), "adjustment" integer DEFAULT 0, "parent_type" varchar(255), "parent_id" integer, "created_at" datetime, "updated_at" datetime) 
981
-  (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, "created_at" datetime, "updated_at" datetime, "featured" boolean DEFAULT 'f', "in_the_box" text, "cost_price" decimal(8,2), "stock_control" boolean DEFAULT 't', "stock" integer DEFAULT 0)
982
-  (0.1ms) SELECT * FROM "shoppe_products"
983
-  (0.3ms) DROP TABLE "shoppe_products"
984
-  (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, "created_at" datetime, "updated_at" datetime, "featured" boolean DEFAULT 'f', "in_the_box" text, "cost_price" decimal(8,2), "stock_control" boolean DEFAULT 't') 
985
-  (0.1ms) SELECT * FROM "ashoppe_products"
986
-  (0.2ms) DROP TABLE "ashoppe_products"
987
- SQL (1.5ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131017144430"]]
988
-  (2.9ms) commit transaction
989
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
990
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
991
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
992
- Migrating to CreateShoppeStockLevelAdjustments (20131017144430)
993
-  (0.1ms) begin transaction
994
-  (0.3ms) DROP TABLE "shoppe_stock_level_adjustments"
995
-  (0.2ms) ALTER TABLE "shoppe_products" ADD "stock" integer DEFAULT 0
996
- SQL (1.3ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20131017144430'
997
-  (2.2ms) commit transaction
998
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
999
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1000
- Migrating to CreateShoppeStockLevelAdjustments (20131017144430)
1001
-  (0.1ms) begin transaction
1002
-  (0.7ms) CREATE TABLE "shoppe_stock_level_adjustments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "product_id" integer, "description" varchar(255), "adjustment" integer DEFAULT 0, "parent_type" varchar(255), "parent_id" integer, "created_at" datetime, "updated_at" datetime) 
1003
-  (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, "created_at" datetime, "updated_at" datetime, "featured" boolean DEFAULT 'f', "in_the_box" text, "cost_price" decimal(8,2), "stock_control" boolean DEFAULT 't', "stock" integer DEFAULT 0)
1004
-  (0.1ms) SELECT * FROM "shoppe_products"
1005
-  (0.3ms) DROP TABLE "shoppe_products"
1006
-  (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, "created_at" datetime, "updated_at" datetime, "featured" boolean DEFAULT 'f', "in_the_box" text, "cost_price" decimal(8,2), "stock_control" boolean DEFAULT 't') 
1007
-  (0.1ms) SELECT * FROM "ashoppe_products"
1008
-  (0.2ms) DROP TABLE "ashoppe_products"
1009
- SQL (2.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131017144430"]]
1010
-  (2.8ms) commit transaction
1011
- ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
1012
-  (13.8ms) CREATE TABLE `shoppe_delivery_service_prices` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `delivery_service_id` int(11), `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, `cost_price` decimal(8,2)) ENGINE=InnoDB
1013
-  (16.5ms) CREATE TABLE `shoppe_delivery_services` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `code` varchar(255), `default` tinyint(1) DEFAULT 0, `active` tinyint(1) DEFAULT 1, `created_at` datetime, `updated_at` datetime, `courier` varchar(255), `tracking_url` varchar(255)) ENGINE=InnoDB
1014
-  (21.9ms) CREATE TABLE `shoppe_order_items` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `order_id` int(11), `product_id` int(11), `quantity` int(11) 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, `unit_cost_price` decimal(8,2)) ENGINE=InnoDB
1015
-  (12.0ms) CREATE TABLE `shoppe_orders` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `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` int(11), `delivery_price` decimal(8,2), `delivery_tax_rate` decimal(8,2), `delivery_tax_amount` decimal(8,2), `paid_at` datetime, `accepted_by` int(11), `shipped_by` int(11), `consignment_number` varchar(255), `rejected_at` datetime, `rejected_by` int(11), `ip_address` varchar(255), `country` varchar(255), `payment_reference` varchar(255), `payment_method` varchar(255), `delivery_cost_price` decimal(8,2)) ENGINE=InnoDB
1016
-  (10.7ms) CREATE TABLE `shoppe_product_attributes` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `product_id` int(11), `key` varchar(255), `value` varchar(255), `position` int(11) DEFAULT 1, `searchable` tinyint(1) DEFAULT 1, `created_at` datetime, `updated_at` datetime, `public` tinyint(1) DEFAULT 1) ENGINE=InnoDB
1017
-  (12.4ms) CREATE TABLE `shoppe_product_categories` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `permalink` varchar(255), `description` text, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
1018
-  (14.5ms) CREATE TABLE `shoppe_products` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `product_category_id` int(11), `title` varchar(255), `sku` varchar(255), `permalink` varchar(255), `description` text, `short_description` text, `active` tinyint(1) DEFAULT 1, `weight` decimal(8,3) DEFAULT 0.0, `price` decimal(8,2) DEFAULT 0.0, `tax_rate` decimal(8,2) DEFAULT 0.0, `created_at` datetime, `updated_at` datetime, `featured` tinyint(1) DEFAULT 0, `in_the_box` text, `cost_price` decimal(8,2), `stock_control` tinyint(1) DEFAULT 1) ENGINE=InnoDB
1019
-  (12.1ms) CREATE TABLE `shoppe_stock_level_adjustments` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `product_id` int(11), `description` varchar(255), `adjustment` int(11) DEFAULT 0, `parent_type` varchar(255), `parent_id` int(11), `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
1020
-  (11.5ms) CREATE TABLE `shoppe_users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `first_name` varchar(255), `last_name` varchar(255), `email_address` varchar(255), `password_digest` varchar(255), `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
1021
-  (13.7ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
1022
-  (25.9ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`) 
1023
-  (0.2ms) SELECT version FROM `schema_migrations`
1024
-  (0.4ms) INSERT INTO `schema_migrations` (version) VALUES ('20131017144430')
1025
-  (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20130926094549')
1026
-  (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20131012123829')
1027
-  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('20131012163301')
1028
-  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('20131013123937')
1029
-  (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20131013131658')
1030
- ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
1031
- Migrating to CreateNiftyAttachmentsTable (20131017165217)
1032
-  (17.0ms) CREATE TABLE `nifty_attachments` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `parent_id` int(11), `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) ENGINE=InnoDB
1033
-  (0.1ms) BEGIN
1034
- SQL (1.4ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20131017165217')
1035
-  (0.3ms) COMMIT
1036
- Migrating to CreateNiftyKeyValueStoreTable (20131017165222)
1037
-  (10.2ms) CREATE TABLE `nifty_key_value_store` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `parent_id` int(11), `parent_type` varchar(255), `group` varchar(255), `name` varchar(255), `value` varchar(255)) ENGINE=InnoDB
1038
-  (0.1ms) BEGIN
1039
- SQL (0.2ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20131017165222')
1040
-  (0.3ms) COMMIT
1041
- ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
1042
- ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
1043
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT `schema_migrations`.* FROM `schema_migrations`
1044
- ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
1045
- Migrating to CreateShoppeCountries (20131017180920)
1046
-  (18.7ms) CREATE TABLE `shoppe_countries` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `code2` varchar(255), `code3` varchar(255), `continent` varchar(255), `tld` varchar(255), `currency` varchar(255), `eu_member` tinyint(1) DEFAULT 0) ENGINE=InnoDB
1047
-  (0.1ms) BEGIN
1048
- SQL (1.7ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20131017180920')
1049
-  (0.3ms) COMMIT
1050
- ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
1051
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT `schema_migrations`.* FROM `schema_migrations`
1052
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT `schema_migrations`.* FROM `schema_migrations`
1053
- Migrating to CreateShoppeCountries (20131017180920)
1054
-  (0.8ms) DROP TABLE `shoppe_countries`
1055
- SQL (1.6ms) DELETE FROM `schema_migrations` WHERE `schema_migrations`.`version` = '20131017180920'
1056
- ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
1057
- ActiveRecord::SchemaMigration Load (0.7ms) SELECT `schema_migrations`.* FROM `schema_migrations`
1058
- Migrating to CreateShoppeCountries (20131017180920)
1059
-  (16.5ms) CREATE TABLE `shoppe_countries` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `code2` varchar(255), `code3` varchar(255), `continent` varchar(255), `tld` varchar(255), `currency` varchar(255), `eu_member` tinyint(1) DEFAULT 0) ENGINE=InnoDB
1060
-  (24.1ms) ALTER TABLE `shoppe_orders` ADD `country_id` int(11) AFTER `postcode`
1061
-  (20.5ms) ALTER TABLE `shoppe_orders` DROP `country`
1062
-  (0.1ms) BEGIN
1063
- SQL (1.9ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20131017180920')
1064
-  (0.3ms) COMMIT
1065
- Migrating to CreateShoppeTaxRates (20131017183211)
1066
-  (8.9ms) CREATE TABLE `shoppe_tax_rates` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `rate` decimal(8,2), `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
1067
-  (24.2ms) ALTER TABLE `shoppe_products` ADD `tax_rate_id` int(11) AFTER `tax_rate`
1068
-  (17.3ms) ALTER TABLE `shoppe_products` DROP `tax_rate`
1069
-  (14.6ms) ALTER TABLE `shoppe_delivery_service_prices` ADD `tax_rate_id` int(11) AFTER `tax_rate`
1070
-  (16.9ms) ALTER TABLE `shoppe_delivery_service_prices` DROP `tax_rate`
1071
-  (0.1ms) BEGIN
1072
- SQL (0.2ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20131017183211')
1073
-  (0.3ms) COMMIT
1074
- Migrating to AddCountriesToTaxRatesAndDeliveryPrices (20131020204719)
1075
-  (19.4ms) ALTER TABLE `shoppe_delivery_service_prices` ADD `country_ids` text
1076
-  (19.5ms) ALTER TABLE `shoppe_tax_rates` ADD `country_ids` text
1077
-  (0.1ms) BEGIN
1078
- SQL (0.2ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20131020204719')
1079
-  (0.3ms) COMMIT
1080
- ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
1081
- ActiveRecord::SchemaMigration Load (1.0ms) SELECT `schema_migrations`.* FROM `schema_migrations`
1082
- Migrating to AddNotesToOrders (20131021135208)
1083
-  (25.9ms) ALTER TABLE `shoppe_orders` ADD `notes` text
1084
-  (0.1ms) BEGIN
1085
- SQL (1.7ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20131021135208')
1086
-  (0.4ms) COMMIT
1087
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT `schema_migrations`.* FROM `schema_migrations`
1088
- ActiveRecord::SchemaMigration Load (11.5ms) SELECT `schema_migrations`.* FROM `schema_migrations`
1089
- Migrating to RefactorOrderItemsToAllowAnyProduct (20131022090919)
1090
-  (69.6ms) ALTER TABLE `shoppe_order_items` CHANGE `product_id` `ordered_item_id` int(11) DEFAULT NULL
1091
-  (28.9ms) ALTER TABLE `shoppe_order_items` ADD `ordered_item_type` varchar(255)
1092
-  (0.1ms) BEGIN
1093
- SQL (6.0ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20131022090919')
1094
-  (0.3ms) COMMIT
1095
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT `schema_migrations`.* FROM `schema_migrations`
1096
- ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
1097
- Migrating to RenameProductTitleToName (20131022092904)
1098
-  (25.0ms) ALTER TABLE `shoppe_products` CHANGE `title` `name` varchar(255) DEFAULT NULL
1099
-  (0.1ms) BEGIN
1100
- SQL (1.6ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20131022092904')
1101
-  (0.3ms) COMMIT
1102
- ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
1103
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT `schema_migrations`.* FROM `schema_migrations`
1104
- Migrating to StockLevelAdjustmentsShouldBePolymorphic (20131022093538)
1105
-  (25.5ms) ALTER TABLE `shoppe_stock_level_adjustments` CHANGE `product_id` `item_id` int(11) DEFAULT NULL
1106
-  (20.0ms) ALTER TABLE `shoppe_stock_level_adjustments` ADD `item_type` varchar(255)
1107
-  (0.1ms) BEGIN
1108
- SQL (2.4ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20131022093538')
1109
-  (0.2ms) COMMIT
1110
- ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
1111
-  (22.1ms) DROP DATABASE IF EXISTS `shoppe_dummy`
1112
-  (21.4ms) DROP DATABASE IF EXISTS `shoppe_dummy_test`
1113
-  (0.3ms) CREATE DATABASE `shoppe_dummy` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
1114
-  (0.3ms) CREATE DATABASE `shoppe_dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
1115
-  (21.5ms) CREATE TABLE `nifty_attachments` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `parent_id` int(11), `parent_type` varchar(255), `token` varchar(255), `digest` varchar(255), `role` varchar(255), `file_name` varchar(255), `file_type` varchar(255), `data` blob(16777215), `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
1116
-  (26.6ms) CREATE TABLE `nifty_key_value_store` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `parent_id` int(11), `parent_type` varchar(255), `group` varchar(255), `name` varchar(255), `value` varchar(255)) ENGINE=InnoDB
1117
-  (13.8ms) CREATE TABLE `shoppe_countries` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `code2` varchar(255), `code3` varchar(255), `continent` varchar(255), `tld` varchar(255), `currency` varchar(255), `eu_member` tinyint(1) DEFAULT 0) ENGINE=InnoDB
1118
-  (21.7ms) CREATE TABLE `shoppe_delivery_service_prices` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `delivery_service_id` int(11), `code` varchar(255), `price` decimal(8,2), `tax_rate_id` int(11), `min_weight` decimal(8,2), `max_weight` decimal(8,2), `created_at` datetime, `updated_at` datetime, `cost_price` decimal(8,2), `country_ids` text) ENGINE=InnoDB
1119
-  (15.8ms) CREATE TABLE `shoppe_delivery_services` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `code` varchar(255), `default` tinyint(1) DEFAULT 0, `active` tinyint(1) DEFAULT 1, `created_at` datetime, `updated_at` datetime, `courier` varchar(255), `tracking_url` varchar(255)) ENGINE=InnoDB
1120
-  (20.6ms) CREATE TABLE `shoppe_order_items` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `order_id` int(11), `ordered_item_id` int(11), `quantity` int(11) 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, `unit_cost_price` decimal(8,2), `ordered_item_type` varchar(255)) ENGINE=InnoDB
1121
-  (14.4ms) CREATE TABLE `shoppe_orders` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `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), `country_id` int(11), `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` int(11), `delivery_price` decimal(8,2), `delivery_tax_rate` decimal(8,2), `delivery_tax_amount` decimal(8,2), `paid_at` datetime, `accepted_by` int(11), `shipped_by` int(11), `consignment_number` varchar(255), `rejected_at` datetime, `rejected_by` int(11), `ip_address` varchar(255), `payment_reference` varchar(255), `payment_method` varchar(255), `delivery_cost_price` decimal(8,2), `notes` text) ENGINE=InnoDB
1122
-  (16.6ms) CREATE TABLE `shoppe_product_attributes` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `product_id` int(11), `key` varchar(255), `value` varchar(255), `position` int(11) DEFAULT 1, `searchable` tinyint(1) DEFAULT 1, `created_at` datetime, `updated_at` datetime, `public` tinyint(1) DEFAULT 1) ENGINE=InnoDB
1123
-  (21.3ms) CREATE TABLE `shoppe_product_categories` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `permalink` varchar(255), `description` text, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
1124
-  (21.9ms) CREATE TABLE `shoppe_products` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `product_category_id` int(11), `name` varchar(255), `sku` varchar(255), `permalink` varchar(255), `description` text, `short_description` text, `active` tinyint(1) DEFAULT 1, `weight` decimal(8,3) DEFAULT 0.0, `price` decimal(8,2) DEFAULT 0.0, `tax_rate_id` int(11), `created_at` datetime, `updated_at` datetime, `featured` tinyint(1) DEFAULT 0, `in_the_box` text, `cost_price` decimal(8,2), `stock_control` tinyint(1) DEFAULT 1) ENGINE=InnoDB
1125
-  (12.0ms) CREATE TABLE `shoppe_stock_level_adjustments` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `item_id` int(11), `description` varchar(255), `adjustment` int(11) DEFAULT 0, `parent_type` varchar(255), `parent_id` int(11), `created_at` datetime, `updated_at` datetime, `item_type` varchar(255)) ENGINE=InnoDB
1126
-  (15.0ms) CREATE TABLE `shoppe_tax_rates` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `rate` decimal(8,2), `created_at` datetime, `updated_at` datetime, `country_ids` text) ENGINE=InnoDB
1127
-  (16.5ms) CREATE TABLE `shoppe_users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `first_name` varchar(255), `last_name` varchar(255), `email_address` varchar(255), `password_digest` varchar(255), `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
1128
-  (12.5ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
1129
-  (14.1ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`) 
1130
-  (0.2ms) SELECT version FROM `schema_migrations`
1131
-  (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20131022093538')
1132
-  (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20131017165217')
1133
-  (0.6ms) INSERT INTO `schema_migrations` (version) VALUES ('20131017165222')
1134
-  (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20130926094549')
1135
-  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('20131012123829')
1136
-  (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20131012163301')
1137
-  (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20131013123937')
1138
-  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('20131013131658')
1139
-  (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20131017144430')
1140
-  (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20131017180920')
1141
-  (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20131017183211')
1142
-  (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20131020204719')
1143
-  (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20131021135208')
1144
-  (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20131022090919')
1145
-  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('20131022092904')
1146
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT `schema_migrations`.* FROM `schema_migrations`
1147
- ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
1148
- Migrating to AddParentIdToProducts (20131022135331)
1149
- ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
1150
- Migrating to AddParentIdToProducts (20131022135331)
1151
-  (11.9ms) ALTER TABLE `shoppe_products` ADD `parent_id` int(11) AFTER `id`
1152
-  (0.1ms) BEGIN
1153
- SQL (1.5ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20131022135331')
1154
-  (0.3ms) COMMIT
1155
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT `schema_migrations`.* FROM `schema_migrations`
1156
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT `schema_migrations`.* FROM `schema_migrations`
1157
- Migrating to CostPriceShouldBeDefaultToZero (20131022145653)
1158
-  (24.2ms) ALTER TABLE `shoppe_products` CHANGE `cost_price` `cost_price` decimal(8,2) DEFAULT 0.0
1159
-  (0.1ms) BEGIN
1160
- SQL (1.6ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20131022145653')
1161
-  (0.3ms) COMMIT
1162
- ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`