effective_orders 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (146) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.md +856 -0
  4. data/Rakefile +24 -0
  5. data/app/assets/images/effective_orders/stripe_connect.png +0 -0
  6. data/app/assets/javascripts/effective_orders/shipping_address_toggle.js.coffee +30 -0
  7. data/app/assets/javascripts/effective_orders/stripe_charges.js.coffee +26 -0
  8. data/app/assets/javascripts/effective_orders/stripe_subscriptions.js.coffee +28 -0
  9. data/app/assets/javascripts/effective_orders.js +2 -0
  10. data/app/assets/stylesheets/effective_orders/_order.scss +30 -0
  11. data/app/assets/stylesheets/effective_orders.css.scss +1 -0
  12. data/app/controllers/admin/customers_controller.rb +15 -0
  13. data/app/controllers/admin/orders_controller.rb +22 -0
  14. data/app/controllers/effective/carts_controller.rb +70 -0
  15. data/app/controllers/effective/orders_controller.rb +191 -0
  16. data/app/controllers/effective/providers/moneris.rb +94 -0
  17. data/app/controllers/effective/providers/paypal.rb +29 -0
  18. data/app/controllers/effective/providers/stripe.rb +125 -0
  19. data/app/controllers/effective/providers/stripe_connect.rb +47 -0
  20. data/app/controllers/effective/subscriptions_controller.rb +123 -0
  21. data/app/controllers/effective/webhooks_controller.rb +86 -0
  22. data/app/helpers/effective_carts_helper.rb +90 -0
  23. data/app/helpers/effective_orders_helper.rb +108 -0
  24. data/app/helpers/effective_paypal_helper.rb +37 -0
  25. data/app/helpers/effective_stripe_helper.rb +63 -0
  26. data/app/mailers/effective/orders_mailer.rb +64 -0
  27. data/app/models/concerns/acts_as_purchasable.rb +134 -0
  28. data/app/models/effective/access_denied.rb +17 -0
  29. data/app/models/effective/cart.rb +65 -0
  30. data/app/models/effective/cart_item.rb +40 -0
  31. data/app/models/effective/customer.rb +61 -0
  32. data/app/models/effective/datatables/customers.rb +45 -0
  33. data/app/models/effective/datatables/orders.rb +53 -0
  34. data/app/models/effective/order.rb +247 -0
  35. data/app/models/effective/order_item.rb +69 -0
  36. data/app/models/effective/stripe_charge.rb +35 -0
  37. data/app/models/effective/subscription.rb +95 -0
  38. data/app/models/inputs/price_field.rb +63 -0
  39. data/app/models/inputs/price_form_input.rb +7 -0
  40. data/app/models/inputs/price_formtastic_input.rb +9 -0
  41. data/app/models/inputs/price_input.rb +19 -0
  42. data/app/models/inputs/price_simple_form_input.rb +8 -0
  43. data/app/models/validators/effective/sold_out_validator.rb +7 -0
  44. data/app/views/active_admin/effective_orders/orders/_show.html.haml +70 -0
  45. data/app/views/admin/customers/_actions.html.haml +2 -0
  46. data/app/views/admin/customers/index.html.haml +10 -0
  47. data/app/views/admin/orders/index.html.haml +7 -0
  48. data/app/views/admin/orders/show.html.haml +11 -0
  49. data/app/views/effective/carts/_cart.html.haml +33 -0
  50. data/app/views/effective/carts/show.html.haml +18 -0
  51. data/app/views/effective/orders/_checkout_step_1.html.haml +39 -0
  52. data/app/views/effective/orders/_checkout_step_2.html.haml +18 -0
  53. data/app/views/effective/orders/_my_purchases.html.haml +15 -0
  54. data/app/views/effective/orders/_order.html.haml +4 -0
  55. data/app/views/effective/orders/_order_header.html.haml +21 -0
  56. data/app/views/effective/orders/_order_items.html.haml +39 -0
  57. data/app/views/effective/orders/_order_payment_details.html.haml +11 -0
  58. data/app/views/effective/orders/_order_shipping.html.haml +19 -0
  59. data/app/views/effective/orders/_order_user_fields.html.haml +10 -0
  60. data/app/views/effective/orders/checkout.html.haml +3 -0
  61. data/app/views/effective/orders/declined.html.haml +10 -0
  62. data/app/views/effective/orders/moneris/_form.html.haml +34 -0
  63. data/app/views/effective/orders/my_purchases.html.haml +6 -0
  64. data/app/views/effective/orders/my_sales.html.haml +28 -0
  65. data/app/views/effective/orders/new.html.haml +4 -0
  66. data/app/views/effective/orders/paypal/_form.html.haml +5 -0
  67. data/app/views/effective/orders/purchased.html.haml +10 -0
  68. data/app/views/effective/orders/show.html.haml +17 -0
  69. data/app/views/effective/orders/stripe/_form.html.haml +8 -0
  70. data/app/views/effective/orders/stripe/_subscription_fields.html.haml +7 -0
  71. data/app/views/effective/orders_mailer/order_receipt_to_admin.html.haml +8 -0
  72. data/app/views/effective/orders_mailer/order_receipt_to_buyer.html.haml +8 -0
  73. data/app/views/effective/orders_mailer/order_receipt_to_seller.html.haml +30 -0
  74. data/app/views/effective/subscriptions/index.html.haml +16 -0
  75. data/app/views/effective/subscriptions/new.html.haml +10 -0
  76. data/app/views/effective/subscriptions/show.html.haml +49 -0
  77. data/config/routes.rb +57 -0
  78. data/db/migrate/01_create_effective_orders.rb.erb +91 -0
  79. data/db/upgrade/02_upgrade_effective_orders_from03x.rb.erb +29 -0
  80. data/db/upgrade/upgrade_price_column_on_table.rb.erb +17 -0
  81. data/lib/effective_orders/engine.rb +52 -0
  82. data/lib/effective_orders/version.rb +3 -0
  83. data/lib/effective_orders.rb +76 -0
  84. data/lib/generators/effective_orders/install_generator.rb +38 -0
  85. data/lib/generators/effective_orders/upgrade_from03x_generator.rb +34 -0
  86. data/lib/generators/effective_orders/upgrade_price_column_generator.rb +34 -0
  87. data/lib/generators/templates/README +1 -0
  88. data/lib/generators/templates/effective_orders.rb +210 -0
  89. data/spec/controllers/carts_controller_spec.rb +143 -0
  90. data/spec/controllers/moneris_orders_controller_spec.rb +245 -0
  91. data/spec/controllers/orders_controller_spec.rb +418 -0
  92. data/spec/controllers/stripe_orders_controller_spec.rb +127 -0
  93. data/spec/controllers/webhooks_controller_spec.rb +79 -0
  94. data/spec/dummy/README.rdoc +8 -0
  95. data/spec/dummy/Rakefile +6 -0
  96. data/spec/dummy/app/assets/javascripts/application.js +13 -0
  97. data/spec/dummy/app/assets/stylesheets/application.css +15 -0
  98. data/spec/dummy/app/controllers/application_controller.rb +5 -0
  99. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  100. data/spec/dummy/app/models/product.rb +17 -0
  101. data/spec/dummy/app/models/product_with_float_price.rb +17 -0
  102. data/spec/dummy/app/models/user.rb +28 -0
  103. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  104. data/spec/dummy/bin/bundle +3 -0
  105. data/spec/dummy/bin/rails +4 -0
  106. data/spec/dummy/bin/rake +4 -0
  107. data/spec/dummy/config/application.rb +31 -0
  108. data/spec/dummy/config/boot.rb +5 -0
  109. data/spec/dummy/config/database.yml +25 -0
  110. data/spec/dummy/config/environment.rb +5 -0
  111. data/spec/dummy/config/environments/development.rb +37 -0
  112. data/spec/dummy/config/environments/production.rb +83 -0
  113. data/spec/dummy/config/environments/test.rb +39 -0
  114. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  115. data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
  116. data/spec/dummy/config/initializers/devise.rb +254 -0
  117. data/spec/dummy/config/initializers/effective_addresses.rb +15 -0
  118. data/spec/dummy/config/initializers/effective_orders.rb +22 -0
  119. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  120. data/spec/dummy/config/initializers/inflections.rb +16 -0
  121. data/spec/dummy/config/initializers/mime_types.rb +4 -0
  122. data/spec/dummy/config/initializers/session_store.rb +3 -0
  123. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  124. data/spec/dummy/config/locales/en.yml +23 -0
  125. data/spec/dummy/config/routes.rb +3 -0
  126. data/spec/dummy/config/secrets.yml +22 -0
  127. data/spec/dummy/config.ru +4 -0
  128. data/spec/dummy/db/schema.rb +142 -0
  129. data/spec/dummy/db/test.sqlite3 +0 -0
  130. data/spec/dummy/log/development.log +487 -0
  131. data/spec/dummy/log/test.log +347 -0
  132. data/spec/dummy/public/404.html +67 -0
  133. data/spec/dummy/public/422.html +67 -0
  134. data/spec/dummy/public/500.html +66 -0
  135. data/spec/dummy/public/favicon.ico +0 -0
  136. data/spec/helpers/effective_orders_helper_spec.rb +21 -0
  137. data/spec/models/acts_as_purchasable_spec.rb +107 -0
  138. data/spec/models/customer_spec.rb +71 -0
  139. data/spec/models/factories_spec.rb +13 -0
  140. data/spec/models/order_item_spec.rb +35 -0
  141. data/spec/models/order_spec.rb +323 -0
  142. data/spec/models/stripe_charge_spec.rb +39 -0
  143. data/spec/models/subscription_spec.rb +103 -0
  144. data/spec/spec_helper.rb +44 -0
  145. data/spec/support/factories.rb +118 -0
  146. metadata +387 -0
