effective_orders 1.2.11 → 1.2.12

Sign up to get free protection for your applications and to get access to all the features.
@@ -21,6 +21,28 @@ describe Product do
21
21
  product.purchased_orders.include?(order).should eq true
22
22
  end
23
23
 
24
+ it 'is purchased? in the after_purchase callback' do
25
+ instance_order = nil
26
+ instance_product = nil
27
+ instance_purchased = nil
28
+
29
+ Product.instance_eval do
30
+ after_purchase do |order, order_item|
31
+ if defined?(:instance_order)
32
+ instance_order = order
33
+ instance_product = self
34
+ instance_purchased = self.purchased?
35
+ end
36
+ end
37
+ end
38
+
39
+ order.purchase!('by a test')
40
+
41
+ instance_order.purchased?.should eq true
42
+ instance_product.purchased?.should eq true
43
+ instance_purchased.should eq true
44
+ end
45
+
24
46
  it 'is returned by the purchased scopes' do
25
47
  order.purchase!('by a test')
26
48
 
@@ -26,6 +26,7 @@ describe Effective::Customer do
26
26
  describe 'Stripe Integration' do
27
27
  before { StripeMock.start }
28
28
  after { StripeMock.stop }
29
+ let(:stripe_helper) { StripeMock.create_test_helper }
29
30
 
30
31
  describe '#stripe_customer' do
31
32
  it 'creates a new Stripe::Customer if one doesnt exist.' do
@@ -51,12 +52,12 @@ describe Effective::Customer do
51
52
 
52
53
  describe '#update_card' do
53
54
  it 'can update the card' do
54
- customer.update_card!('sometoken').should eq true
55
+ customer.update_card!(stripe_helper.generate_card_token).should eq true
55
56
  end
56
57
 
57
58
  it 'updates stripe_active_card when updating the card' do
58
59
  customer.should_receive(:save!).and_return(true)
59
- customer.update_card!('sometoken').should eq true
60
+ customer.update_card!(stripe_helper.generate_card_token).should eq true
60
61
 
61
62
  customer.stripe_active_card.present?.should eq true
62
63
  end
@@ -29,7 +29,7 @@ describe Effective::Subscription do
29
29
  it 'sets the stripe plan' do
30
30
  subscription = Effective::Subscription.new()
31
31
 
32
- plan = ::Stripe::Plan.create()
32
+ plan = ::Stripe::Plan.create(:id => 'stripe_plan', :name => 'Stripe Plan', :amount => 1000, :currency => 'USD', :interval => 'month')
33
33
  subscription.stripe_plan_id = plan.id
34
34
  subscription.stripe_plan.id.should eq plan.id
35
35
  end
@@ -63,7 +63,7 @@ describe Effective::Subscription do
63
63
  it 'assigns the price and title as per the stripe plan and coupon' do
64
64
  subscription = Effective::Subscription.new()
65
65
 
66
- plan = ::Stripe::Plan.create()
66
+ plan = ::Stripe::Plan.create(:id => 'stripe_plan', :name => 'Stripe Plan', :amount => 1000, :currency => 'USD', :interval => 'month')
67
67
 
68
68
  subscription.stripe_plan_id = plan.id
69
69
 
@@ -75,7 +75,7 @@ describe Effective::Subscription do
75
75
  it 'assigns the price and title as per the stripe plan and coupon amount off' do
76
76
  subscription = Effective::Subscription.new()
77
77
 
78
- plan = ::Stripe::Plan.create()
78
+ plan = ::Stripe::Plan.create(:id => 'stripe_plan', :name => 'Stripe Plan', :amount => 1000, :currency => 'USD', :interval => 'month')
79
79
  coupon = ::Stripe::Coupon.create(:percent_off => 25)
80
80
 
81
81
  subscription.stripe_plan_id = plan.id
@@ -88,7 +88,7 @@ describe Effective::Subscription do
88
88
  it 'assigns the price and title as per the stripe plan and coupon percent off' do
89
89
  subscription = Effective::Subscription.new()
90
90
 
91
- plan = ::Stripe::Plan.create()
91
+ plan = ::Stripe::Plan.create(:id => 'stripe_plan', :name => 'Stripe Plan', :amount => 1000, :currency => 'USD', :interval => 'month')
92
92
  coupon = ::Stripe::Coupon.create(:percent_off => nil, :amount_off => 100)
