effective_orders 3.0.0 → 3.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (65) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/effective_orders/version.rb +1 -1
  4. metadata +10 -258
  5. data/spec/controllers/admin/orders_controller_spec.rb +0 -243
  6. data/spec/controllers/carts_controller_spec.rb +0 -143
  7. data/spec/controllers/ccbill_orders_controller_spec.rb +0 -103
  8. data/spec/controllers/moneris_orders_controller_spec.rb +0 -133
  9. data/spec/controllers/orders_controller_spec.rb +0 -500
  10. data/spec/controllers/stripe_orders_controller_spec.rb +0 -128
  11. data/spec/controllers/webhooks_controller_spec.rb +0 -170
  12. data/spec/dummy/README.rdoc +0 -8
  13. data/spec/dummy/Rakefile +0 -6
  14. data/spec/dummy/app/assets/javascripts/application.js +0 -13
  15. data/spec/dummy/app/assets/stylesheets/application.css +0 -15
  16. data/spec/dummy/app/controllers/application_controller.rb +0 -5
  17. data/spec/dummy/app/helpers/application_helper.rb +0 -2
  18. data/spec/dummy/app/models/product.rb +0 -9
  19. data/spec/dummy/app/models/product_with_float_price.rb +0 -9
  20. data/spec/dummy/app/models/user.rb +0 -11
  21. data/spec/dummy/app/views/layouts/application.html.erb +0 -14
  22. data/spec/dummy/bin/bundle +0 -3
  23. data/spec/dummy/bin/rails +0 -4
  24. data/spec/dummy/bin/rake +0 -4
  25. data/spec/dummy/config.ru +0 -4
  26. data/spec/dummy/config/application.rb +0 -32
  27. data/spec/dummy/config/boot.rb +0 -5
  28. data/spec/dummy/config/database.yml +0 -25
  29. data/spec/dummy/config/environment.rb +0 -5
  30. data/spec/dummy/config/environments/development.rb +0 -37
  31. data/spec/dummy/config/environments/production.rb +0 -80
  32. data/spec/dummy/config/environments/test.rb +0 -36
  33. data/spec/dummy/config/initializers/backtrace_silencers.rb +0 -7
  34. data/spec/dummy/config/initializers/cookies_serializer.rb +0 -3
  35. data/spec/dummy/config/initializers/devise.rb +0 -254
  36. data/spec/dummy/config/initializers/effective_addresses.rb +0 -15
  37. data/spec/dummy/config/initializers/effective_orders.rb +0 -269
  38. data/spec/dummy/config/initializers/filter_parameter_logging.rb +0 -4
  39. data/spec/dummy/config/initializers/inflections.rb +0 -16
  40. data/spec/dummy/config/initializers/mime_types.rb +0 -4
  41. data/spec/dummy/config/initializers/session_store.rb +0 -3
  42. data/spec/dummy/config/initializers/simple_form.rb +0 -189
  43. data/spec/dummy/config/initializers/wrap_parameters.rb +0 -14
  44. data/spec/dummy/config/locales/en.yml +0 -23
  45. data/spec/dummy/config/routes.rb +0 -3
  46. data/spec/dummy/config/secrets.yml +0 -22
  47. data/spec/dummy/db/schema.rb +0 -158
  48. data/spec/dummy/db/test.sqlite3 +0 -0
  49. data/spec/dummy/log/development.log +0 -164
  50. data/spec/dummy/log/test.log +0 -60
  51. data/spec/dummy/public/404.html +0 -67
  52. data/spec/dummy/public/422.html +0 -67
  53. data/spec/dummy/public/500.html +0 -66
  54. data/spec/dummy/public/favicon.ico +0 -0
  55. data/spec/fixtures/stripe_webhooks/invoice.payment_succeeded.without_renewals.json +0 -76
  56. data/spec/helpers/effective_orders_helper_spec.rb +0 -21
  57. data/spec/models/acts_as_purchasable_spec.rb +0 -75
  58. data/spec/models/customer_spec.rb +0 -72
  59. data/spec/models/factories_spec.rb +0 -35
  60. data/spec/models/order_item_spec.rb +0 -35
  61. data/spec/models/order_spec.rb +0 -445
  62. data/spec/models/stripe_charge_spec.rb +0 -39
  63. data/spec/models/subscription_spec.rb +0 -103
  64. data/spec/spec_helper.rb +0 -46
  65. data/spec/support/factories.rb +0 -139
