stripe_local 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +18 -12
- data/app/callbacks/stripe_local/plan_sync.rb +1 -1
- data/lib/stripe_local/instance_delegation.rb +7 -7
- data/lib/stripe_local/version.rb +1 -1
- data/spec/dummy/log/test.log +1524 -0
- data/spec/models/stripe_local/customer_spec.rb +1 -1
- metadata +23 -23
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ef806fd202132c1c1c83366aa32b57ffcfdf89e0
|
4
|
+
data.tar.gz: 3b2c5afd4102155d4b7791e2c9d59c8bf674764a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 34ba1237d62c47222f64d0cbf93c6edf9ae5d45acb07727be8ad9f05ad21f8da920c7791a11f0482b94ec320e5961f2d2f96558fd5be8d14dc8975ac08a900b1
|
7
|
+
data.tar.gz: 2561382b1093904b82d9fc43b9f00e7c6ca980d08c24bfa8a6452c7e7ae05d892fc93ef52699c9548399cbb11f78e2377bf35df8a3e6abde9945f8f2b711826d
|
data/README.md
CHANGED
@@ -7,20 +7,14 @@ Manages the complexities of keeping two data sources in sync while providing the
|
|
7
7
|
## <b style="color:red;">[</b>UNDER CONSTRUCTION<b style="color:red;">]</b>
|
8
8
|
### Not considered "Production Ready"
|
9
9
|
|
10
|
-
|
10
|
+
StripeLocal is an attempt at extracting a framework for Stripe Integration that I have built into several medium/large scale CRM projects.
|
11
11
|
|
12
|
-
|
13
|
-
|
14
|
-
StripeLocal is an extraction of a framework for Stripe Integration that I have built into several large CRM projects. There are likely some places in the code that still rely on the application it was extracted from. If you find such code please create an issue or fix it yourself and submit a pull request.
|
15
|
-
|
16
|
-
This is my first Rails Engine and I am still learning the ends and outs of building an engine. If you find something I am doing terribly wrong, please bring it to my attention by opening an issue. I appreciate your help.
|
12
|
+
This is my first Rails Engine and I am still learning the ends and outs of building one. If you find something I am doing terribly wrong, please bring it to my attention by opening an issue. I appreciate your help.
|
17
13
|
|
18
14
|
|
19
15
|
### Pull Requests are highly encouraged!
|
20
16
|
Feel free to fork and hack. You are of course welcome to do want you want with the code. However, I do plan to stay active in developing this code base and would like to see it become a real community effort.
|
21
17
|
|
22
|
-
### How I see it
|
23
|
-
|
24
18
|
The gem is hosted at [Rubygems.org](https://rubygems.org/gems/stripe_local) like any other gem and is available for use in a Rails project by including it in your gem file
|
25
19
|
|
26
20
|
gem 'stripe_local'
|
@@ -29,11 +23,13 @@ After a `bundle install` you'll need to generate, and run the migrations..
|
|
29
23
|
|
30
24
|
rake stripe_local:install:migrations && rake db:migrate
|
31
25
|
|
32
|
-
|
26
|
+
### How I see it
|
27
|
+
|
28
|
+
StripeLocal overlapse your application in one particular spot, the _customer_
|
33
29
|
|
34
|
-
The _customer class_ does not need to be named
|
30
|
+
The _customer class_ does not need to be named `Customer`. It can be any ActiveRecord model, specify which model in your application with a call to a special class macro in the definition
|
35
31
|
|
36
|
-
class
|
32
|
+
class MyClassName < ActiveRecord::Base
|
37
33
|
stripe_customer
|
38
34
|
end
|
39
35
|
|
@@ -41,7 +37,7 @@ this essentially mixes in a few modules which add a one-to-one relationship with
|
|
41
37
|
|
42
38
|
Once one of your *customers* has a `Stripe::Customer` you may call methods on your object as if it were itself a `Stripe::Customer`
|
43
39
|
|
44
|
-
Use the generated `signup` instance method to create a `Stripe::Customer`
|
40
|
+
Use the generated `signup` instance method to create a `Stripe::Customer` linked with your instance.
|
45
41
|
|
46
42
|
my_client.signup({
|
47
43
|
card: "card_token",
|
@@ -54,9 +50,19 @@ Use the generated `signup` instance method to create a `Stripe::Customer` for th
|
|
54
50
|
})
|
55
51
|
|
56
52
|
my_client.account_balance #=> 0
|
53
|
+
my_client.default_card #=> card_xxxabc123
|
54
|
+
my_client.cards.first.id #=> card_xxxabc123
|
55
|
+
|
56
|
+
You'll need to create a webhook address in your Stripe Account using the Stripe Dashboard. It should point to
|
57
|
+
|
58
|
+
https://yourhostdomain.com/webhook/events
|
57
59
|
|
60
|
+
Assuming you had webhooks setup in the previous example.
|
58
61
|
|
62
|
+
my_client.invoices.last.paid? #=> true
|
63
|
+
my_client.charges.last #=> <#StripeLocal::Charge ch_123abc>
|
59
64
|
|
65
|
+
more to come...
|
60
66
|
|
61
67
|
## License
|
62
68
|
|
@@ -1,16 +1,15 @@
|
|
1
1
|
module StripeLocal
|
2
2
|
module InstanceDelegation
|
3
|
-
#=!=#
|
4
3
|
# ==this is the primary interface for subscribing.
|
5
4
|
#
|
6
|
-
#
|
5
|
+
# params::
|
7
6
|
# * +card+ (required) -> the token returned by stripe.js
|
8
7
|
# * +plan+ (required) -> the id of the plan being subscribed to
|
9
8
|
# * +email+ (optional) -> the client's email address
|
10
9
|
# * +description+ (optional) -> a description to attach to the stripe object for future reference
|
11
10
|
# * +coupon+ (optional) -> the id of a coupon if the subscription should be discounted
|
12
11
|
# * +lines+ (optional) -> an array of (amount,description) tuples
|
13
|
-
#
|
12
|
+
# example::
|
14
13
|
# :card => "tok_abc123",
|
15
14
|
# :plan => "MySaaS",
|
16
15
|
# :email => subscriber.email,
|
@@ -18,7 +17,6 @@ module StripeLocal
|
|
18
17
|
# :lines => [
|
19
18
|
# [ 20000, "a one time setup fee of $200.00 for new members" ]
|
20
19
|
# ]
|
21
|
-
#=¡=#
|
22
20
|
def signup params
|
23
21
|
plan = params.delete( :plan )
|
24
22
|
lines = params.delete( :lines ) || []
|
@@ -30,20 +28,22 @@ module StripeLocal
|
|
30
28
|
end
|
31
29
|
_customer_.update_subscription({ plan: plan })
|
32
30
|
|
33
|
-
StripeLocal::Customer.create(
|
31
|
+
StripeLocal::Customer.create _customer_.to_hash.reverse_merge({model_id: self.id})
|
34
32
|
end
|
35
33
|
|
36
34
|
|
37
35
|
def method_missing method, *args, &block
|
38
|
-
if customer
|
36
|
+
if customer and customer.respond_to?( method, false )
|
39
37
|
customer.send method, *args, &block
|
40
38
|
else
|
41
39
|
super
|
42
40
|
end
|
43
41
|
end
|
42
|
+
|
44
43
|
def respond_to_missing? method, include_private = false
|
45
|
-
customer
|
44
|
+
super || customer and customer.respond_to?( method, false )
|
46
45
|
end
|
46
|
+
|
47
47
|
end
|
48
48
|
|
49
49
|
end
|
data/lib/stripe_local/version.rb
CHANGED
data/spec/dummy/log/test.log
CHANGED
@@ -22330,3 +22330,1527 @@ Migrating to LoadStripeTables (20131122063517)
|
|
22330
22330
|
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
22331
22331
|
[1m[35mSQL (1.1ms)[0m INSERT INTO "stripe_local_transfers" ("amount", "created_at", "date", "description", "id", "metadata", "status", "transaction_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["amount", 100], ["created_at", Sun, 01 Dec 2013 00:38:20 CST -06:00], ["date", Mon, 30 Sep 2013 05:01:01 CDT -05:00], ["description", "a dollar for Don Atello"], ["id", "tr_2fOGfKABdHu3uf"], ["metadata", "{}"], ["status", "paid"], ["transaction_id", "txn_2fOGkiBkDgpObU"], ["updated_at", Sun, 01 Dec 2013 00:38:20 CST -06:00]]
|
22332
22332
|
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
22333
|
+
[1m[36m (3.7ms)[0m [1mALTER TABLE "stripe_local_discounts" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_customers" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_transfers" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_cards" DISABLE TRIGGER ALL;ALTER TABLE "clients" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_invoices" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_plans" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_line_items" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_charges" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_coupons" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_transactions" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_balances" DISABLE TRIGGER ALL[0m
|
22334
|
+
[1m[35m (10.3ms)[0m select table_name from information_schema.views where table_schema = 'dummy_test'
|
22335
|
+
[1m[36m (84.1ms)[0m [1mTRUNCATE TABLE "stripe_local_discounts", "stripe_local_customers", "stripe_local_transfers", "stripe_local_cards", "clients", "stripe_local_subscriptions", "stripe_local_invoices", "stripe_local_plans", "stripe_local_line_items", "stripe_local_charges", "stripe_local_coupons", "stripe_local_transactions", "stripe_local_balances" RESTART IDENTITY CASCADE;[0m
|
22336
|
+
[1m[35m (0.5ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_discounts" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_transfers" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_cards" ENABLE TRIGGER ALL;ALTER TABLE "clients" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_customers" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_invoices" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_plans" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_line_items" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_charges" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_coupons" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_transactions" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_balances" ENABLE TRIGGER ALL
|
22337
|
+
[1m[36mActiveRecord::SchemaMigration Load (2.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
22338
|
+
[1m[35m (0.1ms)[0m BEGIN
|
22339
|
+
[1m[36mSQL (11.9ms)[0m [1mINSERT INTO "stripe_local_subscriptions" ("created_at", "current_period_end", "current_period_start", "customer_id", "plan_id", "start", "status", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["created_at", Sat, 07 Dec 2013 08:09:50 CST -06:00], ["current_period_end", Wed, 11 Dec 2013 15:32:46 CST -06:00], ["current_period_start", Mon, 11 Nov 2013 15:32:46 CST -06:00], ["customer_id", "cus_2vIuZmAfWK89Yk"], ["plan_id", "HR99"], ["start", Mon, 11 Nov 2013 15:32:46 CST -06:00], ["status", "active"], ["updated_at", Sat, 07 Dec 2013 08:09:50 CST -06:00]]
|
22340
|
+
[1m[35m (0.3ms)[0m COMMIT
|
22341
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
22342
|
+
[1m[35mSQL (1.3ms)[0m INSERT INTO "stripe_local_charges" ("amount", "card_id", "created", "created_at", "customer_id", "id", "invoice_id", "metadata", "paid", "transaction_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11) RETURNING "id" [["amount", 9900], ["card_id", "cc_1eX7GyRo6wivEf"], ["created", Thu, 01 Aug 2013 18:08:14 CDT -05:00], ["created_at", Sat, 07 Dec 2013 08:09:50 CST -06:00], ["customer_id", "cus_1eX7onie2gq8m1"], ["id", "ch_2wiSyZQkZw8F50"], ["invoice_id", "in_2whTLSkV2ItHAv"], ["metadata", "{\"desc\":\"a charge object\",\"number\":1}"], ["paid", true], ["transaction_id", "txn_2wiSFq1N6BTZTQ"], ["updated_at", Sat, 07 Dec 2013 08:09:50 CST -06:00]]
|
22343
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
22344
|
+
[1m[35m (0.1ms)[0m BEGIN
|
22345
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "stripe_local_line_items" ("amount", "created_at", "id", "invoice_id", "period_end", "period_start", "plan_id", "proration", "quantity", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id"[0m [["amount", 9900], ["created_at", Sat, 07 Dec 2013 08:09:51 CST -06:00], ["id", "su_1bfTBoL3o7blah"], ["invoice_id", "in_2blahblahagain"], ["period_end", Thu, 06 Jun 2013 18:23:47 CDT -05:00], ["period_start", Tue, 07 May 2013 18:23:47 CDT -05:00], ["plan_id", "HR99"], ["proration", false], ["quantity", 1], ["updated_at", Sat, 07 Dec 2013 08:09:51 CST -06:00]]
|
22346
|
+
[1m[35m (0.2ms)[0m COMMIT
|
22347
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
22348
|
+
[1m[35mSQL (1.1ms)[0m INSERT INTO "stripe_local_invoices" ("amount_due", "attempt_count", "attempted", "charge_id", "closed", "created_at", "customer_id", "date", "discount", "ending_balance", "id", "paid", "period_end", "period_start", "starting_balance", "subtotal", "total", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18) RETURNING "id" [["amount_due", 9900], ["attempt_count", 0], ["attempted", true], ["charge_id", "ch_blahblahblah"], ["closed", true], ["created_at", Sat, 07 Dec 2013 08:09:51 CST -06:00], ["customer_id", "cus_1A3zUmx7NpUgrT"], ["date", Tue, 07 May 2013 18:23:47 CDT -05:00], ["discount", nil], ["ending_balance", 0], ["id", "in_2blahblahagain"], ["paid", true], ["period_end", Tue, 07 May 2013 18:23:47 CDT -05:00], ["period_start", Tue, 07 May 2013 18:23:47 CDT -05:00], ["starting_balance", 0], ["subtotal", 9900], ["total", 9900], ["updated_at", Sat, 07 Dec 2013 08:09:51 CST -06:00]]
|
22349
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
22350
|
+
[1m[35mStripeLocal::LineItem Load (0.8ms)[0m SELECT "stripe_local_line_items".* FROM "stripe_local_line_items" WHERE "stripe_local_line_items"."invoice_id" = $1 [["invoice_id", "in_2blahblahagain"]]
|
22351
|
+
[1m[36mStripeLocal::Customer Load (1.0ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1[0m
|
22352
|
+
[1m[35m (0.1ms)[0m BEGIN
|
22353
|
+
[1m[36mStripeLocal::Customer Load (0.2ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1[0m
|
22354
|
+
[1m[35mStripeLocal::Customer Load (0.2ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
|
22355
|
+
[1m[36mStripeLocal::Customer Load (0.2ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1[0m
|
22356
|
+
[1m[35mStripeLocal::Customer Load (0.2ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
|
22357
|
+
[1m[36mStripeLocal::Customer Load (0.2ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1[0m
|
22358
|
+
[1m[35mStripeLocal::Customer Load (0.2ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
|
22359
|
+
[1m[36mStripeLocal::Customer Load (0.2ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1[0m
|
22360
|
+
[1m[35mStripeLocal::Customer Load (0.1ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
|
22361
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "clients" ("created_at", "email", "name", "password", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", Sat, 07 Dec 2013 08:09:51 CST -06:00], ["email", "test@test.com"], ["name", "Test Case"], ["password", "password"], ["updated_at", Sat, 07 Dec 2013 08:09:51 CST -06:00]]
|
22362
|
+
[1m[35m (0.2ms)[0m COMMIT
|
22363
|
+
[1m[36mStripeLocal::Customer Load (0.2ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" = 1 LIMIT 1[0m
|
22364
|
+
[1m[35m (0.2ms)[0m BEGIN
|
22365
|
+
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO "stripe_local_cards" ("brand", "created_at", "customer_id", "cvc_check", "exp_month", "exp_year", "id", "last4", "name", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id"[0m [["brand", "Visa"], ["created_at", Sat, 07 Dec 2013 08:09:51 CST -06:00], ["customer_id", "cus_123"], ["cvc_check", "pass"], ["exp_month", 8], ["exp_year", 2014], ["id", "card_102Y2J1Cmf55uWiejglofO7j"], ["last4", "4242"], ["name", "Test Case"], ["updated_at", Sat, 07 Dec 2013 08:09:51 CST -06:00]]
|
22366
|
+
[1m[35m (0.3ms)[0m COMMIT
|
22367
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
22368
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "stripe_local_subscriptions" ("created_at", "current_period_end", "current_period_start", "customer_id", "plan_id", "start", "status", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["created_at", Sat, 07 Dec 2013 08:09:51 CST -06:00], ["current_period_end", Thu, 10 Oct 2013 13:52:04 CDT -05:00], ["current_period_start", Tue, 10 Sep 2013 13:52:04 CDT -05:00], ["customer_id", "cus_123"], ["plan_id", "GIN100"], ["start", Tue, 10 Sep 2013 13:52:04 CDT -05:00], ["status", "active"], ["updated_at", Sat, 07 Dec 2013 08:09:51 CST -06:00]]
|
22369
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
22370
|
+
[1m[35m (0.1ms)[0m BEGIN
|
22371
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "stripe_local_customers" ("account_balance", "created_at", "default_card", "delinquent", "description", "email", "id", "model_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id"[0m [["account_balance", 0], ["created_at", Sat, 07 Dec 2013 08:09:51 CST -06:00], ["default_card", "card_102Y2J1Cmf55uWiejglofO7j"], ["delinquent", false], ["description", "On September 10th, Test signed up for CA50."], ["email", "test@test.com"], ["id", "cus_123"], ["model_id", 1], ["updated_at", Sat, 07 Dec 2013 08:09:51 CST -06:00]]
|
22372
|
+
[1m[35m (0.4ms)[0m COMMIT
|
22373
|
+
[1m[36mStripeLocal::Customer Load (0.3ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" = 1 LIMIT 1[0m
|
22374
|
+
[1m[35mStripeLocal::Subscription Load (0.3ms)[0m SELECT "stripe_local_subscriptions".* FROM "stripe_local_subscriptions" WHERE "stripe_local_subscriptions"."customer_id" = 'cus_123' LIMIT 1
|
22375
|
+
[1m[36mStripeLocal::Plan Load (0.3ms)[0m [1mSELECT "stripe_local_plans".* FROM "stripe_local_plans" WHERE "stripe_local_plans"."id" = 'New_Plan' LIMIT 1[0m
|
22376
|
+
[1m[35m (0.2ms)[0m BEGIN
|
22377
|
+
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO "stripe_local_plans" ("amount", "created_at", "id", "interval", "name", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["amount", 2999], ["created_at", Sat, 07 Dec 2013 08:09:51 CST -06:00], ["id", "New_Plan"], ["interval", "month"], ["name", "New Plan"], ["updated_at", Sat, 07 Dec 2013 08:09:51 CST -06:00]]
|
22378
|
+
[1m[35m (0.3ms)[0m COMMIT
|
22379
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
22380
|
+
[1m[35mSQL (1.1ms)[0m INSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["available", 9900], ["created_at", Sat, 07 Dec 2013 08:09:51 CST -06:00], ["pending", 29900], ["updated_at", Sat, 07 Dec 2013 08:09:51 CST -06:00]]
|
22381
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
22382
|
+
[1m[35m (0.1ms)[0m BEGIN
|
22383
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["available", 19900], ["created_at", Sat, 07 Dec 2013 08:09:51 CST -06:00], ["pending", 19900], ["updated_at", Sat, 07 Dec 2013 08:09:51 CST -06:00]]
|
22384
|
+
[1m[35m (0.3ms)[0m COMMIT
|
22385
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
22386
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["available", 9900], ["created_at", Sat, 07 Dec 2013 08:09:51 CST -06:00], ["pending", 29900], ["updated_at", Sat, 07 Dec 2013 08:09:51 CST -06:00]]
|
22387
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
22388
|
+
[1m[35m (0.1ms)[0m BEGIN
|
22389
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["available", 19900], ["created_at", Sat, 07 Dec 2013 08:09:51 CST -06:00], ["pending", 19900], ["updated_at", Sat, 07 Dec 2013 08:09:51 CST -06:00]]
|
22390
|
+
[1m[35m (0.3ms)[0m COMMIT
|
22391
|
+
[1m[36m (0.3ms)[0m [1mSELECT "stripe_local_balances"."available" FROM "stripe_local_balances"[0m
|
22392
|
+
[1m[35m (0.2ms)[0m BEGIN
|
22393
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["available", 9900], ["created_at", Sat, 07 Dec 2013 08:09:51 CST -06:00], ["pending", 29900], ["updated_at", Sat, 07 Dec 2013 08:09:51 CST -06:00]]
|
22394
|
+
[1m[35m (0.3ms)[0m COMMIT
|
22395
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
22396
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["available", 19900], ["created_at", Sat, 07 Dec 2013 08:09:51 CST -06:00], ["pending", 19900], ["updated_at", Sat, 07 Dec 2013 08:09:51 CST -06:00]]
|
22397
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
22398
|
+
[1m[35m (0.2ms)[0m SELECT "stripe_local_balances"."available" FROM "stripe_local_balances"
|
22399
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
22400
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["available", 9900], ["created_at", Sat, 07 Dec 2013 08:09:51 CST -06:00], ["pending", 29900], ["updated_at", Sat, 07 Dec 2013 08:09:51 CST -06:00]]
|
22401
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
22402
|
+
[1m[35m (0.1ms)[0m BEGIN
|
22403
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["available", 19900], ["created_at", Sat, 07 Dec 2013 08:09:51 CST -06:00], ["pending", 19900], ["updated_at", Sat, 07 Dec 2013 08:09:51 CST -06:00]]
|
22404
|
+
[1m[35m (0.3ms)[0m COMMIT
|
22405
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "stripe_local_balances"[0m
|
22406
|
+
[1m[35m (0.1ms)[0m BEGIN
|
22407
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["available", 39800], ["created_at", Sat, 07 Dec 2013 08:09:51 CST -06:00], ["pending", 0], ["updated_at", Sat, 07 Dec 2013 08:09:51 CST -06:00]]
|
22408
|
+
[1m[35m (0.3ms)[0m COMMIT
|
22409
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "stripe_local_balances"[0m
|
22410
|
+
[1m[35m (0.1ms)[0m BEGIN
|
22411
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["available", 9900], ["created_at", Sat, 07 Dec 2013 08:09:51 CST -06:00], ["pending", 29900], ["updated_at", Sat, 07 Dec 2013 08:09:51 CST -06:00]]
|
22412
|
+
[1m[35m (0.3ms)[0m COMMIT
|
22413
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
22414
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["available", 19900], ["created_at", Sat, 07 Dec 2013 08:09:51 CST -06:00], ["pending", 19900], ["updated_at", Sat, 07 Dec 2013 08:09:51 CST -06:00]]
|
22415
|
+
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
|
22416
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "stripe_local_balances"
|
22417
|
+
[1m[36mStripeLocal::Balance Load (0.4ms)[0m [1mSELECT "stripe_local_balances".* FROM "stripe_local_balances" ORDER BY "stripe_local_balances"."id" DESC LIMIT 1[0m
|
22418
|
+
[1m[35mStripeLocal::Balance Load (0.2ms)[0m SELECT "stripe_local_balances".* FROM "stripe_local_balances" ORDER BY "stripe_local_balances"."id" DESC LIMIT 1
|
22419
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "stripe_local_balances" SET "updated_at" = '2013-12-08 14:09:51.282655' WHERE "stripe_local_balances"."id" = 11[0m
|
22420
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "stripe_local_balances"
|
22421
|
+
[1m[36mStripeLocal::Balance Load (0.2ms)[0m [1mSELECT "stripe_local_balances".* FROM "stripe_local_balances" ORDER BY "stripe_local_balances"."id" DESC LIMIT 1[0m
|
22422
|
+
[1m[35m (0.1ms)[0m BEGIN
|
22423
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["available", 9900], ["created_at", Sat, 07 Dec 2013 08:09:51 CST -06:00], ["pending", 29900], ["updated_at", Sat, 07 Dec 2013 08:09:51 CST -06:00]]
|
22424
|
+
[1m[35m (0.3ms)[0m COMMIT
|
22425
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
22426
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["available", 19900], ["created_at", Sat, 07 Dec 2013 08:09:51 CST -06:00], ["pending", 19900], ["updated_at", Sat, 07 Dec 2013 08:09:51 CST -06:00]]
|
22427
|
+
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
|
22428
|
+
[1m[35m (0.2ms)[0m SELECT "stripe_local_balances"."pending" FROM "stripe_local_balances"
|
22429
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
22430
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["available", 9900], ["created_at", Sat, 07 Dec 2013 08:09:51 CST -06:00], ["pending", 29900], ["updated_at", Sat, 07 Dec 2013 08:09:51 CST -06:00]]
|
22431
|
+
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
|
22432
|
+
[1m[35m (0.1ms)[0m BEGIN
|
22433
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["available", 19900], ["created_at", Sat, 07 Dec 2013 08:09:51 CST -06:00], ["pending", 19900], ["updated_at", Sat, 07 Dec 2013 08:09:51 CST -06:00]]
|
22434
|
+
[1m[35m (0.2ms)[0m COMMIT
|
22435
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
22436
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "stripe_local_cards" ("brand", "created_at", "customer_id", "cvc_check", "exp_month", "exp_year", "id", "last4", "name", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["brand", "Visa"], ["created_at", Sat, 07 Dec 2013 08:09:51 CST -06:00], ["customer_id", "cus_2J7PZ8ncCbR10Z"], ["cvc_check", "pass"], ["exp_month", 1], ["exp_year", 2014], ["id", "cc_2J7Pscoh4jvFjJ"], ["last4", "4242"], ["name", "Connor Tumbleson"], ["updated_at", Sat, 07 Dec 2013 08:09:51 CST -06:00]]
|
22437
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
22438
|
+
[1m[35m (0.2ms)[0m BEGIN
|
22439
|
+
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO "stripe_local_transactions" ("amount", "available_on", "created", "created_at", "description", "fee", "id", "net", "source_id", "source_type", "status", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id"[0m [["amount", -100], ["available_on", Mon, 07 Oct 2013 05:01:01 CDT -05:00], ["created", Mon, 30 Sep 2013 05:01:01 CDT -05:00], ["created_at", Sat, 07 Dec 2013 08:09:51 CST -06:00], ["description", "a dollar for Don Atello"], ["fee", 25], ["id", "txn_2fOGkiBkDgpObU"], ["net", -125], ["source_id", "tr_2fOGfKABdHu3uf"], ["source_type", "transfer"], ["status", "available"], ["updated_at", Sat, 07 Dec 2013 08:09:51 CST -06:00]]
|
22440
|
+
[1m[35m (0.3ms)[0m COMMIT
|
22441
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
22442
|
+
[1m[35mSQL (1.4ms)[0m INSERT INTO "stripe_local_transfers" ("amount", "created_at", "date", "description", "id", "metadata", "status", "transaction_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["amount", 100], ["created_at", Sat, 07 Dec 2013 08:09:51 CST -06:00], ["date", Mon, 30 Sep 2013 05:01:01 CDT -05:00], ["description", "a dollar for Don Atello"], ["id", "tr_2fOGfKABdHu3uf"], ["metadata", "{}"], ["status", "paid"], ["transaction_id", "txn_2fOGkiBkDgpObU"], ["updated_at", Sat, 07 Dec 2013 08:09:51 CST -06:00]]
|
22443
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
22444
|
+
[1m[36m (0.8ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_discounts" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_transfers" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_cards" DISABLE TRIGGER ALL;ALTER TABLE "clients" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_customers" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_invoices" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_plans" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_line_items" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_charges" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_coupons" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_transactions" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_balances" DISABLE TRIGGER ALL[0m
|
22445
|
+
[1m[35m (1.1ms)[0m select table_name from information_schema.views where table_schema = 'dummy_test'
|
22446
|
+
[1m[36m (27.0ms)[0m [1mTRUNCATE TABLE "stripe_local_discounts", "stripe_local_transfers", "stripe_local_cards", "clients", "stripe_local_customers", "stripe_local_subscriptions", "stripe_local_invoices", "stripe_local_plans", "stripe_local_line_items", "stripe_local_charges", "stripe_local_coupons", "stripe_local_transactions", "stripe_local_balances" RESTART IDENTITY CASCADE;[0m
|
22447
|
+
[1m[35m (0.8ms)[0m ALTER TABLE "stripe_local_discounts" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_cards" ENABLE TRIGGER ALL;ALTER TABLE "clients" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_customers" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_transfers" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_invoices" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_plans" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_line_items" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_charges" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_coupons" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_transactions" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_balances" ENABLE TRIGGER ALL
|
22448
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
22449
|
+
[1m[35m (0.2ms)[0m BEGIN
|
22450
|
+
[1m[36mSQL (6.1ms)[0m [1mINSERT INTO "stripe_local_subscriptions" ("created_at", "current_period_end", "current_period_start", "customer_id", "plan_id", "start", "status", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["created_at", Sat, 07 Dec 2013 08:10:12 CST -06:00], ["current_period_end", Wed, 11 Dec 2013 15:32:46 CST -06:00], ["current_period_start", Mon, 11 Nov 2013 15:32:46 CST -06:00], ["customer_id", "cus_2vIuZmAfWK89Yk"], ["plan_id", "HR99"], ["start", Mon, 11 Nov 2013 15:32:46 CST -06:00], ["status", "active"], ["updated_at", Sat, 07 Dec 2013 08:10:12 CST -06:00]]
|
22451
|
+
[1m[35m (0.3ms)[0m COMMIT
|
22452
|
+
[1m[36mStripeLocal::Customer Load (0.4ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1[0m
|
22453
|
+
[1m[35m (0.1ms)[0m BEGIN
|
22454
|
+
[1m[36mStripeLocal::Customer Load (0.5ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1[0m
|
22455
|
+
[1m[35mStripeLocal::Customer Load (0.3ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
|
22456
|
+
[1m[36mStripeLocal::Customer Load (0.2ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1[0m
|
22457
|
+
[1m[35mStripeLocal::Customer Load (0.1ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
|
22458
|
+
[1m[36mStripeLocal::Customer Load (0.1ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1[0m
|
22459
|
+
[1m[35mStripeLocal::Customer Load (0.3ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
|
22460
|
+
[1m[36mStripeLocal::Customer Load (0.5ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1[0m
|
22461
|
+
[1m[35mStripeLocal::Customer Load (0.2ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
|
22462
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "clients" ("created_at", "email", "name", "password", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", Sat, 07 Dec 2013 08:10:12 CST -06:00], ["email", "test@test.com"], ["name", "Test Case"], ["password", "password"], ["updated_at", Sat, 07 Dec 2013 08:10:12 CST -06:00]]
|
22463
|
+
[1m[35m (0.3ms)[0m COMMIT
|
22464
|
+
[1m[36mStripeLocal::Customer Load (0.3ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" = 1 LIMIT 1[0m
|
22465
|
+
[1m[35m (0.1ms)[0m BEGIN
|
22466
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "stripe_local_cards" ("brand", "created_at", "customer_id", "cvc_check", "exp_month", "exp_year", "id", "last4", "name", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id"[0m [["brand", "Visa"], ["created_at", Sat, 07 Dec 2013 08:10:12 CST -06:00], ["customer_id", "cus_123"], ["cvc_check", "pass"], ["exp_month", 8], ["exp_year", 2014], ["id", "card_102Y2J1Cmf55uWiejglofO7j"], ["last4", "4242"], ["name", "Test Case"], ["updated_at", Sat, 07 Dec 2013 08:10:12 CST -06:00]]
|
22467
|
+
[1m[35m (0.3ms)[0m COMMIT
|
22468
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
22469
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "stripe_local_subscriptions" ("created_at", "current_period_end", "current_period_start", "customer_id", "plan_id", "start", "status", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["created_at", Sat, 07 Dec 2013 08:10:12 CST -06:00], ["current_period_end", Thu, 10 Oct 2013 13:52:04 CDT -05:00], ["current_period_start", Tue, 10 Sep 2013 13:52:04 CDT -05:00], ["customer_id", "cus_123"], ["plan_id", "GIN100"], ["start", Tue, 10 Sep 2013 13:52:04 CDT -05:00], ["status", "active"], ["updated_at", Sat, 07 Dec 2013 08:10:12 CST -06:00]]
|
22470
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
22471
|
+
[1m[35m (0.2ms)[0m BEGIN
|
22472
|
+
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO "stripe_local_customers" ("account_balance", "created_at", "default_card", "delinquent", "description", "email", "id", "model_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id"[0m [["account_balance", 0], ["created_at", Sat, 07 Dec 2013 08:10:12 CST -06:00], ["default_card", "card_102Y2J1Cmf55uWiejglofO7j"], ["delinquent", false], ["description", "On September 10th, Test signed up for CA50."], ["email", "test@test.com"], ["id", "cus_123"], ["model_id", 1], ["updated_at", Sat, 07 Dec 2013 08:10:12 CST -06:00]]
|
22473
|
+
[1m[35m (0.3ms)[0m COMMIT
|
22474
|
+
[1m[36mStripeLocal::Customer Load (0.3ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" = 1 LIMIT 1[0m
|
22475
|
+
[1m[35mStripeLocal::Subscription Load (0.3ms)[0m SELECT "stripe_local_subscriptions".* FROM "stripe_local_subscriptions" WHERE "stripe_local_subscriptions"."customer_id" = 'cus_123' LIMIT 1
|
22476
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
22477
|
+
[1m[35mSQL (1.4ms)[0m INSERT INTO "stripe_local_line_items" ("amount", "created_at", "id", "invoice_id", "period_end", "period_start", "plan_id", "proration", "quantity", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["amount", 9900], ["created_at", Sat, 07 Dec 2013 08:10:12 CST -06:00], ["id", "su_1bfTBoL3o7blah"], ["invoice_id", "in_2blahblahagain"], ["period_end", Thu, 06 Jun 2013 18:23:47 CDT -05:00], ["period_start", Tue, 07 May 2013 18:23:47 CDT -05:00], ["plan_id", "HR99"], ["proration", false], ["quantity", 1], ["updated_at", Sat, 07 Dec 2013 08:10:12 CST -06:00]]
|
22478
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
22479
|
+
[1m[35m (0.2ms)[0m BEGIN
|
22480
|
+
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO "stripe_local_invoices" ("amount_due", "attempt_count", "attempted", "charge_id", "closed", "created_at", "customer_id", "date", "discount", "ending_balance", "id", "paid", "period_end", "period_start", "starting_balance", "subtotal", "total", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18) RETURNING "id"[0m [["amount_due", 9900], ["attempt_count", 0], ["attempted", true], ["charge_id", "ch_blahblahblah"], ["closed", true], ["created_at", Sat, 07 Dec 2013 08:10:12 CST -06:00], ["customer_id", "cus_1A3zUmx7NpUgrT"], ["date", Tue, 07 May 2013 18:23:47 CDT -05:00], ["discount", nil], ["ending_balance", 0], ["id", "in_2blahblahagain"], ["paid", true], ["period_end", Tue, 07 May 2013 18:23:47 CDT -05:00], ["period_start", Tue, 07 May 2013 18:23:47 CDT -05:00], ["starting_balance", 0], ["subtotal", 9900], ["total", 9900], ["updated_at", Sat, 07 Dec 2013 08:10:12 CST -06:00]]
|
22481
|
+
[1m[35m (0.4ms)[0m COMMIT
|
22482
|
+
[1m[36mStripeLocal::LineItem Load (0.6ms)[0m [1mSELECT "stripe_local_line_items".* FROM "stripe_local_line_items" WHERE "stripe_local_line_items"."invoice_id" = $1[0m [["invoice_id", "in_2blahblahagain"]]
|
22483
|
+
[1m[35m (0.2ms)[0m BEGIN
|
22484
|
+
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO "stripe_local_transactions" ("amount", "available_on", "created", "created_at", "description", "fee", "id", "net", "source_id", "source_type", "status", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id"[0m [["amount", -100], ["available_on", Mon, 07 Oct 2013 05:01:01 CDT -05:00], ["created", Mon, 30 Sep 2013 05:01:01 CDT -05:00], ["created_at", Sat, 07 Dec 2013 08:10:12 CST -06:00], ["description", "a dollar for Don Atello"], ["fee", 25], ["id", "txn_2fOGkiBkDgpObU"], ["net", -125], ["source_id", "tr_2fOGfKABdHu3uf"], ["source_type", "transfer"], ["status", "available"], ["updated_at", Sat, 07 Dec 2013 08:10:12 CST -06:00]]
|
22485
|
+
[1m[35m (0.3ms)[0m COMMIT
|
22486
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
22487
|
+
[1m[35mSQL (1.2ms)[0m INSERT INTO "stripe_local_charges" ("amount", "card_id", "created", "created_at", "customer_id", "id", "invoice_id", "metadata", "paid", "transaction_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11) RETURNING "id" [["amount", 9900], ["card_id", "cc_1eX7GyRo6wivEf"], ["created", Thu, 01 Aug 2013 18:08:14 CDT -05:00], ["created_at", Sat, 07 Dec 2013 08:10:12 CST -06:00], ["customer_id", "cus_1eX7onie2gq8m1"], ["id", "ch_2wiSyZQkZw8F50"], ["invoice_id", "in_2whTLSkV2ItHAv"], ["metadata", "{\"desc\":\"a charge object\",\"number\":1}"], ["paid", true], ["transaction_id", "txn_2wiSFq1N6BTZTQ"], ["updated_at", Sat, 07 Dec 2013 08:10:12 CST -06:00]]
|
22488
|
+
[1m[36m (0.9ms)[0m [1mCOMMIT[0m
|
22489
|
+
[1m[35m (0.1ms)[0m BEGIN
|
22490
|
+
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO "stripe_local_transfers" ("amount", "created_at", "date", "description", "id", "metadata", "status", "transaction_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id"[0m [["amount", 100], ["created_at", Sat, 07 Dec 2013 08:10:13 CST -06:00], ["date", Mon, 30 Sep 2013 05:01:01 CDT -05:00], ["description", "a dollar for Don Atello"], ["id", "tr_2fOGfKABdHu3uf"], ["metadata", "{}"], ["status", "paid"], ["transaction_id", "txn_2fOGkiBkDgpObU"], ["updated_at", Sat, 07 Dec 2013 08:10:13 CST -06:00]]
|
22491
|
+
[1m[35m (0.3ms)[0m COMMIT
|
22492
|
+
[1m[36mStripeLocal::Plan Load (0.2ms)[0m [1mSELECT "stripe_local_plans".* FROM "stripe_local_plans" WHERE "stripe_local_plans"."id" = 'New_Plan' LIMIT 1[0m
|
22493
|
+
[1m[35m (0.2ms)[0m BEGIN
|
22494
|
+
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO "stripe_local_plans" ("amount", "created_at", "id", "interval", "name", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["amount", 2999], ["created_at", Sat, 07 Dec 2013 08:10:13 CST -06:00], ["id", "New_Plan"], ["interval", "month"], ["name", "New Plan"], ["updated_at", Sat, 07 Dec 2013 08:10:13 CST -06:00]]
|
22495
|
+
[1m[35m (0.3ms)[0m COMMIT
|
22496
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
22497
|
+
[1m[35mSQL (0.8ms)[0m INSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["available", 9900], ["created_at", Sat, 07 Dec 2013 08:10:13 CST -06:00], ["pending", 29900], ["updated_at", Sat, 07 Dec 2013 08:10:13 CST -06:00]]
|
22498
|
+
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
|
22499
|
+
[1m[35m (0.1ms)[0m BEGIN
|
22500
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["available", 19900], ["created_at", Sat, 07 Dec 2013 08:10:13 CST -06:00], ["pending", 19900], ["updated_at", Sat, 07 Dec 2013 08:10:13 CST -06:00]]
|
22501
|
+
[1m[35m (0.3ms)[0m COMMIT
|
22502
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "stripe_local_balances"[0m
|
22503
|
+
[1m[35m (0.1ms)[0m BEGIN
|
22504
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["available", 39800], ["created_at", Sat, 07 Dec 2013 08:10:13 CST -06:00], ["pending", 0], ["updated_at", Sat, 07 Dec 2013 08:10:13 CST -06:00]]
|
22505
|
+
[1m[35m (0.2ms)[0m COMMIT
|
22506
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "stripe_local_balances"[0m
|
22507
|
+
[1m[35m (0.1ms)[0m BEGIN
|
22508
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["available", 9900], ["created_at", Sat, 07 Dec 2013 08:10:13 CST -06:00], ["pending", 29900], ["updated_at", Sat, 07 Dec 2013 08:10:13 CST -06:00]]
|
22509
|
+
[1m[35m (0.3ms)[0m COMMIT
|
22510
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
22511
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["available", 19900], ["created_at", Sat, 07 Dec 2013 08:10:13 CST -06:00], ["pending", 19900], ["updated_at", Sat, 07 Dec 2013 08:10:13 CST -06:00]]
|
22512
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
22513
|
+
[1m[35m (0.2ms)[0m SELECT "stripe_local_balances"."available" FROM "stripe_local_balances"
|
22514
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
22515
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["available", 9900], ["created_at", Sat, 07 Dec 2013 08:10:13 CST -06:00], ["pending", 29900], ["updated_at", Sat, 07 Dec 2013 08:10:13 CST -06:00]]
|
22516
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
22517
|
+
[1m[35m (0.1ms)[0m BEGIN
|
22518
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["available", 19900], ["created_at", Sat, 07 Dec 2013 08:10:13 CST -06:00], ["pending", 19900], ["updated_at", Sat, 07 Dec 2013 08:10:13 CST -06:00]]
|
22519
|
+
[1m[35m (0.2ms)[0m COMMIT
|
22520
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
22521
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["available", 9900], ["created_at", Sat, 07 Dec 2013 08:10:13 CST -06:00], ["pending", 29900], ["updated_at", Sat, 07 Dec 2013 08:10:13 CST -06:00]]
|
22522
|
+
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
|
22523
|
+
[1m[35m (0.0ms)[0m BEGIN
|
22524
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["available", 19900], ["created_at", Sat, 07 Dec 2013 08:10:13 CST -06:00], ["pending", 19900], ["updated_at", Sat, 07 Dec 2013 08:10:13 CST -06:00]]
|
22525
|
+
[1m[35m (0.2ms)[0m COMMIT
|
22526
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
22527
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["available", 9900], ["created_at", Sat, 07 Dec 2013 08:10:13 CST -06:00], ["pending", 29900], ["updated_at", Sat, 07 Dec 2013 08:10:13 CST -06:00]]
|
22528
|
+
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
|
22529
|
+
[1m[35m (0.1ms)[0m BEGIN
|
22530
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["available", 19900], ["created_at", Sat, 07 Dec 2013 08:10:13 CST -06:00], ["pending", 19900], ["updated_at", Sat, 07 Dec 2013 08:10:13 CST -06:00]]
|
22531
|
+
[1m[35m (0.4ms)[0m COMMIT
|
22532
|
+
[1m[36m (0.2ms)[0m [1mSELECT "stripe_local_balances"."pending" FROM "stripe_local_balances"[0m
|
22533
|
+
[1m[35m (0.1ms)[0m BEGIN
|
22534
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["available", 9900], ["created_at", Sat, 07 Dec 2013 08:10:13 CST -06:00], ["pending", 29900], ["updated_at", Sat, 07 Dec 2013 08:10:13 CST -06:00]]
|
22535
|
+
[1m[35m (0.3ms)[0m COMMIT
|
22536
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
22537
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["available", 19900], ["created_at", Sat, 07 Dec 2013 08:10:13 CST -06:00], ["pending", 19900], ["updated_at", Sat, 07 Dec 2013 08:10:13 CST -06:00]]
|
22538
|
+
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
|
22539
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "stripe_local_balances"
|
22540
|
+
[1m[36mStripeLocal::Balance Load (0.3ms)[0m [1mSELECT "stripe_local_balances".* FROM "stripe_local_balances" ORDER BY "stripe_local_balances"."id" DESC LIMIT 1[0m
|
22541
|
+
[1m[35mStripeLocal::Balance Load (0.2ms)[0m SELECT "stripe_local_balances".* FROM "stripe_local_balances" ORDER BY "stripe_local_balances"."id" DESC LIMIT 1
|
22542
|
+
[1m[36mSQL (0.5ms)[0m [1mUPDATE "stripe_local_balances" SET "updated_at" = '2013-12-08 14:10:13.099327' WHERE "stripe_local_balances"."id" = 13[0m
|
22543
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "stripe_local_balances"
|
22544
|
+
[1m[36mStripeLocal::Balance Load (0.2ms)[0m [1mSELECT "stripe_local_balances".* FROM "stripe_local_balances" ORDER BY "stripe_local_balances"."id" DESC LIMIT 1[0m
|
22545
|
+
[1m[35m (0.2ms)[0m BEGIN
|
22546
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["available", 9900], ["created_at", Sat, 07 Dec 2013 08:10:13 CST -06:00], ["pending", 29900], ["updated_at", Sat, 07 Dec 2013 08:10:13 CST -06:00]]
|
22547
|
+
[1m[35m (0.4ms)[0m COMMIT
|
22548
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
22549
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["available", 19900], ["created_at", Sat, 07 Dec 2013 08:10:13 CST -06:00], ["pending", 19900], ["updated_at", Sat, 07 Dec 2013 08:10:13 CST -06:00]]
|
22550
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
22551
|
+
[1m[35m (0.2ms)[0m SELECT "stripe_local_balances"."available" FROM "stripe_local_balances"
|
22552
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
22553
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "stripe_local_cards" ("brand", "created_at", "customer_id", "cvc_check", "exp_month", "exp_year", "id", "last4", "name", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["brand", "Visa"], ["created_at", Sat, 07 Dec 2013 08:10:13 CST -06:00], ["customer_id", "cus_2J7PZ8ncCbR10Z"], ["cvc_check", "pass"], ["exp_month", 1], ["exp_year", 2014], ["id", "cc_2J7Pscoh4jvFjJ"], ["last4", "4242"], ["name", "Connor Tumbleson"], ["updated_at", Sat, 07 Dec 2013 08:10:13 CST -06:00]]
|
22554
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
22555
|
+
[1m[36m (1.4ms)[0m [1mALTER TABLE "stripe_local_discounts" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_cards" DISABLE TRIGGER ALL;ALTER TABLE "clients" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_customers" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_transfers" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_invoices" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_plans" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_line_items" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_charges" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_coupons" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_transactions" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_balances" DISABLE TRIGGER ALL[0m
|
22556
|
+
[1m[35m (1.6ms)[0m select table_name from information_schema.views where table_schema = 'dummy_test'
|
22557
|
+
[1m[36m (41.2ms)[0m [1mTRUNCATE TABLE "stripe_local_discounts", "stripe_local_cards", "clients", "stripe_local_customers", "stripe_local_transfers", "stripe_local_subscriptions", "stripe_local_invoices", "stripe_local_plans", "stripe_local_line_items", "stripe_local_charges", "stripe_local_coupons", "stripe_local_transactions", "stripe_local_balances" RESTART IDENTITY CASCADE;[0m
|
22558
|
+
[1m[35m (1.0ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_discounts" ENABLE TRIGGER ALL;ALTER TABLE "clients" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_customers" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_transfers" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_cards" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_invoices" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_plans" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_line_items" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_charges" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_coupons" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_transactions" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_balances" ENABLE TRIGGER ALL
|
22559
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
22560
|
+
[1m[35m (0.1ms)[0m BEGIN
|
22561
|
+
[1m[36mSQL (6.7ms)[0m [1mINSERT INTO "stripe_local_subscriptions" ("created_at", "current_period_end", "current_period_start", "customer_id", "plan_id", "start", "status", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["created_at", Sat, 07 Dec 2013 08:16:08 CST -06:00], ["current_period_end", Wed, 11 Dec 2013 15:32:46 CST -06:00], ["current_period_start", Mon, 11 Nov 2013 15:32:46 CST -06:00], ["customer_id", "cus_2vIuZmAfWK89Yk"], ["plan_id", "HR99"], ["start", Mon, 11 Nov 2013 15:32:46 CST -06:00], ["status", "active"], ["updated_at", Sat, 07 Dec 2013 08:16:08 CST -06:00]]
|
22562
|
+
[1m[35m (0.3ms)[0m COMMIT
|
22563
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
22564
|
+
[1m[35mSQL (1.4ms)[0m INSERT INTO "stripe_local_cards" ("brand", "created_at", "customer_id", "cvc_check", "exp_month", "exp_year", "id", "last4", "name", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["brand", "Visa"], ["created_at", Sat, 07 Dec 2013 08:16:08 CST -06:00], ["customer_id", "cus_2J7PZ8ncCbR10Z"], ["cvc_check", "pass"], ["exp_month", 1], ["exp_year", 2014], ["id", "cc_2J7Pscoh4jvFjJ"], ["last4", "4242"], ["name", "Connor Tumbleson"], ["updated_at", Sat, 07 Dec 2013 08:16:08 CST -06:00]]
|
22565
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
22566
|
+
[1m[35m (0.1ms)[0m BEGIN
|
22567
|
+
[1m[36mSQL (1.7ms)[0m [1mINSERT INTO "stripe_local_charges" ("amount", "card_id", "created", "created_at", "customer_id", "id", "invoice_id", "metadata", "paid", "transaction_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11) RETURNING "id"[0m [["amount", 9900], ["card_id", "cc_1eX7GyRo6wivEf"], ["created", Thu, 01 Aug 2013 18:08:14 CDT -05:00], ["created_at", Sat, 07 Dec 2013 08:16:08 CST -06:00], ["customer_id", "cus_1eX7onie2gq8m1"], ["id", "ch_2wiSyZQkZw8F50"], ["invoice_id", "in_2whTLSkV2ItHAv"], ["metadata", "{\"desc\":\"a charge object\",\"number\":1}"], ["paid", true], ["transaction_id", "txn_2wiSFq1N6BTZTQ"], ["updated_at", Sat, 07 Dec 2013 08:16:08 CST -06:00]]
|
22568
|
+
[1m[35m (0.3ms)[0m COMMIT
|
22569
|
+
[1m[36mStripeLocal::Plan Load (0.3ms)[0m [1mSELECT "stripe_local_plans".* FROM "stripe_local_plans" WHERE "stripe_local_plans"."id" = 'New_Plan' LIMIT 1[0m
|
22570
|
+
[1m[35m (0.1ms)[0m BEGIN
|
22571
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "stripe_local_plans" ("amount", "created_at", "id", "interval", "name", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["amount", 2999], ["created_at", Sat, 07 Dec 2013 08:16:08 CST -06:00], ["id", "New_Plan"], ["interval", "month"], ["name", "New Plan"], ["updated_at", Sat, 07 Dec 2013 08:16:08 CST -06:00]]
|
22572
|
+
[1m[35m (0.3ms)[0m COMMIT
|
22573
|
+
[1m[36mStripeLocal::Customer Load (0.6ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1[0m
|
22574
|
+
[1m[35m (0.2ms)[0m BEGIN
|
22575
|
+
[1m[36mStripeLocal::Customer Load (0.3ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1[0m
|
22576
|
+
[1m[35mStripeLocal::Customer Load (0.2ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
|
22577
|
+
[1m[36mStripeLocal::Customer Load (0.2ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1[0m
|
22578
|
+
[1m[35mStripeLocal::Customer Load (0.1ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
|
22579
|
+
[1m[36mStripeLocal::Customer Load (0.2ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1[0m
|
22580
|
+
[1m[35mStripeLocal::Customer Load (0.2ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
|
22581
|
+
[1m[36mStripeLocal::Customer Load (0.2ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1[0m
|
22582
|
+
[1m[35mStripeLocal::Customer Load (0.2ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
|
22583
|
+
[1m[36mStripeLocal::Customer Load (0.1ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1[0m
|
22584
|
+
[1m[35mStripeLocal::Customer Load (0.2ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
|
22585
|
+
[1m[36mStripeLocal::Customer Load (0.2ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1[0m
|
22586
|
+
[1m[35mStripeLocal::Customer Load (0.1ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
|
22587
|
+
[1m[36mStripeLocal::Customer Load (0.1ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1[0m
|
22588
|
+
[1m[35mStripeLocal::Customer Load (0.1ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
|
22589
|
+
[1m[36mStripeLocal::Customer Load (0.1ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1[0m
|
22590
|
+
[1m[35mStripeLocal::Customer Load (0.1ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
|
22591
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "clients" ("email", "name", "password") VALUES ($1, $2, $3) RETURNING "id"[0m [["email", "test@test.com"], ["name", "Test Case"], ["password", "password"]]
|
22592
|
+
[1m[35m (0.3ms)[0m COMMIT
|
22593
|
+
[1m[36mStripeLocal::Customer Load (0.2ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" = 1 LIMIT 1[0m
|
22594
|
+
[1m[35mStripeLocal::Customer Load (0.1ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" = 1 LIMIT 1
|
22595
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
22596
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "stripe_local_cards" ("brand", "created_at", "customer_id", "cvc_check", "exp_month", "exp_year", "id", "last4", "name", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["brand", "Visa"], ["created_at", Sat, 07 Dec 2013 08:16:09 CST -06:00], ["customer_id", "cus_123"], ["cvc_check", "pass"], ["exp_month", 8], ["exp_year", 2014], ["id", "card_102Y2J1Cmf55uWiejglofO7j"], ["last4", "4242"], ["name", "Test Case"], ["updated_at", Sat, 07 Dec 2013 08:16:09 CST -06:00]]
|
22597
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
22598
|
+
[1m[35m (0.1ms)[0m BEGIN
|
22599
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "stripe_local_subscriptions" ("created_at", "current_period_end", "current_period_start", "customer_id", "plan_id", "start", "status", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["created_at", Sat, 07 Dec 2013 08:16:09 CST -06:00], ["current_period_end", Thu, 10 Oct 2013 13:52:04 CDT -05:00], ["current_period_start", Tue, 10 Sep 2013 13:52:04 CDT -05:00], ["customer_id", "cus_123"], ["plan_id", "GIN100"], ["start", Tue, 10 Sep 2013 13:52:04 CDT -05:00], ["status", "active"], ["updated_at", Sat, 07 Dec 2013 08:16:09 CST -06:00]]
|
22600
|
+
[1m[35m (0.3ms)[0m COMMIT
|
22601
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
22602
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "stripe_local_customers" ("account_balance", "created_at", "default_card", "delinquent", "description", "email", "id", "model_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["account_balance", 0], ["created_at", Sat, 07 Dec 2013 08:16:09 CST -06:00], ["default_card", "card_102Y2J1Cmf55uWiejglofO7j"], ["delinquent", false], ["description", "On September 10th, Test signed up for CA50."], ["email", "test@test.com"], ["id", "cus_123"], ["model_id", 1], ["updated_at", Sat, 07 Dec 2013 08:16:09 CST -06:00]]
|
22603
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
22604
|
+
[1m[35mStripeLocal::Customer Load (0.3ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" = 1 LIMIT 1
|
22605
|
+
[1m[36mStripeLocal::Subscription Load (0.3ms)[0m [1mSELECT "stripe_local_subscriptions".* FROM "stripe_local_subscriptions" WHERE "stripe_local_subscriptions"."customer_id" = 'cus_123' LIMIT 1[0m
|
22606
|
+
[1m[35m (0.1ms)[0m BEGIN
|
22607
|
+
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO "stripe_local_line_items" ("amount", "created_at", "id", "invoice_id", "period_end", "period_start", "plan_id", "proration", "quantity", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id"[0m [["amount", 9900], ["created_at", Sat, 07 Dec 2013 08:16:09 CST -06:00], ["id", "su_1bfTBoL3o7blah"], ["invoice_id", "in_2blahblahagain"], ["period_end", Thu, 06 Jun 2013 18:23:47 CDT -05:00], ["period_start", Tue, 07 May 2013 18:23:47 CDT -05:00], ["plan_id", "HR99"], ["proration", false], ["quantity", 1], ["updated_at", Sat, 07 Dec 2013 08:16:09 CST -06:00]]
|
22608
|
+
[1m[35m (0.3ms)[0m COMMIT
|
22609
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
22610
|
+
[1m[35mSQL (1.1ms)[0m INSERT INTO "stripe_local_invoices" ("amount_due", "attempt_count", "attempted", "charge_id", "closed", "created_at", "customer_id", "date", "discount", "ending_balance", "id", "paid", "period_end", "period_start", "starting_balance", "subtotal", "total", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18) RETURNING "id" [["amount_due", 9900], ["attempt_count", 0], ["attempted", true], ["charge_id", "ch_blahblahblah"], ["closed", true], ["created_at", Sat, 07 Dec 2013 08:16:09 CST -06:00], ["customer_id", "cus_1A3zUmx7NpUgrT"], ["date", Tue, 07 May 2013 18:23:47 CDT -05:00], ["discount", nil], ["ending_balance", 0], ["id", "in_2blahblahagain"], ["paid", true], ["period_end", Tue, 07 May 2013 18:23:47 CDT -05:00], ["period_start", Tue, 07 May 2013 18:23:47 CDT -05:00], ["starting_balance", 0], ["subtotal", 9900], ["total", 9900], ["updated_at", Sat, 07 Dec 2013 08:16:09 CST -06:00]]
|
22611
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
22612
|
+
[1m[35mStripeLocal::LineItem Load (0.7ms)[0m SELECT "stripe_local_line_items".* FROM "stripe_local_line_items" WHERE "stripe_local_line_items"."invoice_id" = $1 [["invoice_id", "in_2blahblahagain"]]
|
22613
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
22614
|
+
[1m[35mSQL (0.8ms)[0m INSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["available", 9900], ["created_at", Sat, 07 Dec 2013 08:16:09 CST -06:00], ["pending", 29900], ["updated_at", Sat, 07 Dec 2013 08:16:09 CST -06:00]]
|
22615
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
22616
|
+
[1m[35m (0.1ms)[0m BEGIN
|
22617
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["available", 19900], ["created_at", Sat, 07 Dec 2013 08:16:09 CST -06:00], ["pending", 19900], ["updated_at", Sat, 07 Dec 2013 08:16:09 CST -06:00]]
|
22618
|
+
[1m[35m (0.2ms)[0m COMMIT
|
22619
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
22620
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["available", 9900], ["created_at", Sat, 07 Dec 2013 08:16:09 CST -06:00], ["pending", 29900], ["updated_at", Sat, 07 Dec 2013 08:16:09 CST -06:00]]
|
22621
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
22622
|
+
[1m[35m (0.1ms)[0m BEGIN
|
22623
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["available", 19900], ["created_at", Sat, 07 Dec 2013 08:16:09 CST -06:00], ["pending", 19900], ["updated_at", Sat, 07 Dec 2013 08:16:09 CST -06:00]]
|
22624
|
+
[1m[35m (0.2ms)[0m COMMIT
|
22625
|
+
[1m[36m (0.2ms)[0m [1mSELECT "stripe_local_balances"."available" FROM "stripe_local_balances"[0m
|
22626
|
+
[1m[35m (0.1ms)[0m BEGIN
|
22627
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["available", 9900], ["created_at", Sat, 07 Dec 2013 08:16:09 CST -06:00], ["pending", 29900], ["updated_at", Sat, 07 Dec 2013 08:16:09 CST -06:00]]
|
22628
|
+
[1m[35m (0.3ms)[0m COMMIT
|
22629
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
22630
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["available", 19900], ["created_at", Sat, 07 Dec 2013 08:16:09 CST -06:00], ["pending", 19900], ["updated_at", Sat, 07 Dec 2013 08:16:09 CST -06:00]]
|
22631
|
+
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
|
22632
|
+
[1m[35m (0.1ms)[0m BEGIN
|
22633
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["available", 9900], ["created_at", Sat, 07 Dec 2013 08:16:09 CST -06:00], ["pending", 29900], ["updated_at", Sat, 07 Dec 2013 08:16:09 CST -06:00]]
|
22634
|
+
[1m[35m (0.2ms)[0m COMMIT
|
22635
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
22636
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["available", 19900], ["created_at", Sat, 07 Dec 2013 08:16:09 CST -06:00], ["pending", 19900], ["updated_at", Sat, 07 Dec 2013 08:16:09 CST -06:00]]
|
22637
|
+
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
|
22638
|
+
[1m[35m (0.1ms)[0m SELECT "stripe_local_balances"."available" FROM "stripe_local_balances"
|
22639
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
22640
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["available", 9900], ["created_at", Sat, 07 Dec 2013 08:16:09 CST -06:00], ["pending", 29900], ["updated_at", Sat, 07 Dec 2013 08:16:09 CST -06:00]]
|
22641
|
+
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
|
22642
|
+
[1m[35m (0.0ms)[0m BEGIN
|
22643
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["available", 19900], ["created_at", Sat, 07 Dec 2013 08:16:09 CST -06:00], ["pending", 19900], ["updated_at", Sat, 07 Dec 2013 08:16:09 CST -06:00]]
|
22644
|
+
[1m[35m (0.2ms)[0m COMMIT
|
22645
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "stripe_local_balances"[0m
|
22646
|
+
[1m[35m (0.0ms)[0m BEGIN
|
22647
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["available", 39800], ["created_at", Sat, 07 Dec 2013 08:16:09 CST -06:00], ["pending", 0], ["updated_at", Sat, 07 Dec 2013 08:16:09 CST -06:00]]
|
22648
|
+
[1m[35m (0.2ms)[0m COMMIT
|
22649
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "stripe_local_balances"[0m
|
22650
|
+
[1m[35m (0.1ms)[0m BEGIN
|
22651
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["available", 9900], ["created_at", Sat, 07 Dec 2013 08:16:09 CST -06:00], ["pending", 29900], ["updated_at", Sat, 07 Dec 2013 08:16:09 CST -06:00]]
|
22652
|
+
[1m[35m (0.3ms)[0m COMMIT
|
22653
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
22654
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["available", 19900], ["created_at", Sat, 07 Dec 2013 08:16:09 CST -06:00], ["pending", 19900], ["updated_at", Sat, 07 Dec 2013 08:16:09 CST -06:00]]
|
22655
|
+
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
|
22656
|
+
[1m[35m (0.1ms)[0m SELECT "stripe_local_balances"."pending" FROM "stripe_local_balances"
|
22657
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
22658
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["available", 9900], ["created_at", Sat, 07 Dec 2013 08:16:09 CST -06:00], ["pending", 29900], ["updated_at", Sat, 07 Dec 2013 08:16:09 CST -06:00]]
|
22659
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
22660
|
+
[1m[35m (0.1ms)[0m BEGIN
|
22661
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["available", 19900], ["created_at", Sat, 07 Dec 2013 08:16:09 CST -06:00], ["pending", 19900], ["updated_at", Sat, 07 Dec 2013 08:16:09 CST -06:00]]
|
22662
|
+
[1m[35m (0.2ms)[0m COMMIT
|
22663
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "stripe_local_balances"[0m
|
22664
|
+
[1m[35mStripeLocal::Balance Load (0.4ms)[0m SELECT "stripe_local_balances".* FROM "stripe_local_balances" ORDER BY "stripe_local_balances"."id" DESC LIMIT 1
|
22665
|
+
[1m[36mStripeLocal::Balance Load (0.2ms)[0m [1mSELECT "stripe_local_balances".* FROM "stripe_local_balances" ORDER BY "stripe_local_balances"."id" DESC LIMIT 1[0m
|
22666
|
+
[1m[35mSQL (0.5ms)[0m UPDATE "stripe_local_balances" SET "updated_at" = '2013-12-08 14:16:09.239708' WHERE "stripe_local_balances"."id" = 15
|
22667
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "stripe_local_balances"[0m
|
22668
|
+
[1m[35mStripeLocal::Balance Load (0.2ms)[0m SELECT "stripe_local_balances".* FROM "stripe_local_balances" ORDER BY "stripe_local_balances"."id" DESC LIMIT 1
|
22669
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
22670
|
+
[1m[35mSQL (1.4ms)[0m INSERT INTO "stripe_local_transfers" ("amount", "created_at", "date", "description", "id", "metadata", "status", "transaction_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["amount", 100], ["created_at", Sat, 07 Dec 2013 08:16:09 CST -06:00], ["date", Mon, 30 Sep 2013 05:01:01 CDT -05:00], ["description", "a dollar for Don Atello"], ["id", "tr_2fOGfKABdHu3uf"], ["metadata", "{}"], ["status", "paid"], ["transaction_id", "txn_2fOGkiBkDgpObU"], ["updated_at", Sat, 07 Dec 2013 08:16:09 CST -06:00]]
|
22671
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
22672
|
+
[1m[35m (0.2ms)[0m BEGIN
|
22673
|
+
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO "stripe_local_transactions" ("amount", "available_on", "created", "created_at", "description", "fee", "id", "net", "source_id", "source_type", "status", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id"[0m [["amount", -100], ["available_on", Mon, 07 Oct 2013 05:01:01 CDT -05:00], ["created", Mon, 30 Sep 2013 05:01:01 CDT -05:00], ["created_at", Sat, 07 Dec 2013 08:16:09 CST -06:00], ["description", "a dollar for Don Atello"], ["fee", 25], ["id", "txn_2fOGkiBkDgpObU"], ["net", -125], ["source_id", "tr_2fOGfKABdHu3uf"], ["source_type", "transfer"], ["status", "available"], ["updated_at", Sat, 07 Dec 2013 08:16:09 CST -06:00]]
|
22674
|
+
[1m[35m (0.3ms)[0m COMMIT
|
22675
|
+
[1m[36m (1.0ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_discounts" DISABLE TRIGGER ALL;ALTER TABLE "clients" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_customers" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_transfers" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_cards" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_invoices" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_plans" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_line_items" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_charges" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_coupons" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_transactions" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_balances" DISABLE TRIGGER ALL[0m
|
22676
|
+
[1m[35m (1.2ms)[0m select table_name from information_schema.views where table_schema = 'dummy_test'
|
22677
|
+
[1m[36m (20.6ms)[0m [1mTRUNCATE TABLE "stripe_local_discounts", "clients", "stripe_local_customers", "stripe_local_transfers", "stripe_local_cards", "stripe_local_subscriptions", "stripe_local_invoices", "stripe_local_plans", "stripe_local_line_items", "stripe_local_charges", "stripe_local_coupons", "stripe_local_transactions", "stripe_local_balances" RESTART IDENTITY CASCADE;[0m
|
22678
|
+
[1m[35m (1.0ms)[0m ALTER TABLE "stripe_local_discounts" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_customers" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_transfers" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_cards" ENABLE TRIGGER ALL;ALTER TABLE "clients" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_invoices" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_plans" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_line_items" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_charges" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_coupons" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_transactions" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_balances" ENABLE TRIGGER ALL
|
22679
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
22680
|
+
[1m[35m (0.1ms)[0m BEGIN
|
22681
|
+
[1m[36mSQL (4.8ms)[0m [1mINSERT INTO "stripe_local_cards" ("brand", "created_at", "customer_id", "cvc_check", "exp_month", "exp_year", "id", "last4", "name", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id"[0m [["brand", "Visa"], ["created_at", Sat, 07 Dec 2013 08:16:13 CST -06:00], ["customer_id", "cus_2J7PZ8ncCbR10Z"], ["cvc_check", "pass"], ["exp_month", 1], ["exp_year", 2014], ["id", "cc_2J7Pscoh4jvFjJ"], ["last4", "4242"], ["name", "Connor Tumbleson"], ["updated_at", Sat, 07 Dec 2013 08:16:13 CST -06:00]]
|
22682
|
+
[1m[35m (0.3ms)[0m COMMIT
|
22683
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
22684
|
+
[1m[35mSQL (0.8ms)[0m INSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["available", 9900], ["created_at", Sat, 07 Dec 2013 08:16:13 CST -06:00], ["pending", 29900], ["updated_at", Sat, 07 Dec 2013 08:16:13 CST -06:00]]
|
22685
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
22686
|
+
[1m[35m (0.1ms)[0m BEGIN
|
22687
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["available", 19900], ["created_at", Sat, 07 Dec 2013 08:16:13 CST -06:00], ["pending", 19900], ["updated_at", Sat, 07 Dec 2013 08:16:13 CST -06:00]]
|
22688
|
+
[1m[35m (0.3ms)[0m COMMIT
|
22689
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
22690
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["available", 9900], ["created_at", Sat, 07 Dec 2013 08:16:13 CST -06:00], ["pending", 29900], ["updated_at", Sat, 07 Dec 2013 08:16:13 CST -06:00]]
|
22691
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
22692
|
+
[1m[35m (0.1ms)[0m BEGIN
|
22693
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["available", 19900], ["created_at", Sat, 07 Dec 2013 08:16:13 CST -06:00], ["pending", 19900], ["updated_at", Sat, 07 Dec 2013 08:16:13 CST -06:00]]
|
22694
|
+
[1m[35m (0.2ms)[0m COMMIT
|
22695
|
+
[1m[36m (0.2ms)[0m [1mSELECT "stripe_local_balances"."available" FROM "stripe_local_balances"[0m
|
22696
|
+
[1m[35m (0.1ms)[0m BEGIN
|
22697
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["available", 9900], ["created_at", Sat, 07 Dec 2013 08:16:13 CST -06:00], ["pending", 29900], ["updated_at", Sat, 07 Dec 2013 08:16:13 CST -06:00]]
|
22698
|
+
[1m[35m (0.3ms)[0m COMMIT
|
22699
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
22700
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["available", 19900], ["created_at", Sat, 07 Dec 2013 08:16:13 CST -06:00], ["pending", 19900], ["updated_at", Sat, 07 Dec 2013 08:16:13 CST -06:00]]
|
22701
|
+
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
|
22702
|
+
[1m[35m (0.1ms)[0m BEGIN
|
22703
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["available", 9900], ["created_at", Sat, 07 Dec 2013 08:16:13 CST -06:00], ["pending", 29900], ["updated_at", Sat, 07 Dec 2013 08:16:13 CST -06:00]]
|
22704
|
+
[1m[35m (0.2ms)[0m COMMIT
|
22705
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
22706
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["available", 19900], ["created_at", Sat, 07 Dec 2013 08:16:13 CST -06:00], ["pending", 19900], ["updated_at", Sat, 07 Dec 2013 08:16:13 CST -06:00]]
|
22707
|
+
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
|
22708
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "stripe_local_balances"
|
22709
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
22710
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["available", 39800], ["created_at", Sat, 07 Dec 2013 08:16:13 CST -06:00], ["pending", 0], ["updated_at", Sat, 07 Dec 2013 08:16:13 CST -06:00]]
|
22711
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
22712
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "stripe_local_balances"
|
22713
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
22714
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["available", 9900], ["created_at", Sat, 07 Dec 2013 08:16:13 CST -06:00], ["pending", 29900], ["updated_at", Sat, 07 Dec 2013 08:16:13 CST -06:00]]
|
22715
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
22716
|
+
[1m[35m (0.1ms)[0m BEGIN
|
22717
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["available", 19900], ["created_at", Sat, 07 Dec 2013 08:16:13 CST -06:00], ["pending", 19900], ["updated_at", Sat, 07 Dec 2013 08:16:13 CST -06:00]]
|
22718
|
+
[1m[35m (0.2ms)[0m COMMIT
|
22719
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "stripe_local_balances"[0m
|
22720
|
+
[1m[35mStripeLocal::Balance Load (0.3ms)[0m SELECT "stripe_local_balances".* FROM "stripe_local_balances" ORDER BY "stripe_local_balances"."id" DESC LIMIT 1
|
22721
|
+
[1m[36mStripeLocal::Balance Load (0.2ms)[0m [1mSELECT "stripe_local_balances".* FROM "stripe_local_balances" ORDER BY "stripe_local_balances"."id" DESC LIMIT 1[0m
|
22722
|
+
[1m[35mSQL (0.5ms)[0m UPDATE "stripe_local_balances" SET "updated_at" = '2013-12-08 14:16:13.821293' WHERE "stripe_local_balances"."id" = 11
|
22723
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "stripe_local_balances"[0m
|
22724
|
+
[1m[35mStripeLocal::Balance Load (0.2ms)[0m SELECT "stripe_local_balances".* FROM "stripe_local_balances" ORDER BY "stripe_local_balances"."id" DESC LIMIT 1
|
22725
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
22726
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["available", 9900], ["created_at", Sat, 07 Dec 2013 08:16:13 CST -06:00], ["pending", 29900], ["updated_at", Sat, 07 Dec 2013 08:16:13 CST -06:00]]
|
22727
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
22728
|
+
[1m[35m (0.1ms)[0m BEGIN
|
22729
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["available", 19900], ["created_at", Sat, 07 Dec 2013 08:16:13 CST -06:00], ["pending", 19900], ["updated_at", Sat, 07 Dec 2013 08:16:13 CST -06:00]]
|
22730
|
+
[1m[35m (0.2ms)[0m COMMIT
|
22731
|
+
[1m[36m (0.1ms)[0m [1mSELECT "stripe_local_balances"."pending" FROM "stripe_local_balances"[0m
|
22732
|
+
[1m[35m (0.1ms)[0m BEGIN
|
22733
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["available", 9900], ["created_at", Sat, 07 Dec 2013 08:16:13 CST -06:00], ["pending", 29900], ["updated_at", Sat, 07 Dec 2013 08:16:13 CST -06:00]]
|
22734
|
+
[1m[35m (0.3ms)[0m COMMIT
|
22735
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
22736
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["available", 19900], ["created_at", Sat, 07 Dec 2013 08:16:13 CST -06:00], ["pending", 19900], ["updated_at", Sat, 07 Dec 2013 08:16:13 CST -06:00]]
|
22737
|
+
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
|
22738
|
+
[1m[35m (0.1ms)[0m SELECT "stripe_local_balances"."available" FROM "stripe_local_balances"
|
22739
|
+
[1m[36mStripeLocal::Customer Load (0.5ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1[0m
|
22740
|
+
[1m[35m (0.1ms)[0m BEGIN
|
22741
|
+
[1m[36mStripeLocal::Customer Load (0.2ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1[0m
|
22742
|
+
[1m[35mStripeLocal::Customer Load (0.1ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
|
22743
|
+
[1m[36mStripeLocal::Customer Load (0.2ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1[0m
|
22744
|
+
[1m[35mStripeLocal::Customer Load (0.1ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
|
22745
|
+
[1m[36mStripeLocal::Customer Load (0.2ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1[0m
|
22746
|
+
[1m[35mStripeLocal::Customer Load (0.1ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
|
22747
|
+
[1m[36mStripeLocal::Customer Load (0.2ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1[0m
|
22748
|
+
[1m[35mStripeLocal::Customer Load (0.1ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
|
22749
|
+
[1m[36mStripeLocal::Customer Load (0.2ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1[0m
|
22750
|
+
[1m[35mStripeLocal::Customer Load (0.1ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
|
22751
|
+
[1m[36mStripeLocal::Customer Load (0.1ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1[0m
|
22752
|
+
[1m[35mStripeLocal::Customer Load (0.1ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
|
22753
|
+
[1m[36mStripeLocal::Customer Load (0.1ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1[0m
|
22754
|
+
[1m[35mStripeLocal::Customer Load (0.1ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
|
22755
|
+
[1m[36mStripeLocal::Customer Load (0.1ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1[0m
|
22756
|
+
[1m[35mStripeLocal::Customer Load (0.1ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
|
22757
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "clients" ("email", "name", "password") VALUES ($1, $2, $3) RETURNING "id"[0m [["email", "test@test.com"], ["name", "Test Case"], ["password", "password"]]
|
22758
|
+
[1m[35m (0.3ms)[0m COMMIT
|
22759
|
+
[1m[36mStripeLocal::Customer Load (0.2ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" = 1 LIMIT 1[0m
|
22760
|
+
[1m[35mStripeLocal::Customer Load (0.1ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" = 1 LIMIT 1
|
22761
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
22762
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "stripe_local_cards" ("brand", "created_at", "customer_id", "cvc_check", "exp_month", "exp_year", "id", "last4", "name", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["brand", "Visa"], ["created_at", Sat, 07 Dec 2013 08:16:13 CST -06:00], ["customer_id", "cus_123"], ["cvc_check", "pass"], ["exp_month", 8], ["exp_year", 2014], ["id", "card_102Y2J1Cmf55uWiejglofO7j"], ["last4", "4242"], ["name", "Test Case"], ["updated_at", Sat, 07 Dec 2013 08:16:13 CST -06:00]]
|
22763
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
22764
|
+
[1m[35m (0.2ms)[0m BEGIN
|
22765
|
+
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO "stripe_local_subscriptions" ("created_at", "current_period_end", "current_period_start", "customer_id", "plan_id", "start", "status", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["created_at", Sat, 07 Dec 2013 08:16:13 CST -06:00], ["current_period_end", Thu, 10 Oct 2013 13:52:04 CDT -05:00], ["current_period_start", Tue, 10 Sep 2013 13:52:04 CDT -05:00], ["customer_id", "cus_123"], ["plan_id", "GIN100"], ["start", Tue, 10 Sep 2013 13:52:04 CDT -05:00], ["status", "active"], ["updated_at", Sat, 07 Dec 2013 08:16:13 CST -06:00]]
|
22766
|
+
[1m[35m (0.3ms)[0m COMMIT
|
22767
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
22768
|
+
[1m[35mSQL (1.1ms)[0m INSERT INTO "stripe_local_customers" ("account_balance", "created_at", "default_card", "delinquent", "description", "email", "id", "model_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["account_balance", 0], ["created_at", Sat, 07 Dec 2013 08:16:13 CST -06:00], ["default_card", "card_102Y2J1Cmf55uWiejglofO7j"], ["delinquent", false], ["description", "On September 10th, Test signed up for CA50."], ["email", "test@test.com"], ["id", "cus_123"], ["model_id", 1], ["updated_at", Sat, 07 Dec 2013 08:16:13 CST -06:00]]
|
22769
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
22770
|
+
[1m[35mStripeLocal::Customer Load (0.4ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" = 1 LIMIT 1
|
22771
|
+
[1m[36mStripeLocal::Subscription Load (0.5ms)[0m [1mSELECT "stripe_local_subscriptions".* FROM "stripe_local_subscriptions" WHERE "stripe_local_subscriptions"."customer_id" = 'cus_123' LIMIT 1[0m
|
22772
|
+
[1m[35m (0.2ms)[0m BEGIN
|
22773
|
+
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO "stripe_local_charges" ("amount", "card_id", "created", "created_at", "customer_id", "id", "invoice_id", "metadata", "paid", "transaction_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11) RETURNING "id"[0m [["amount", 9900], ["card_id", "cc_1eX7GyRo6wivEf"], ["created", Thu, 01 Aug 2013 18:08:14 CDT -05:00], ["created_at", Sat, 07 Dec 2013 08:16:13 CST -06:00], ["customer_id", "cus_1eX7onie2gq8m1"], ["id", "ch_2wiSyZQkZw8F50"], ["invoice_id", "in_2whTLSkV2ItHAv"], ["metadata", "{\"desc\":\"a charge object\",\"number\":1}"], ["paid", true], ["transaction_id", "txn_2wiSFq1N6BTZTQ"], ["updated_at", Sat, 07 Dec 2013 08:16:13 CST -06:00]]
|
22774
|
+
[1m[35m (0.3ms)[0m COMMIT
|
22775
|
+
[1m[36mStripeLocal::Plan Load (0.3ms)[0m [1mSELECT "stripe_local_plans".* FROM "stripe_local_plans" WHERE "stripe_local_plans"."id" = 'New_Plan' LIMIT 1[0m
|
22776
|
+
[1m[35m (0.2ms)[0m BEGIN
|
22777
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "stripe_local_plans" ("amount", "created_at", "id", "interval", "name", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["amount", 2999], ["created_at", Sat, 07 Dec 2013 08:16:14 CST -06:00], ["id", "New_Plan"], ["interval", "month"], ["name", "New Plan"], ["updated_at", Sat, 07 Dec 2013 08:16:14 CST -06:00]]
|
22778
|
+
[1m[35m (0.3ms)[0m COMMIT
|
22779
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
22780
|
+
[1m[35mSQL (1.1ms)[0m INSERT INTO "stripe_local_line_items" ("amount", "created_at", "id", "invoice_id", "period_end", "period_start", "plan_id", "proration", "quantity", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["amount", 9900], ["created_at", Sat, 07 Dec 2013 08:16:14 CST -06:00], ["id", "su_1bfTBoL3o7blah"], ["invoice_id", "in_2blahblahagain"], ["period_end", Thu, 06 Jun 2013 18:23:47 CDT -05:00], ["period_start", Tue, 07 May 2013 18:23:47 CDT -05:00], ["plan_id", "HR99"], ["proration", false], ["quantity", 1], ["updated_at", Sat, 07 Dec 2013 08:16:14 CST -06:00]]
|
22781
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
22782
|
+
[1m[35m (0.1ms)[0m BEGIN
|
22783
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "stripe_local_invoices" ("amount_due", "attempt_count", "attempted", "charge_id", "closed", "created_at", "customer_id", "date", "discount", "ending_balance", "id", "paid", "period_end", "period_start", "starting_balance", "subtotal", "total", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18) RETURNING "id"[0m [["amount_due", 9900], ["attempt_count", 0], ["attempted", true], ["charge_id", "ch_blahblahblah"], ["closed", true], ["created_at", Sat, 07 Dec 2013 08:16:14 CST -06:00], ["customer_id", "cus_1A3zUmx7NpUgrT"], ["date", Tue, 07 May 2013 18:23:47 CDT -05:00], ["discount", nil], ["ending_balance", 0], ["id", "in_2blahblahagain"], ["paid", true], ["period_end", Tue, 07 May 2013 18:23:47 CDT -05:00], ["period_start", Tue, 07 May 2013 18:23:47 CDT -05:00], ["starting_balance", 0], ["subtotal", 9900], ["total", 9900], ["updated_at", Sat, 07 Dec 2013 08:16:14 CST -06:00]]
|
22784
|
+
[1m[35m (0.3ms)[0m COMMIT
|
22785
|
+
[1m[36mStripeLocal::LineItem Load (0.8ms)[0m [1mSELECT "stripe_local_line_items".* FROM "stripe_local_line_items" WHERE "stripe_local_line_items"."invoice_id" = $1[0m [["invoice_id", "in_2blahblahagain"]]
|
22786
|
+
[1m[35m (0.2ms)[0m BEGIN
|
22787
|
+
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO "stripe_local_transfers" ("amount", "created_at", "date", "description", "id", "metadata", "status", "transaction_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id"[0m [["amount", 100], ["created_at", Sat, 07 Dec 2013 08:16:14 CST -06:00], ["date", Mon, 30 Sep 2013 05:01:01 CDT -05:00], ["description", "a dollar for Don Atello"], ["id", "tr_2fOGfKABdHu3uf"], ["metadata", "{}"], ["status", "paid"], ["transaction_id", "txn_2fOGkiBkDgpObU"], ["updated_at", Sat, 07 Dec 2013 08:16:14 CST -06:00]]
|
22788
|
+
[1m[35m (0.4ms)[0m COMMIT
|
22789
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
22790
|
+
[1m[35mSQL (1.1ms)[0m INSERT INTO "stripe_local_transactions" ("amount", "available_on", "created", "created_at", "description", "fee", "id", "net", "source_id", "source_type", "status", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id" [["amount", -100], ["available_on", Mon, 07 Oct 2013 05:01:01 CDT -05:00], ["created", Mon, 30 Sep 2013 05:01:01 CDT -05:00], ["created_at", Sat, 07 Dec 2013 08:16:14 CST -06:00], ["description", "a dollar for Don Atello"], ["fee", 25], ["id", "txn_2fOGkiBkDgpObU"], ["net", -125], ["source_id", "tr_2fOGfKABdHu3uf"], ["source_type", "transfer"], ["status", "available"], ["updated_at", Sat, 07 Dec 2013 08:16:14 CST -06:00]]
|
22791
|
+
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
|
22792
|
+
[1m[35m (0.1ms)[0m BEGIN
|
22793
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "stripe_local_subscriptions" ("created_at", "current_period_end", "current_period_start", "customer_id", "plan_id", "start", "status", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["created_at", Sat, 07 Dec 2013 08:16:14 CST -06:00], ["current_period_end", Wed, 11 Dec 2013 15:32:46 CST -06:00], ["current_period_start", Mon, 11 Nov 2013 15:32:46 CST -06:00], ["customer_id", "cus_2vIuZmAfWK89Yk"], ["plan_id", "HR99"], ["start", Mon, 11 Nov 2013 15:32:46 CST -06:00], ["status", "active"], ["updated_at", Sat, 07 Dec 2013 08:16:14 CST -06:00]]
|
22794
|
+
[1m[35m (0.3ms)[0m COMMIT
|
22795
|
+
[1m[36m (0.9ms)[0m [1mALTER TABLE "stripe_local_discounts" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_customers" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_transfers" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_cards" DISABLE TRIGGER ALL;ALTER TABLE "clients" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_invoices" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_plans" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_line_items" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_charges" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_coupons" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_transactions" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_balances" DISABLE TRIGGER ALL[0m
|
22796
|
+
[1m[35m (1.1ms)[0m select table_name from information_schema.views where table_schema = 'dummy_test'
|
22797
|
+
[1m[36m (20.1ms)[0m [1mTRUNCATE TABLE "stripe_local_discounts", "stripe_local_customers", "stripe_local_transfers", "stripe_local_cards", "clients", "stripe_local_subscriptions", "stripe_local_invoices", "stripe_local_plans", "stripe_local_line_items", "stripe_local_charges", "stripe_local_coupons", "stripe_local_transactions", "stripe_local_balances" RESTART IDENTITY CASCADE;[0m
|
22798
|
+
[1m[35m (0.8ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_discounts" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_transfers" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_cards" ENABLE TRIGGER ALL;ALTER TABLE "clients" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_customers" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_invoices" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_plans" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_line_items" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_charges" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_coupons" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_transactions" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_balances" ENABLE TRIGGER ALL
|
22799
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
22800
|
+
[1m[35m (0.1ms)[0m BEGIN
|
22801
|
+
[1m[36mSQL (4.4ms)[0m [1mINSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["available", 9900], ["created_at", Sat, 07 Dec 2013 08:20:08 CST -06:00], ["pending", 29900], ["updated_at", Sat, 07 Dec 2013 08:20:08 CST -06:00]]
|
22802
|
+
[1m[35m (1.5ms)[0m COMMIT
|
22803
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
22804
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["available", 19900], ["created_at", Sat, 07 Dec 2013 08:20:08 CST -06:00], ["pending", 19900], ["updated_at", Sat, 07 Dec 2013 08:20:08 CST -06:00]]
|
22805
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
22806
|
+
[1m[35m (0.1ms)[0m BEGIN
|
22807
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["available", 9900], ["created_at", Sat, 07 Dec 2013 08:20:08 CST -06:00], ["pending", 29900], ["updated_at", Sat, 07 Dec 2013 08:20:08 CST -06:00]]
|
22808
|
+
[1m[35m (0.2ms)[0m COMMIT
|
22809
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
22810
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["available", 19900], ["created_at", Sat, 07 Dec 2013 08:20:08 CST -06:00], ["pending", 19900], ["updated_at", Sat, 07 Dec 2013 08:20:08 CST -06:00]]
|
22811
|
+
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
|
22812
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "stripe_local_balances"
|
22813
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
22814
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["available", 39800], ["created_at", Sat, 07 Dec 2013 08:20:08 CST -06:00], ["pending", 0], ["updated_at", Sat, 07 Dec 2013 08:20:08 CST -06:00]]
|
22815
|
+
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
|
22816
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "stripe_local_balances"
|
22817
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
22818
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["available", 9900], ["created_at", Sat, 07 Dec 2013 08:20:08 CST -06:00], ["pending", 29900], ["updated_at", Sat, 07 Dec 2013 08:20:08 CST -06:00]]
|
22819
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
22820
|
+
[1m[35m (0.1ms)[0m BEGIN
|
22821
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["available", 19900], ["created_at", Sat, 07 Dec 2013 08:20:08 CST -06:00], ["pending", 19900], ["updated_at", Sat, 07 Dec 2013 08:20:08 CST -06:00]]
|
22822
|
+
[1m[35m (0.2ms)[0m COMMIT
|
22823
|
+
[1m[36m (0.2ms)[0m [1mSELECT "stripe_local_balances"."available" FROM "stripe_local_balances"[0m
|
22824
|
+
[1m[35m (0.1ms)[0m BEGIN
|
22825
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["available", 9900], ["created_at", Sat, 07 Dec 2013 08:20:08 CST -06:00], ["pending", 29900], ["updated_at", Sat, 07 Dec 2013 08:20:08 CST -06:00]]
|
22826
|
+
[1m[35m (0.3ms)[0m COMMIT
|
22827
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
22828
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["available", 19900], ["created_at", Sat, 07 Dec 2013 08:20:08 CST -06:00], ["pending", 19900], ["updated_at", Sat, 07 Dec 2013 08:20:08 CST -06:00]]
|
22829
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
22830
|
+
[1m[35m (0.2ms)[0m SELECT "stripe_local_balances"."available" FROM "stripe_local_balances"
|
22831
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
22832
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["available", 9900], ["created_at", Sat, 07 Dec 2013 08:20:08 CST -06:00], ["pending", 29900], ["updated_at", Sat, 07 Dec 2013 08:20:08 CST -06:00]]
|
22833
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
22834
|
+
[1m[35m (0.1ms)[0m BEGIN
|
22835
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["available", 19900], ["created_at", Sat, 07 Dec 2013 08:20:08 CST -06:00], ["pending", 19900], ["updated_at", Sat, 07 Dec 2013 08:20:08 CST -06:00]]
|
22836
|
+
[1m[35m (0.2ms)[0m COMMIT
|
22837
|
+
[1m[36m (0.1ms)[0m [1mSELECT "stripe_local_balances"."pending" FROM "stripe_local_balances"[0m
|
22838
|
+
[1m[35m (0.1ms)[0m BEGIN
|
22839
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["available", 9900], ["created_at", Sat, 07 Dec 2013 08:20:08 CST -06:00], ["pending", 29900], ["updated_at", Sat, 07 Dec 2013 08:20:08 CST -06:00]]
|
22840
|
+
[1m[35m (0.3ms)[0m COMMIT
|
22841
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
22842
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["available", 19900], ["created_at", Sat, 07 Dec 2013 08:20:08 CST -06:00], ["pending", 19900], ["updated_at", Sat, 07 Dec 2013 08:20:08 CST -06:00]]
|
22843
|
+
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
|
22844
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "stripe_local_balances"
|
22845
|
+
[1m[36mStripeLocal::Balance Load (0.3ms)[0m [1mSELECT "stripe_local_balances".* FROM "stripe_local_balances" ORDER BY "stripe_local_balances"."id" DESC LIMIT 1[0m
|
22846
|
+
[1m[35mStripeLocal::Balance Load (0.2ms)[0m SELECT "stripe_local_balances".* FROM "stripe_local_balances" ORDER BY "stripe_local_balances"."id" DESC LIMIT 1
|
22847
|
+
[1m[36mSQL (0.5ms)[0m [1mUPDATE "stripe_local_balances" SET "updated_at" = '2013-12-08 14:20:08.463493' WHERE "stripe_local_balances"."id" = 13[0m
|
22848
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "stripe_local_balances"
|
22849
|
+
[1m[36mStripeLocal::Balance Load (0.2ms)[0m [1mSELECT "stripe_local_balances".* FROM "stripe_local_balances" ORDER BY "stripe_local_balances"."id" DESC LIMIT 1[0m
|
22850
|
+
[1m[35m (0.1ms)[0m BEGIN
|
22851
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["available", 9900], ["created_at", Sat, 07 Dec 2013 08:20:08 CST -06:00], ["pending", 29900], ["updated_at", Sat, 07 Dec 2013 08:20:08 CST -06:00]]
|
22852
|
+
[1m[35m (0.3ms)[0m COMMIT
|
22853
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
22854
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["available", 19900], ["created_at", Sat, 07 Dec 2013 08:20:08 CST -06:00], ["pending", 19900], ["updated_at", Sat, 07 Dec 2013 08:20:08 CST -06:00]]
|
22855
|
+
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
|
22856
|
+
[1m[35m (0.2ms)[0m BEGIN
|
22857
|
+
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO "stripe_local_transactions" ("amount", "available_on", "created", "created_at", "description", "fee", "id", "net", "source_id", "source_type", "status", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id"[0m [["amount", -100], ["available_on", Mon, 07 Oct 2013 05:01:01 CDT -05:00], ["created", Mon, 30 Sep 2013 05:01:01 CDT -05:00], ["created_at", Sat, 07 Dec 2013 08:20:08 CST -06:00], ["description", "a dollar for Don Atello"], ["fee", 25], ["id", "txn_2fOGkiBkDgpObU"], ["net", -125], ["source_id", "tr_2fOGfKABdHu3uf"], ["source_type", "transfer"], ["status", "available"], ["updated_at", Sat, 07 Dec 2013 08:20:08 CST -06:00]]
|
22858
|
+
[1m[35m (0.3ms)[0m COMMIT
|
22859
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
22860
|
+
[1m[35mSQL (1.2ms)[0m INSERT INTO "stripe_local_subscriptions" ("created_at", "current_period_end", "current_period_start", "customer_id", "plan_id", "start", "status", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["created_at", Sat, 07 Dec 2013 08:20:08 CST -06:00], ["current_period_end", Wed, 11 Dec 2013 15:32:46 CST -06:00], ["current_period_start", Mon, 11 Nov 2013 15:32:46 CST -06:00], ["customer_id", "cus_2vIuZmAfWK89Yk"], ["plan_id", "HR99"], ["start", Mon, 11 Nov 2013 15:32:46 CST -06:00], ["status", "active"], ["updated_at", Sat, 07 Dec 2013 08:20:08 CST -06:00]]
|
22861
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
22862
|
+
[1m[35m (0.1ms)[0m BEGIN
|
22863
|
+
[1m[36mSQL (1.7ms)[0m [1mINSERT INTO "stripe_local_charges" ("amount", "card_id", "created", "created_at", "customer_id", "id", "invoice_id", "metadata", "paid", "transaction_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11) RETURNING "id"[0m [["amount", 9900], ["card_id", "cc_1eX7GyRo6wivEf"], ["created", Thu, 01 Aug 2013 18:08:14 CDT -05:00], ["created_at", Sat, 07 Dec 2013 08:20:08 CST -06:00], ["customer_id", "cus_1eX7onie2gq8m1"], ["id", "ch_2wiSyZQkZw8F50"], ["invoice_id", "in_2whTLSkV2ItHAv"], ["metadata", "{\"desc\":\"a charge object\",\"number\":1}"], ["paid", true], ["transaction_id", "txn_2wiSFq1N6BTZTQ"], ["updated_at", Sat, 07 Dec 2013 08:20:08 CST -06:00]]
|
22864
|
+
[1m[35m (0.3ms)[0m COMMIT
|
22865
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
22866
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "stripe_local_cards" ("brand", "created_at", "customer_id", "cvc_check", "exp_month", "exp_year", "id", "last4", "name", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["brand", "Visa"], ["created_at", Sat, 07 Dec 2013 08:20:08 CST -06:00], ["customer_id", "cus_2J7PZ8ncCbR10Z"], ["cvc_check", "pass"], ["exp_month", 1], ["exp_year", 2014], ["id", "cc_2J7Pscoh4jvFjJ"], ["last4", "4242"], ["name", "Connor Tumbleson"], ["updated_at", Sat, 07 Dec 2013 08:20:08 CST -06:00]]
|
22867
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
22868
|
+
[1m[35m (0.2ms)[0m BEGIN
|
22869
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "stripe_local_line_items" ("amount", "created_at", "id", "invoice_id", "period_end", "period_start", "plan_id", "proration", "quantity", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id"[0m [["amount", 9900], ["created_at", Sat, 07 Dec 2013 08:20:08 CST -06:00], ["id", "su_1bfTBoL3o7blah"], ["invoice_id", "in_2blahblahagain"], ["period_end", Thu, 06 Jun 2013 18:23:47 CDT -05:00], ["period_start", Tue, 07 May 2013 18:23:47 CDT -05:00], ["plan_id", "HR99"], ["proration", false], ["quantity", 1], ["updated_at", Sat, 07 Dec 2013 08:20:08 CST -06:00]]
|
22870
|
+
[1m[35m (0.3ms)[0m COMMIT
|
22871
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
22872
|
+
[1m[35mSQL (1.1ms)[0m INSERT INTO "stripe_local_invoices" ("amount_due", "attempt_count", "attempted", "charge_id", "closed", "created_at", "customer_id", "date", "discount", "ending_balance", "id", "paid", "period_end", "period_start", "starting_balance", "subtotal", "total", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18) RETURNING "id" [["amount_due", 9900], ["attempt_count", 0], ["attempted", true], ["charge_id", "ch_blahblahblah"], ["closed", true], ["created_at", Sat, 07 Dec 2013 08:20:08 CST -06:00], ["customer_id", "cus_1A3zUmx7NpUgrT"], ["date", Tue, 07 May 2013 18:23:47 CDT -05:00], ["discount", nil], ["ending_balance", 0], ["id", "in_2blahblahagain"], ["paid", true], ["period_end", Tue, 07 May 2013 18:23:47 CDT -05:00], ["period_start", Tue, 07 May 2013 18:23:47 CDT -05:00], ["starting_balance", 0], ["subtotal", 9900], ["total", 9900], ["updated_at", Sat, 07 Dec 2013 08:20:08 CST -06:00]]
|
22873
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
22874
|
+
[1m[35mStripeLocal::LineItem Load (0.8ms)[0m SELECT "stripe_local_line_items".* FROM "stripe_local_line_items" WHERE "stripe_local_line_items"."invoice_id" = $1 [["invoice_id", "in_2blahblahagain"]]
|
22875
|
+
[1m[36mStripeLocal::Plan Load (0.3ms)[0m [1mSELECT "stripe_local_plans".* FROM "stripe_local_plans" WHERE "stripe_local_plans"."id" = 'New_Plan' LIMIT 1[0m
|
22876
|
+
[1m[35m (0.2ms)[0m BEGIN
|
22877
|
+
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO "stripe_local_plans" ("amount", "created_at", "id", "interval", "name", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["amount", 2999], ["created_at", Sat, 07 Dec 2013 08:20:08 CST -06:00], ["id", "New_Plan"], ["interval", "month"], ["name", "New Plan"], ["updated_at", Sat, 07 Dec 2013 08:20:08 CST -06:00]]
|
22878
|
+
[1m[35m (0.3ms)[0m COMMIT
|
22879
|
+
[1m[36mStripeLocal::Customer Load (0.3ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1[0m
|
22880
|
+
[1m[35m (0.1ms)[0m BEGIN
|
22881
|
+
[1m[36mStripeLocal::Customer Load (0.3ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1[0m
|
22882
|
+
[1m[35mStripeLocal::Customer Load (0.2ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
|
22883
|
+
[1m[36mStripeLocal::Customer Load (0.2ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1[0m
|
22884
|
+
[1m[35mStripeLocal::Customer Load (0.2ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
|
22885
|
+
[1m[36mStripeLocal::Customer Load (0.2ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1[0m
|
22886
|
+
[1m[35mStripeLocal::Customer Load (0.2ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
|
22887
|
+
[1m[36mStripeLocal::Customer Load (0.3ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1[0m
|
22888
|
+
[1m[35mStripeLocal::Customer Load (0.2ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
|
22889
|
+
[1m[36mStripeLocal::Customer Load (0.2ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1[0m
|
22890
|
+
[1m[35mStripeLocal::Customer Load (0.1ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
|
22891
|
+
[1m[36mStripeLocal::Customer Load (0.2ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1[0m
|
22892
|
+
[1m[35mStripeLocal::Customer Load (0.2ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
|
22893
|
+
[1m[36mStripeLocal::Customer Load (0.2ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1[0m
|
22894
|
+
[1m[35mStripeLocal::Customer Load (0.2ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
|
22895
|
+
[1m[36mStripeLocal::Customer Load (0.2ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1[0m
|
22896
|
+
[1m[35mStripeLocal::Customer Load (0.2ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
|
22897
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "clients" ("email", "name", "password") VALUES ($1, $2, $3) RETURNING "id"[0m [["email", "test@test.com"], ["name", "Test Case"], ["password", "password"]]
|
22898
|
+
[1m[35m (0.3ms)[0m COMMIT
|
22899
|
+
[1m[36mStripeLocal::Customer Load (0.2ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" = 1 LIMIT 1[0m
|
22900
|
+
[1m[35mStripeLocal::Customer Load (0.1ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" = 1 LIMIT 1
|
22901
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
22902
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "stripe_local_cards" ("brand", "created_at", "customer_id", "cvc_check", "exp_month", "exp_year", "id", "last4", "name", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["brand", "Visa"], ["created_at", Sat, 07 Dec 2013 08:20:08 CST -06:00], ["customer_id", "cus_123"], ["cvc_check", "pass"], ["exp_month", 8], ["exp_year", 2014], ["id", "card_102Y2J1Cmf55uWiejglofO7j"], ["last4", "4242"], ["name", "Test Case"], ["updated_at", Sat, 07 Dec 2013 08:20:08 CST -06:00]]
|
22903
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
22904
|
+
[1m[35m (0.1ms)[0m BEGIN
|
22905
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "stripe_local_subscriptions" ("created_at", "current_period_end", "current_period_start", "customer_id", "plan_id", "start", "status", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["created_at", Sat, 07 Dec 2013 08:20:08 CST -06:00], ["current_period_end", Thu, 10 Oct 2013 13:52:04 CDT -05:00], ["current_period_start", Tue, 10 Sep 2013 13:52:04 CDT -05:00], ["customer_id", "cus_123"], ["plan_id", "GIN100"], ["start", Tue, 10 Sep 2013 13:52:04 CDT -05:00], ["status", "active"], ["updated_at", Sat, 07 Dec 2013 08:20:08 CST -06:00]]
|
22906
|
+
[1m[35m (0.2ms)[0m COMMIT
|
22907
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
22908
|
+
[1m[35mSQL (1.1ms)[0m INSERT INTO "stripe_local_customers" ("account_balance", "created_at", "default_card", "delinquent", "description", "email", "id", "model_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["account_balance", 0], ["created_at", Sat, 07 Dec 2013 08:20:08 CST -06:00], ["default_card", "card_102Y2J1Cmf55uWiejglofO7j"], ["delinquent", false], ["description", "On September 10th, Test signed up for CA50."], ["email", "test@test.com"], ["id", "cus_123"], ["model_id", 1], ["updated_at", Sat, 07 Dec 2013 08:20:08 CST -06:00]]
|
22909
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
22910
|
+
[1m[35mStripeLocal::Customer Load (0.3ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" = 1 LIMIT 1
|
22911
|
+
[1m[36mStripeLocal::Subscription Load (0.3ms)[0m [1mSELECT "stripe_local_subscriptions".* FROM "stripe_local_subscriptions" WHERE "stripe_local_subscriptions"."customer_id" = 'cus_123' LIMIT 1[0m
|
22912
|
+
[1m[35m (0.2ms)[0m BEGIN
|
22913
|
+
[1m[36mSQL (1.9ms)[0m [1mINSERT INTO "stripe_local_transfers" ("amount", "created_at", "date", "description", "id", "metadata", "status", "transaction_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id"[0m [["amount", 100], ["created_at", Sat, 07 Dec 2013 08:20:08 CST -06:00], ["date", Mon, 30 Sep 2013 05:01:01 CDT -05:00], ["description", "a dollar for Don Atello"], ["id", "tr_2fOGfKABdHu3uf"], ["metadata", "{}"], ["status", "paid"], ["transaction_id", "txn_2fOGkiBkDgpObU"], ["updated_at", Sat, 07 Dec 2013 08:20:08 CST -06:00]]
|
22914
|
+
[1m[35m (0.5ms)[0m COMMIT
|
22915
|
+
[1m[36m (1.0ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_discounts" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_transfers" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_cards" DISABLE TRIGGER ALL;ALTER TABLE "clients" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_customers" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_invoices" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_plans" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_line_items" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_charges" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_coupons" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_transactions" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_balances" DISABLE TRIGGER ALL[0m
|
22916
|
+
[1m[35m (1.3ms)[0m select table_name from information_schema.views where table_schema = 'dummy_test'
|
22917
|
+
[1m[36m (23.2ms)[0m [1mTRUNCATE TABLE "stripe_local_discounts", "stripe_local_transfers", "stripe_local_cards", "clients", "stripe_local_customers", "stripe_local_subscriptions", "stripe_local_invoices", "stripe_local_plans", "stripe_local_line_items", "stripe_local_charges", "stripe_local_coupons", "stripe_local_transactions", "stripe_local_balances" RESTART IDENTITY CASCADE;[0m
|
22918
|
+
[1m[35m (1.5ms)[0m ALTER TABLE "stripe_local_discounts" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_cards" ENABLE TRIGGER ALL;ALTER TABLE "clients" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_customers" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_transfers" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_invoices" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_plans" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_line_items" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_charges" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_coupons" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_transactions" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_balances" ENABLE TRIGGER ALL
|
22919
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
22920
|
+
[1m[35mStripeLocal::Customer Load (0.4ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
|
22921
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
22922
|
+
[1m[35mStripeLocal::Customer Load (0.3ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
|
22923
|
+
[1m[36mStripeLocal::Customer Load (0.2ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1[0m
|
22924
|
+
[1m[35mStripeLocal::Customer Load (0.2ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
|
22925
|
+
[1m[36mStripeLocal::Customer Load (0.2ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1[0m
|
22926
|
+
[1m[35mStripeLocal::Customer Load (0.2ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
|
22927
|
+
[1m[36mStripeLocal::Customer Load (0.2ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1[0m
|
22928
|
+
[1m[35mStripeLocal::Customer Load (0.2ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
|
22929
|
+
[1m[36mStripeLocal::Customer Load (0.2ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1[0m
|
22930
|
+
[1m[35mStripeLocal::Customer Load (0.2ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
|
22931
|
+
[1m[36mStripeLocal::Customer Load (0.2ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1[0m
|
22932
|
+
[1m[35mStripeLocal::Customer Load (0.2ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
|
22933
|
+
[1m[36mStripeLocal::Customer Load (0.2ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1[0m
|
22934
|
+
[1m[35mStripeLocal::Customer Load (0.2ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
|
22935
|
+
[1m[36mStripeLocal::Customer Load (0.2ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1[0m
|
22936
|
+
[1m[35mStripeLocal::Customer Load (0.2ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
|
22937
|
+
[1m[36mStripeLocal::Customer Load (0.2ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1[0m
|
22938
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "clients" ("email", "name", "password") VALUES ($1, $2, $3) RETURNING "id" [["email", "test@test.com"], ["name", "Test Case"], ["password", "password"]]
|
22939
|
+
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
|
22940
|
+
[1m[35mStripeLocal::Customer Load (0.2ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" = 1 LIMIT 1
|
22941
|
+
[1m[36mStripeLocal::Customer Load (0.2ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" = 1 LIMIT 1[0m
|
22942
|
+
[1m[35m (0.1ms)[0m BEGIN
|
22943
|
+
[1m[36mSQL (31.4ms)[0m [1mINSERT INTO "stripe_local_cards" ("brand", "created_at", "customer_id", "cvc_check", "exp_month", "exp_year", "id", "last4", "name", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id"[0m [["brand", "Visa"], ["created_at", Sat, 07 Dec 2013 08:20:17 CST -06:00], ["customer_id", "cus_123"], ["cvc_check", "pass"], ["exp_month", 8], ["exp_year", 2014], ["id", "card_102Y2J1Cmf55uWiejglofO7j"], ["last4", "4242"], ["name", "Test Case"], ["updated_at", Sat, 07 Dec 2013 08:20:17 CST -06:00]]
|
22944
|
+
[1m[35m (0.4ms)[0m COMMIT
|
22945
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
22946
|
+
[1m[35mSQL (1.1ms)[0m INSERT INTO "stripe_local_subscriptions" ("created_at", "current_period_end", "current_period_start", "customer_id", "plan_id", "start", "status", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["created_at", Sat, 07 Dec 2013 08:20:17 CST -06:00], ["current_period_end", Thu, 10 Oct 2013 13:52:04 CDT -05:00], ["current_period_start", Tue, 10 Sep 2013 13:52:04 CDT -05:00], ["customer_id", "cus_123"], ["plan_id", "GIN100"], ["start", Tue, 10 Sep 2013 13:52:04 CDT -05:00], ["status", "active"], ["updated_at", Sat, 07 Dec 2013 08:20:17 CST -06:00]]
|
22947
|
+
[1m[36m (1.5ms)[0m [1mCOMMIT[0m
|
22948
|
+
[1m[35m (0.1ms)[0m BEGIN
|
22949
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "stripe_local_customers" ("account_balance", "created_at", "default_card", "delinquent", "description", "email", "id", "model_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id"[0m [["account_balance", 0], ["created_at", Sat, 07 Dec 2013 08:20:17 CST -06:00], ["default_card", "card_102Y2J1Cmf55uWiejglofO7j"], ["delinquent", false], ["description", "On September 10th, Test signed up for CA50."], ["email", "test@test.com"], ["id", "cus_123"], ["model_id", 1], ["updated_at", Sat, 07 Dec 2013 08:20:17 CST -06:00]]
|
22950
|
+
[1m[35m (0.3ms)[0m COMMIT
|
22951
|
+
[1m[36mStripeLocal::Customer Load (0.3ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" = 1 LIMIT 1[0m
|
22952
|
+
[1m[35mStripeLocal::Subscription Load (0.4ms)[0m SELECT "stripe_local_subscriptions".* FROM "stripe_local_subscriptions" WHERE "stripe_local_subscriptions"."customer_id" = 'cus_123' LIMIT 1
|
22953
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
22954
|
+
[1m[35mSQL (1.4ms)[0m INSERT INTO "stripe_local_transfers" ("amount", "created_at", "date", "description", "id", "metadata", "status", "transaction_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["amount", 100], ["created_at", Sat, 07 Dec 2013 08:20:17 CST -06:00], ["date", Mon, 30 Sep 2013 05:01:01 CDT -05:00], ["description", "a dollar for Don Atello"], ["id", "tr_2fOGfKABdHu3uf"], ["metadata", "{}"], ["status", "paid"], ["transaction_id", "txn_2fOGkiBkDgpObU"], ["updated_at", Sat, 07 Dec 2013 08:20:17 CST -06:00]]
|
22955
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
22956
|
+
[1m[35m (0.1ms)[0m BEGIN
|
22957
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "stripe_local_line_items" ("amount", "created_at", "id", "invoice_id", "period_end", "period_start", "plan_id", "proration", "quantity", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id"[0m [["amount", 9900], ["created_at", Sat, 07 Dec 2013 08:20:17 CST -06:00], ["id", "su_1bfTBoL3o7blah"], ["invoice_id", "in_2blahblahagain"], ["period_end", Thu, 06 Jun 2013 18:23:47 CDT -05:00], ["period_start", Tue, 07 May 2013 18:23:47 CDT -05:00], ["plan_id", "HR99"], ["proration", false], ["quantity", 1], ["updated_at", Sat, 07 Dec 2013 08:20:17 CST -06:00]]
|
22958
|
+
[1m[35m (0.3ms)[0m COMMIT
|
22959
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
22960
|
+
[1m[35mSQL (1.1ms)[0m INSERT INTO "stripe_local_invoices" ("amount_due", "attempt_count", "attempted", "charge_id", "closed", "created_at", "customer_id", "date", "discount", "ending_balance", "id", "paid", "period_end", "period_start", "starting_balance", "subtotal", "total", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18) RETURNING "id" [["amount_due", 9900], ["attempt_count", 0], ["attempted", true], ["charge_id", "ch_blahblahblah"], ["closed", true], ["created_at", Sat, 07 Dec 2013 08:20:17 CST -06:00], ["customer_id", "cus_1A3zUmx7NpUgrT"], ["date", Tue, 07 May 2013 18:23:47 CDT -05:00], ["discount", nil], ["ending_balance", 0], ["id", "in_2blahblahagain"], ["paid", true], ["period_end", Tue, 07 May 2013 18:23:47 CDT -05:00], ["period_start", Tue, 07 May 2013 18:23:47 CDT -05:00], ["starting_balance", 0], ["subtotal", 9900], ["total", 9900], ["updated_at", Sat, 07 Dec 2013 08:20:17 CST -06:00]]
|
22961
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
22962
|
+
[1m[35mStripeLocal::LineItem Load (0.6ms)[0m SELECT "stripe_local_line_items".* FROM "stripe_local_line_items" WHERE "stripe_local_line_items"."invoice_id" = $1 [["invoice_id", "in_2blahblahagain"]]
|
22963
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
22964
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "stripe_local_subscriptions" ("created_at", "current_period_end", "current_period_start", "customer_id", "plan_id", "start", "status", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["created_at", Sat, 07 Dec 2013 08:20:17 CST -06:00], ["current_period_end", Wed, 11 Dec 2013 15:32:46 CST -06:00], ["current_period_start", Mon, 11 Nov 2013 15:32:46 CST -06:00], ["customer_id", "cus_2vIuZmAfWK89Yk"], ["plan_id", "HR99"], ["start", Mon, 11 Nov 2013 15:32:46 CST -06:00], ["status", "active"], ["updated_at", Sat, 07 Dec 2013 08:20:17 CST -06:00]]
|
22965
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
22966
|
+
[1m[35m (0.2ms)[0m BEGIN
|
22967
|
+
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO "stripe_local_charges" ("amount", "card_id", "created", "created_at", "customer_id", "id", "invoice_id", "metadata", "paid", "transaction_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11) RETURNING "id"[0m [["amount", 9900], ["card_id", "cc_1eX7GyRo6wivEf"], ["created", Thu, 01 Aug 2013 18:08:14 CDT -05:00], ["created_at", Sat, 07 Dec 2013 08:20:17 CST -06:00], ["customer_id", "cus_1eX7onie2gq8m1"], ["id", "ch_2wiSyZQkZw8F50"], ["invoice_id", "in_2whTLSkV2ItHAv"], ["metadata", "{\"desc\":\"a charge object\",\"number\":1}"], ["paid", true], ["transaction_id", "txn_2wiSFq1N6BTZTQ"], ["updated_at", Sat, 07 Dec 2013 08:20:17 CST -06:00]]
|
22968
|
+
[1m[35m (0.4ms)[0m COMMIT
|
22969
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
22970
|
+
[1m[35mSQL (1.2ms)[0m INSERT INTO "stripe_local_transactions" ("amount", "available_on", "created", "created_at", "description", "fee", "id", "net", "source_id", "source_type", "status", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id" [["amount", -100], ["available_on", Mon, 07 Oct 2013 05:01:01 CDT -05:00], ["created", Mon, 30 Sep 2013 05:01:01 CDT -05:00], ["created_at", Sat, 07 Dec 2013 08:20:17 CST -06:00], ["description", "a dollar for Don Atello"], ["fee", 25], ["id", "txn_2fOGkiBkDgpObU"], ["net", -125], ["source_id", "tr_2fOGfKABdHu3uf"], ["source_type", "transfer"], ["status", "available"], ["updated_at", Sat, 07 Dec 2013 08:20:17 CST -06:00]]
|
22971
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
22972
|
+
[1m[35mStripeLocal::Plan Load (0.3ms)[0m SELECT "stripe_local_plans".* FROM "stripe_local_plans" WHERE "stripe_local_plans"."id" = 'New_Plan' LIMIT 1
|
22973
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
22974
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "stripe_local_plans" ("amount", "created_at", "id", "interval", "name", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", 2999], ["created_at", Sat, 07 Dec 2013 08:20:17 CST -06:00], ["id", "New_Plan"], ["interval", "month"], ["name", "New Plan"], ["updated_at", Sat, 07 Dec 2013 08:20:17 CST -06:00]]
|
22975
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
22976
|
+
[1m[35m (0.1ms)[0m BEGIN
|
22977
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "stripe_local_cards" ("brand", "created_at", "customer_id", "cvc_check", "exp_month", "exp_year", "id", "last4", "name", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id"[0m [["brand", "Visa"], ["created_at", Sat, 07 Dec 2013 08:20:17 CST -06:00], ["customer_id", "cus_2J7PZ8ncCbR10Z"], ["cvc_check", "pass"], ["exp_month", 1], ["exp_year", 2014], ["id", "cc_2J7Pscoh4jvFjJ"], ["last4", "4242"], ["name", "Connor Tumbleson"], ["updated_at", Sat, 07 Dec 2013 08:20:17 CST -06:00]]
|
22978
|
+
[1m[35m (0.3ms)[0m COMMIT
|
22979
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
22980
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["available", 9900], ["created_at", Sat, 07 Dec 2013 08:20:17 CST -06:00], ["pending", 29900], ["updated_at", Sat, 07 Dec 2013 08:20:17 CST -06:00]]
|
22981
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
22982
|
+
[1m[35m (0.1ms)[0m BEGIN
|
22983
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["available", 19900], ["created_at", Sat, 07 Dec 2013 08:20:17 CST -06:00], ["pending", 19900], ["updated_at", Sat, 07 Dec 2013 08:20:17 CST -06:00]]
|
22984
|
+
[1m[35m (0.3ms)[0m COMMIT
|
22985
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "stripe_local_balances"[0m
|
22986
|
+
[1m[35m (0.1ms)[0m BEGIN
|
22987
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["available", 39800], ["created_at", Sat, 07 Dec 2013 08:20:17 CST -06:00], ["pending", 0], ["updated_at", Sat, 07 Dec 2013 08:20:17 CST -06:00]]
|
22988
|
+
[1m[35m (0.3ms)[0m COMMIT
|
22989
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "stripe_local_balances"[0m
|
22990
|
+
[1m[35m (0.1ms)[0m BEGIN
|
22991
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["available", 9900], ["created_at", Sat, 07 Dec 2013 08:20:17 CST -06:00], ["pending", 29900], ["updated_at", Sat, 07 Dec 2013 08:20:17 CST -06:00]]
|
22992
|
+
[1m[35m (0.3ms)[0m COMMIT
|
22993
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
22994
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["available", 19900], ["created_at", Sat, 07 Dec 2013 08:20:17 CST -06:00], ["pending", 19900], ["updated_at", Sat, 07 Dec 2013 08:20:17 CST -06:00]]
|
22995
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
22996
|
+
[1m[35m (0.2ms)[0m SELECT "stripe_local_balances"."available" FROM "stripe_local_balances"
|
22997
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
22998
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["available", 9900], ["created_at", Sat, 07 Dec 2013 08:20:17 CST -06:00], ["pending", 29900], ["updated_at", Sat, 07 Dec 2013 08:20:17 CST -06:00]]
|
22999
|
+
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
|
23000
|
+
[1m[35m (0.1ms)[0m BEGIN
|
23001
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["available", 19900], ["created_at", Sat, 07 Dec 2013 08:20:17 CST -06:00], ["pending", 19900], ["updated_at", Sat, 07 Dec 2013 08:20:17 CST -06:00]]
|
23002
|
+
[1m[35m (0.2ms)[0m COMMIT
|
23003
|
+
[1m[36m (0.1ms)[0m [1mSELECT "stripe_local_balances"."pending" FROM "stripe_local_balances"[0m
|
23004
|
+
[1m[35m (0.1ms)[0m BEGIN
|
23005
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["available", 9900], ["created_at", Sat, 07 Dec 2013 08:20:17 CST -06:00], ["pending", 29900], ["updated_at", Sat, 07 Dec 2013 08:20:17 CST -06:00]]
|
23006
|
+
[1m[35m (0.2ms)[0m COMMIT
|
23007
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
23008
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["available", 19900], ["created_at", Sat, 07 Dec 2013 08:20:17 CST -06:00], ["pending", 19900], ["updated_at", Sat, 07 Dec 2013 08:20:17 CST -06:00]]
|
23009
|
+
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
|
23010
|
+
[1m[35m (0.2ms)[0m SELECT "stripe_local_balances"."available" FROM "stripe_local_balances"
|
23011
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
23012
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["available", 9900], ["created_at", Sat, 07 Dec 2013 08:20:17 CST -06:00], ["pending", 29900], ["updated_at", Sat, 07 Dec 2013 08:20:17 CST -06:00]]
|
23013
|
+
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
|
23014
|
+
[1m[35m (0.1ms)[0m BEGIN
|
23015
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["available", 19900], ["created_at", Sat, 07 Dec 2013 08:20:17 CST -06:00], ["pending", 19900], ["updated_at", Sat, 07 Dec 2013 08:20:17 CST -06:00]]
|
23016
|
+
[1m[35m (0.2ms)[0m COMMIT
|
23017
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
23018
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["available", 9900], ["created_at", Sat, 07 Dec 2013 08:20:17 CST -06:00], ["pending", 29900], ["updated_at", Sat, 07 Dec 2013 08:20:17 CST -06:00]]
|
23019
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
23020
|
+
[1m[35m (0.1ms)[0m BEGIN
|
23021
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["available", 19900], ["created_at", Sat, 07 Dec 2013 08:20:17 CST -06:00], ["pending", 19900], ["updated_at", Sat, 07 Dec 2013 08:20:17 CST -06:00]]
|
23022
|
+
[1m[35m (0.2ms)[0m COMMIT
|
23023
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "stripe_local_balances"[0m
|
23024
|
+
[1m[35mStripeLocal::Balance Load (0.3ms)[0m SELECT "stripe_local_balances".* FROM "stripe_local_balances" ORDER BY "stripe_local_balances"."id" DESC LIMIT 1
|
23025
|
+
[1m[36mStripeLocal::Balance Load (0.2ms)[0m [1mSELECT "stripe_local_balances".* FROM "stripe_local_balances" ORDER BY "stripe_local_balances"."id" DESC LIMIT 1[0m
|
23026
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "stripe_local_balances" SET "updated_at" = '2013-12-08 14:20:17.450206' WHERE "stripe_local_balances"."id" = 13
|
23027
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "stripe_local_balances"[0m
|
23028
|
+
[1m[35mStripeLocal::Balance Load (0.2ms)[0m SELECT "stripe_local_balances".* FROM "stripe_local_balances" ORDER BY "stripe_local_balances"."id" DESC LIMIT 1
|
23029
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
23030
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["available", 9900], ["created_at", Sat, 07 Dec 2013 08:20:17 CST -06:00], ["pending", 29900], ["updated_at", Sat, 07 Dec 2013 08:20:17 CST -06:00]]
|
23031
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
23032
|
+
[1m[35m (0.1ms)[0m BEGIN
|
23033
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["available", 19900], ["created_at", Sat, 07 Dec 2013 08:20:17 CST -06:00], ["pending", 19900], ["updated_at", Sat, 07 Dec 2013 08:20:17 CST -06:00]]
|
23034
|
+
[1m[35m (0.2ms)[0m COMMIT
|
23035
|
+
[1m[36m (1.0ms)[0m [1mALTER TABLE "stripe_local_discounts" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_cards" DISABLE TRIGGER ALL;ALTER TABLE "clients" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_customers" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_transfers" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_invoices" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_plans" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_line_items" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_charges" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_coupons" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_transactions" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_balances" DISABLE TRIGGER ALL[0m
|
23036
|
+
[1m[35m (1.3ms)[0m select table_name from information_schema.views where table_schema = 'dummy_test'
|
23037
|
+
[1m[36m (24.3ms)[0m [1mTRUNCATE TABLE "stripe_local_discounts", "stripe_local_cards", "clients", "stripe_local_customers", "stripe_local_transfers", "stripe_local_subscriptions", "stripe_local_invoices", "stripe_local_plans", "stripe_local_line_items", "stripe_local_charges", "stripe_local_coupons", "stripe_local_transactions", "stripe_local_balances" RESTART IDENTITY CASCADE;[0m
|
23038
|
+
[1m[35m (0.7ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_discounts" ENABLE TRIGGER ALL;ALTER TABLE "clients" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_customers" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_transfers" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_cards" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_invoices" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_plans" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_line_items" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_charges" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_coupons" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_transactions" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_balances" ENABLE TRIGGER ALL
|
23039
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
23040
|
+
[1m[35m (0.1ms)[0m BEGIN
|
23041
|
+
[1m[36mSQL (4.2ms)[0m [1mINSERT INTO "stripe_local_cards" ("brand", "created_at", "customer_id", "cvc_check", "exp_month", "exp_year", "id", "last4", "name", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id"[0m [["brand", "Visa"], ["created_at", Sat, 07 Dec 2013 08:20:28 CST -06:00], ["customer_id", "cus_2J7PZ8ncCbR10Z"], ["cvc_check", "pass"], ["exp_month", 1], ["exp_year", 2014], ["id", "cc_2J7Pscoh4jvFjJ"], ["last4", "4242"], ["name", "Connor Tumbleson"], ["updated_at", Sat, 07 Dec 2013 08:20:28 CST -06:00]]
|
23042
|
+
[1m[35m (0.3ms)[0m COMMIT
|
23043
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
23044
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["available", 9900], ["created_at", Sat, 07 Dec 2013 08:20:28 CST -06:00], ["pending", 29900], ["updated_at", Sat, 07 Dec 2013 08:20:28 CST -06:00]]
|
23045
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
23046
|
+
[1m[35m (0.1ms)[0m BEGIN
|
23047
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["available", 19900], ["created_at", Sat, 07 Dec 2013 08:20:28 CST -06:00], ["pending", 19900], ["updated_at", Sat, 07 Dec 2013 08:20:28 CST -06:00]]
|
23048
|
+
[1m[35m (0.3ms)[0m COMMIT
|
23049
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "stripe_local_balances"[0m
|
23050
|
+
[1m[35mStripeLocal::Balance Load (0.3ms)[0m SELECT "stripe_local_balances".* FROM "stripe_local_balances" ORDER BY "stripe_local_balances"."id" DESC LIMIT 1
|
23051
|
+
[1m[36mStripeLocal::Balance Load (0.2ms)[0m [1mSELECT "stripe_local_balances".* FROM "stripe_local_balances" ORDER BY "stripe_local_balances"."id" DESC LIMIT 1[0m
|
23052
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "stripe_local_balances" SET "updated_at" = '2013-12-08 14:20:28.863615' WHERE "stripe_local_balances"."id" = 2
|
23053
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "stripe_local_balances"[0m
|
23054
|
+
[1m[35mStripeLocal::Balance Load (0.3ms)[0m SELECT "stripe_local_balances".* FROM "stripe_local_balances" ORDER BY "stripe_local_balances"."id" DESC LIMIT 1
|
23055
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
23056
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["available", 9900], ["created_at", Sat, 07 Dec 2013 08:20:28 CST -06:00], ["pending", 29900], ["updated_at", Sat, 07 Dec 2013 08:20:28 CST -06:00]]
|
23057
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
23058
|
+
[1m[35m (0.1ms)[0m BEGIN
|
23059
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["available", 19900], ["created_at", Sat, 07 Dec 2013 08:20:28 CST -06:00], ["pending", 19900], ["updated_at", Sat, 07 Dec 2013 08:20:28 CST -06:00]]
|
23060
|
+
[1m[35m (0.2ms)[0m COMMIT
|
23061
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
23062
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["available", 9900], ["created_at", Sat, 07 Dec 2013 08:20:28 CST -06:00], ["pending", 29900], ["updated_at", Sat, 07 Dec 2013 08:20:28 CST -06:00]]
|
23063
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
23064
|
+
[1m[35m (0.1ms)[0m BEGIN
|
23065
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["available", 19900], ["created_at", Sat, 07 Dec 2013 08:20:28 CST -06:00], ["pending", 19900], ["updated_at", Sat, 07 Dec 2013 08:20:28 CST -06:00]]
|
23066
|
+
[1m[35m (0.2ms)[0m COMMIT
|
23067
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "stripe_local_balances"[0m
|
23068
|
+
[1m[35m (0.0ms)[0m BEGIN
|
23069
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["available", 39800], ["created_at", Sat, 07 Dec 2013 08:20:28 CST -06:00], ["pending", 0], ["updated_at", Sat, 07 Dec 2013 08:20:28 CST -06:00]]
|
23070
|
+
[1m[35m (0.2ms)[0m COMMIT
|
23071
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "stripe_local_balances"[0m
|
23072
|
+
[1m[35m (0.1ms)[0m BEGIN
|
23073
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["available", 9900], ["created_at", Sat, 07 Dec 2013 08:20:28 CST -06:00], ["pending", 29900], ["updated_at", Sat, 07 Dec 2013 08:20:28 CST -06:00]]
|
23074
|
+
[1m[35m (0.2ms)[0m COMMIT
|
23075
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
23076
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["available", 19900], ["created_at", Sat, 07 Dec 2013 08:20:28 CST -06:00], ["pending", 19900], ["updated_at", Sat, 07 Dec 2013 08:20:28 CST -06:00]]
|
23077
|
+
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
|
23078
|
+
[1m[35m (0.1ms)[0m SELECT "stripe_local_balances"."available" FROM "stripe_local_balances"
|
23079
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
23080
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["available", 9900], ["created_at", Sat, 07 Dec 2013 08:20:28 CST -06:00], ["pending", 29900], ["updated_at", Sat, 07 Dec 2013 08:20:28 CST -06:00]]
|
23081
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
23082
|
+
[1m[35m (0.1ms)[0m BEGIN
|
23083
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["available", 19900], ["created_at", Sat, 07 Dec 2013 08:20:28 CST -06:00], ["pending", 19900], ["updated_at", Sat, 07 Dec 2013 08:20:28 CST -06:00]]
|
23084
|
+
[1m[35m (0.2ms)[0m COMMIT
|
23085
|
+
[1m[36m (0.1ms)[0m [1mSELECT "stripe_local_balances"."pending" FROM "stripe_local_balances"[0m
|
23086
|
+
[1m[35m (0.1ms)[0m BEGIN
|
23087
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["available", 9900], ["created_at", Sat, 07 Dec 2013 08:20:28 CST -06:00], ["pending", 29900], ["updated_at", Sat, 07 Dec 2013 08:20:28 CST -06:00]]
|
23088
|
+
[1m[35m (0.2ms)[0m COMMIT
|
23089
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
23090
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["available", 19900], ["created_at", Sat, 07 Dec 2013 08:20:28 CST -06:00], ["pending", 19900], ["updated_at", Sat, 07 Dec 2013 08:20:28 CST -06:00]]
|
23091
|
+
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
|
23092
|
+
[1m[35m (0.1ms)[0m SELECT "stripe_local_balances"."available" FROM "stripe_local_balances"
|
23093
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
23094
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["available", 9900], ["created_at", Sat, 07 Dec 2013 08:20:28 CST -06:00], ["pending", 29900], ["updated_at", Sat, 07 Dec 2013 08:20:28 CST -06:00]]
|
23095
|
+
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
|
23096
|
+
[1m[35m (0.0ms)[0m BEGIN
|
23097
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["available", 19900], ["created_at", Sat, 07 Dec 2013 08:20:28 CST -06:00], ["pending", 19900], ["updated_at", Sat, 07 Dec 2013 08:20:28 CST -06:00]]
|
23098
|
+
[1m[35m (0.2ms)[0m COMMIT
|
23099
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
23100
|
+
[1m[35mSQL (1.2ms)[0m INSERT INTO "stripe_local_subscriptions" ("created_at", "current_period_end", "current_period_start", "customer_id", "plan_id", "start", "status", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["created_at", Sat, 07 Dec 2013 08:20:28 CST -06:00], ["current_period_end", Wed, 11 Dec 2013 15:32:46 CST -06:00], ["current_period_start", Mon, 11 Nov 2013 15:32:46 CST -06:00], ["customer_id", "cus_2vIuZmAfWK89Yk"], ["plan_id", "HR99"], ["start", Mon, 11 Nov 2013 15:32:46 CST -06:00], ["status", "active"], ["updated_at", Sat, 07 Dec 2013 08:20:28 CST -06:00]]
|
23101
|
+
[1m[36m (1.5ms)[0m [1mCOMMIT[0m
|
23102
|
+
[1m[35m (0.2ms)[0m BEGIN
|
23103
|
+
[1m[36mSQL (1.8ms)[0m [1mINSERT INTO "stripe_local_charges" ("amount", "card_id", "created", "created_at", "customer_id", "id", "invoice_id", "metadata", "paid", "transaction_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11) RETURNING "id"[0m [["amount", 9900], ["card_id", "cc_1eX7GyRo6wivEf"], ["created", Thu, 01 Aug 2013 18:08:14 CDT -05:00], ["created_at", Sat, 07 Dec 2013 08:20:28 CST -06:00], ["customer_id", "cus_1eX7onie2gq8m1"], ["id", "ch_2wiSyZQkZw8F50"], ["invoice_id", "in_2whTLSkV2ItHAv"], ["metadata", "{\"desc\":\"a charge object\",\"number\":1}"], ["paid", true], ["transaction_id", "txn_2wiSFq1N6BTZTQ"], ["updated_at", Sat, 07 Dec 2013 08:20:28 CST -06:00]]
|
23104
|
+
[1m[35m (0.3ms)[0m COMMIT
|
23105
|
+
[1m[36mStripeLocal::Plan Load (0.4ms)[0m [1mSELECT "stripe_local_plans".* FROM "stripe_local_plans" WHERE "stripe_local_plans"."id" = 'New_Plan' LIMIT 1[0m
|
23106
|
+
[1m[35m (0.1ms)[0m BEGIN
|
23107
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "stripe_local_plans" ("amount", "created_at", "id", "interval", "name", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["amount", 2999], ["created_at", Sat, 07 Dec 2013 08:20:29 CST -06:00], ["id", "New_Plan"], ["interval", "month"], ["name", "New Plan"], ["updated_at", Sat, 07 Dec 2013 08:20:29 CST -06:00]]
|
23108
|
+
[1m[35m (0.3ms)[0m COMMIT
|
23109
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
23110
|
+
[1m[35mSQL (1.2ms)[0m INSERT INTO "stripe_local_transfers" ("amount", "created_at", "date", "description", "id", "metadata", "status", "transaction_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["amount", 100], ["created_at", Sat, 07 Dec 2013 08:20:29 CST -06:00], ["date", Mon, 30 Sep 2013 05:01:01 CDT -05:00], ["description", "a dollar for Don Atello"], ["id", "tr_2fOGfKABdHu3uf"], ["metadata", "{}"], ["status", "paid"], ["transaction_id", "txn_2fOGkiBkDgpObU"], ["updated_at", Sat, 07 Dec 2013 08:20:29 CST -06:00]]
|
23111
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
23112
|
+
[1m[35m (0.1ms)[0m BEGIN
|
23113
|
+
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO "stripe_local_transactions" ("amount", "available_on", "created", "created_at", "description", "fee", "id", "net", "source_id", "source_type", "status", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id"[0m [["amount", -100], ["available_on", Mon, 07 Oct 2013 05:01:01 CDT -05:00], ["created", Mon, 30 Sep 2013 05:01:01 CDT -05:00], ["created_at", Sat, 07 Dec 2013 08:20:29 CST -06:00], ["description", "a dollar for Don Atello"], ["fee", 25], ["id", "txn_2fOGkiBkDgpObU"], ["net", -125], ["source_id", "tr_2fOGfKABdHu3uf"], ["source_type", "transfer"], ["status", "available"], ["updated_at", Sat, 07 Dec 2013 08:20:29 CST -06:00]]
|
23114
|
+
[1m[35m (0.4ms)[0m COMMIT
|
23115
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
23116
|
+
[1m[35mSQL (1.1ms)[0m INSERT INTO "stripe_local_line_items" ("amount", "created_at", "id", "invoice_id", "period_end", "period_start", "plan_id", "proration", "quantity", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["amount", 9900], ["created_at", Sat, 07 Dec 2013 08:20:29 CST -06:00], ["id", "su_1bfTBoL3o7blah"], ["invoice_id", "in_2blahblahagain"], ["period_end", Thu, 06 Jun 2013 18:23:47 CDT -05:00], ["period_start", Tue, 07 May 2013 18:23:47 CDT -05:00], ["plan_id", "HR99"], ["proration", false], ["quantity", 1], ["updated_at", Sat, 07 Dec 2013 08:20:29 CST -06:00]]
|
23117
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
23118
|
+
[1m[35m (0.1ms)[0m BEGIN
|
23119
|
+
[1m[36mSQL (2.1ms)[0m [1mINSERT INTO "stripe_local_invoices" ("amount_due", "attempt_count", "attempted", "charge_id", "closed", "created_at", "customer_id", "date", "discount", "ending_balance", "id", "paid", "period_end", "period_start", "starting_balance", "subtotal", "total", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18) RETURNING "id"[0m [["amount_due", 9900], ["attempt_count", 0], ["attempted", true], ["charge_id", "ch_blahblahblah"], ["closed", true], ["created_at", Sat, 07 Dec 2013 08:20:29 CST -06:00], ["customer_id", "cus_1A3zUmx7NpUgrT"], ["date", Tue, 07 May 2013 18:23:47 CDT -05:00], ["discount", nil], ["ending_balance", 0], ["id", "in_2blahblahagain"], ["paid", true], ["period_end", Tue, 07 May 2013 18:23:47 CDT -05:00], ["period_start", Tue, 07 May 2013 18:23:47 CDT -05:00], ["starting_balance", 0], ["subtotal", 9900], ["total", 9900], ["updated_at", Sat, 07 Dec 2013 08:20:29 CST -06:00]]
|
23120
|
+
[1m[35m (0.6ms)[0m COMMIT
|
23121
|
+
[1m[36mStripeLocal::LineItem Load (0.7ms)[0m [1mSELECT "stripe_local_line_items".* FROM "stripe_local_line_items" WHERE "stripe_local_line_items"."invoice_id" = $1[0m [["invoice_id", "in_2blahblahagain"]]
|
23122
|
+
[1m[35mStripeLocal::Customer Load (0.3ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
|
23123
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
23124
|
+
[1m[35mStripeLocal::Customer Load (0.3ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
|
23125
|
+
[1m[36mStripeLocal::Customer Load (0.2ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1[0m
|
23126
|
+
[1m[35mStripeLocal::Customer Load (0.2ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
|
23127
|
+
[1m[36mStripeLocal::Customer Load (0.2ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1[0m
|
23128
|
+
[1m[35mStripeLocal::Customer Load (0.2ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
|
23129
|
+
[1m[36mStripeLocal::Customer Load (0.2ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1[0m
|
23130
|
+
[1m[35mStripeLocal::Customer Load (0.2ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
|
23131
|
+
[1m[36mStripeLocal::Customer Load (0.2ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1[0m
|
23132
|
+
[1m[35mStripeLocal::Customer Load (0.2ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
|
23133
|
+
[1m[36mStripeLocal::Customer Load (0.1ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1[0m
|
23134
|
+
[1m[35mStripeLocal::Customer Load (0.2ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
|
23135
|
+
[1m[36mStripeLocal::Customer Load (0.2ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1[0m
|
23136
|
+
[1m[35mStripeLocal::Customer Load (0.2ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
|
23137
|
+
[1m[36mStripeLocal::Customer Load (0.2ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1[0m
|
23138
|
+
[1m[35mStripeLocal::Customer Load (0.2ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
|
23139
|
+
[1m[36mStripeLocal::Customer Load (0.2ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1[0m
|
23140
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "clients" ("email", "name", "password") VALUES ($1, $2, $3) RETURNING "id" [["email", "test@test.com"], ["name", "Test Case"], ["password", "password"]]
|
23141
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
23142
|
+
[1m[35mStripeLocal::Customer Load (0.2ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" = 1 LIMIT 1
|
23143
|
+
[1m[36mStripeLocal::Customer Load (0.2ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" = 1 LIMIT 1[0m
|
23144
|
+
[1m[35m (0.1ms)[0m BEGIN
|
23145
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "stripe_local_cards" ("brand", "created_at", "customer_id", "cvc_check", "exp_month", "exp_year", "id", "last4", "name", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id"[0m [["brand", "Visa"], ["created_at", Sat, 07 Dec 2013 08:20:29 CST -06:00], ["customer_id", "cus_123"], ["cvc_check", "pass"], ["exp_month", 8], ["exp_year", 2014], ["id", "card_102Y2J1Cmf55uWiejglofO7j"], ["last4", "4242"], ["name", "Test Case"], ["updated_at", Sat, 07 Dec 2013 08:20:29 CST -06:00]]
|
23146
|
+
[1m[35m (0.3ms)[0m COMMIT
|
23147
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
23148
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "stripe_local_subscriptions" ("created_at", "current_period_end", "current_period_start", "customer_id", "plan_id", "start", "status", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["created_at", Sat, 07 Dec 2013 08:20:29 CST -06:00], ["current_period_end", Thu, 10 Oct 2013 13:52:04 CDT -05:00], ["current_period_start", Tue, 10 Sep 2013 13:52:04 CDT -05:00], ["customer_id", "cus_123"], ["plan_id", "GIN100"], ["start", Tue, 10 Sep 2013 13:52:04 CDT -05:00], ["status", "active"], ["updated_at", Sat, 07 Dec 2013 08:20:29 CST -06:00]]
|
23149
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
23150
|
+
[1m[35m (0.2ms)[0m BEGIN
|
23151
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "stripe_local_customers" ("account_balance", "created_at", "default_card", "delinquent", "description", "email", "id", "model_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id"[0m [["account_balance", 0], ["created_at", Sat, 07 Dec 2013 08:20:29 CST -06:00], ["default_card", "card_102Y2J1Cmf55uWiejglofO7j"], ["delinquent", false], ["description", "On September 10th, Test signed up for CA50."], ["email", "test@test.com"], ["id", "cus_123"], ["model_id", 1], ["updated_at", Sat, 07 Dec 2013 08:20:29 CST -06:00]]
|
23152
|
+
[1m[35m (0.3ms)[0m COMMIT
|
23153
|
+
[1m[36mStripeLocal::Customer Load (0.3ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" = 1 LIMIT 1[0m
|
23154
|
+
[1m[35mStripeLocal::Subscription Load (0.3ms)[0m SELECT "stripe_local_subscriptions".* FROM "stripe_local_subscriptions" WHERE "stripe_local_subscriptions"."customer_id" = 'cus_123' LIMIT 1
|
23155
|
+
[1m[36m (0.8ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_discounts" DISABLE TRIGGER ALL;ALTER TABLE "clients" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_customers" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_transfers" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_cards" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_invoices" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_plans" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_line_items" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_charges" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_coupons" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_transactions" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_balances" DISABLE TRIGGER ALL[0m
|
23156
|
+
[1m[35m (1.2ms)[0m select table_name from information_schema.views where table_schema = 'dummy_test'
|
23157
|
+
[1m[36m (20.5ms)[0m [1mTRUNCATE TABLE "stripe_local_discounts", "clients", "stripe_local_customers", "stripe_local_transfers", "stripe_local_cards", "stripe_local_subscriptions", "stripe_local_invoices", "stripe_local_plans", "stripe_local_line_items", "stripe_local_charges", "stripe_local_coupons", "stripe_local_transactions", "stripe_local_balances" RESTART IDENTITY CASCADE;[0m
|
23158
|
+
[1m[35m (1.0ms)[0m ALTER TABLE "stripe_local_discounts" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_customers" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_transfers" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_cards" ENABLE TRIGGER ALL;ALTER TABLE "clients" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_invoices" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_plans" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_line_items" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_charges" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_coupons" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_transactions" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_balances" ENABLE TRIGGER ALL
|
23159
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
23160
|
+
[1m[35m (0.1ms)[0m BEGIN
|
23161
|
+
[1m[36mSQL (6.1ms)[0m [1mINSERT INTO "stripe_local_cards" ("brand", "created_at", "customer_id", "cvc_check", "exp_month", "exp_year", "id", "last4", "name", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id"[0m [["brand", "Visa"], ["created_at", Sat, 07 Dec 2013 08:20:33 CST -06:00], ["customer_id", "cus_2J7PZ8ncCbR10Z"], ["cvc_check", "pass"], ["exp_month", 1], ["exp_year", 2014], ["id", "cc_2J7Pscoh4jvFjJ"], ["last4", "4242"], ["name", "Connor Tumbleson"], ["updated_at", Sat, 07 Dec 2013 08:20:33 CST -06:00]]
|
23162
|
+
[1m[35m (0.3ms)[0m COMMIT
|
23163
|
+
[1m[36mStripeLocal::Plan Load (0.4ms)[0m [1mSELECT "stripe_local_plans".* FROM "stripe_local_plans" WHERE "stripe_local_plans"."id" = 'New_Plan' LIMIT 1[0m
|
23164
|
+
[1m[35m (0.1ms)[0m BEGIN
|
23165
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "stripe_local_plans" ("amount", "created_at", "id", "interval", "name", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["amount", 2999], ["created_at", Sat, 07 Dec 2013 08:20:33 CST -06:00], ["id", "New_Plan"], ["interval", "month"], ["name", "New Plan"], ["updated_at", Sat, 07 Dec 2013 08:20:33 CST -06:00]]
|
23166
|
+
[1m[35m (0.4ms)[0m COMMIT
|
23167
|
+
[1m[36mStripeLocal::Customer Load (0.4ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1[0m
|
23168
|
+
[1m[35m (0.1ms)[0m BEGIN
|
23169
|
+
[1m[36mStripeLocal::Customer Load (0.3ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1[0m
|
23170
|
+
[1m[35mStripeLocal::Customer Load (0.2ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
|
23171
|
+
[1m[36mStripeLocal::Customer Load (0.2ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1[0m
|
23172
|
+
[1m[35mStripeLocal::Customer Load (0.2ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
|
23173
|
+
[1m[36mStripeLocal::Customer Load (0.2ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1[0m
|
23174
|
+
[1m[35mStripeLocal::Customer Load (0.2ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
|
23175
|
+
[1m[36mStripeLocal::Customer Load (0.3ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1[0m
|
23176
|
+
[1m[35mStripeLocal::Customer Load (0.2ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
|
23177
|
+
[1m[36mStripeLocal::Customer Load (0.2ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1[0m
|
23178
|
+
[1m[35mStripeLocal::Customer Load (0.1ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
|
23179
|
+
[1m[36mStripeLocal::Customer Load (0.2ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1[0m
|
23180
|
+
[1m[35mStripeLocal::Customer Load (0.2ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
|
23181
|
+
[1m[36mStripeLocal::Customer Load (0.2ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1[0m
|
23182
|
+
[1m[35mStripeLocal::Customer Load (0.2ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
|
23183
|
+
[1m[36mStripeLocal::Customer Load (0.2ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1[0m
|
23184
|
+
[1m[35mStripeLocal::Customer Load (0.2ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
|
23185
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "clients" ("email", "name", "password") VALUES ($1, $2, $3) RETURNING "id"[0m [["email", "test@test.com"], ["name", "Test Case"], ["password", "password"]]
|
23186
|
+
[1m[35m (0.3ms)[0m COMMIT
|
23187
|
+
[1m[36mStripeLocal::Customer Load (0.3ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" = 1 LIMIT 1[0m
|
23188
|
+
[1m[35mStripeLocal::Customer Load (0.2ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" = 1 LIMIT 1
|
23189
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
23190
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "stripe_local_cards" ("brand", "created_at", "customer_id", "cvc_check", "exp_month", "exp_year", "id", "last4", "name", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["brand", "Visa"], ["created_at", Sat, 07 Dec 2013 08:20:33 CST -06:00], ["customer_id", "cus_123"], ["cvc_check", "pass"], ["exp_month", 8], ["exp_year", 2014], ["id", "card_102Y2J1Cmf55uWiejglofO7j"], ["last4", "4242"], ["name", "Test Case"], ["updated_at", Sat, 07 Dec 2013 08:20:33 CST -06:00]]
|
23191
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
23192
|
+
[1m[35m (0.2ms)[0m BEGIN
|
23193
|
+
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO "stripe_local_subscriptions" ("created_at", "current_period_end", "current_period_start", "customer_id", "plan_id", "start", "status", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["created_at", Sat, 07 Dec 2013 08:20:33 CST -06:00], ["current_period_end", Thu, 10 Oct 2013 13:52:04 CDT -05:00], ["current_period_start", Tue, 10 Sep 2013 13:52:04 CDT -05:00], ["customer_id", "cus_123"], ["plan_id", "GIN100"], ["start", Tue, 10 Sep 2013 13:52:04 CDT -05:00], ["status", "active"], ["updated_at", Sat, 07 Dec 2013 08:20:33 CST -06:00]]
|
23194
|
+
[1m[35m (6.4ms)[0m COMMIT
|
23195
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
23196
|
+
[1m[35mSQL (0.8ms)[0m INSERT INTO "stripe_local_customers" ("account_balance", "created_at", "default_card", "delinquent", "description", "email", "id", "model_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["account_balance", 0], ["created_at", Sat, 07 Dec 2013 08:20:33 CST -06:00], ["default_card", "card_102Y2J1Cmf55uWiejglofO7j"], ["delinquent", false], ["description", "On September 10th, Test signed up for CA50."], ["email", "test@test.com"], ["id", "cus_123"], ["model_id", 1], ["updated_at", Sat, 07 Dec 2013 08:20:33 CST -06:00]]
|
23197
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
23198
|
+
[1m[35mStripeLocal::Customer Load (0.3ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" = 1 LIMIT 1
|
23199
|
+
[1m[36mStripeLocal::Subscription Load (0.3ms)[0m [1mSELECT "stripe_local_subscriptions".* FROM "stripe_local_subscriptions" WHERE "stripe_local_subscriptions"."customer_id" = 'cus_123' LIMIT 1[0m
|
23200
|
+
[1m[35m (0.2ms)[0m BEGIN
|
23201
|
+
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO "stripe_local_charges" ("amount", "card_id", "created", "created_at", "customer_id", "id", "invoice_id", "metadata", "paid", "transaction_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11) RETURNING "id"[0m [["amount", 9900], ["card_id", "cc_1eX7GyRo6wivEf"], ["created", Thu, 01 Aug 2013 18:08:14 CDT -05:00], ["created_at", Sat, 07 Dec 2013 08:20:33 CST -06:00], ["customer_id", "cus_1eX7onie2gq8m1"], ["id", "ch_2wiSyZQkZw8F50"], ["invoice_id", "in_2whTLSkV2ItHAv"], ["metadata", "{\"desc\":\"a charge object\",\"number\":1}"], ["paid", true], ["transaction_id", "txn_2wiSFq1N6BTZTQ"], ["updated_at", Sat, 07 Dec 2013 08:20:33 CST -06:00]]
|
23202
|
+
[1m[35m (0.4ms)[0m COMMIT
|
23203
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
23204
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "stripe_local_line_items" ("amount", "created_at", "id", "invoice_id", "period_end", "period_start", "plan_id", "proration", "quantity", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["amount", 9900], ["created_at", Sat, 07 Dec 2013 08:20:33 CST -06:00], ["id", "su_1bfTBoL3o7blah"], ["invoice_id", "in_2blahblahagain"], ["period_end", Thu, 06 Jun 2013 18:23:47 CDT -05:00], ["period_start", Tue, 07 May 2013 18:23:47 CDT -05:00], ["plan_id", "HR99"], ["proration", false], ["quantity", 1], ["updated_at", Sat, 07 Dec 2013 08:20:33 CST -06:00]]
|
23205
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
23206
|
+
[1m[35m (0.2ms)[0m BEGIN
|
23207
|
+
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO "stripe_local_invoices" ("amount_due", "attempt_count", "attempted", "charge_id", "closed", "created_at", "customer_id", "date", "discount", "ending_balance", "id", "paid", "period_end", "period_start", "starting_balance", "subtotal", "total", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18) RETURNING "id"[0m [["amount_due", 9900], ["attempt_count", 0], ["attempted", true], ["charge_id", "ch_blahblahblah"], ["closed", true], ["created_at", Sat, 07 Dec 2013 08:20:33 CST -06:00], ["customer_id", "cus_1A3zUmx7NpUgrT"], ["date", Tue, 07 May 2013 18:23:47 CDT -05:00], ["discount", nil], ["ending_balance", 0], ["id", "in_2blahblahagain"], ["paid", true], ["period_end", Tue, 07 May 2013 18:23:47 CDT -05:00], ["period_start", Tue, 07 May 2013 18:23:47 CDT -05:00], ["starting_balance", 0], ["subtotal", 9900], ["total", 9900], ["updated_at", Sat, 07 Dec 2013 08:20:33 CST -06:00]]
|
23208
|
+
[1m[35m (0.3ms)[0m COMMIT
|
23209
|
+
[1m[36mStripeLocal::LineItem Load (0.7ms)[0m [1mSELECT "stripe_local_line_items".* FROM "stripe_local_line_items" WHERE "stripe_local_line_items"."invoice_id" = $1[0m [["invoice_id", "in_2blahblahagain"]]
|
23210
|
+
[1m[35m (0.1ms)[0m BEGIN
|
23211
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["available", 9900], ["created_at", Sat, 07 Dec 2013 08:20:33 CST -06:00], ["pending", 29900], ["updated_at", Sat, 07 Dec 2013 08:20:33 CST -06:00]]
|
23212
|
+
[1m[35m (0.3ms)[0m COMMIT
|
23213
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
23214
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["available", 19900], ["created_at", Sat, 07 Dec 2013 08:20:33 CST -06:00], ["pending", 19900], ["updated_at", Sat, 07 Dec 2013 08:20:33 CST -06:00]]
|
23215
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
23216
|
+
[1m[35m (0.1ms)[0m BEGIN
|
23217
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["available", 9900], ["created_at", Sat, 07 Dec 2013 08:20:33 CST -06:00], ["pending", 29900], ["updated_at", Sat, 07 Dec 2013 08:20:33 CST -06:00]]
|
23218
|
+
[1m[35m (0.3ms)[0m COMMIT
|
23219
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
23220
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["available", 19900], ["created_at", Sat, 07 Dec 2013 08:20:33 CST -06:00], ["pending", 19900], ["updated_at", Sat, 07 Dec 2013 08:20:33 CST -06:00]]
|
23221
|
+
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
|
23222
|
+
[1m[35m (0.2ms)[0m SELECT "stripe_local_balances"."pending" FROM "stripe_local_balances"
|
23223
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
23224
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["available", 9900], ["created_at", Sat, 07 Dec 2013 08:20:33 CST -06:00], ["pending", 29900], ["updated_at", Sat, 07 Dec 2013 08:20:33 CST -06:00]]
|
23225
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
23226
|
+
[1m[35m (0.1ms)[0m BEGIN
|
23227
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["available", 19900], ["created_at", Sat, 07 Dec 2013 08:20:33 CST -06:00], ["pending", 19900], ["updated_at", Sat, 07 Dec 2013 08:20:33 CST -06:00]]
|
23228
|
+
[1m[35m (0.4ms)[0m COMMIT
|
23229
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "stripe_local_balances"[0m
|
23230
|
+
[1m[35mStripeLocal::Balance Load (0.3ms)[0m SELECT "stripe_local_balances".* FROM "stripe_local_balances" ORDER BY "stripe_local_balances"."id" DESC LIMIT 1
|
23231
|
+
[1m[36mStripeLocal::Balance Load (0.2ms)[0m [1mSELECT "stripe_local_balances".* FROM "stripe_local_balances" ORDER BY "stripe_local_balances"."id" DESC LIMIT 1[0m
|
23232
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "stripe_local_balances" SET "updated_at" = '2013-12-08 14:20:33.728291' WHERE "stripe_local_balances"."id" = 6
|
23233
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "stripe_local_balances"[0m
|
23234
|
+
[1m[35mStripeLocal::Balance Load (0.2ms)[0m SELECT "stripe_local_balances".* FROM "stripe_local_balances" ORDER BY "stripe_local_balances"."id" DESC LIMIT 1
|
23235
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
23236
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["available", 9900], ["created_at", Sat, 07 Dec 2013 08:20:33 CST -06:00], ["pending", 29900], ["updated_at", Sat, 07 Dec 2013 08:20:33 CST -06:00]]
|
23237
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
23238
|
+
[1m[35m (0.1ms)[0m BEGIN
|
23239
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["available", 19900], ["created_at", Sat, 07 Dec 2013 08:20:33 CST -06:00], ["pending", 19900], ["updated_at", Sat, 07 Dec 2013 08:20:33 CST -06:00]]
|
23240
|
+
[1m[35m (0.2ms)[0m COMMIT
|
23241
|
+
[1m[36m (0.1ms)[0m [1mSELECT "stripe_local_balances"."available" FROM "stripe_local_balances"[0m
|
23242
|
+
[1m[35m (0.1ms)[0m BEGIN
|
23243
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["available", 9900], ["created_at", Sat, 07 Dec 2013 08:20:33 CST -06:00], ["pending", 29900], ["updated_at", Sat, 07 Dec 2013 08:20:33 CST -06:00]]
|
23244
|
+
[1m[35m (0.2ms)[0m COMMIT
|
23245
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
23246
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["available", 19900], ["created_at", Sat, 07 Dec 2013 08:20:33 CST -06:00], ["pending", 19900], ["updated_at", Sat, 07 Dec 2013 08:20:33 CST -06:00]]
|
23247
|
+
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
|
23248
|
+
[1m[35m (0.1ms)[0m BEGIN
|
23249
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["available", 9900], ["created_at", Sat, 07 Dec 2013 08:20:33 CST -06:00], ["pending", 29900], ["updated_at", Sat, 07 Dec 2013 08:20:33 CST -06:00]]
|
23250
|
+
[1m[35m (0.3ms)[0m COMMIT
|
23251
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
23252
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["available", 19900], ["created_at", Sat, 07 Dec 2013 08:20:33 CST -06:00], ["pending", 19900], ["updated_at", Sat, 07 Dec 2013 08:20:33 CST -06:00]]
|
23253
|
+
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
|
23254
|
+
[1m[35m (0.1ms)[0m SELECT "stripe_local_balances"."available" FROM "stripe_local_balances"
|
23255
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
23256
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["available", 9900], ["created_at", Sat, 07 Dec 2013 08:20:33 CST -06:00], ["pending", 29900], ["updated_at", Sat, 07 Dec 2013 08:20:33 CST -06:00]]
|
23257
|
+
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
|
23258
|
+
[1m[35m (0.1ms)[0m BEGIN
|
23259
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["available", 19900], ["created_at", Sat, 07 Dec 2013 08:20:33 CST -06:00], ["pending", 19900], ["updated_at", Sat, 07 Dec 2013 08:20:33 CST -06:00]]
|
23260
|
+
[1m[35m (0.2ms)[0m COMMIT
|
23261
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "stripe_local_balances"[0m
|
23262
|
+
[1m[35m (0.0ms)[0m BEGIN
|
23263
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["available", 39800], ["created_at", Sat, 07 Dec 2013 08:20:33 CST -06:00], ["pending", 0], ["updated_at", Sat, 07 Dec 2013 08:20:33 CST -06:00]]
|
23264
|
+
[1m[35m (0.2ms)[0m COMMIT
|
23265
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "stripe_local_balances"[0m
|
23266
|
+
[1m[35m (0.1ms)[0m BEGIN
|
23267
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "stripe_local_subscriptions" ("created_at", "current_period_end", "current_period_start", "customer_id", "plan_id", "start", "status", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["created_at", Sat, 07 Dec 2013 08:20:33 CST -06:00], ["current_period_end", Wed, 11 Dec 2013 15:32:46 CST -06:00], ["current_period_start", Mon, 11 Nov 2013 15:32:46 CST -06:00], ["customer_id", "cus_2vIuZmAfWK89Yk"], ["plan_id", "HR99"], ["start", Mon, 11 Nov 2013 15:32:46 CST -06:00], ["status", "active"], ["updated_at", Sat, 07 Dec 2013 08:20:33 CST -06:00]]
|
23268
|
+
[1m[35m (0.3ms)[0m COMMIT
|
23269
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
23270
|
+
[1m[35mSQL (1.1ms)[0m INSERT INTO "stripe_local_transactions" ("amount", "available_on", "created", "created_at", "description", "fee", "id", "net", "source_id", "source_type", "status", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id" [["amount", -100], ["available_on", Mon, 07 Oct 2013 05:01:01 CDT -05:00], ["created", Mon, 30 Sep 2013 05:01:01 CDT -05:00], ["created_at", Sat, 07 Dec 2013 08:20:33 CST -06:00], ["description", "a dollar for Don Atello"], ["fee", 25], ["id", "txn_2fOGkiBkDgpObU"], ["net", -125], ["source_id", "tr_2fOGfKABdHu3uf"], ["source_type", "transfer"], ["status", "available"], ["updated_at", Sat, 07 Dec 2013 08:20:33 CST -06:00]]
|
23271
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
23272
|
+
[1m[35m (0.2ms)[0m BEGIN
|
23273
|
+
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO "stripe_local_transfers" ("amount", "created_at", "date", "description", "id", "metadata", "status", "transaction_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id"[0m [["amount", 100], ["created_at", Sat, 07 Dec 2013 08:20:33 CST -06:00], ["date", Mon, 30 Sep 2013 05:01:01 CDT -05:00], ["description", "a dollar for Don Atello"], ["id", "tr_2fOGfKABdHu3uf"], ["metadata", "{}"], ["status", "paid"], ["transaction_id", "txn_2fOGkiBkDgpObU"], ["updated_at", Sat, 07 Dec 2013 08:20:33 CST -06:00]]
|
23274
|
+
[1m[35m (0.5ms)[0m COMMIT
|
23275
|
+
[1m[36m (1.0ms)[0m [1mALTER TABLE "stripe_local_discounts" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_customers" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_transfers" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_cards" DISABLE TRIGGER ALL;ALTER TABLE "clients" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_invoices" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_plans" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_line_items" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_charges" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_coupons" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_transactions" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_balances" DISABLE TRIGGER ALL[0m
|
23276
|
+
[1m[35m (1.6ms)[0m select table_name from information_schema.views where table_schema = 'dummy_test'
|
23277
|
+
[1m[36m (21.3ms)[0m [1mTRUNCATE TABLE "stripe_local_discounts", "stripe_local_customers", "stripe_local_transfers", "stripe_local_cards", "clients", "stripe_local_subscriptions", "stripe_local_invoices", "stripe_local_plans", "stripe_local_line_items", "stripe_local_charges", "stripe_local_coupons", "stripe_local_transactions", "stripe_local_balances" RESTART IDENTITY CASCADE;[0m
|
23278
|
+
[1m[35m (1.0ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_discounts" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_transfers" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_cards" ENABLE TRIGGER ALL;ALTER TABLE "clients" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_customers" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_invoices" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_plans" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_line_items" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_charges" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_coupons" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_transactions" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_balances" ENABLE TRIGGER ALL
|
23279
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
23280
|
+
[1m[35mStripeLocal::Customer Load (0.5ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
|
23281
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
23282
|
+
[1m[35mStripeLocal::Customer Load (0.2ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
|
23283
|
+
[1m[36mStripeLocal::Customer Load (0.2ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1[0m
|
23284
|
+
[1m[35mStripeLocal::Customer Load (0.2ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
|
23285
|
+
[1m[36mStripeLocal::Customer Load (0.2ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1[0m
|
23286
|
+
[1m[35mStripeLocal::Customer Load (0.2ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
|
23287
|
+
[1m[36mStripeLocal::Customer Load (0.2ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1[0m
|
23288
|
+
[1m[35mStripeLocal::Customer Load (0.2ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
|
23289
|
+
[1m[36mStripeLocal::Customer Load (0.1ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1[0m
|
23290
|
+
[1m[35mStripeLocal::Customer Load (0.2ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
|
23291
|
+
[1m[36mStripeLocal::Customer Load (0.2ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1[0m
|
23292
|
+
[1m[35mStripeLocal::Customer Load (0.1ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
|
23293
|
+
[1m[36mStripeLocal::Customer Load (0.1ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1[0m
|
23294
|
+
[1m[35mStripeLocal::Customer Load (0.1ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
|
23295
|
+
[1m[36mStripeLocal::Customer Load (0.1ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1[0m
|
23296
|
+
[1m[35mStripeLocal::Customer Load (0.1ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
|
23297
|
+
[1m[36mStripeLocal::Customer Load (0.1ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1[0m
|
23298
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "clients" ("email", "name", "password") VALUES ($1, $2, $3) RETURNING "id" [["email", "test@test.com"], ["name", "Test Case"], ["password", "password"]]
|
23299
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
23300
|
+
[1m[35mStripeLocal::Customer Load (0.2ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" = 1 LIMIT 1
|
23301
|
+
[1m[36mStripeLocal::Customer Load (0.1ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" = 1 LIMIT 1[0m
|
23302
|
+
[1m[35m (0.2ms)[0m BEGIN
|
23303
|
+
[1m[36mSQL (32.8ms)[0m [1mINSERT INTO "stripe_local_cards" ("brand", "created_at", "customer_id", "cvc_check", "exp_month", "exp_year", "id", "last4", "name", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id"[0m [["brand", "Visa"], ["created_at", Sat, 07 Dec 2013 08:20:36 CST -06:00], ["customer_id", "cus_123"], ["cvc_check", "pass"], ["exp_month", 8], ["exp_year", 2014], ["id", "card_102Y2J1Cmf55uWiejglofO7j"], ["last4", "4242"], ["name", "Test Case"], ["updated_at", Sat, 07 Dec 2013 08:20:36 CST -06:00]]
|
23304
|
+
[1m[35m (0.3ms)[0m COMMIT
|
23305
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
23306
|
+
[1m[35mSQL (1.1ms)[0m INSERT INTO "stripe_local_subscriptions" ("created_at", "current_period_end", "current_period_start", "customer_id", "plan_id", "start", "status", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["created_at", Sat, 07 Dec 2013 08:20:36 CST -06:00], ["current_period_end", Thu, 10 Oct 2013 13:52:04 CDT -05:00], ["current_period_start", Tue, 10 Sep 2013 13:52:04 CDT -05:00], ["customer_id", "cus_123"], ["plan_id", "GIN100"], ["start", Tue, 10 Sep 2013 13:52:04 CDT -05:00], ["status", "active"], ["updated_at", Sat, 07 Dec 2013 08:20:36 CST -06:00]]
|
23307
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
23308
|
+
[1m[35m (0.2ms)[0m BEGIN
|
23309
|
+
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO "stripe_local_customers" ("account_balance", "created_at", "default_card", "delinquent", "description", "email", "id", "model_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id"[0m [["account_balance", 0], ["created_at", Sat, 07 Dec 2013 08:20:36 CST -06:00], ["default_card", "card_102Y2J1Cmf55uWiejglofO7j"], ["delinquent", false], ["description", "On September 10th, Test signed up for CA50."], ["email", "test@test.com"], ["id", "cus_123"], ["model_id", 1], ["updated_at", Sat, 07 Dec 2013 08:20:36 CST -06:00]]
|
23310
|
+
[1m[35m (0.3ms)[0m COMMIT
|
23311
|
+
[1m[36mStripeLocal::Customer Load (0.3ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" = 1 LIMIT 1[0m
|
23312
|
+
[1m[35mStripeLocal::Subscription Load (0.4ms)[0m SELECT "stripe_local_subscriptions".* FROM "stripe_local_subscriptions" WHERE "stripe_local_subscriptions"."customer_id" = 'cus_123' LIMIT 1
|
23313
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
23314
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "stripe_local_subscriptions" ("created_at", "current_period_end", "current_period_start", "customer_id", "plan_id", "start", "status", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["created_at", Sat, 07 Dec 2013 08:20:36 CST -06:00], ["current_period_end", Wed, 11 Dec 2013 15:32:46 CST -06:00], ["current_period_start", Mon, 11 Nov 2013 15:32:46 CST -06:00], ["customer_id", "cus_2vIuZmAfWK89Yk"], ["plan_id", "HR99"], ["start", Mon, 11 Nov 2013 15:32:46 CST -06:00], ["status", "active"], ["updated_at", Sat, 07 Dec 2013 08:20:36 CST -06:00]]
|
23315
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
23316
|
+
[1m[35m (0.2ms)[0m BEGIN
|
23317
|
+
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO "stripe_local_line_items" ("amount", "created_at", "id", "invoice_id", "period_end", "period_start", "plan_id", "proration", "quantity", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id"[0m [["amount", 9900], ["created_at", Sat, 07 Dec 2013 08:20:36 CST -06:00], ["id", "su_1bfTBoL3o7blah"], ["invoice_id", "in_2blahblahagain"], ["period_end", Thu, 06 Jun 2013 18:23:47 CDT -05:00], ["period_start", Tue, 07 May 2013 18:23:47 CDT -05:00], ["plan_id", "HR99"], ["proration", false], ["quantity", 1], ["updated_at", Sat, 07 Dec 2013 08:20:36 CST -06:00]]
|
23318
|
+
[1m[35m (0.3ms)[0m COMMIT
|
23319
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
23320
|
+
[1m[35mSQL (1.1ms)[0m INSERT INTO "stripe_local_invoices" ("amount_due", "attempt_count", "attempted", "charge_id", "closed", "created_at", "customer_id", "date", "discount", "ending_balance", "id", "paid", "period_end", "period_start", "starting_balance", "subtotal", "total", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18) RETURNING "id" [["amount_due", 9900], ["attempt_count", 0], ["attempted", true], ["charge_id", "ch_blahblahblah"], ["closed", true], ["created_at", Sat, 07 Dec 2013 08:20:37 CST -06:00], ["customer_id", "cus_1A3zUmx7NpUgrT"], ["date", Tue, 07 May 2013 18:23:47 CDT -05:00], ["discount", nil], ["ending_balance", 0], ["id", "in_2blahblahagain"], ["paid", true], ["period_end", Tue, 07 May 2013 18:23:47 CDT -05:00], ["period_start", Tue, 07 May 2013 18:23:47 CDT -05:00], ["starting_balance", 0], ["subtotal", 9900], ["total", 9900], ["updated_at", Sat, 07 Dec 2013 08:20:37 CST -06:00]]
|
23321
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
23322
|
+
[1m[35mStripeLocal::LineItem Load (0.6ms)[0m SELECT "stripe_local_line_items".* FROM "stripe_local_line_items" WHERE "stripe_local_line_items"."invoice_id" = $1 [["invoice_id", "in_2blahblahagain"]]
|
23323
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
23324
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "stripe_local_cards" ("brand", "created_at", "customer_id", "cvc_check", "exp_month", "exp_year", "id", "last4", "name", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["brand", "Visa"], ["created_at", Sat, 07 Dec 2013 08:20:37 CST -06:00], ["customer_id", "cus_2J7PZ8ncCbR10Z"], ["cvc_check", "pass"], ["exp_month", 1], ["exp_year", 2014], ["id", "cc_2J7Pscoh4jvFjJ"], ["last4", "4242"], ["name", "Connor Tumbleson"], ["updated_at", Sat, 07 Dec 2013 08:20:37 CST -06:00]]
|
23325
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
23326
|
+
[1m[35m (0.2ms)[0m BEGIN
|
23327
|
+
[1m[36mSQL (1.7ms)[0m [1mINSERT INTO "stripe_local_charges" ("amount", "card_id", "created", "created_at", "customer_id", "id", "invoice_id", "metadata", "paid", "transaction_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11) RETURNING "id"[0m [["amount", 9900], ["card_id", "cc_1eX7GyRo6wivEf"], ["created", Thu, 01 Aug 2013 18:08:14 CDT -05:00], ["created_at", Sat, 07 Dec 2013 08:20:37 CST -06:00], ["customer_id", "cus_1eX7onie2gq8m1"], ["id", "ch_2wiSyZQkZw8F50"], ["invoice_id", "in_2whTLSkV2ItHAv"], ["metadata", "{\"desc\":\"a charge object\",\"number\":1}"], ["paid", true], ["transaction_id", "txn_2wiSFq1N6BTZTQ"], ["updated_at", Sat, 07 Dec 2013 08:20:37 CST -06:00]]
|
23328
|
+
[1m[35m (0.3ms)[0m COMMIT
|
23329
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
23330
|
+
[1m[35mSQL (1.1ms)[0m INSERT INTO "stripe_local_transactions" ("amount", "available_on", "created", "created_at", "description", "fee", "id", "net", "source_id", "source_type", "status", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id" [["amount", -100], ["available_on", Mon, 07 Oct 2013 05:01:01 CDT -05:00], ["created", Mon, 30 Sep 2013 05:01:01 CDT -05:00], ["created_at", Sat, 07 Dec 2013 08:20:37 CST -06:00], ["description", "a dollar for Don Atello"], ["fee", 25], ["id", "txn_2fOGkiBkDgpObU"], ["net", -125], ["source_id", "tr_2fOGfKABdHu3uf"], ["source_type", "transfer"], ["status", "available"], ["updated_at", Sat, 07 Dec 2013 08:20:37 CST -06:00]]
|
23331
|
+
[1m[36m (0.9ms)[0m [1mCOMMIT[0m
|
23332
|
+
[1m[35m (0.1ms)[0m BEGIN
|
23333
|
+
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO "stripe_local_transfers" ("amount", "created_at", "date", "description", "id", "metadata", "status", "transaction_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id"[0m [["amount", 100], ["created_at", Sat, 07 Dec 2013 08:20:37 CST -06:00], ["date", Mon, 30 Sep 2013 05:01:01 CDT -05:00], ["description", "a dollar for Don Atello"], ["id", "tr_2fOGfKABdHu3uf"], ["metadata", "{}"], ["status", "paid"], ["transaction_id", "txn_2fOGkiBkDgpObU"], ["updated_at", Sat, 07 Dec 2013 08:20:37 CST -06:00]]
|
23334
|
+
[1m[35m (0.3ms)[0m COMMIT
|
23335
|
+
[1m[36mStripeLocal::Plan Load (0.3ms)[0m [1mSELECT "stripe_local_plans".* FROM "stripe_local_plans" WHERE "stripe_local_plans"."id" = 'New_Plan' LIMIT 1[0m
|
23336
|
+
[1m[35m (0.2ms)[0m BEGIN
|
23337
|
+
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO "stripe_local_plans" ("amount", "created_at", "id", "interval", "name", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["amount", 2999], ["created_at", Sat, 07 Dec 2013 08:20:37 CST -06:00], ["id", "New_Plan"], ["interval", "month"], ["name", "New Plan"], ["updated_at", Sat, 07 Dec 2013 08:20:37 CST -06:00]]
|
23338
|
+
[1m[35m (0.3ms)[0m COMMIT
|
23339
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
23340
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["available", 9900], ["created_at", Sat, 07 Dec 2013 08:20:37 CST -06:00], ["pending", 29900], ["updated_at", Sat, 07 Dec 2013 08:20:37 CST -06:00]]
|
23341
|
+
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
|
23342
|
+
[1m[35m (0.1ms)[0m BEGIN
|
23343
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["available", 19900], ["created_at", Sat, 07 Dec 2013 08:20:37 CST -06:00], ["pending", 19900], ["updated_at", Sat, 07 Dec 2013 08:20:37 CST -06:00]]
|
23344
|
+
[1m[35m (0.2ms)[0m COMMIT
|
23345
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
23346
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["available", 9900], ["created_at", Sat, 07 Dec 2013 08:20:37 CST -06:00], ["pending", 29900], ["updated_at", Sat, 07 Dec 2013 08:20:37 CST -06:00]]
|
23347
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
23348
|
+
[1m[35m (0.1ms)[0m BEGIN
|
23349
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["available", 19900], ["created_at", Sat, 07 Dec 2013 08:20:37 CST -06:00], ["pending", 19900], ["updated_at", Sat, 07 Dec 2013 08:20:37 CST -06:00]]
|
23350
|
+
[1m[35m (0.2ms)[0m COMMIT
|
23351
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "stripe_local_balances"[0m
|
23352
|
+
[1m[35mStripeLocal::Balance Load (0.3ms)[0m SELECT "stripe_local_balances".* FROM "stripe_local_balances" ORDER BY "stripe_local_balances"."id" DESC LIMIT 1
|
23353
|
+
[1m[36mStripeLocal::Balance Load (0.2ms)[0m [1mSELECT "stripe_local_balances".* FROM "stripe_local_balances" ORDER BY "stripe_local_balances"."id" DESC LIMIT 1[0m
|
23354
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "stripe_local_balances" SET "updated_at" = '2013-12-08 14:20:37.237220' WHERE "stripe_local_balances"."id" = 4
|
23355
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "stripe_local_balances"[0m
|
23356
|
+
[1m[35mStripeLocal::Balance Load (0.2ms)[0m SELECT "stripe_local_balances".* FROM "stripe_local_balances" ORDER BY "stripe_local_balances"."id" DESC LIMIT 1
|
23357
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
23358
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["available", 9900], ["created_at", Sat, 07 Dec 2013 08:20:37 CST -06:00], ["pending", 29900], ["updated_at", Sat, 07 Dec 2013 08:20:37 CST -06:00]]
|
23359
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
23360
|
+
[1m[35m (0.1ms)[0m BEGIN
|
23361
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["available", 19900], ["created_at", Sat, 07 Dec 2013 08:20:37 CST -06:00], ["pending", 19900], ["updated_at", Sat, 07 Dec 2013 08:20:37 CST -06:00]]
|
23362
|
+
[1m[35m (0.2ms)[0m COMMIT
|
23363
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
23364
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["available", 9900], ["created_at", Sat, 07 Dec 2013 08:20:37 CST -06:00], ["pending", 29900], ["updated_at", Sat, 07 Dec 2013 08:20:37 CST -06:00]]
|
23365
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
23366
|
+
[1m[35m (0.1ms)[0m BEGIN
|
23367
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["available", 19900], ["created_at", Sat, 07 Dec 2013 08:20:37 CST -06:00], ["pending", 19900], ["updated_at", Sat, 07 Dec 2013 08:20:37 CST -06:00]]
|
23368
|
+
[1m[35m (0.2ms)[0m COMMIT
|
23369
|
+
[1m[36m (0.2ms)[0m [1mSELECT "stripe_local_balances"."available" FROM "stripe_local_balances"[0m
|
23370
|
+
[1m[35m (0.1ms)[0m BEGIN
|
23371
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["available", 9900], ["created_at", Sat, 07 Dec 2013 08:20:37 CST -06:00], ["pending", 29900], ["updated_at", Sat, 07 Dec 2013 08:20:37 CST -06:00]]
|
23372
|
+
[1m[35m (0.3ms)[0m COMMIT
|
23373
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
23374
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["available", 19900], ["created_at", Sat, 07 Dec 2013 08:20:37 CST -06:00], ["pending", 19900], ["updated_at", Sat, 07 Dec 2013 08:20:37 CST -06:00]]
|
23375
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
23376
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "stripe_local_balances"
|
23377
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
23378
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["available", 39800], ["created_at", Sat, 07 Dec 2013 08:20:37 CST -06:00], ["pending", 0], ["updated_at", Sat, 07 Dec 2013 08:20:37 CST -06:00]]
|
23379
|
+
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
|
23380
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "stripe_local_balances"
|
23381
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
23382
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["available", 9900], ["created_at", Sat, 07 Dec 2013 08:20:37 CST -06:00], ["pending", 29900], ["updated_at", Sat, 07 Dec 2013 08:20:37 CST -06:00]]
|
23383
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
23384
|
+
[1m[35m (0.1ms)[0m BEGIN
|
23385
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["available", 19900], ["created_at", Sat, 07 Dec 2013 08:20:37 CST -06:00], ["pending", 19900], ["updated_at", Sat, 07 Dec 2013 08:20:37 CST -06:00]]
|
23386
|
+
[1m[35m (0.3ms)[0m COMMIT
|
23387
|
+
[1m[36m (0.1ms)[0m [1mSELECT "stripe_local_balances"."available" FROM "stripe_local_balances"[0m
|
23388
|
+
[1m[35m (0.1ms)[0m BEGIN
|
23389
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["available", 9900], ["created_at", Sat, 07 Dec 2013 08:20:37 CST -06:00], ["pending", 29900], ["updated_at", Sat, 07 Dec 2013 08:20:37 CST -06:00]]
|
23390
|
+
[1m[35m (0.3ms)[0m COMMIT
|
23391
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
23392
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["available", 19900], ["created_at", Sat, 07 Dec 2013 08:20:37 CST -06:00], ["pending", 19900], ["updated_at", Sat, 07 Dec 2013 08:20:37 CST -06:00]]
|
23393
|
+
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
|
23394
|
+
[1m[35m (0.1ms)[0m SELECT "stripe_local_balances"."pending" FROM "stripe_local_balances"
|
23395
|
+
[1m[36m (0.9ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_discounts" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_transfers" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_cards" DISABLE TRIGGER ALL;ALTER TABLE "clients" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_customers" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_invoices" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_plans" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_line_items" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_charges" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_coupons" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_transactions" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_balances" DISABLE TRIGGER ALL[0m
|
23396
|
+
[1m[35m (1.1ms)[0m select table_name from information_schema.views where table_schema = 'dummy_test'
|
23397
|
+
[1m[36m (20.5ms)[0m [1mTRUNCATE TABLE "stripe_local_discounts", "stripe_local_transfers", "stripe_local_cards", "clients", "stripe_local_customers", "stripe_local_subscriptions", "stripe_local_invoices", "stripe_local_plans", "stripe_local_line_items", "stripe_local_charges", "stripe_local_coupons", "stripe_local_transactions", "stripe_local_balances" RESTART IDENTITY CASCADE;[0m
|
23398
|
+
[1m[35m (0.9ms)[0m ALTER TABLE "stripe_local_discounts" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_cards" ENABLE TRIGGER ALL;ALTER TABLE "clients" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_customers" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_transfers" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_invoices" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_plans" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_line_items" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_charges" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_coupons" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_transactions" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_balances" ENABLE TRIGGER ALL
|
23399
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
23400
|
+
[1m[35m (0.1ms)[0m BEGIN
|
23401
|
+
[1m[36mSQL (6.3ms)[0m [1mINSERT INTO "stripe_local_cards" ("brand", "created_at", "customer_id", "cvc_check", "exp_month", "exp_year", "id", "last4", "name", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id"[0m [["brand", "Visa"], ["created_at", Sat, 07 Dec 2013 08:25:48 CST -06:00], ["customer_id", "cus_2J7PZ8ncCbR10Z"], ["cvc_check", "pass"], ["exp_month", 1], ["exp_year", 2014], ["id", "cc_2J7Pscoh4jvFjJ"], ["last4", "4242"], ["name", "Connor Tumbleson"], ["updated_at", Sat, 07 Dec 2013 08:25:48 CST -06:00]]
|
23402
|
+
[1m[35m (0.3ms)[0m COMMIT
|
23403
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
23404
|
+
[1m[35mSQL (1.1ms)[0m INSERT INTO "stripe_local_line_items" ("amount", "created_at", "id", "invoice_id", "period_end", "period_start", "plan_id", "proration", "quantity", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["amount", 9900], ["created_at", Sat, 07 Dec 2013 08:25:48 CST -06:00], ["id", "su_1bfTBoL3o7blah"], ["invoice_id", "in_2blahblahagain"], ["period_end", Thu, 06 Jun 2013 18:23:47 CDT -05:00], ["period_start", Tue, 07 May 2013 18:23:47 CDT -05:00], ["plan_id", "HR99"], ["proration", false], ["quantity", 1], ["updated_at", Sat, 07 Dec 2013 08:25:48 CST -06:00]]
|
23405
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
23406
|
+
[1m[35m (0.1ms)[0m BEGIN
|
23407
|
+
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO "stripe_local_invoices" ("amount_due", "attempt_count", "attempted", "charge_id", "closed", "created_at", "customer_id", "date", "discount", "ending_balance", "id", "paid", "period_end", "period_start", "starting_balance", "subtotal", "total", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18) RETURNING "id"[0m [["amount_due", 9900], ["attempt_count", 0], ["attempted", true], ["charge_id", "ch_blahblahblah"], ["closed", true], ["created_at", Sat, 07 Dec 2013 08:25:49 CST -06:00], ["customer_id", "cus_1A3zUmx7NpUgrT"], ["date", Tue, 07 May 2013 18:23:47 CDT -05:00], ["discount", nil], ["ending_balance", 0], ["id", "in_2blahblahagain"], ["paid", true], ["period_end", Tue, 07 May 2013 18:23:47 CDT -05:00], ["period_start", Tue, 07 May 2013 18:23:47 CDT -05:00], ["starting_balance", 0], ["subtotal", 9900], ["total", 9900], ["updated_at", Sat, 07 Dec 2013 08:25:49 CST -06:00]]
|
23408
|
+
[1m[35m (0.3ms)[0m COMMIT
|
23409
|
+
[1m[36mStripeLocal::LineItem Load (0.7ms)[0m [1mSELECT "stripe_local_line_items".* FROM "stripe_local_line_items" WHERE "stripe_local_line_items"."invoice_id" = $1[0m [["invoice_id", "in_2blahblahagain"]]
|
23410
|
+
[1m[35m (0.2ms)[0m BEGIN
|
23411
|
+
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO "stripe_local_subscriptions" ("created_at", "current_period_end", "current_period_start", "customer_id", "plan_id", "start", "status", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["created_at", Sat, 07 Dec 2013 08:25:49 CST -06:00], ["current_period_end", Wed, 11 Dec 2013 15:32:46 CST -06:00], ["current_period_start", Mon, 11 Nov 2013 15:32:46 CST -06:00], ["customer_id", "cus_2vIuZmAfWK89Yk"], ["plan_id", "HR99"], ["start", Mon, 11 Nov 2013 15:32:46 CST -06:00], ["status", "active"], ["updated_at", Sat, 07 Dec 2013 08:25:49 CST -06:00]]
|
23412
|
+
[1m[35m (0.3ms)[0m COMMIT
|
23413
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
23414
|
+
[1m[35mSQL (1.2ms)[0m INSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["available", 9900], ["created_at", Sat, 07 Dec 2013 08:25:49 CST -06:00], ["pending", 29900], ["updated_at", Sat, 07 Dec 2013 08:25:49 CST -06:00]]
|
23415
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
23416
|
+
[1m[35m (0.1ms)[0m BEGIN
|
23417
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["available", 19900], ["created_at", Sat, 07 Dec 2013 08:25:49 CST -06:00], ["pending", 19900], ["updated_at", Sat, 07 Dec 2013 08:25:49 CST -06:00]]
|
23418
|
+
[1m[35m (0.3ms)[0m COMMIT
|
23419
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
23420
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["available", 9900], ["created_at", Sat, 07 Dec 2013 08:25:49 CST -06:00], ["pending", 29900], ["updated_at", Sat, 07 Dec 2013 08:25:49 CST -06:00]]
|
23421
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
23422
|
+
[1m[35m (0.1ms)[0m BEGIN
|
23423
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["available", 19900], ["created_at", Sat, 07 Dec 2013 08:25:49 CST -06:00], ["pending", 19900], ["updated_at", Sat, 07 Dec 2013 08:25:49 CST -06:00]]
|
23424
|
+
[1m[35m (0.2ms)[0m COMMIT
|
23425
|
+
[1m[36m (0.4ms)[0m [1mSELECT "stripe_local_balances"."pending" FROM "stripe_local_balances"[0m
|
23426
|
+
[1m[35m (0.1ms)[0m BEGIN
|
23427
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["available", 9900], ["created_at", Sat, 07 Dec 2013 08:25:49 CST -06:00], ["pending", 29900], ["updated_at", Sat, 07 Dec 2013 08:25:49 CST -06:00]]
|
23428
|
+
[1m[35m (0.3ms)[0m COMMIT
|
23429
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
23430
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["available", 19900], ["created_at", Sat, 07 Dec 2013 08:25:49 CST -06:00], ["pending", 19900], ["updated_at", Sat, 07 Dec 2013 08:25:49 CST -06:00]]
|
23431
|
+
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
|
23432
|
+
[1m[35m (0.1ms)[0m SELECT "stripe_local_balances"."available" FROM "stripe_local_balances"
|
23433
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
23434
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["available", 9900], ["created_at", Sat, 07 Dec 2013 08:25:49 CST -06:00], ["pending", 29900], ["updated_at", Sat, 07 Dec 2013 08:25:49 CST -06:00]]
|
23435
|
+
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
|
23436
|
+
[1m[35m (0.0ms)[0m BEGIN
|
23437
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["available", 19900], ["created_at", Sat, 07 Dec 2013 08:25:49 CST -06:00], ["pending", 19900], ["updated_at", Sat, 07 Dec 2013 08:25:49 CST -06:00]]
|
23438
|
+
[1m[35m (0.2ms)[0m COMMIT
|
23439
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
23440
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["available", 9900], ["created_at", Sat, 07 Dec 2013 08:25:49 CST -06:00], ["pending", 29900], ["updated_at", Sat, 07 Dec 2013 08:25:49 CST -06:00]]
|
23441
|
+
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
|
23442
|
+
[1m[35m (0.1ms)[0m BEGIN
|
23443
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["available", 19900], ["created_at", Sat, 07 Dec 2013 08:25:49 CST -06:00], ["pending", 19900], ["updated_at", Sat, 07 Dec 2013 08:25:49 CST -06:00]]
|
23444
|
+
[1m[35m (0.2ms)[0m COMMIT
|
23445
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "stripe_local_balances"[0m
|
23446
|
+
[1m[35m (0.0ms)[0m BEGIN
|
23447
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["available", 39800], ["created_at", Sat, 07 Dec 2013 08:25:49 CST -06:00], ["pending", 0], ["updated_at", Sat, 07 Dec 2013 08:25:49 CST -06:00]]
|
23448
|
+
[1m[35m (0.2ms)[0m COMMIT
|
23449
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "stripe_local_balances"[0m
|
23450
|
+
[1m[35m (0.1ms)[0m BEGIN
|
23451
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["available", 9900], ["created_at", Sat, 07 Dec 2013 08:25:49 CST -06:00], ["pending", 29900], ["updated_at", Sat, 07 Dec 2013 08:25:49 CST -06:00]]
|
23452
|
+
[1m[35m (0.3ms)[0m COMMIT
|
23453
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
23454
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["available", 19900], ["created_at", Sat, 07 Dec 2013 08:25:49 CST -06:00], ["pending", 19900], ["updated_at", Sat, 07 Dec 2013 08:25:49 CST -06:00]]
|
23455
|
+
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
|
23456
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "stripe_local_balances"
|
23457
|
+
[1m[36mStripeLocal::Balance Load (0.3ms)[0m [1mSELECT "stripe_local_balances".* FROM "stripe_local_balances" ORDER BY "stripe_local_balances"."id" DESC LIMIT 1[0m
|
23458
|
+
[1m[35mStripeLocal::Balance Load (0.2ms)[0m SELECT "stripe_local_balances".* FROM "stripe_local_balances" ORDER BY "stripe_local_balances"."id" DESC LIMIT 1
|
23459
|
+
[1m[36mSQL (0.5ms)[0m [1mUPDATE "stripe_local_balances" SET "updated_at" = '2013-12-08 14:25:49.160639' WHERE "stripe_local_balances"."id" = 13[0m
|
23460
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "stripe_local_balances"
|
23461
|
+
[1m[36mStripeLocal::Balance Load (0.2ms)[0m [1mSELECT "stripe_local_balances".* FROM "stripe_local_balances" ORDER BY "stripe_local_balances"."id" DESC LIMIT 1[0m
|
23462
|
+
[1m[35m (0.1ms)[0m BEGIN
|
23463
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["available", 9900], ["created_at", Sat, 07 Dec 2013 08:25:49 CST -06:00], ["pending", 29900], ["updated_at", Sat, 07 Dec 2013 08:25:49 CST -06:00]]
|
23464
|
+
[1m[35m (0.3ms)[0m COMMIT
|
23465
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
23466
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["available", 19900], ["created_at", Sat, 07 Dec 2013 08:25:49 CST -06:00], ["pending", 19900], ["updated_at", Sat, 07 Dec 2013 08:25:49 CST -06:00]]
|
23467
|
+
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
|
23468
|
+
[1m[35m (0.1ms)[0m SELECT "stripe_local_balances"."available" FROM "stripe_local_balances"
|
23469
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
23470
|
+
[1m[35mSQL (1.5ms)[0m INSERT INTO "stripe_local_transactions" ("amount", "available_on", "created", "created_at", "description", "fee", "id", "net", "source_id", "source_type", "status", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id" [["amount", -100], ["available_on", Mon, 07 Oct 2013 05:01:01 CDT -05:00], ["created", Mon, 30 Sep 2013 05:01:01 CDT -05:00], ["created_at", Sat, 07 Dec 2013 08:25:49 CST -06:00], ["description", "a dollar for Don Atello"], ["fee", 25], ["id", "txn_2fOGkiBkDgpObU"], ["net", -125], ["source_id", "tr_2fOGfKABdHu3uf"], ["source_type", "transfer"], ["status", "available"], ["updated_at", Sat, 07 Dec 2013 08:25:49 CST -06:00]]
|
23471
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
23472
|
+
[1m[35m (0.2ms)[0m BEGIN
|
23473
|
+
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO "stripe_local_transfers" ("amount", "created_at", "date", "description", "id", "metadata", "status", "transaction_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id"[0m [["amount", 100], ["created_at", Sat, 07 Dec 2013 08:25:49 CST -06:00], ["date", Mon, 30 Sep 2013 05:01:01 CDT -05:00], ["description", "a dollar for Don Atello"], ["id", "tr_2fOGfKABdHu3uf"], ["metadata", "{}"], ["status", "paid"], ["transaction_id", "txn_2fOGkiBkDgpObU"], ["updated_at", Sat, 07 Dec 2013 08:25:49 CST -06:00]]
|
23474
|
+
[1m[35m (0.3ms)[0m COMMIT
|
23475
|
+
[1m[36mStripeLocal::Plan Load (0.2ms)[0m [1mSELECT "stripe_local_plans".* FROM "stripe_local_plans" WHERE "stripe_local_plans"."id" = 'New_Plan' LIMIT 1[0m
|
23476
|
+
[1m[35m (0.2ms)[0m BEGIN
|
23477
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "stripe_local_plans" ("amount", "created_at", "id", "interval", "name", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["amount", 2999], ["created_at", Sat, 07 Dec 2013 08:25:49 CST -06:00], ["id", "New_Plan"], ["interval", "month"], ["name", "New Plan"], ["updated_at", Sat, 07 Dec 2013 08:25:49 CST -06:00]]
|
23478
|
+
[1m[35m (0.3ms)[0m COMMIT
|
23479
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
23480
|
+
[1m[35mSQL (1.2ms)[0m INSERT INTO "stripe_local_charges" ("amount", "card_id", "created", "created_at", "customer_id", "id", "invoice_id", "metadata", "paid", "transaction_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11) RETURNING "id" [["amount", 9900], ["card_id", "cc_1eX7GyRo6wivEf"], ["created", Thu, 01 Aug 2013 18:08:14 CDT -05:00], ["created_at", Sat, 07 Dec 2013 08:25:49 CST -06:00], ["customer_id", "cus_1eX7onie2gq8m1"], ["id", "ch_2wiSyZQkZw8F50"], ["invoice_id", "in_2whTLSkV2ItHAv"], ["metadata", "{\"desc\":\"a charge object\",\"number\":1}"], ["paid", true], ["transaction_id", "txn_2wiSFq1N6BTZTQ"], ["updated_at", Sat, 07 Dec 2013 08:25:49 CST -06:00]]
|
23481
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
23482
|
+
[1m[35mStripeLocal::Customer Load (0.4ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
|
23483
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
23484
|
+
[1m[35mStripeLocal::Customer Load (0.5ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
|
23485
|
+
[1m[36mStripeLocal::Customer Load (0.3ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1[0m
|
23486
|
+
[1m[35mStripeLocal::Customer Load (0.3ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
|
23487
|
+
[1m[36mStripeLocal::Customer Load (0.3ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1[0m
|
23488
|
+
[1m[35mStripeLocal::Customer Load (0.5ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
|
23489
|
+
[1m[36mStripeLocal::Customer Load (0.3ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1[0m
|
23490
|
+
[1m[35mStripeLocal::Customer Load (0.3ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
|
23491
|
+
[1m[36mStripeLocal::Customer Load (0.2ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1[0m
|
23492
|
+
[1m[35mStripeLocal::Customer Load (0.2ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
|
23493
|
+
[1m[36mStripeLocal::Customer Load (0.2ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1[0m
|
23494
|
+
[1m[35mStripeLocal::Customer Load (0.2ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
|
23495
|
+
[1m[36mStripeLocal::Customer Load (0.2ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1[0m
|
23496
|
+
[1m[35mStripeLocal::Customer Load (0.2ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
|
23497
|
+
[1m[36mStripeLocal::Customer Load (0.3ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1[0m
|
23498
|
+
[1m[35mStripeLocal::Customer Load (0.2ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
|
23499
|
+
[1m[36mStripeLocal::Customer Load (0.2ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1[0m
|
23500
|
+
[1m[35mSQL (0.8ms)[0m INSERT INTO "clients" ("email", "name", "password") VALUES ($1, $2, $3) RETURNING "id" [["email", "test@test.com"], ["name", "Test Case"], ["password", "password"]]
|
23501
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
23502
|
+
[1m[35mStripeLocal::Customer Load (0.5ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" = 1 LIMIT 1
|
23503
|
+
[1m[36mStripeLocal::Customer Load (0.3ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" = 1 LIMIT 1[0m
|
23504
|
+
[1m[35m (0.1ms)[0m BEGIN
|
23505
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "stripe_local_cards" ("brand", "created_at", "customer_id", "cvc_check", "exp_month", "exp_year", "id", "last4", "name", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id"[0m [["brand", "Visa"], ["created_at", Sat, 07 Dec 2013 08:25:49 CST -06:00], ["customer_id", "cus_123"], ["cvc_check", "pass"], ["exp_month", 8], ["exp_year", 2014], ["id", "card_102Y2J1Cmf55uWiejglofO7j"], ["last4", "4242"], ["name", "Test Case"], ["updated_at", Sat, 07 Dec 2013 08:25:49 CST -06:00]]
|
23506
|
+
[1m[35m (0.2ms)[0m COMMIT
|
23507
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
23508
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "stripe_local_subscriptions" ("created_at", "current_period_end", "current_period_start", "customer_id", "plan_id", "start", "status", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["created_at", Sat, 07 Dec 2013 08:25:49 CST -06:00], ["current_period_end", Thu, 10 Oct 2013 13:52:04 CDT -05:00], ["current_period_start", Tue, 10 Sep 2013 13:52:04 CDT -05:00], ["customer_id", "cus_123"], ["plan_id", "GIN100"], ["start", Tue, 10 Sep 2013 13:52:04 CDT -05:00], ["status", "active"], ["updated_at", Sat, 07 Dec 2013 08:25:49 CST -06:00]]
|
23509
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
23510
|
+
[1m[35m (0.1ms)[0m BEGIN
|
23511
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "stripe_local_customers" ("account_balance", "created_at", "default_card", "delinquent", "description", "email", "id", "model_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id"[0m [["account_balance", 0], ["created_at", Sat, 07 Dec 2013 08:25:49 CST -06:00], ["default_card", "card_102Y2J1Cmf55uWiejglofO7j"], ["delinquent", false], ["description", "On September 10th, Test signed up for CA50."], ["email", "test@test.com"], ["id", "cus_123"], ["model_id", 1], ["updated_at", Sat, 07 Dec 2013 08:25:49 CST -06:00]]
|
23512
|
+
[1m[35m (0.3ms)[0m COMMIT
|
23513
|
+
[1m[36mStripeLocal::Customer Load (0.3ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" = 1 LIMIT 1[0m
|
23514
|
+
[1m[35mStripeLocal::Subscription Load (0.3ms)[0m SELECT "stripe_local_subscriptions".* FROM "stripe_local_subscriptions" WHERE "stripe_local_subscriptions"."customer_id" = 'cus_123' LIMIT 1
|
23515
|
+
[1m[36m (1.0ms)[0m [1mALTER TABLE "stripe_local_discounts" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_cards" DISABLE TRIGGER ALL;ALTER TABLE "clients" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_customers" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_transfers" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_invoices" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_plans" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_line_items" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_charges" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_coupons" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_transactions" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_balances" DISABLE TRIGGER ALL[0m
|
23516
|
+
[1m[35m (1.6ms)[0m select table_name from information_schema.views where table_schema = 'dummy_test'
|
23517
|
+
[1m[36m (24.1ms)[0m [1mTRUNCATE TABLE "stripe_local_discounts", "stripe_local_cards", "clients", "stripe_local_customers", "stripe_local_transfers", "stripe_local_subscriptions", "stripe_local_invoices", "stripe_local_plans", "stripe_local_line_items", "stripe_local_charges", "stripe_local_coupons", "stripe_local_transactions", "stripe_local_balances" RESTART IDENTITY CASCADE;[0m
|
23518
|
+
[1m[35m (0.9ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_discounts" ENABLE TRIGGER ALL;ALTER TABLE "clients" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_customers" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_transfers" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_cards" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_invoices" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_plans" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_line_items" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_charges" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_coupons" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_transactions" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_balances" ENABLE TRIGGER ALL
|
23519
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
23520
|
+
[1m[35m (0.2ms)[0m BEGIN
|
23521
|
+
[1m[36mSQL (5.9ms)[0m [1mINSERT INTO "stripe_local_transactions" ("amount", "available_on", "created", "created_at", "description", "fee", "id", "net", "source_id", "source_type", "status", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id"[0m [["amount", -100], ["available_on", Mon, 07 Oct 2013 05:01:01 CDT -05:00], ["created", Mon, 30 Sep 2013 05:01:01 CDT -05:00], ["created_at", Sat, 07 Dec 2013 08:25:53 CST -06:00], ["description", "a dollar for Don Atello"], ["fee", 25], ["id", "txn_2fOGkiBkDgpObU"], ["net", -125], ["source_id", "tr_2fOGfKABdHu3uf"], ["source_type", "transfer"], ["status", "available"], ["updated_at", Sat, 07 Dec 2013 08:25:53 CST -06:00]]
|
23522
|
+
[1m[35m (0.3ms)[0m COMMIT
|
23523
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
23524
|
+
[1m[35mSQL (1.2ms)[0m INSERT INTO "stripe_local_charges" ("amount", "card_id", "created", "created_at", "customer_id", "id", "invoice_id", "metadata", "paid", "transaction_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11) RETURNING "id" [["amount", 9900], ["card_id", "cc_1eX7GyRo6wivEf"], ["created", Thu, 01 Aug 2013 18:08:14 CDT -05:00], ["created_at", Sat, 07 Dec 2013 08:25:53 CST -06:00], ["customer_id", "cus_1eX7onie2gq8m1"], ["id", "ch_2wiSyZQkZw8F50"], ["invoice_id", "in_2whTLSkV2ItHAv"], ["metadata", "{\"desc\":\"a charge object\",\"number\":1}"], ["paid", true], ["transaction_id", "txn_2wiSFq1N6BTZTQ"], ["updated_at", Sat, 07 Dec 2013 08:25:53 CST -06:00]]
|
23525
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
23526
|
+
[1m[35m (0.2ms)[0m BEGIN
|
23527
|
+
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO "stripe_local_transfers" ("amount", "created_at", "date", "description", "id", "metadata", "status", "transaction_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id"[0m [["amount", 100], ["created_at", Sat, 07 Dec 2013 08:25:53 CST -06:00], ["date", Mon, 30 Sep 2013 05:01:01 CDT -05:00], ["description", "a dollar for Don Atello"], ["id", "tr_2fOGfKABdHu3uf"], ["metadata", "{}"], ["status", "paid"], ["transaction_id", "txn_2fOGkiBkDgpObU"], ["updated_at", Sat, 07 Dec 2013 08:25:53 CST -06:00]]
|
23528
|
+
[1m[35m (0.3ms)[0m COMMIT
|
23529
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
23530
|
+
[1m[35mSQL (1.1ms)[0m INSERT INTO "stripe_local_cards" ("brand", "created_at", "customer_id", "cvc_check", "exp_month", "exp_year", "id", "last4", "name", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["brand", "Visa"], ["created_at", Sat, 07 Dec 2013 08:25:53 CST -06:00], ["customer_id", "cus_2J7PZ8ncCbR10Z"], ["cvc_check", "pass"], ["exp_month", 1], ["exp_year", 2014], ["id", "cc_2J7Pscoh4jvFjJ"], ["last4", "4242"], ["name", "Connor Tumbleson"], ["updated_at", Sat, 07 Dec 2013 08:25:53 CST -06:00]]
|
23531
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
23532
|
+
[1m[35m (0.1ms)[0m BEGIN
|
23533
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["available", 9900], ["created_at", Sat, 07 Dec 2013 08:25:53 CST -06:00], ["pending", 29900], ["updated_at", Sat, 07 Dec 2013 08:25:53 CST -06:00]]
|
23534
|
+
[1m[35m (0.3ms)[0m COMMIT
|
23535
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
23536
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["available", 19900], ["created_at", Sat, 07 Dec 2013 08:25:53 CST -06:00], ["pending", 19900], ["updated_at", Sat, 07 Dec 2013 08:25:53 CST -06:00]]
|
23537
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
23538
|
+
[1m[35m (0.2ms)[0m SELECT "stripe_local_balances"."pending" FROM "stripe_local_balances"
|
23539
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
23540
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["available", 9900], ["created_at", Sat, 07 Dec 2013 08:25:53 CST -06:00], ["pending", 29900], ["updated_at", Sat, 07 Dec 2013 08:25:53 CST -06:00]]
|
23541
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
23542
|
+
[1m[35m (0.1ms)[0m BEGIN
|
23543
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["available", 19900], ["created_at", Sat, 07 Dec 2013 08:25:53 CST -06:00], ["pending", 19900], ["updated_at", Sat, 07 Dec 2013 08:25:53 CST -06:00]]
|
23544
|
+
[1m[35m (0.3ms)[0m COMMIT
|
23545
|
+
[1m[36m (0.2ms)[0m [1mSELECT "stripe_local_balances"."available" FROM "stripe_local_balances"[0m
|
23546
|
+
[1m[35m (0.1ms)[0m BEGIN
|
23547
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["available", 9900], ["created_at", Sat, 07 Dec 2013 08:25:53 CST -06:00], ["pending", 29900], ["updated_at", Sat, 07 Dec 2013 08:25:53 CST -06:00]]
|
23548
|
+
[1m[35m (0.3ms)[0m COMMIT
|
23549
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
23550
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["available", 19900], ["created_at", Sat, 07 Dec 2013 08:25:53 CST -06:00], ["pending", 19900], ["updated_at", Sat, 07 Dec 2013 08:25:53 CST -06:00]]
|
23551
|
+
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
|
23552
|
+
[1m[35m (0.1ms)[0m BEGIN
|
23553
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["available", 9900], ["created_at", Sat, 07 Dec 2013 08:25:53 CST -06:00], ["pending", 29900], ["updated_at", Sat, 07 Dec 2013 08:25:53 CST -06:00]]
|
23554
|
+
[1m[35m (0.3ms)[0m COMMIT
|
23555
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
23556
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["available", 19900], ["created_at", Sat, 07 Dec 2013 08:25:53 CST -06:00], ["pending", 19900], ["updated_at", Sat, 07 Dec 2013 08:25:53 CST -06:00]]
|
23557
|
+
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
|
23558
|
+
[1m[35m (0.1ms)[0m BEGIN
|
23559
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["available", 9900], ["created_at", Sat, 07 Dec 2013 08:25:53 CST -06:00], ["pending", 29900], ["updated_at", Sat, 07 Dec 2013 08:25:53 CST -06:00]]
|
23560
|
+
[1m[35m (0.3ms)[0m COMMIT
|
23561
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
23562
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["available", 19900], ["created_at", Sat, 07 Dec 2013 08:25:53 CST -06:00], ["pending", 19900], ["updated_at", Sat, 07 Dec 2013 08:25:53 CST -06:00]]
|
23563
|
+
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
|
23564
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "stripe_local_balances"
|
23565
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
23566
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["available", 39800], ["created_at", Sat, 07 Dec 2013 08:25:53 CST -06:00], ["pending", 0], ["updated_at", Sat, 07 Dec 2013 08:25:53 CST -06:00]]
|
23567
|
+
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
|
23568
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "stripe_local_balances"
|
23569
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
23570
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["available", 9900], ["created_at", Sat, 07 Dec 2013 08:25:53 CST -06:00], ["pending", 29900], ["updated_at", Sat, 07 Dec 2013 08:25:53 CST -06:00]]
|
23571
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
23572
|
+
[1m[35m (0.1ms)[0m BEGIN
|
23573
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["available", 19900], ["created_at", Sat, 07 Dec 2013 08:25:53 CST -06:00], ["pending", 19900], ["updated_at", Sat, 07 Dec 2013 08:25:53 CST -06:00]]
|
23574
|
+
[1m[35m (0.2ms)[0m COMMIT
|
23575
|
+
[1m[36m (0.1ms)[0m [1mSELECT "stripe_local_balances"."available" FROM "stripe_local_balances"[0m
|
23576
|
+
[1m[35m (0.1ms)[0m BEGIN
|
23577
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["available", 9900], ["created_at", Sat, 07 Dec 2013 08:25:53 CST -06:00], ["pending", 29900], ["updated_at", Sat, 07 Dec 2013 08:25:53 CST -06:00]]
|
23578
|
+
[1m[35m (0.3ms)[0m COMMIT
|
23579
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
23580
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["available", 19900], ["created_at", Sat, 07 Dec 2013 08:25:53 CST -06:00], ["pending", 19900], ["updated_at", Sat, 07 Dec 2013 08:25:53 CST -06:00]]
|
23581
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
23582
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "stripe_local_balances"
|
23583
|
+
[1m[36mStripeLocal::Balance Load (0.5ms)[0m [1mSELECT "stripe_local_balances".* FROM "stripe_local_balances" ORDER BY "stripe_local_balances"."id" DESC LIMIT 1[0m
|
23584
|
+
[1m[35mStripeLocal::Balance Load (0.3ms)[0m SELECT "stripe_local_balances".* FROM "stripe_local_balances" ORDER BY "stripe_local_balances"."id" DESC LIMIT 1
|
23585
|
+
[1m[36mSQL (0.5ms)[0m [1mUPDATE "stripe_local_balances" SET "updated_at" = '2013-12-08 14:25:53.325828' WHERE "stripe_local_balances"."id" = 15[0m
|
23586
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "stripe_local_balances"
|
23587
|
+
[1m[36mStripeLocal::Balance Load (0.2ms)[0m [1mSELECT "stripe_local_balances".* FROM "stripe_local_balances" ORDER BY "stripe_local_balances"."id" DESC LIMIT 1[0m
|
23588
|
+
[1m[35mStripeLocal::Customer Load (0.3ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
|
23589
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
23590
|
+
[1m[35mStripeLocal::Customer Load (0.3ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
|
23591
|
+
[1m[36mStripeLocal::Customer Load (0.2ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1[0m
|
23592
|
+
[1m[35mStripeLocal::Customer Load (0.2ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
|
23593
|
+
[1m[36mStripeLocal::Customer Load (0.2ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1[0m
|
23594
|
+
[1m[35mStripeLocal::Customer Load (0.3ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
|
23595
|
+
[1m[36mStripeLocal::Customer Load (0.2ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1[0m
|
23596
|
+
[1m[35mStripeLocal::Customer Load (0.2ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
|
23597
|
+
[1m[36mStripeLocal::Customer Load (0.1ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1[0m
|
23598
|
+
[1m[35mStripeLocal::Customer Load (0.2ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
|
23599
|
+
[1m[36mStripeLocal::Customer Load (0.2ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1[0m
|
23600
|
+
[1m[35mStripeLocal::Customer Load (0.2ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
|
23601
|
+
[1m[36mStripeLocal::Customer Load (0.1ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1[0m
|
23602
|
+
[1m[35mStripeLocal::Customer Load (0.2ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
|
23603
|
+
[1m[36mStripeLocal::Customer Load (0.2ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1[0m
|
23604
|
+
[1m[35mStripeLocal::Customer Load (0.2ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
|
23605
|
+
[1m[36mStripeLocal::Customer Load (0.3ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1[0m
|
23606
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "clients" ("email", "name", "password") VALUES ($1, $2, $3) RETURNING "id" [["email", "test@test.com"], ["name", "Test Case"], ["password", "password"]]
|
23607
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
23608
|
+
[1m[35mStripeLocal::Customer Load (0.2ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" = 1 LIMIT 1
|
23609
|
+
[1m[36mStripeLocal::Customer Load (0.1ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" = 1 LIMIT 1[0m
|
23610
|
+
[1m[35m (0.1ms)[0m BEGIN
|
23611
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "stripe_local_cards" ("brand", "created_at", "customer_id", "cvc_check", "exp_month", "exp_year", "id", "last4", "name", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id"[0m [["brand", "Visa"], ["created_at", Sat, 07 Dec 2013 08:25:53 CST -06:00], ["customer_id", "cus_123"], ["cvc_check", "pass"], ["exp_month", 8], ["exp_year", 2014], ["id", "card_102Y2J1Cmf55uWiejglofO7j"], ["last4", "4242"], ["name", "Test Case"], ["updated_at", Sat, 07 Dec 2013 08:25:53 CST -06:00]]
|
23612
|
+
[1m[35m (0.2ms)[0m COMMIT
|
23613
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
23614
|
+
[1m[35mSQL (1.2ms)[0m INSERT INTO "stripe_local_subscriptions" ("created_at", "current_period_end", "current_period_start", "customer_id", "plan_id", "start", "status", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["created_at", Sat, 07 Dec 2013 08:25:53 CST -06:00], ["current_period_end", Thu, 10 Oct 2013 13:52:04 CDT -05:00], ["current_period_start", Tue, 10 Sep 2013 13:52:04 CDT -05:00], ["customer_id", "cus_123"], ["plan_id", "GIN100"], ["start", Tue, 10 Sep 2013 13:52:04 CDT -05:00], ["status", "active"], ["updated_at", Sat, 07 Dec 2013 08:25:53 CST -06:00]]
|
23615
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
23616
|
+
[1m[35m (0.2ms)[0m BEGIN
|
23617
|
+
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO "stripe_local_customers" ("account_balance", "created_at", "default_card", "delinquent", "description", "email", "id", "model_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id"[0m [["account_balance", 0], ["created_at", Sat, 07 Dec 2013 08:25:53 CST -06:00], ["default_card", "card_102Y2J1Cmf55uWiejglofO7j"], ["delinquent", false], ["description", "On September 10th, Test signed up for CA50."], ["email", "test@test.com"], ["id", "cus_123"], ["model_id", 1], ["updated_at", Sat, 07 Dec 2013 08:25:53 CST -06:00]]
|
23618
|
+
[1m[35m (0.3ms)[0m COMMIT
|
23619
|
+
[1m[36mStripeLocal::Customer Load (0.5ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" = 1 LIMIT 1[0m
|
23620
|
+
[1m[35mStripeLocal::Subscription Load (0.9ms)[0m SELECT "stripe_local_subscriptions".* FROM "stripe_local_subscriptions" WHERE "stripe_local_subscriptions"."customer_id" = 'cus_123' LIMIT 1
|
23621
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
23622
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "stripe_local_subscriptions" ("created_at", "current_period_end", "current_period_start", "customer_id", "plan_id", "start", "status", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["created_at", Sat, 07 Dec 2013 08:25:53 CST -06:00], ["current_period_end", Wed, 11 Dec 2013 15:32:46 CST -06:00], ["current_period_start", Mon, 11 Nov 2013 15:32:46 CST -06:00], ["customer_id", "cus_2vIuZmAfWK89Yk"], ["plan_id", "HR99"], ["start", Mon, 11 Nov 2013 15:32:46 CST -06:00], ["status", "active"], ["updated_at", Sat, 07 Dec 2013 08:25:53 CST -06:00]]
|
23623
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
23624
|
+
[1m[35m (0.2ms)[0m BEGIN
|
23625
|
+
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO "stripe_local_line_items" ("amount", "created_at", "id", "invoice_id", "period_end", "period_start", "plan_id", "proration", "quantity", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id"[0m [["amount", 9900], ["created_at", Sat, 07 Dec 2013 08:25:53 CST -06:00], ["id", "su_1bfTBoL3o7blah"], ["invoice_id", "in_2blahblahagain"], ["period_end", Thu, 06 Jun 2013 18:23:47 CDT -05:00], ["period_start", Tue, 07 May 2013 18:23:47 CDT -05:00], ["plan_id", "HR99"], ["proration", false], ["quantity", 1], ["updated_at", Sat, 07 Dec 2013 08:25:53 CST -06:00]]
|
23626
|
+
[1m[35m (0.2ms)[0m COMMIT
|
23627
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
23628
|
+
[1m[35mSQL (1.1ms)[0m INSERT INTO "stripe_local_invoices" ("amount_due", "attempt_count", "attempted", "charge_id", "closed", "created_at", "customer_id", "date", "discount", "ending_balance", "id", "paid", "period_end", "period_start", "starting_balance", "subtotal", "total", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18) RETURNING "id" [["amount_due", 9900], ["attempt_count", 0], ["attempted", true], ["charge_id", "ch_blahblahblah"], ["closed", true], ["created_at", Sat, 07 Dec 2013 08:25:53 CST -06:00], ["customer_id", "cus_1A3zUmx7NpUgrT"], ["date", Tue, 07 May 2013 18:23:47 CDT -05:00], ["discount", nil], ["ending_balance", 0], ["id", "in_2blahblahagain"], ["paid", true], ["period_end", Tue, 07 May 2013 18:23:47 CDT -05:00], ["period_start", Tue, 07 May 2013 18:23:47 CDT -05:00], ["starting_balance", 0], ["subtotal", 9900], ["total", 9900], ["updated_at", Sat, 07 Dec 2013 08:25:53 CST -06:00]]
|
23629
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
23630
|
+
[1m[35mStripeLocal::LineItem Load (0.7ms)[0m SELECT "stripe_local_line_items".* FROM "stripe_local_line_items" WHERE "stripe_local_line_items"."invoice_id" = $1 [["invoice_id", "in_2blahblahagain"]]
|
23631
|
+
[1m[36mStripeLocal::Plan Load (0.3ms)[0m [1mSELECT "stripe_local_plans".* FROM "stripe_local_plans" WHERE "stripe_local_plans"."id" = 'New_Plan' LIMIT 1[0m
|
23632
|
+
[1m[35m (0.1ms)[0m BEGIN
|
23633
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "stripe_local_plans" ("amount", "created_at", "id", "interval", "name", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["amount", 2999], ["created_at", Sat, 07 Dec 2013 08:25:53 CST -06:00], ["id", "New_Plan"], ["interval", "month"], ["name", "New Plan"], ["updated_at", Sat, 07 Dec 2013 08:25:53 CST -06:00]]
|
23634
|
+
[1m[35m (1.1ms)[0m COMMIT
|
23635
|
+
[1m[36m (8.5ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_discounts" DISABLE TRIGGER ALL;ALTER TABLE "clients" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_customers" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_transfers" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_cards" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_invoices" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_plans" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_line_items" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_charges" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_coupons" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_transactions" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_balances" DISABLE TRIGGER ALL[0m
|
23636
|
+
[1m[35m (11.3ms)[0m select table_name from information_schema.views where table_schema = 'dummy_test'
|
23637
|
+
[1m[36m (82.1ms)[0m [1mTRUNCATE TABLE "stripe_local_discounts", "clients", "stripe_local_customers", "stripe_local_transfers", "stripe_local_cards", "stripe_local_subscriptions", "stripe_local_invoices", "stripe_local_plans", "stripe_local_line_items", "stripe_local_charges", "stripe_local_coupons", "stripe_local_transactions", "stripe_local_balances" RESTART IDENTITY CASCADE;[0m
|
23638
|
+
[1m[35m (0.5ms)[0m ALTER TABLE "stripe_local_discounts" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_customers" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_transfers" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_cards" ENABLE TRIGGER ALL;ALTER TABLE "clients" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_invoices" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_plans" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_line_items" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_charges" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_coupons" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_transactions" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_balances" ENABLE TRIGGER ALL
|
23639
|
+
[1m[36mActiveRecord::SchemaMigration Load (1.9ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
23640
|
+
[1m[35m (0.2ms)[0m BEGIN
|
23641
|
+
[1m[36mSQL (12.3ms)[0m [1mINSERT INTO "stripe_local_line_items" ("amount", "created_at", "id", "invoice_id", "period_end", "period_start", "plan_id", "proration", "quantity", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id"[0m [["amount", 9900], ["created_at", Thu, 12 Dec 2013 01:07:39 CST -06:00], ["id", "su_1bfTBoL3o7blah"], ["invoice_id", "in_2blahblahagain"], ["period_end", Thu, 06 Jun 2013 18:23:47 CDT -05:00], ["period_start", Tue, 07 May 2013 18:23:47 CDT -05:00], ["plan_id", "HR99"], ["proration", false], ["quantity", 1], ["updated_at", Thu, 12 Dec 2013 01:07:39 CST -06:00]]
|
23642
|
+
[1m[35m (0.2ms)[0m COMMIT
|
23643
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
23644
|
+
[1m[35mSQL (1.1ms)[0m INSERT INTO "stripe_local_invoices" ("amount_due", "attempt_count", "attempted", "charge_id", "closed", "created_at", "customer_id", "date", "discount", "ending_balance", "id", "paid", "period_end", "period_start", "starting_balance", "subtotal", "total", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18) RETURNING "id" [["amount_due", 9900], ["attempt_count", 0], ["attempted", true], ["charge_id", "ch_blahblahblah"], ["closed", true], ["created_at", Thu, 12 Dec 2013 01:07:39 CST -06:00], ["customer_id", "cus_1A3zUmx7NpUgrT"], ["date", Tue, 07 May 2013 18:23:47 CDT -05:00], ["discount", nil], ["ending_balance", 0], ["id", "in_2blahblahagain"], ["paid", true], ["period_end", Tue, 07 May 2013 18:23:47 CDT -05:00], ["period_start", Tue, 07 May 2013 18:23:47 CDT -05:00], ["starting_balance", 0], ["subtotal", 9900], ["total", 9900], ["updated_at", Thu, 12 Dec 2013 01:07:39 CST -06:00]]
|
23645
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
23646
|
+
[1m[35mStripeLocal::LineItem Load (0.7ms)[0m SELECT "stripe_local_line_items".* FROM "stripe_local_line_items" WHERE "stripe_local_line_items"."invoice_id" = $1 [["invoice_id", "in_2blahblahagain"]]
|
23647
|
+
[1m[36mStripeLocal::Customer Load (1.5ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1[0m
|
23648
|
+
[1m[35m (0.2ms)[0m BEGIN
|
23649
|
+
[1m[36mStripeLocal::Customer Load (0.3ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1[0m
|
23650
|
+
[1m[35mStripeLocal::Customer Load (0.2ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
|
23651
|
+
[1m[36mStripeLocal::Customer Load (0.2ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1[0m
|
23652
|
+
[1m[35mStripeLocal::Customer Load (0.2ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
|
23653
|
+
[1m[36mStripeLocal::Customer Load (0.2ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1[0m
|
23654
|
+
[1m[35mStripeLocal::Customer Load (0.2ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
|
23655
|
+
[1m[36mStripeLocal::Customer Load (0.2ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1[0m
|
23656
|
+
[1m[35mStripeLocal::Customer Load (0.2ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
|
23657
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "clients" ("created_at", "email", "name", "password", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", Thu, 12 Dec 2013 01:07:39 CST -06:00], ["email", "test@test.com"], ["name", "Test Case"], ["password", "password"], ["updated_at", Thu, 12 Dec 2013 01:07:39 CST -06:00]]
|
23658
|
+
[1m[35m (0.3ms)[0m COMMIT
|
23659
|
+
[1m[36mStripeLocal::Customer Load (0.2ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" = 1 LIMIT 1[0m
|
23660
|
+
[1m[35m (0.2ms)[0m BEGIN
|
23661
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "stripe_local_cards" ("brand", "created_at", "customer_id", "cvc_check", "exp_month", "exp_year", "id", "last4", "name", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id"[0m [["brand", "Visa"], ["created_at", Thu, 12 Dec 2013 01:07:39 CST -06:00], ["customer_id", "cus_123"], ["cvc_check", "pass"], ["exp_month", 8], ["exp_year", 2014], ["id", "card_102Y2J1Cmf55uWiejglofO7j"], ["last4", "4242"], ["name", "Test Case"], ["updated_at", Thu, 12 Dec 2013 01:07:39 CST -06:00]]
|
23662
|
+
[1m[35m (0.3ms)[0m COMMIT
|
23663
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
23664
|
+
[1m[35mSQL (1.1ms)[0m INSERT INTO "stripe_local_subscriptions" ("created_at", "current_period_end", "current_period_start", "customer_id", "plan_id", "start", "status", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["created_at", Thu, 12 Dec 2013 01:07:39 CST -06:00], ["current_period_end", Thu, 10 Oct 2013 13:52:04 CDT -05:00], ["current_period_start", Tue, 10 Sep 2013 13:52:04 CDT -05:00], ["customer_id", "cus_123"], ["plan_id", "GIN100"], ["start", Tue, 10 Sep 2013 13:52:04 CDT -05:00], ["status", "active"], ["updated_at", Thu, 12 Dec 2013 01:07:39 CST -06:00]]
|
23665
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
23666
|
+
[1m[35m (0.1ms)[0m BEGIN
|
23667
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "stripe_local_customers" ("account_balance", "created_at", "default_card", "delinquent", "description", "email", "id", "model_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id"[0m [["account_balance", 0], ["created_at", Thu, 12 Dec 2013 01:07:39 CST -06:00], ["default_card", "card_102Y2J1Cmf55uWiejglofO7j"], ["delinquent", false], ["description", "On September 10th, Test signed up for CA50."], ["email", "test@test.com"], ["id", "cus_123"], ["model_id", 1], ["updated_at", Thu, 12 Dec 2013 01:07:39 CST -06:00]]
|
23668
|
+
[1m[35m (0.3ms)[0m COMMIT
|
23669
|
+
[1m[36mStripeLocal::Customer Load (0.3ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" = 1 LIMIT 1[0m
|
23670
|
+
[1m[35mStripeLocal::Subscription Load (0.3ms)[0m SELECT "stripe_local_subscriptions".* FROM "stripe_local_subscriptions" WHERE "stripe_local_subscriptions"."customer_id" = 'cus_123' LIMIT 1
|
23671
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
23672
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "stripe_local_subscriptions" ("created_at", "current_period_end", "current_period_start", "customer_id", "plan_id", "start", "status", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["created_at", Thu, 12 Dec 2013 01:07:39 CST -06:00], ["current_period_end", Wed, 11 Dec 2013 15:32:46 CST -06:00], ["current_period_start", Mon, 11 Nov 2013 15:32:46 CST -06:00], ["customer_id", "cus_2vIuZmAfWK89Yk"], ["plan_id", "HR99"], ["start", Mon, 11 Nov 2013 15:32:46 CST -06:00], ["status", "active"], ["updated_at", Thu, 12 Dec 2013 01:07:39 CST -06:00]]
|
23673
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
23674
|
+
[1m[35mStripeLocal::Plan Load (0.4ms)[0m SELECT "stripe_local_plans".* FROM "stripe_local_plans" WHERE "stripe_local_plans"."id" = 'New_Plan' LIMIT 1
|
23675
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
23676
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "stripe_local_plans" ("amount", "created_at", "id", "interval", "name", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", 2999], ["created_at", Thu, 12 Dec 2013 01:07:39 CST -06:00], ["id", "New_Plan"], ["interval", "month"], ["name", "New Plan"], ["updated_at", Thu, 12 Dec 2013 01:07:39 CST -06:00]]
|
23677
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
23678
|
+
[1m[35m (0.1ms)[0m BEGIN
|
23679
|
+
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO "stripe_local_transactions" ("amount", "available_on", "created", "created_at", "description", "fee", "id", "net", "source_id", "source_type", "status", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id"[0m [["amount", -100], ["available_on", Mon, 07 Oct 2013 05:01:01 CDT -05:00], ["created", Mon, 30 Sep 2013 05:01:01 CDT -05:00], ["created_at", Thu, 12 Dec 2013 01:07:39 CST -06:00], ["description", "a dollar for Don Atello"], ["fee", 25], ["id", "txn_2fOGkiBkDgpObU"], ["net", -125], ["source_id", "tr_2fOGfKABdHu3uf"], ["source_type", "transfer"], ["status", "available"], ["updated_at", Thu, 12 Dec 2013 01:07:39 CST -06:00]]
|
23680
|
+
[1m[35m (0.3ms)[0m COMMIT
|
23681
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
23682
|
+
[1m[35mSQL (1.3ms)[0m INSERT INTO "stripe_local_transfers" ("amount", "created_at", "date", "description", "id", "metadata", "status", "transaction_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["amount", 100], ["created_at", Thu, 12 Dec 2013 01:07:39 CST -06:00], ["date", Mon, 30 Sep 2013 05:01:01 CDT -05:00], ["description", "a dollar for Don Atello"], ["id", "tr_2fOGfKABdHu3uf"], ["metadata", "{}"], ["status", "paid"], ["transaction_id", "txn_2fOGkiBkDgpObU"], ["updated_at", Thu, 12 Dec 2013 01:07:39 CST -06:00]]
|
23683
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
23684
|
+
[1m[35m (0.2ms)[0m BEGIN
|
23685
|
+
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO "stripe_local_charges" ("amount", "card_id", "created", "created_at", "customer_id", "id", "invoice_id", "metadata", "paid", "transaction_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11) RETURNING "id"[0m [["amount", 9900], ["card_id", "cc_1eX7GyRo6wivEf"], ["created", Thu, 01 Aug 2013 18:08:14 CDT -05:00], ["created_at", Thu, 12 Dec 2013 01:07:39 CST -06:00], ["customer_id", "cus_1eX7onie2gq8m1"], ["id", "ch_2wiSyZQkZw8F50"], ["invoice_id", "in_2whTLSkV2ItHAv"], ["metadata", "{\"desc\":\"a charge object\",\"number\":1}"], ["paid", true], ["transaction_id", "txn_2wiSFq1N6BTZTQ"], ["updated_at", Thu, 12 Dec 2013 01:07:39 CST -06:00]]
|
23686
|
+
[1m[35m (0.3ms)[0m COMMIT
|
23687
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
23688
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["available", 9900], ["created_at", Thu, 12 Dec 2013 01:07:39 CST -06:00], ["pending", 29900], ["updated_at", Thu, 12 Dec 2013 01:07:39 CST -06:00]]
|
23689
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
23690
|
+
[1m[35m (0.1ms)[0m BEGIN
|
23691
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["available", 19900], ["created_at", Thu, 12 Dec 2013 01:07:39 CST -06:00], ["pending", 19900], ["updated_at", Thu, 12 Dec 2013 01:07:39 CST -06:00]]
|
23692
|
+
[1m[35m (0.3ms)[0m COMMIT
|
23693
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
23694
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["available", 9900], ["created_at", Thu, 12 Dec 2013 01:07:39 CST -06:00], ["pending", 29900], ["updated_at", Thu, 12 Dec 2013 01:07:39 CST -06:00]]
|
23695
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
23696
|
+
[1m[35m (0.1ms)[0m BEGIN
|
23697
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["available", 19900], ["created_at", Thu, 12 Dec 2013 01:07:39 CST -06:00], ["pending", 19900], ["updated_at", Thu, 12 Dec 2013 01:07:39 CST -06:00]]
|
23698
|
+
[1m[35m (0.2ms)[0m COMMIT
|
23699
|
+
[1m[36m (0.2ms)[0m [1mSELECT "stripe_local_balances"."available" FROM "stripe_local_balances"[0m
|
23700
|
+
[1m[35m (0.1ms)[0m BEGIN
|
23701
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["available", 9900], ["created_at", Thu, 12 Dec 2013 01:07:39 CST -06:00], ["pending", 29900], ["updated_at", Thu, 12 Dec 2013 01:07:39 CST -06:00]]
|
23702
|
+
[1m[35m (0.3ms)[0m COMMIT
|
23703
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
23704
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["available", 19900], ["created_at", Thu, 12 Dec 2013 01:07:39 CST -06:00], ["pending", 19900], ["updated_at", Thu, 12 Dec 2013 01:07:39 CST -06:00]]
|
23705
|
+
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
|
23706
|
+
[1m[35m (0.1ms)[0m SELECT "stripe_local_balances"."available" FROM "stripe_local_balances"
|
23707
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
23708
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["available", 9900], ["created_at", Thu, 12 Dec 2013 01:07:39 CST -06:00], ["pending", 29900], ["updated_at", Thu, 12 Dec 2013 01:07:39 CST -06:00]]
|
23709
|
+
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
|
23710
|
+
[1m[35m (0.1ms)[0m BEGIN
|
23711
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["available", 19900], ["created_at", Thu, 12 Dec 2013 01:07:39 CST -06:00], ["pending", 19900], ["updated_at", Thu, 12 Dec 2013 01:07:39 CST -06:00]]
|
23712
|
+
[1m[35m (0.2ms)[0m COMMIT
|
23713
|
+
[1m[36m (0.2ms)[0m [1mSELECT "stripe_local_balances"."pending" FROM "stripe_local_balances"[0m
|
23714
|
+
[1m[35m (0.2ms)[0m BEGIN
|
23715
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["available", 9900], ["created_at", Thu, 12 Dec 2013 01:07:39 CST -06:00], ["pending", 29900], ["updated_at", Thu, 12 Dec 2013 01:07:39 CST -06:00]]
|
23716
|
+
[1m[35m (0.2ms)[0m COMMIT
|
23717
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
23718
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["available", 19900], ["created_at", Thu, 12 Dec 2013 01:07:39 CST -06:00], ["pending", 19900], ["updated_at", Thu, 12 Dec 2013 01:07:39 CST -06:00]]
|
23719
|
+
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
|
23720
|
+
[1m[35m (0.1ms)[0m BEGIN
|
23721
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["available", 9900], ["created_at", Thu, 12 Dec 2013 01:07:39 CST -06:00], ["pending", 29900], ["updated_at", Thu, 12 Dec 2013 01:07:39 CST -06:00]]
|
23722
|
+
[1m[35m (0.3ms)[0m COMMIT
|
23723
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
23724
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["available", 19900], ["created_at", Thu, 12 Dec 2013 01:07:39 CST -06:00], ["pending", 19900], ["updated_at", Thu, 12 Dec 2013 01:07:39 CST -06:00]]
|
23725
|
+
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
|
23726
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "stripe_local_balances"
|
23727
|
+
[1m[36mStripeLocal::Balance Load (0.4ms)[0m [1mSELECT "stripe_local_balances".* FROM "stripe_local_balances" ORDER BY "stripe_local_balances"."id" DESC LIMIT 1[0m
|
23728
|
+
[1m[35mStripeLocal::Balance Load (0.3ms)[0m SELECT "stripe_local_balances".* FROM "stripe_local_balances" ORDER BY "stripe_local_balances"."id" DESC LIMIT 1
|
23729
|
+
[1m[36mSQL (1.3ms)[0m [1mUPDATE "stripe_local_balances" SET "updated_at" = '2013-12-13 07:07:39.571987' WHERE "stripe_local_balances"."id" = 12[0m
|
23730
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "stripe_local_balances"
|
23731
|
+
[1m[36mStripeLocal::Balance Load (0.2ms)[0m [1mSELECT "stripe_local_balances".* FROM "stripe_local_balances" ORDER BY "stripe_local_balances"."id" DESC LIMIT 1[0m
|
23732
|
+
[1m[35m (0.1ms)[0m BEGIN
|
23733
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["available", 9900], ["created_at", Thu, 12 Dec 2013 01:07:39 CST -06:00], ["pending", 29900], ["updated_at", Thu, 12 Dec 2013 01:07:39 CST -06:00]]
|
23734
|
+
[1m[35m (0.3ms)[0m COMMIT
|
23735
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
23736
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["available", 19900], ["created_at", Thu, 12 Dec 2013 01:07:39 CST -06:00], ["pending", 19900], ["updated_at", Thu, 12 Dec 2013 01:07:39 CST -06:00]]
|
23737
|
+
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
|
23738
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "stripe_local_balances"
|
23739
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
23740
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["available", 39800], ["created_at", Thu, 12 Dec 2013 01:07:39 CST -06:00], ["pending", 0], ["updated_at", Thu, 12 Dec 2013 01:07:39 CST -06:00]]
|
23741
|
+
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
|
23742
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "stripe_local_balances"
|
23743
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
23744
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "stripe_local_cards" ("brand", "created_at", "customer_id", "cvc_check", "exp_month", "exp_year", "id", "last4", "name", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["brand", "Visa"], ["created_at", Thu, 12 Dec 2013 01:07:39 CST -06:00], ["customer_id", "cus_2J7PZ8ncCbR10Z"], ["cvc_check", "pass"], ["exp_month", 1], ["exp_year", 2014], ["id", "cc_2J7Pscoh4jvFjJ"], ["last4", "4242"], ["name", "Connor Tumbleson"], ["updated_at", Thu, 12 Dec 2013 01:07:39 CST -06:00]]
|
23745
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
23746
|
+
[1m[36m (1.2ms)[0m [1mALTER TABLE "stripe_local_discounts" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_customers" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_transfers" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_cards" DISABLE TRIGGER ALL;ALTER TABLE "clients" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_invoices" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_plans" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_line_items" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_charges" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_coupons" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_transactions" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_balances" DISABLE TRIGGER ALL[0m
|
23747
|
+
[1m[35m (1.2ms)[0m select table_name from information_schema.views where table_schema = 'dummy_test'
|
23748
|
+
[1m[36m (105.2ms)[0m [1mTRUNCATE TABLE "stripe_local_discounts", "stripe_local_customers", "stripe_local_transfers", "stripe_local_cards", "clients", "stripe_local_subscriptions", "stripe_local_invoices", "stripe_local_plans", "stripe_local_line_items", "stripe_local_charges", "stripe_local_coupons", "stripe_local_transactions", "stripe_local_balances" RESTART IDENTITY CASCADE;[0m
|
23749
|
+
[1m[35m (0.5ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_discounts" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_transfers" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_cards" ENABLE TRIGGER ALL;ALTER TABLE "clients" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_customers" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_invoices" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_plans" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_line_items" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_charges" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_coupons" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_transactions" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_balances" ENABLE TRIGGER ALL
|
23750
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
23751
|
+
[1m[35m (0.2ms)[0m BEGIN
|
23752
|
+
[1m[36mSQL (7.9ms)[0m [1mINSERT INTO "stripe_local_cards" ("brand", "created_at", "customer_id", "cvc_check", "exp_month", "exp_year", "id", "last4", "name", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id"[0m [["brand", "Visa"], ["created_at", Thu, 12 Dec 2013 01:54:59 CST -06:00], ["customer_id", "cus_2J7PZ8ncCbR10Z"], ["cvc_check", "pass"], ["exp_month", 1], ["exp_year", 2014], ["id", "cc_2J7Pscoh4jvFjJ"], ["last4", "4242"], ["name", "Connor Tumbleson"], ["updated_at", Thu, 12 Dec 2013 01:54:59 CST -06:00]]
|
23753
|
+
[1m[35m (0.3ms)[0m COMMIT
|
23754
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
23755
|
+
[1m[35mSQL (1.2ms)[0m INSERT INTO "stripe_local_subscriptions" ("created_at", "current_period_end", "current_period_start", "customer_id", "plan_id", "start", "status", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["created_at", Thu, 12 Dec 2013 01:54:59 CST -06:00], ["current_period_end", Wed, 11 Dec 2013 15:32:46 CST -06:00], ["current_period_start", Mon, 11 Nov 2013 15:32:46 CST -06:00], ["customer_id", "cus_2vIuZmAfWK89Yk"], ["plan_id", "HR99"], ["start", Mon, 11 Nov 2013 15:32:46 CST -06:00], ["status", "active"], ["updated_at", Thu, 12 Dec 2013 01:54:59 CST -06:00]]
|
23756
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
23757
|
+
[1m[35m (0.1ms)[0m BEGIN
|
23758
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "stripe_local_transactions" ("amount", "available_on", "created", "created_at", "description", "fee", "id", "net", "source_id", "source_type", "status", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id"[0m [["amount", -100], ["available_on", Mon, 07 Oct 2013 05:01:01 CDT -05:00], ["created", Mon, 30 Sep 2013 05:01:01 CDT -05:00], ["created_at", Thu, 12 Dec 2013 01:54:59 CST -06:00], ["description", "a dollar for Don Atello"], ["fee", 25], ["id", "txn_2fOGkiBkDgpObU"], ["net", -125], ["source_id", "tr_2fOGfKABdHu3uf"], ["source_type", "transfer"], ["status", "available"], ["updated_at", Thu, 12 Dec 2013 01:54:59 CST -06:00]]
|
23759
|
+
[1m[35m (0.3ms)[0m COMMIT
|
23760
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
23761
|
+
[1m[35mSQL (1.3ms)[0m INSERT INTO "stripe_local_transfers" ("amount", "created_at", "date", "description", "id", "metadata", "status", "transaction_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["amount", 100], ["created_at", Thu, 12 Dec 2013 01:54:59 CST -06:00], ["date", Mon, 30 Sep 2013 05:01:01 CDT -05:00], ["description", "a dollar for Don Atello"], ["id", "tr_2fOGfKABdHu3uf"], ["metadata", "{}"], ["status", "paid"], ["transaction_id", "txn_2fOGkiBkDgpObU"], ["updated_at", Thu, 12 Dec 2013 01:54:59 CST -06:00]]
|
23762
|
+
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
|
23763
|
+
[1m[35mStripeLocal::Plan Load (0.3ms)[0m SELECT "stripe_local_plans".* FROM "stripe_local_plans" WHERE "stripe_local_plans"."id" = 'New_Plan' LIMIT 1
|
23764
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
23765
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "stripe_local_plans" ("amount", "created_at", "id", "interval", "name", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", 2999], ["created_at", Thu, 12 Dec 2013 01:54:59 CST -06:00], ["id", "New_Plan"], ["interval", "month"], ["name", "New Plan"], ["updated_at", Thu, 12 Dec 2013 01:54:59 CST -06:00]]
|
23766
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
23767
|
+
[1m[35m (0.2ms)[0m BEGIN
|
23768
|
+
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO "stripe_local_line_items" ("amount", "created_at", "id", "invoice_id", "period_end", "period_start", "plan_id", "proration", "quantity", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id"[0m [["amount", 9900], ["created_at", Thu, 12 Dec 2013 01:55:00 CST -06:00], ["id", "su_1bfTBoL3o7blah"], ["invoice_id", "in_2blahblahagain"], ["period_end", Thu, 06 Jun 2013 18:23:47 CDT -05:00], ["period_start", Tue, 07 May 2013 18:23:47 CDT -05:00], ["plan_id", "HR99"], ["proration", false], ["quantity", 1], ["updated_at", Thu, 12 Dec 2013 01:55:00 CST -06:00]]
|
23769
|
+
[1m[35m (0.3ms)[0m COMMIT
|
23770
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
23771
|
+
[1m[35mSQL (1.1ms)[0m INSERT INTO "stripe_local_invoices" ("amount_due", "attempt_count", "attempted", "charge_id", "closed", "created_at", "customer_id", "date", "discount", "ending_balance", "id", "paid", "period_end", "period_start", "starting_balance", "subtotal", "total", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18) RETURNING "id" [["amount_due", 9900], ["attempt_count", 0], ["attempted", true], ["charge_id", "ch_blahblahblah"], ["closed", true], ["created_at", Thu, 12 Dec 2013 01:55:00 CST -06:00], ["customer_id", "cus_1A3zUmx7NpUgrT"], ["date", Tue, 07 May 2013 18:23:47 CDT -05:00], ["discount", nil], ["ending_balance", 0], ["id", "in_2blahblahagain"], ["paid", true], ["period_end", Tue, 07 May 2013 18:23:47 CDT -05:00], ["period_start", Tue, 07 May 2013 18:23:47 CDT -05:00], ["starting_balance", 0], ["subtotal", 9900], ["total", 9900], ["updated_at", Thu, 12 Dec 2013 01:55:00 CST -06:00]]
|
23772
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
23773
|
+
[1m[35mStripeLocal::LineItem Load (0.6ms)[0m SELECT "stripe_local_line_items".* FROM "stripe_local_line_items" WHERE "stripe_local_line_items"."invoice_id" = $1 [["invoice_id", "in_2blahblahagain"]]
|
23774
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
23775
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["available", 9900], ["created_at", Thu, 12 Dec 2013 01:55:00 CST -06:00], ["pending", 29900], ["updated_at", Thu, 12 Dec 2013 01:55:00 CST -06:00]]
|
23776
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
23777
|
+
[1m[35m (0.1ms)[0m BEGIN
|
23778
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["available", 19900], ["created_at", Thu, 12 Dec 2013 01:55:00 CST -06:00], ["pending", 19900], ["updated_at", Thu, 12 Dec 2013 01:55:00 CST -06:00]]
|
23779
|
+
[1m[35m (0.3ms)[0m COMMIT
|
23780
|
+
[1m[36m (0.2ms)[0m [1mSELECT "stripe_local_balances"."pending" FROM "stripe_local_balances"[0m
|
23781
|
+
[1m[35m (0.1ms)[0m BEGIN
|
23782
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["available", 9900], ["created_at", Thu, 12 Dec 2013 01:55:00 CST -06:00], ["pending", 29900], ["updated_at", Thu, 12 Dec 2013 01:55:00 CST -06:00]]
|
23783
|
+
[1m[35m (0.3ms)[0m COMMIT
|
23784
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
23785
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["available", 19900], ["created_at", Thu, 12 Dec 2013 01:55:00 CST -06:00], ["pending", 19900], ["updated_at", Thu, 12 Dec 2013 01:55:00 CST -06:00]]
|
23786
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
23787
|
+
[1m[35m (0.2ms)[0m SELECT "stripe_local_balances"."available" FROM "stripe_local_balances"
|
23788
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
23789
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["available", 9900], ["created_at", Thu, 12 Dec 2013 01:55:00 CST -06:00], ["pending", 29900], ["updated_at", Thu, 12 Dec 2013 01:55:00 CST -06:00]]
|
23790
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
23791
|
+
[1m[35m (0.1ms)[0m BEGIN
|
23792
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["available", 19900], ["created_at", Thu, 12 Dec 2013 01:55:00 CST -06:00], ["pending", 19900], ["updated_at", Thu, 12 Dec 2013 01:55:00 CST -06:00]]
|
23793
|
+
[1m[35m (0.3ms)[0m COMMIT
|
23794
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "stripe_local_balances"[0m
|
23795
|
+
[1m[35mStripeLocal::Balance Load (0.3ms)[0m SELECT "stripe_local_balances".* FROM "stripe_local_balances" ORDER BY "stripe_local_balances"."id" DESC LIMIT 1
|
23796
|
+
[1m[36mStripeLocal::Balance Load (0.2ms)[0m [1mSELECT "stripe_local_balances".* FROM "stripe_local_balances" ORDER BY "stripe_local_balances"."id" DESC LIMIT 1[0m
|
23797
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "stripe_local_balances" SET "updated_at" = '2013-12-13 07:55:00.135161' WHERE "stripe_local_balances"."id" = 6
|
23798
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "stripe_local_balances"[0m
|
23799
|
+
[1m[35mStripeLocal::Balance Load (0.2ms)[0m SELECT "stripe_local_balances".* FROM "stripe_local_balances" ORDER BY "stripe_local_balances"."id" DESC LIMIT 1
|
23800
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
23801
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["available", 9900], ["created_at", Thu, 12 Dec 2013 01:55:00 CST -06:00], ["pending", 29900], ["updated_at", Thu, 12 Dec 2013 01:55:00 CST -06:00]]
|
23802
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
23803
|
+
[1m[35m (0.1ms)[0m BEGIN
|
23804
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["available", 19900], ["created_at", Thu, 12 Dec 2013 01:55:00 CST -06:00], ["pending", 19900], ["updated_at", Thu, 12 Dec 2013 01:55:00 CST -06:00]]
|
23805
|
+
[1m[35m (0.2ms)[0m COMMIT
|
23806
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
23807
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["available", 9900], ["created_at", Thu, 12 Dec 2013 01:55:00 CST -06:00], ["pending", 29900], ["updated_at", Thu, 12 Dec 2013 01:55:00 CST -06:00]]
|
23808
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
23809
|
+
[1m[35m (0.1ms)[0m BEGIN
|
23810
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["available", 19900], ["created_at", Thu, 12 Dec 2013 01:55:00 CST -06:00], ["pending", 19900], ["updated_at", Thu, 12 Dec 2013 01:55:00 CST -06:00]]
|
23811
|
+
[1m[35m (0.2ms)[0m COMMIT
|
23812
|
+
[1m[36m (0.1ms)[0m [1mSELECT "stripe_local_balances"."available" FROM "stripe_local_balances"[0m
|
23813
|
+
[1m[35m (0.1ms)[0m BEGIN
|
23814
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["available", 9900], ["created_at", Thu, 12 Dec 2013 01:55:00 CST -06:00], ["pending", 29900], ["updated_at", Thu, 12 Dec 2013 01:55:00 CST -06:00]]
|
23815
|
+
[1m[35m (0.2ms)[0m COMMIT
|
23816
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
23817
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["available", 19900], ["created_at", Thu, 12 Dec 2013 01:55:00 CST -06:00], ["pending", 19900], ["updated_at", Thu, 12 Dec 2013 01:55:00 CST -06:00]]
|
23818
|
+
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
|
23819
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "stripe_local_balances"
|
23820
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
23821
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["available", 39800], ["created_at", Thu, 12 Dec 2013 01:55:00 CST -06:00], ["pending", 0], ["updated_at", Thu, 12 Dec 2013 01:55:00 CST -06:00]]
|
23822
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
23823
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "stripe_local_balances"
|
23824
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
23825
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["available", 9900], ["created_at", Thu, 12 Dec 2013 01:55:00 CST -06:00], ["pending", 29900], ["updated_at", Thu, 12 Dec 2013 01:55:00 CST -06:00]]
|
23826
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
23827
|
+
[1m[35m (0.1ms)[0m BEGIN
|
23828
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["available", 19900], ["created_at", Thu, 12 Dec 2013 01:55:00 CST -06:00], ["pending", 19900], ["updated_at", Thu, 12 Dec 2013 01:55:00 CST -06:00]]
|
23829
|
+
[1m[35m (0.3ms)[0m COMMIT
|
23830
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
23831
|
+
[1m[35mSQL (1.5ms)[0m INSERT INTO "stripe_local_charges" ("amount", "card_id", "created", "created_at", "customer_id", "id", "invoice_id", "metadata", "paid", "transaction_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11) RETURNING "id" [["amount", 9900], ["card_id", "cc_1eX7GyRo6wivEf"], ["created", Thu, 01 Aug 2013 18:08:14 CDT -05:00], ["created_at", Thu, 12 Dec 2013 01:55:00 CST -06:00], ["customer_id", "cus_1eX7onie2gq8m1"], ["id", "ch_2wiSyZQkZw8F50"], ["invoice_id", "in_2whTLSkV2ItHAv"], ["metadata", "{\"desc\":\"a charge object\",\"number\":1}"], ["paid", true], ["transaction_id", "txn_2wiSFq1N6BTZTQ"], ["updated_at", Thu, 12 Dec 2013 01:55:00 CST -06:00]]
|
23832
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
23833
|
+
[1m[35mStripeLocal::Customer Load (0.5ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
|
23834
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
23835
|
+
[1m[35mStripeLocal::Customer Load (0.7ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
|
23836
|
+
[1m[36mStripeLocal::Customer Load (0.4ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1[0m
|
23837
|
+
[1m[35mStripeLocal::Customer Load (0.3ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
|
23838
|
+
[1m[36mStripeLocal::Customer Load (0.3ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1[0m
|
23839
|
+
[1m[35mStripeLocal::Customer Load (0.3ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
|
23840
|
+
[1m[36mStripeLocal::Customer Load (0.3ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1[0m
|
23841
|
+
[1m[35mStripeLocal::Customer Load (0.3ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
|
23842
|
+
[1m[36mStripeLocal::Customer Load (0.3ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1[0m
|
23843
|
+
[1m[35mSQL (1.3ms)[0m INSERT INTO "clients" ("created_at", "email", "name", "password", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 12 Dec 2013 01:55:00 CST -06:00], ["email", "test@test.com"], ["name", "Test Case"], ["password", "password"], ["updated_at", Thu, 12 Dec 2013 01:55:00 CST -06:00]]
|
23844
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
23845
|
+
[1m[35mStripeLocal::Customer Load (0.4ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" = 1 LIMIT 1
|
23846
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
23847
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "stripe_local_cards" ("brand", "created_at", "customer_id", "cvc_check", "exp_month", "exp_year", "id", "last4", "name", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["brand", "Visa"], ["created_at", Thu, 12 Dec 2013 01:55:00 CST -06:00], ["customer_id", "cus_123"], ["cvc_check", "pass"], ["exp_month", 8], ["exp_year", 2014], ["id", "card_102Y2J1Cmf55uWiejglofO7j"], ["last4", "4242"], ["name", "Test Case"], ["updated_at", Thu, 12 Dec 2013 01:55:00 CST -06:00]]
|
23848
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
23849
|
+
[1m[35m (0.1ms)[0m BEGIN
|
23850
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "stripe_local_subscriptions" ("created_at", "current_period_end", "current_period_start", "customer_id", "plan_id", "start", "status", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["created_at", Thu, 12 Dec 2013 01:55:00 CST -06:00], ["current_period_end", Thu, 10 Oct 2013 13:52:04 CDT -05:00], ["current_period_start", Tue, 10 Sep 2013 13:52:04 CDT -05:00], ["customer_id", "cus_123"], ["plan_id", "GIN100"], ["start", Tue, 10 Sep 2013 13:52:04 CDT -05:00], ["status", "active"], ["updated_at", Thu, 12 Dec 2013 01:55:00 CST -06:00]]
|
23851
|
+
[1m[35m (0.3ms)[0m COMMIT
|
23852
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
23853
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "stripe_local_customers" ("account_balance", "created_at", "default_card", "delinquent", "description", "email", "id", "model_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["account_balance", 0], ["created_at", Thu, 12 Dec 2013 01:55:00 CST -06:00], ["default_card", "card_102Y2J1Cmf55uWiejglofO7j"], ["delinquent", false], ["description", "On September 10th, Test signed up for CA50."], ["email", "test@test.com"], ["id", "cus_123"], ["model_id", 1], ["updated_at", Thu, 12 Dec 2013 01:55:00 CST -06:00]]
|
23854
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
23855
|
+
[1m[35mStripeLocal::Customer Load (0.3ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" = 1 LIMIT 1
|
23856
|
+
[1m[36mStripeLocal::Subscription Load (0.3ms)[0m [1mSELECT "stripe_local_subscriptions".* FROM "stripe_local_subscriptions" WHERE "stripe_local_subscriptions"."customer_id" = 'cus_123' LIMIT 1[0m
|