93
93
 
94
94
  subscription.stripe_plan_id = plan.id
@@ -41,7 +41,7 @@ FactoryGirl.define do
41
41
  association :customer
42
42
 
43
43
  before(:create) do |subscription|
44
- stripe_plan = Stripe::Plan.create()
44
+ stripe_plan = Stripe::Plan.create(:id => "stripe_plan_#{subscription.object_id}", :name => 'Stripe Plan', :amount => 1000, :currency => 'USD', :interval => 'month')
45
45
  stripe_coupon = Stripe::Coupon.create()
46
46
 
47
47
  subscription.stripe_plan_id = stripe_plan.id
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_orders
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.11
4
+ version: 1.2.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-17 00:00:00.000000000 Z
11
+ date: 2015-02-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -142,28 +142,28 @@ dependencies:
142
142
  requirements:
143
143
  - - ">="
144
144
  - !ruby/object:Gem::Version
145
- version: 1.18.0
145
+ version: 1.19.0
146
146
  type: :runtime
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
150
  - - ">="
151
151
  - !ruby/object:Gem::Version
152
- version: 1.18.0
152
+ version: 1.19.0
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: stripe-ruby-mock
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
157
  - - ">="
158
158
  - !ruby/object:Gem::Version
159
- version: '0'
159
+ version: 2.0.4
160
160
  type: :development
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
164
  - - ">="
165
165
  - !ruby/object:Gem::Version
166
- version: '0'
166
+ version: 2.0.4
167
167
  - !ruby/object:Gem::Dependency
168
168
  name: factory_girl_rails
169
169
  requirement: !ruby/object:Gem::Requirement
@@ -262,6 +262,48 @@ dependencies:
262
262
  - - ">="
263
263
  - !ruby/object:Gem::Version
264
264
  version: '0'
265
+ - !ruby/object:Gem::Dependency
266
+ name: pry
267
+ requirement: !ruby/object:Gem::Requirement
268
+ requirements:
269
+ - - ">="
270
+ - !ruby/object:Gem::Version
271
+ version: '0'
272
+ type: :development
273
+ prerelease: false
274
+ version_requirements: !ruby/object:Gem::Requirement
275
+ requirements:
276
+ - - ">="
277
+ - !ruby/object:Gem::Version
278
+ version: '0'
279
+ - !ruby/object:Gem::Dependency
280
+ name: pry-stack_explorer
281
+ requirement: !ruby/object:Gem::Requirement
282
+ requirements:
283
+ - - ">="
284
+ - !ruby/object:Gem::Version
285
+ version: '0'
286
+ type: :development
287
+ prerelease: false
288
+ version_requirements: !ruby/object:Gem::Requirement
289
+ requirements:
290
+ - - ">="
291
+ - !ruby/object:Gem::Version
292
+ version: '0'
293
+ - !ruby/object:Gem::Dependency
294
+ name: pry-byebug
295
+ requirement: !ruby/object:Gem::Requirement
296
+ requirements:
297
+ - - ">="
298
+ - !ruby/object:Gem::Version
299
+ version: '0'
300
+ type: :development
301
+ prerelease: false
302
+ version_requirements: !ruby/object:Gem::Requirement
303
+ requirements:
304
+ - - ">="
305
+ - !ruby/object:Gem::Version
306
+ version: '0'
265
307
  description: Quickly build an online store with carts, orders, automatic email receipts
266
308
  and payment collection via Stripe, StripeConnect, PayPal and Moneris.
267
309
  email:
@@ -398,7 +440,6 @@ files:
398
440
  - spec/dummy/config/secrets.yml
399
441
  - spec/dummy/db/schema.rb
400
442
  - spec/dummy/db/test.sqlite3
401
- - spec/dummy/log/development.log
402
443
  - spec/dummy/log/test.log
403
444
  - spec/dummy/public/404.html
404
445
  - spec/dummy/public/422.html
@@ -479,7 +520,6 @@ test_files:
479
520
  - spec/dummy/config.ru
480
521
  - spec/dummy/db/schema.rb
481
522
  - spec/dummy/db/test.sqlite3
482
- - spec/dummy/log/development.log
483
523
  - spec/dummy/log/test.log
484
524
  - spec/dummy/public/404.html
485
525
  - spec/dummy/public/422.html
@@ -1,487 +0,0 @@
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')