@@ -0,0 +1,487 @@
1
+  (1.2ms) CREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar(255), "addressable_id" integer, "category" varchar(64), "full_name" varchar(255), "address1" varchar(255), "address2" varchar(255), "city" varchar(255), "state_code" varchar(255), "country_code" varchar(255), "postal_code" varchar(255), "updated_at" datetime, "created_at" datetime) 
2
+  (0.2ms) select sqlite_version(*)
3
+  (1.0ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")
4
+  (0.1ms) 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.0ms) 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(255), "purchasable_id" integer, "quantity" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
14
+  (1.0ms) 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.9ms) CREATE INDEX "index_cart_items_on_purchasable_type_and_purchasable_id" ON "cart_items" ("purchasable_type", "purchasable_id")
41
+  (0.8ms) CREATE TABLE "carts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
42
+  (0.8ms) CREATE INDEX "index_carts_on_user_id" ON "carts" ("user_id")
43
+  (0.9ms) CREATE TABLE "customers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "stripe_customer_id" varchar(255), "stripe_active_card" varchar(255), "stripe_connect_access_token" varchar(255), "plans" text, "created_at" datetime, "updated_at" datetime) 
44
+  (0.8ms) CREATE TABLE "order_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "order_id" integer, "seller_id" integer, "purchasable_type" varchar(255), "purchasable_id" integer, "title" varchar(255), "quantity" integer, "price" decimal(8,2) DEFAULT 0.0, "tax_exempt" boolean, "tax_rate" decimal(5,3) DEFAULT 0.0, "quickbooks_item_name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
45
+  (0.9ms) CREATE INDEX "index_order_items_on_order_id" ON "order_items" ("order_id")
46
+  (0.1ms) SELECT sql
47
+ FROM sqlite_master
48
+ WHERE name='index_order_items_on_order_id' AND type='index'
49
+ UNION ALL
50
+ SELECT sql
51
+ FROM sqlite_temp_master
52
+ WHERE name='index_order_items_on_order_id' AND type='index'
53
+
54
+  (0.7ms) CREATE INDEX "index_order_items_on_purchasable_id" ON "order_items" ("purchasable_id")
55
+  (0.1ms) SELECT sql
56
+ FROM sqlite_master
57
+ WHERE name='index_order_items_on_purchasable_id' AND type='index'
58
+ UNION ALL
59
+ SELECT sql
60
+ FROM sqlite_temp_master
61
+ WHERE name='index_order_items_on_purchasable_id' AND type='index'
62
+
63
+  (0.1ms)  SELECT sql
64
+ FROM sqlite_master
65
+ WHERE name='index_order_items_on_order_id' AND type='index'
66
+ UNION ALL
67
+ SELECT sql
68
+ FROM sqlite_temp_master
69
+ WHERE name='index_order_items_on_order_id' AND type='index'
70
+ 
71
+  (0.8ms) CREATE INDEX "index_order_items_on_purchasable_type_and_purchasable_id" ON "order_items" ("purchasable_type", "purchasable_id")
72
+  (0.8ms) CREATE TABLE "orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "purchase_state" varchar(255), "purchased_at" datetime, "payment" text, "details" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
73
+  (0.7ms) CREATE INDEX "index_orders_on_user_id" ON "orders" ("user_id")
74
+  (0.7ms) CREATE TABLE "products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "price" decimal(8,2) DEFAULT 0.0, "tax_exempt" boolean, "quickbooks_item_name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
75
+  (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar(255), "reset_password_token" varchar(255), "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar(255), "unconfirmed_email" varchar(255), "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar(255), "last_sign_in_ip" varchar(255), "email" varchar(255), "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime)
76
+  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
77
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
78
+  (0.1ms) SELECT version FROM "schema_migrations"
79
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('4')
80
+  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
81
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('2')
82
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('3')
83
+  (1.5ms) CREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar(255), "addressable_id" integer, "category" varchar(64), "full_name" varchar(255), "address1" varchar(255), "address2" varchar(255), "city" varchar(255), "state_code" varchar(255), "country_code" varchar(255), "postal_code" varchar(255), "updated_at" datetime, "created_at" datetime) 
84
+  (0.1ms) select sqlite_version(*)
85
+  (0.7ms) 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.6ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")
95
+  (0.7ms) CREATE TABLE "cart_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "cart_id" integer, "purchasable_type" varchar(255), "purchasable_id" integer, "quantity" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
96
+  (0.6ms) 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.7ms) CREATE INDEX "index_cart_items_on_purchasable_type_and_purchasable_id" ON "cart_items" ("purchasable_type", "purchasable_id")
123
+  (0.6ms) CREATE TABLE "carts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
124
+  (0.6ms) CREATE INDEX "index_carts_on_user_id" ON "carts" ("user_id")
125
+  (0.7ms) CREATE TABLE "customers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "stripe_customer_id" varchar(255), "stripe_active_card" varchar(255), "stripe_connect_access_token" varchar(255), "created_at" datetime, "updated_at" datetime) 
126
+  (1.0ms) CREATE TABLE "order_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "order_id" integer, "seller_id" integer, "purchasable_type" varchar(255), "purchasable_id" integer, "title" varchar(255), "quantity" integer, "price" decimal(8,2) DEFAULT 0.0, "tax_exempt" boolean, "tax_rate" decimal(5,3) DEFAULT 0.0, "quickbooks_item_name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
127
+  (0.8ms) CREATE INDEX "index_order_items_on_order_id" ON "order_items" ("order_id")
128
+  (0.1ms) SELECT sql
129
+ FROM sqlite_master
130
+ WHERE name='index_order_items_on_order_id' AND type='index'
131
+ UNION ALL
132
+ SELECT sql
133
+ FROM sqlite_temp_master
134
+ WHERE name='index_order_items_on_order_id' AND type='index'
135
+
136
+  (0.7ms) CREATE INDEX "index_order_items_on_purchasable_id" ON "order_items" ("purchasable_id")
137
+  (0.1ms) SELECT sql
138
+ FROM sqlite_master
139
+ WHERE name='index_order_items_on_purchasable_id' AND type='index'
140
+ UNION ALL
141
+ SELECT sql
142
+ FROM sqlite_temp_master
143
+ WHERE name='index_order_items_on_purchasable_id' AND type='index'
144
+
145
+  (0.1ms)  SELECT sql
146
+ FROM sqlite_master
147
+ WHERE name='index_order_items_on_order_id' AND type='index'
148
+ UNION ALL
149
+ SELECT sql
150
+ FROM sqlite_temp_master
151
+ WHERE name='index_order_items_on_order_id' AND type='index'
152
+ 
153
+  (0.6ms) CREATE INDEX "index_order_items_on_purchasable_type_and_purchasable_id" ON "order_items" ("purchasable_type", "purchasable_id")
154
+  (0.9ms) CREATE TABLE "orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "purchase_state" varchar(255), "purchased_at" datetime, "payment" text, "details" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
155
+  (0.8ms) CREATE INDEX "index_orders_on_user_id" ON "orders" ("user_id")
156
+  (0.9ms) CREATE TABLE "products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "price" decimal(8,2) DEFAULT 0.0, "tax_exempt" boolean, "quickbooks_item_name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
157
+  (0.8ms) CREATE TABLE "subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "customer_id" integer, "stripe_plan_id" varchar(255), "stripe_subscription_id" varchar(255), "stripe_coupon_id" varchar(255), "title" varchar(255), "price" decimal(8,2) DEFAULT 0.0, "created_at" datetime, "updated_at" datetime)
158
+  (0.7ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar(255), "reset_password_token" varchar(255), "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar(255), "unconfirmed_email" varchar(255), "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar(255), "last_sign_in_ip" varchar(255), "email" varchar(255), "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) 
159
+  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
160
+  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
161
+  (0.1ms) SELECT version FROM "schema_migrations"
162
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('4')
163
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
164
+  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('2')
165
+  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('3')
166
+  (0.9ms) CREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar(255), "addressable_id" integer, "category" varchar(64), "full_name" varchar(255), "address1" varchar(255), "address2" varchar(255), "city" varchar(255), "state_code" varchar(255), "country_code" varchar(255), "postal_code" varchar(255), "updated_at" datetime, "created_at" datetime) 
167
+  (0.1ms) select sqlite_version(*)
168
+  (0.7ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")
169
+  (0.1ms) SELECT sql
170
+ FROM sqlite_master
171
+ WHERE name='index_addresses_on_addressable_id' AND type='index'
172
+ UNION ALL
173
+ SELECT sql
174
+ FROM sqlite_temp_master
175
+ WHERE name='index_addresses_on_addressable_id' AND type='index'
176
+
177
+  (0.6ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")
178
+  (0.8ms) CREATE TABLE "cart_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "cart_id" integer, "purchasable_type" varchar(255), "purchasable_id" integer, "quantity" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
179
+  (0.6ms) CREATE INDEX "index_cart_items_on_cart_id" ON "cart_items" ("cart_id")
180
+  (0.2ms) SELECT sql
181
+ FROM sqlite_master
182
+ WHERE name='index_cart_items_on_cart_id' AND type='index'
183
+ UNION ALL
184
+ SELECT sql
185
+ FROM sqlite_temp_master
186
+ WHERE name='index_cart_items_on_cart_id' AND type='index'
187
+
188
+  (0.8ms) CREATE INDEX "index_cart_items_on_purchasable_id" ON "cart_items" ("purchasable_id")
189
+  (0.1ms) SELECT sql
190
+ FROM sqlite_master
191
+ WHERE name='index_cart_items_on_purchasable_id' AND type='index'
192
+ UNION ALL
193
+ SELECT sql
194
+ FROM sqlite_temp_master
195
+ WHERE name='index_cart_items_on_purchasable_id' AND type='index'
196
+
197
+  (0.1ms)  SELECT sql
198
+ FROM sqlite_master
199
+ WHERE name='index_cart_items_on_cart_id' AND type='index'
200
+ UNION ALL
201
+ SELECT sql
202
+ FROM sqlite_temp_master
203
+ WHERE name='index_cart_items_on_cart_id' AND type='index'
204
+ 
205
+  (0.6ms) CREATE INDEX "index_cart_items_on_purchasable_type_and_purchasable_id" ON "cart_items" ("purchasable_type", "purchasable_id")
206
+  (0.8ms) CREATE TABLE "carts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
207
+  (0.7ms) CREATE INDEX "index_carts_on_user_id" ON "carts" ("user_id")
208
+  (0.8ms) CREATE TABLE "customers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "stripe_customer_id" varchar(255), "stripe_active_card" varchar(255), "stripe_connect_access_token" varchar(255), "created_at" datetime, "updated_at" datetime) 
209
+  (0.8ms) CREATE TABLE "order_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "order_id" integer, "seller_id" integer, "purchasable_type" varchar(255), "purchasable_id" integer, "title" varchar(255), "quantity" integer, "price" integer DEFAULT 0, "tax_exempt" boolean, "tax_rate" decimal(5,3) DEFAULT 0.0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
210
+  (0.7ms) CREATE INDEX "index_order_items_on_order_id" ON "order_items" ("order_id")
211
+  (0.1ms) SELECT sql
212
+ FROM sqlite_master
213
+ WHERE name='index_order_items_on_order_id' AND type='index'
214
+ UNION ALL
215
+ SELECT sql
216
+ FROM sqlite_temp_master
217
+ WHERE name='index_order_items_on_order_id' AND type='index'
218
+
219
+  (0.6ms) CREATE INDEX "index_order_items_on_purchasable_id" ON "order_items" ("purchasable_id")
220
+  (0.1ms) SELECT sql
221
+ FROM sqlite_master
222
+ WHERE name='index_order_items_on_purchasable_id' AND type='index'
223
+ UNION ALL
224
+ SELECT sql
225
+ FROM sqlite_temp_master
226
+ WHERE name='index_order_items_on_purchasable_id' AND type='index'
227
+
228
+  (0.1ms)  SELECT sql
229
+ FROM sqlite_master
230
+ WHERE name='index_order_items_on_order_id' AND type='index'
231
+ UNION ALL
232
+ SELECT sql
233
+ FROM sqlite_temp_master
234
+ WHERE name='index_order_items_on_order_id' AND type='index'
235
+ 
236
+  (0.6ms) CREATE INDEX "index_order_items_on_purchasable_type_and_purchasable_id" ON "order_items" ("purchasable_type", "purchasable_id")
237
+  (1.0ms) CREATE TABLE "orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "purchase_state" varchar(255), "purchased_at" datetime, "payment" text, "details" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
238
+  (1.0ms) CREATE INDEX "index_orders_on_user_id" ON "orders" ("user_id")
239
+  (0.8ms) CREATE TABLE "products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "price" integer DEFAULT 0, "tax_exempt" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
240
+  (0.8ms) CREATE TABLE "subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "customer_id" integer, "stripe_plan_id" varchar(255), "stripe_subscription_id" varchar(255), "stripe_coupon_id" varchar(255), "title" varchar(255), "price" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)
241
+  (1.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar(255), "reset_password_token" varchar(255), "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar(255), "unconfirmed_email" varchar(255), "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar(255), "last_sign_in_ip" varchar(255), "email" varchar(255), "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) 
242
+  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
243
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
244
+  (0.1ms) SELECT version FROM "schema_migrations"
245
+  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('4')
246
+  (3.1ms) CREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar(255), "addressable_id" integer, "category" varchar(64), "full_name" varchar(255), "address1" varchar(255), "address2" varchar(255), "city" varchar(255), "state_code" varchar(255), "country_code" varchar(255), "postal_code" varchar(255), "updated_at" datetime, "created_at" datetime) 
247
+  (0.1ms) select sqlite_version(*)
248
+  (1.0ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")
249
+  (0.2ms) SELECT sql
250
+ FROM sqlite_master
251
+ WHERE name='index_addresses_on_addressable_id' AND type='index'
252
+ UNION ALL
253
+ SELECT sql
254
+ FROM sqlite_temp_master
255
+ WHERE name='index_addresses_on_addressable_id' AND type='index'
256
+
257
+  (0.7ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")
258
+  (0.7ms) CREATE TABLE "cart_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "cart_id" integer, "purchasable_type" varchar(255), "purchasable_id" integer, "quantity" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
259
+  (0.7ms) CREATE INDEX "index_cart_items_on_cart_id" ON "cart_items" ("cart_id")
260
+  (0.1ms) SELECT sql
261
+ FROM sqlite_master
262
+ WHERE name='index_cart_items_on_cart_id' AND type='index'
263
+ UNION ALL
264
+ SELECT sql
265
+ FROM sqlite_temp_master
266
+ WHERE name='index_cart_items_on_cart_id' AND type='index'
267
+
268
+  (0.7ms) CREATE INDEX "index_cart_items_on_purchasable_id" ON "cart_items" ("purchasable_id")
269
+  (0.1ms) SELECT sql
270
+ FROM sqlite_master
271
+ WHERE name='index_cart_items_on_purchasable_id' AND type='index'
272
+ UNION ALL
273
+ SELECT sql
274
+ FROM sqlite_temp_master
275
+ WHERE name='index_cart_items_on_purchasable_id' AND type='index'
276
+
277
+  (0.1ms)  SELECT sql
278
+ FROM sqlite_master
279
+ WHERE name='index_cart_items_on_cart_id' AND type='index'
280
+ UNION ALL
281
+ SELECT sql
282
+ FROM sqlite_temp_master
283
+ WHERE name='index_cart_items_on_cart_id' AND type='index'
284
+ 
285
+  (0.8ms) CREATE INDEX "index_cart_items_on_purchasable_type_and_purchasable_id" ON "cart_items" ("purchasable_type", "purchasable_id")
286
+  (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) 
287
+  (0.7ms) CREATE INDEX "index_carts_on_user_id" ON "carts" ("user_id")
288
+  (0.8ms) CREATE TABLE "customers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "stripe_customer_id" varchar(255), "stripe_active_card" varchar(255), "stripe_connect_access_token" varchar(255), "created_at" datetime, "updated_at" datetime) 
289
+  (0.9ms) CREATE TABLE "order_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "order_id" integer, "seller_id" integer, "purchasable_type" varchar(255), "purchasable_id" integer, "title" varchar(255), "quantity" integer, "price" integer DEFAULT 0, "tax_exempt" boolean, "tax_rate" decimal(5,3) DEFAULT 0.0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
290
+  (0.7ms) CREATE INDEX "index_order_items_on_order_id" ON "order_items" ("order_id")
291
+  (0.1ms) SELECT sql
292
+ FROM sqlite_master
293
+ WHERE name='index_order_items_on_order_id' AND type='index'
294
+ UNION ALL
295
+ SELECT sql
296
+ FROM sqlite_temp_master
297
+ WHERE name='index_order_items_on_order_id' AND type='index'
298
+
299
+  (0.8ms) CREATE INDEX "index_order_items_on_purchasable_id" ON "order_items" ("purchasable_id")
300
+  (0.1ms) SELECT sql
301
+ FROM sqlite_master
302
+ WHERE name='index_order_items_on_purchasable_id' AND type='index'
303
+ UNION ALL
304
+ SELECT sql
305
+ FROM sqlite_temp_master
306
+ WHERE name='index_order_items_on_purchasable_id' AND type='index'
307
+
308
+  (0.1ms)  SELECT sql
309
+ FROM sqlite_master
310
+ WHERE name='index_order_items_on_order_id' AND type='index'
311
+ UNION ALL
312
+ SELECT sql
313
+ FROM sqlite_temp_master
314
+ WHERE name='index_order_items_on_order_id' AND type='index'
315
+ 
316
+  (0.6ms) CREATE INDEX "index_order_items_on_purchasable_type_and_purchasable_id" ON "order_items" ("purchasable_type", "purchasable_id")
317
+  (0.8ms) CREATE TABLE "orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "purchase_state" varchar(255), "purchased_at" datetime, "payment" text, "details" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
318
+  (0.7ms) CREATE INDEX "index_orders_on_user_id" ON "orders" ("user_id")
319
+  (0.8ms) CREATE TABLE "products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "price" integer DEFAULT 0, "tax_exempt" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
320
+  (0.8ms) CREATE TABLE "product_with_float_prices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "price" decimal DEFAULT 0.0, "tax_exempt" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
321
+  (0.8ms) CREATE TABLE "subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "customer_id" integer, "stripe_plan_id" varchar(255), "stripe_subscription_id" varchar(255), "stripe_coupon_id" varchar(255), "title" varchar(255), "price" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime) 
322
+  (0.7ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar(255), "reset_password_token" varchar(255), "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar(255), "unconfirmed_email" varchar(255), "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar(255), "last_sign_in_ip" varchar(255), "email" varchar(255), "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime)
323
+  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
324
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
325
+  (0.1ms) SELECT version FROM "schema_migrations"
326
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('4')
327
+  (3.3ms) CREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar(255), "addressable_id" integer, "category" varchar(64), "full_name" varchar(255), "address1" varchar(255), "address2" varchar(255), "city" varchar(255), "state_code" varchar(255), "country_code" varchar(255), "postal_code" varchar(255), "updated_at" datetime, "created_at" datetime) 
328
+  (0.1ms) select sqlite_version(*)
329
+  (0.9ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")
330
+  (0.2ms) SELECT sql
331
+ FROM sqlite_master
332
+ WHERE name='index_addresses_on_addressable_id' AND type='index'
333
+ UNION ALL
334
+ SELECT sql
335
+ FROM sqlite_temp_master
336
+ WHERE name='index_addresses_on_addressable_id' AND type='index'
337
+
338
+  (0.6ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")
339
+  (1.0ms) CREATE TABLE "cart_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "cart_id" integer, "purchasable_type" varchar(255), "purchasable_id" integer, "quantity" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
340
+  (1.0ms) CREATE INDEX "index_cart_items_on_cart_id" ON "cart_items" ("cart_id")
341
+  (0.2ms) SELECT sql
342
+ FROM sqlite_master
343
+ WHERE name='index_cart_items_on_cart_id' AND type='index'
344
+ UNION ALL
345
+ SELECT sql
346
+ FROM sqlite_temp_master
347
+ WHERE name='index_cart_items_on_cart_id' AND type='index'
348
+
349
+  (0.6ms) CREATE INDEX "index_cart_items_on_purchasable_id" ON "cart_items" ("purchasable_id")
350
+  (0.1ms) SELECT sql
351
+ FROM sqlite_master
352
+ WHERE name='index_cart_items_on_purchasable_id' AND type='index'
353
+ UNION ALL
354
+ SELECT sql
355
+ FROM sqlite_temp_master
356
+ WHERE name='index_cart_items_on_purchasable_id' AND type='index'
357
+
358
+  (0.1ms)  SELECT sql
359
+ FROM sqlite_master
360
+ WHERE name='index_cart_items_on_cart_id' AND type='index'
361
+ UNION ALL
362
+ SELECT sql
363
+ FROM sqlite_temp_master
364
+ WHERE name='index_cart_items_on_cart_id' AND type='index'
365
+ 
366
+  (0.8ms) CREATE INDEX "index_cart_items_on_purchasable_type_and_purchasable_id" ON "cart_items" ("purchasable_type", "purchasable_id")
367
+  (0.9ms) CREATE TABLE "carts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
368
+  (0.8ms) CREATE INDEX "index_carts_on_user_id" ON "carts" ("user_id")
369
+  (0.8ms) CREATE TABLE "customers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "stripe_customer_id" varchar(255), "stripe_active_card" varchar(255), "stripe_connect_access_token" varchar(255), "created_at" datetime, "updated_at" datetime) 
370
+  (1.1ms) CREATE TABLE "order_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "order_id" integer, "seller_id" integer, "purchasable_type" varchar(255), "purchasable_id" integer, "title" varchar(255), "quantity" integer, "price" integer DEFAULT 0, "tax_exempt" boolean, "tax_rate" decimal(5,3) DEFAULT 0.0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
371
+  (0.9ms) CREATE INDEX "index_order_items_on_order_id" ON "order_items" ("order_id")
372
+  (0.2ms) SELECT sql
373
+ FROM sqlite_master
374
+ WHERE name='index_order_items_on_order_id' AND type='index'
375
+ UNION ALL
376
+ SELECT sql
377
+ FROM sqlite_temp_master
378
+ WHERE name='index_order_items_on_order_id' AND type='index'
379
+
380
+  (0.9ms) CREATE INDEX "index_order_items_on_purchasable_id" ON "order_items" ("purchasable_id")
381
+  (0.2ms) SELECT sql
382
+ FROM sqlite_master
383
+ WHERE name='index_order_items_on_purchasable_id' AND type='index'
384
+ UNION ALL
385
+ SELECT sql
386
+ FROM sqlite_temp_master
387
+ WHERE name='index_order_items_on_purchasable_id' AND type='index'
388
+
389
+  (0.1ms)  SELECT sql
390
+ FROM sqlite_master
391
+ WHERE name='index_order_items_on_order_id' AND type='index'
392
+ UNION ALL
393
+ SELECT sql
394
+ FROM sqlite_temp_master
395
+ WHERE name='index_order_items_on_order_id' AND type='index'
396
+ 
397
+  (0.7ms) CREATE INDEX "index_order_items_on_purchasable_type_and_purchasable_id" ON "order_items" ("purchasable_type", "purchasable_id")
398
+  (0.7ms) CREATE TABLE "orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "purchase_state" varchar(255), "purchased_at" datetime, "payment" text, "details" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
399
+  (0.8ms) CREATE INDEX "index_orders_on_user_id" ON "orders" ("user_id")
400
+  (0.8ms) CREATE TABLE "products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "price" integer DEFAULT 0, "tax_exempt" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
401
+  (1.0ms) CREATE TABLE "subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "customer_id" integer, "stripe_plan_id" varchar(255), "stripe_subscription_id" varchar(255), "stripe_coupon_id" varchar(255), "title" varchar(255), "price" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)
402
+  (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar(255), "reset_password_token" varchar(255), "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar(255), "unconfirmed_email" varchar(255), "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar(255), "last_sign_in_ip" varchar(255), "email" varchar(255), "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) 
403
+  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
404
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
405
+  (0.1ms) SELECT version FROM "schema_migrations"
406
+  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('4')
407
+  (3.0ms) CREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar(255), "addressable_id" integer, "category" varchar(64), "full_name" varchar(255), "address1" varchar(255), "address2" varchar(255), "city" varchar(255), "state_code" varchar(255), "country_code" varchar(255), "postal_code" varchar(255), "updated_at" datetime, "created_at" datetime) 
408
+  (0.2ms) select sqlite_version(*)
409
+  (0.9ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")
410
+  (0.2ms) SELECT sql
411
+ FROM sqlite_master
412
+ WHERE name='index_addresses_on_addressable_id' AND type='index'
413
+ UNION ALL
414
+ SELECT sql
415
+ FROM sqlite_temp_master
416
+ WHERE name='index_addresses_on_addressable_id' AND type='index'
417
+
418
+  (0.7ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")
419
+  (0.7ms) CREATE TABLE "cart_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "cart_id" integer, "purchasable_type" varchar(255), "purchasable_id" integer, "quantity" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
420
+  (0.6ms) CREATE INDEX "index_cart_items_on_cart_id" ON "cart_items" ("cart_id")
421
+  (0.1ms) SELECT sql
422
+ FROM sqlite_master
423
+ WHERE name='index_cart_items_on_cart_id' AND type='index'
424
+ UNION ALL
425
+ SELECT sql
426
+ FROM sqlite_temp_master
427
+ WHERE name='index_cart_items_on_cart_id' AND type='index'
428
+
429
+  (0.8ms) CREATE INDEX "index_cart_items_on_purchasable_id" ON "cart_items" ("purchasable_id")
430
+  (0.1ms) SELECT sql
431
+ FROM sqlite_master
432
+ WHERE name='index_cart_items_on_purchasable_id' AND type='index'
433
+ UNION ALL
434
+ SELECT sql
435
+ FROM sqlite_temp_master
436
+ WHERE name='index_cart_items_on_purchasable_id' AND type='index'
437
+
438
+  (0.1ms)  SELECT sql
439
+ FROM sqlite_master
440
+ WHERE name='index_cart_items_on_cart_id' AND type='index'
441
+ UNION ALL
442
+ SELECT sql
443
+ FROM sqlite_temp_master
444
+ WHERE name='index_cart_items_on_cart_id' AND type='index'
445
+ 
446
+  (0.8ms) CREATE INDEX "index_cart_items_on_purchasable_type_and_purchasable_id" ON "cart_items" ("purchasable_type", "purchasable_id")
447
+  (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) 
448
+  (0.7ms) CREATE INDEX "index_carts_on_user_id" ON "carts" ("user_id")
449
+  (0.7ms) CREATE TABLE "customers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "stripe_customer_id" varchar(255), "stripe_active_card" varchar(255), "stripe_connect_access_token" varchar(255), "created_at" datetime, "updated_at" datetime) 
450
+  (1.0ms) CREATE TABLE "order_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "order_id" integer, "seller_id" integer, "purchasable_type" varchar(255), "purchasable_id" integer, "title" varchar(255), "quantity" integer, "price" integer DEFAULT 0, "tax_exempt" boolean, "tax_rate" decimal(5,3) DEFAULT 0.0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
451
+  (0.7ms) CREATE INDEX "index_order_items_on_order_id" ON "order_items" ("order_id")
452
+  (0.1ms) SELECT sql
453
+ FROM sqlite_master
454
+ WHERE name='index_order_items_on_order_id' AND type='index'
455
+ UNION ALL
456
+ SELECT sql
457
+ FROM sqlite_temp_master
458
+ WHERE name='index_order_items_on_order_id' AND type='index'
459
+
460
+  (0.7ms) CREATE INDEX "index_order_items_on_purchasable_id" ON "order_items" ("purchasable_id")
461
+  (0.2ms) SELECT sql
462
+ FROM sqlite_master
463
+ WHERE name='index_order_items_on_purchasable_id' AND type='index'
464
+ UNION ALL
465
+ SELECT sql
466
+ FROM sqlite_temp_master
467
+ WHERE name='index_order_items_on_purchasable_id' AND type='index'
468
+
469
+  (0.1ms)  SELECT sql
470
+ FROM sqlite_master
471
+ WHERE name='index_order_items_on_order_id' AND type='index'
472
+ UNION ALL
473
+ SELECT sql
474
+ FROM sqlite_temp_master
475
+ WHERE name='index_order_items_on_order_id' AND type='index'
476
+ 
477
+  (0.9ms) CREATE INDEX "index_order_items_on_purchasable_type_and_purchasable_id" ON "order_items" ("purchasable_type", "purchasable_id")
478
+  (0.8ms) CREATE TABLE "orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "purchase_state" varchar(255), "purchased_at" datetime, "payment" text, "details" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
479
+  (0.6ms) CREATE INDEX "index_orders_on_user_id" ON "orders" ("user_id")
480
+  (0.7ms) CREATE TABLE "products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "price" integer DEFAULT 0, "tax_exempt" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
481
+  (1.0ms) CREATE TABLE "product_with_float_prices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "price" decimal DEFAULT 0, "tax_exempt" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
482
+  (1.0ms) CREATE TABLE "subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "customer_id" integer, "stripe_plan_id" varchar(255), "stripe_subscription_id" varchar(255), "stripe_coupon_id" varchar(255), "title" varchar(255), "price" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime) 
483
+  (0.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar(255), "reset_password_token" varchar(255), "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar(255), "unconfirmed_email" varchar(255), "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar(255), "last_sign_in_ip" varchar(255), "email" varchar(255), "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime)
484
+  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
485
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
486
+  (0.1ms) SELECT version FROM "schema_migrations"
487
+  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('4')