@@ -1,14 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # This file contains settings for ActionController::ParamsWrapper which
4
- # is enabled by default.
5
-
6
- # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
7
- ActiveSupport.on_load(:action_controller) do
8
- wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
9
- end
10
-
11
- # To enable root element in JSON for ActiveRecord objects.
12
- # ActiveSupport.on_load(:active_record) do
13
- # self.include_root_in_json = true
14
- # end
@@ -1,23 +0,0 @@
1
- # Files in the config/locales directory are used for internationalization
2
- # and are automatically loaded by Rails. If you want to use locales other
3
- # than English, add the necessary files in this directory.
4
- #
5
- # To use the locales, use `I18n.t`:
6
- #
7
- # I18n.t 'hello'
8
- #
9
- # In views, this is aliased to just `t`:
10
- #
11
- # <%= t('hello') %>
12
- #
13
- # To use a different locale, set it with `I18n.locale`:
14
- #
15
- # I18n.locale = :es
16
- #
17
- # This would use the information in config/locales/es.yml.
18
- #
19
- # To learn more, please read the Rails Internationalization guide
20
- # available at http://guides.rubyonrails.org/i18n.html.
21
-
22
- en:
23
- hello: "Hello world"
@@ -1,3 +0,0 @@
1
- Rails.application.routes.draw do
2
- devise_for :users
3
- end
@@ -1,22 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Your secret key is used for verifying the integrity of signed cookies.
4
- # If you change this key, all old signed cookies will become invalid!
5
-
6
- # Make sure the secret is at least 30 characters and all random,
7
- # no regular words or you'll be exposed to dictionary attacks.
8
- # You can use `rake secret` to generate a secure secret key.
9
-
10
- # Make sure the secrets in this file are kept private
11
- # if you're sharing your code publicly.
12
-
13
- development:
14
- secret_key_base: 19ae140d6bd4164a8b1f37a052b1bf6ca83798d42339f0f7ae3d7303b3d0f6a3007327150783292086599a2dd43c56f75e805c3235a8763df32eeac6a59045d8
15
-
16
- test:
17
- secret_key_base: 72dcfceca73511a73eb4011013eb18f9af41567c1b924314eb4142b44c770dc6713196cfa8071d206b5066f57975dbe57df873389c033a9834fa42ae37083054
18
-
19
- # Do not keep production secrets in the repository,
20
- # instead read values from the environment.
21
- production:
22
- secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
@@ -1,158 +0,0 @@
1
- # encoding: UTF-8
2
- # This file is auto-generated from the current state of the database. Instead
3
- # of editing this file, please use the migrations feature of Active Record to
4
- # incrementally modify your database, and then regenerate this schema definition.
5
- #
6
- # Note that this schema.rb definition is the authoritative source for your
7
- # database schema. If you need to create the application database on another
8
- # system, you should be using db:schema:load, not running all the migrations
9
- # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
- # you'll amass, the slower it'll run and the greater likelihood for issues).
11
- #
12
- # It's strongly recommended to check this file into your version control system.
13
-
14
- ActiveRecord::Schema.define(:version => 4) do
15
-
16
- create_table "addresses", :force => true do |t|
17
- t.string "addressable_type"
18
- t.integer "addressable_id"
19
- t.string "category", :limit => 64
20
- t.string "full_name"
21
- t.string "address1"
22
- t.string "address2"
23
- t.string "city"
24
- t.string "state_code"
25
- t.string "country_code"
26
- t.string "postal_code"
27
- t.datetime "updated_at"
28
- t.datetime "created_at"
29
- end
30
-
31
- add_index "addresses", ["addressable_id"], :name => "index_addresses_on_addressable_id"
32
- add_index "addresses", ["addressable_type", "addressable_id"], :name => "index_addresses_on_addressable_type_and_addressable_id"
33
-
34
- create_table "cart_items", :force => true do |t|
35
- t.integer "cart_id"
36
- t.string "purchasable_type"
37
- t.integer "purchasable_id"
38
- t.integer "quantity"
39
- t.datetime "created_at", :null => false
40
- t.datetime "updated_at", :null => false
41
- end
42
-
43
- add_index "cart_items", ["cart_id"], :name => "index_cart_items_on_cart_id"
44
- add_index "cart_items", ["purchasable_id"], :name => "index_cart_items_on_purchasable_id"
45
- add_index "cart_items", ["purchasable_type", "purchasable_id"], :name => "index_cart_items_on_purchasable_type_and_purchasable_id"
46
-
47
- create_table "carts", :force => true do |t|
48
- t.integer "user_id"
49
- t.integer "cart_items_count"
50
- t.datetime "created_at", :null => false
51
- t.datetime "updated_at", :null => false
52
- end
53
-
54
- add_index "carts", ["user_id"], :name => "index_carts_on_user_id"
55
-
56
- create_table "custom_products", force: :true do |t|
57
- t.string "title"
58
- t.integer "price", default: 0
59
- t.boolean "tax_exempt"
60
- t.datetime "created_at"
61
- t.datetime "updated_at"
62
- end
63
-
64
- create_table "customers", force: true do |t|
65
- t.integer "user_id"
66
- t.string "stripe_customer_id"
67
- t.string "stripe_active_card"
68
- t.string "stripe_connect_access_token"
69
- t.datetime "created_at"
70
- t.datetime "updated_at"
71
- end
72
-
73
- create_table "order_items", :force => true do |t|
74
- t.integer "order_id"
75
- t.integer "seller_id"
76
- t.string "purchasable_type"
77
- t.integer "purchasable_id"
78
- t.string "title"
79
- t.integer "quantity"
80
- t.integer "price", :default => 0
81
- t.boolean "tax_exempt"
82
- t.datetime "created_at", :null => false
83
- t.datetime "updated_at", :null => false
84
- end
85
-
86
- add_index "order_items", ["order_id"], :name => "index_order_items_on_order_id"
87
- add_index "order_items", ["purchasable_id"], :name => "index_order_items_on_purchasable_id"
88
- add_index "order_items", ["purchasable_type", "purchasable_id"], :name => "index_order_items_on_purchasable_type_and_purchasable_id"
89
-
90
- create_table "orders", :force => true do |t|
91
- t.integer "user_id"
92
- t.string "purchase_state"
93
- t.datetime "purchased_at"
94
- t.text "payment"
95
- t.datetime "created_at", :null => false
96
- t.datetime "updated_at", :null => false
97
- t.text "note"
98
- t.text "note_internal"
99
- t.text "note_to_buyer"
100
- t.integer "total"
101
- t.decimal "tax_rate", precision: 6, scale: 3
102
- t.integer "subtotal"
103
- t.integer "tax"
104
- t.string "payment_provider"
105
- t.string "payment_card"
106
- end
107
-
108
- add_index "orders", ["user_id"], :name => "index_orders_on_user_id"
109
-
110
- create_table "products", :force => true do |t|
111
- t.string "title"
112
- t.integer "price", :default => 0
113
- t.boolean "tax_exempt"
114
- t.datetime "created_at", :null => false
115
- t.datetime "updated_at", :null => false
116
- end
117
-
118
- create_table "product_with_float_prices", :force => true do |t|
119
- t.string "title"
120
- t.decimal "price", :default => 0
121
- t.boolean "tax_exempt"
122
- t.datetime "created_at", :null => false
123
- t.datetime "updated_at", :null => false
124
- end
125
-
126
- create_table "subscriptions", force: true do |t|
127
- t.integer "customer_id"
128
- t.string "stripe_plan_id"
129
- t.string "stripe_subscription_id"
130
- t.string "stripe_coupon_id"
131
- t.string "title"
132
- t.integer "price", default: 0
133
- t.datetime "created_at"
134
- t.datetime "updated_at"
135
- end
136
-
137
- create_table "users", force: true do |t|
138
- t.string "encrypted_password"
139
- t.string "reset_password_token"
140
- t.datetime "reset_password_sent_at"
141
- t.datetime "remember_created_at"
142
- t.datetime "confirmation_sent_at"
143
- t.datetime "confirmed_at"
144
- t.string "confirmation_token"
145
- t.string "unconfirmed_email"
146
- t.integer "sign_in_count", default: 0
147
- t.datetime "current_sign_in_at"
148
- t.datetime "last_sign_in_at"
149
- t.string "current_sign_in_ip"
150
- t.string "last_sign_in_ip"
151
- t.string "email"
152
- t.integer "roles_mask", default: 0
153
- t.boolean "archived", default: false
154
- t.datetime "updated_at"
155
- t.datetime "created_at"
156
- end
157
-
158
- end
Binary file
@@ -1,164 +0,0 @@
1
-  (1.0ms) CREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) 
2
-  (0.1ms) select sqlite_version(*)
3
-  (1.2ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")
4
-  (0.2ms) SELECT sql
5
- FROM sqlite_master
6
- WHERE name='index_addresses_on_addressable_id' AND type='index'
7
- UNION ALL
8
- SELECT sql
9
- FROM sqlite_temp_master
10
- WHERE name='index_addresses_on_addressable_id' AND type='index'
11
-
12
-  (1.2ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")
13
-  (0.9ms) CREATE TABLE "cart_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "cart_id" integer, "purchasable_type" varchar, "purchasable_id" integer, "quantity" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
14
-  (1.1ms) CREATE INDEX "index_cart_items_on_cart_id" ON "cart_items" ("cart_id")
15
-  (0.1ms) SELECT sql
16
- FROM sqlite_master
17
- WHERE name='index_cart_items_on_cart_id' AND type='index'
18
- UNION ALL
19
- SELECT sql
20
- FROM sqlite_temp_master
21
- WHERE name='index_cart_items_on_cart_id' AND type='index'
22
-
23
-  (0.8ms) CREATE INDEX "index_cart_items_on_purchasable_id" ON "cart_items" ("purchasable_id")
24
-  (0.1ms) SELECT sql
25
- FROM sqlite_master
26
- WHERE name='index_cart_items_on_purchasable_id' AND type='index'
27
- UNION ALL
28
- SELECT sql
29
- FROM sqlite_temp_master
30
- WHERE name='index_cart_items_on_purchasable_id' AND type='index'
31
-
32
-  (0.1ms)  SELECT sql
33
- FROM sqlite_master
34
- WHERE name='index_cart_items_on_cart_id' AND type='index'
35
- UNION ALL
36
- SELECT sql
37
- FROM sqlite_temp_master
38
- WHERE name='index_cart_items_on_cart_id' AND type='index'
39
- 
40
-  (0.8ms) CREATE INDEX "index_cart_items_on_purchasable_type_and_purchasable_id" ON "cart_items" ("purchasable_type", "purchasable_id")
41
-  (0.7ms) CREATE TABLE "carts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
42
-  (1.0ms) CREATE INDEX "index_carts_on_user_id" ON "carts" ("user_id")
43
-  (3.5ms) CREATE TABLE "custom_products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "price" integer DEFAULT 0, "tax_exempt" boolean, "created_at" datetime, "updated_at" datetime) 
44
-  (2.1ms) CREATE TABLE "customers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "stripe_customer_id" varchar, "stripe_active_card" varchar, "stripe_connect_access_token" varchar, "created_at" datetime, "updated_at" datetime)
45
-  (3.3ms) CREATE TABLE "order_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "order_id" integer, "seller_id" integer, "purchasable_type" varchar, "purchasable_id" integer, "title" varchar, "quantity" integer, "price" integer DEFAULT 0, "tax_exempt" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
46
-  (1.3ms) CREATE INDEX "index_order_items_on_order_id" ON "order_items" ("order_id")
47
-  (0.1ms)  SELECT sql
48
- FROM sqlite_master
49
- WHERE name='index_order_items_on_order_id' AND type='index'
50
- UNION ALL
51
- SELECT sql
52
- FROM sqlite_temp_master
53
- WHERE name='index_order_items_on_order_id' AND type='index'
54
- 
55
-  (0.8ms) CREATE INDEX "index_order_items_on_purchasable_id" ON "order_items" ("purchasable_id")
56
-  (0.1ms)  SELECT sql
57
- FROM sqlite_master
58
- WHERE name='index_order_items_on_purchasable_id' AND type='index'
59
- UNION ALL
60
- SELECT sql
61
- FROM sqlite_temp_master
62
- WHERE name='index_order_items_on_purchasable_id' AND type='index'
63
- 
64
-  (0.1ms) SELECT sql
65
- FROM sqlite_master
66
- WHERE name='index_order_items_on_order_id' AND type='index'
67
- UNION ALL
68
- SELECT sql
69
- FROM sqlite_temp_master
70
- WHERE name='index_order_items_on_order_id' AND type='index'
71
-
72
-  (0.9ms) CREATE INDEX "index_order_items_on_purchasable_type_and_purchasable_id" ON "order_items" ("purchasable_type", "purchasable_id")
73
-  (2.1ms) CREATE TABLE "orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "purchase_state" varchar, "purchased_at" datetime, "payment" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "note" text, "note_internal" text, "note_to_buyer" text, "total" integer, "tax_rate" decimal(6,3), "subtotal" integer, "tax" integer, "payment_provider" varchar, "payment_card" varchar)
74
-  (2.7ms) CREATE INDEX "index_orders_on_user_id" ON "orders" ("user_id")
75
-  (1.0ms) CREATE TABLE "products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "price" integer DEFAULT 0, "tax_exempt" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
76
-  (1.1ms) CREATE TABLE "product_with_float_prices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "price" decimal DEFAULT 0, "tax_exempt" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
77
-  (0.8ms) CREATE TABLE "subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "customer_id" integer, "stripe_plan_id" varchar, "stripe_subscription_id" varchar, "stripe_coupon_id" varchar, "title" varchar, "price" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)
78
-  (1.1ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) 
79
-  (1.3ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
80
-  (2.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
81
-  (0.2ms) SELECT version FROM "schema_migrations"
82
-  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('4')
83
-  (1.0ms) CREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) 
84
-  (0.1ms) select sqlite_version(*)
85
-  (1.0ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")
86
-  (0.1ms) SELECT sql
87
- FROM sqlite_master
88
- WHERE name='index_addresses_on_addressable_id' AND type='index'
89
- UNION ALL
90
- SELECT sql
91
- FROM sqlite_temp_master
92
- WHERE name='index_addresses_on_addressable_id' AND type='index'
93
-
94
-  (0.9ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")
95
-  (1.2ms) CREATE TABLE "cart_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "cart_id" integer, "purchasable_type" varchar, "purchasable_id" integer, "quantity" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
96
-  (0.8ms) CREATE INDEX "index_cart_items_on_cart_id" ON "cart_items" ("cart_id")
97
-  (0.1ms) SELECT sql
98
- FROM sqlite_master
99
- WHERE name='index_cart_items_on_cart_id' AND type='index'
100
- UNION ALL
101
- SELECT sql
102
- FROM sqlite_temp_master
103
- WHERE name='index_cart_items_on_cart_id' AND type='index'
104
-
105
-  (0.7ms) CREATE INDEX "index_cart_items_on_purchasable_id" ON "cart_items" ("purchasable_id")
106
-  (0.1ms) SELECT sql
107
- FROM sqlite_master
108
- WHERE name='index_cart_items_on_purchasable_id' AND type='index'
109
- UNION ALL
110
- SELECT sql
111
- FROM sqlite_temp_master
112
- WHERE name='index_cart_items_on_purchasable_id' AND type='index'
113
-
114
-  (0.1ms)  SELECT sql
115
- FROM sqlite_master
116
- WHERE name='index_cart_items_on_cart_id' AND type='index'
117
- UNION ALL
118
- SELECT sql
119
- FROM sqlite_temp_master
120
- WHERE name='index_cart_items_on_cart_id' AND type='index'
121
- 
122
-  (0.9ms) CREATE INDEX "index_cart_items_on_purchasable_type_and_purchasable_id" ON "cart_items" ("purchasable_type", "purchasable_id")
123
-  (2.6ms) CREATE TABLE "carts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "cart_items_count" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
124
-  (1.4ms) CREATE INDEX "index_carts_on_user_id" ON "carts" ("user_id")
125
-  (3.4ms) CREATE TABLE "custom_products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "price" integer DEFAULT 0, "tax_exempt" boolean, "created_at" datetime, "updated_at" datetime) 
126
-  (1.3ms) CREATE TABLE "customers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "stripe_customer_id" varchar, "stripe_active_card" varchar, "stripe_connect_access_token" varchar, "created_at" datetime, "updated_at" datetime)
127
-  (2.0ms) CREATE TABLE "order_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "order_id" integer, "seller_id" integer, "purchasable_type" varchar, "purchasable_id" integer, "title" varchar, "quantity" integer, "price" integer DEFAULT 0, "tax_exempt" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
128
-  (0.8ms) CREATE INDEX "index_order_items_on_order_id" ON "order_items" ("order_id")
129
-  (0.2ms)  SELECT sql
130
- FROM sqlite_master
131
- WHERE name='index_order_items_on_order_id' AND type='index'
132
- UNION ALL
133
- SELECT sql
134
- FROM sqlite_temp_master
135
- WHERE name='index_order_items_on_order_id' AND type='index'
136
- 
137
-  (1.7ms) CREATE INDEX "index_order_items_on_purchasable_id" ON "order_items" ("purchasable_id")
138
-  (0.1ms)  SELECT sql
139
- FROM sqlite_master
140
- WHERE name='index_order_items_on_purchasable_id' AND type='index'
141
- UNION ALL
142
- SELECT sql
143
- FROM sqlite_temp_master
144
- WHERE name='index_order_items_on_purchasable_id' AND type='index'
145
- 
146
-  (0.1ms) SELECT sql
147
- FROM sqlite_master
148
- WHERE name='index_order_items_on_order_id' AND type='index'
149
- UNION ALL
150
- SELECT sql
151
- FROM sqlite_temp_master
152
- WHERE name='index_order_items_on_order_id' AND type='index'
153
-
154
-  (1.5ms) CREATE INDEX "index_order_items_on_purchasable_type_and_purchasable_id" ON "order_items" ("purchasable_type", "purchasable_id")
155
-  (1.4ms) CREATE TABLE "orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "purchase_state" varchar, "purchased_at" datetime, "payment" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "note" text, "note_internal" text, "note_to_buyer" text, "total" integer, "tax_rate" decimal(6,3), "subtotal" integer, "tax" integer, "payment_provider" varchar, "payment_card" varchar)
156
-  (1.3ms) CREATE INDEX "index_orders_on_user_id" ON "orders" ("user_id")
157
-  (1.4ms) CREATE TABLE "products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "price" integer DEFAULT 0, "tax_exempt" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
158
-  (1.3ms) CREATE TABLE "product_with_float_prices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "price" decimal DEFAULT 0, "tax_exempt" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
159
-  (1.2ms) CREATE TABLE "subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "customer_id" integer, "stripe_plan_id" varchar, "stripe_subscription_id" varchar, "stripe_coupon_id" varchar, "title" varchar, "price" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)
160
-  (2.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) 
161
-  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
162
-  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
163
-  (0.2ms) SELECT version FROM "schema_migrations"
164
-  (1.9ms) INSERT INTO "schema_migrations" (version) VALUES ('4')
@@ -1,60 +0,0 @@
1
-  (0.5ms) SELECT MAX("orders"."id") FROM "orders"
2
-  (0.5ms) SELECT MAX("orders"."id") FROM "orders"
3
-  (0.2ms) SELECT MAX("orders"."id") FROM "orders"
4
-  (0.2ms) SELECT MAX("orders"."id") FROM "orders"
5
-  (0.1ms) SELECT MAX("orders"."id") FROM "orders"
6
-  (0.5ms) SELECT MAX("orders"."id") FROM "orders"
7
-  (0.2ms) SELECT MAX("orders"."id") FROM "orders"
8
-  (0.1ms) SELECT MAX("orders"."id") FROM "orders"
9
-  (0.1ms) SELECT MAX("orders"."id") FROM "orders"
10
-  (0.1ms) SELECT MAX("orders"."id") FROM "orders"
11
-  (0.1ms) SELECT MAX("orders"."id") FROM "orders"
12
-  (0.2ms) SELECT MAX("orders"."id") FROM "orders"
13
-  (0.2ms) SELECT MAX("orders"."id") FROM "orders"
14
-  (0.1ms) SELECT MAX("orders"."id") FROM "orders"
15
-  (0.2ms) SELECT MAX("orders"."id") FROM "orders"
16
-  (0.2ms) SELECT MAX("orders"."id") FROM "orders"
17
-  (0.1ms) SELECT MAX("orders"."id") FROM "orders"
18
-  (0.1ms) SELECT MAX("orders"."id") FROM "orders"
19
-  (0.1ms) SELECT MAX("orders"."id") FROM "orders"
20
-  (0.1ms) SELECT MAX("orders"."id") FROM "orders"
21
-  (0.1ms) SELECT MAX("orders"."id") FROM "orders"
22
-  (0.2ms) SELECT MAX("orders"."id") FROM "orders"
23
-  (0.1ms) SELECT MAX("orders"."id") FROM "orders"
24
-  (0.2ms) SELECT MAX("orders"."id") FROM "orders"
25
-  (0.1ms) SELECT MAX("orders"."id") FROM "orders"
26
-  (0.1ms) SELECT MAX("orders"."id") FROM "orders"
27
-  (0.1ms) SELECT MAX("orders"."id") FROM "orders"
28
-  (0.1ms) SELECT MAX("orders"."id") FROM "orders"
29
-  (0.1ms) SELECT MAX("orders"."id") FROM "orders"
30
-  (0.1ms) SELECT MAX("orders"."id") FROM "orders"
31
-  (0.2ms) SELECT MAX("orders"."id") FROM "orders"
32
-  (0.3ms) SELECT MAX("orders"."id") FROM "orders"
33
-  (0.2ms) SELECT MAX("orders"."id") FROM "orders"
34
-  (0.1ms) SELECT MAX("orders"."id") FROM "orders"
35
-  (0.2ms) SELECT MAX("orders"."id") FROM "orders"
36
-  (0.3ms) SELECT MAX("orders"."id") FROM "orders"
37
-  (0.1ms) SELECT MAX("orders"."id") FROM "orders"
38
-  (0.2ms) SELECT MAX("orders"."id") FROM "orders"
39
-  (0.2ms) SELECT MAX("orders"."id") FROM "orders"
40
-  (0.2ms) SELECT MAX("orders"."id") FROM "orders"
41
-  (0.1ms) SELECT MAX("orders"."id") FROM "orders"
42
-  (0.2ms) SELECT MAX("orders"."id") FROM "orders"
43
-  (0.2ms) SELECT MAX("orders"."id") FROM "orders"
44
-  (0.1ms) SELECT MAX("orders"."id") FROM "orders"
45
-  (0.2ms) SELECT MAX("orders"."id") FROM "orders"
46
-  (0.1ms) SELECT MAX("orders"."id") FROM "orders"
47
-  (0.2ms) SELECT MAX("orders"."id") FROM "orders"
48
-  (0.2ms) SELECT MAX("orders"."id") FROM "orders"
49
-  (0.2ms) SELECT MAX("orders"."id") FROM "orders"
50
-  (0.2ms) SELECT MAX("orders"."id") FROM "orders"
51
-  (0.1ms) SELECT MAX("orders"."id") FROM "orders"
52
-  (0.2ms) SELECT MAX("orders"."id") FROM "orders"
53
-  (0.2ms) SELECT MAX("orders"."id") FROM "orders"
54
-  (0.2ms) SELECT MAX("orders"."id") FROM "orders"
55
-  (0.2ms) SELECT MAX("orders"."id") FROM "orders"
56
-  (0.1ms) SELECT MAX("orders"."id") FROM "orders"
57
-  (0.1ms) SELECT MAX("orders"."id") FROM "orders"
58
-  (0.2ms) SELECT MAX("orders"."id") FROM "orders"
59
-  (0.2ms) SELECT MAX("orders"."id") FROM "orders"
60
-  (0.1ms) SELECT MAX("orders"."id") FROM "orders"