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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1c68aa4d6366705198c9794090f4b968675a1eb2
4
- data.tar.gz: 076d8c5e321492e3c3d8d70e2507025e9fcde5d8
3
+ metadata.gz: ef806fd202132c1c1c83366aa32b57ffcfdf89e0
4
+ data.tar.gz: 3b2c5afd4102155d4b7791e2c9d59c8bf674764a
5
5
  SHA512:
6
- metadata.gz: 0f6df3f43b07cca40cb77ff4564c59530dc98a8afd0f3ec8fb5b829448f8268cb7ee1cae192db0639a266cf2cc9e793024b9cc3bb64a7b68ce20419e4d42f73c
7
- data.tar.gz: d7f8b5a968c52ae71b1f6e41d75fccf56e2fb3b40e94a9cb033d07a07100f813beef56fb5201622040fd7bbd14449d78d4396d4ce18bec63c214c7580cc43bd8
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
- I had considered waiting to open source this project untill it was something really sturdy. However, my free time is limited and there is no telling how long it might have taken me.
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
- My hope is that some of you will see some potential and dig in to help me get it working. Please don't be shy, I don't claim to be an expert and I am open to your ideas for improvement.
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
- Stripe\_local integrates with your application via a _customer class_
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 *Customer*. It just needs to be an active record class and contain a call to a special class macro in its definition
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 ClassName < ActiveRecord::Base
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` for the object
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
 
@@ -3,7 +3,7 @@ module StripeLocal
3
3
  require 'stripe'
4
4
 
5
5
  class<<self
6
- def then_sync %i{from_hash}
6
+ def then_sync from_hash
7
7
  Stripe::Plan.create from_hash
8
8
  end
9
9
 
@@ -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
- # [params]
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( {model_id: self.id}.merge _customer_.to_hash )
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 && customer.respond_to?( method )
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 && customer.respond_to?( method ) || super
44
+ super || customer and customer.respond_to?( method, false )
46
45
  end
46
+
47
47
  end
48
48
 
49
49
  end
@@ -1,3 +1,3 @@
1
1
  module StripeLocal
2
- VERSION = "0.2.3"
2
+ VERSION = "0.2.4"
3
3
  end
@@ -22330,3 +22330,1527 @@ Migrating to LoadStripeTables (20131122063517)
22330
22330
   (0.1ms) BEGIN
22331
22331
  SQL (1.1ms) 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
   (0.3ms) COMMIT
22333
+  (3.7ms) ALTER 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
22334
+  (10.3ms) select table_name from information_schema.views where table_schema = 'dummy_test'
22335
+  (84.1ms) TRUNCATE 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;
22336
+  (0.5ms) 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
+ ActiveRecord::SchemaMigration Load (2.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
22338
+  (0.1ms) BEGIN
22339
+ SQL (11.9ms) 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: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
+  (0.3ms) COMMIT
22341
+  (0.2ms) BEGIN
22342
+ SQL (1.3ms) 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
+  (0.3ms) COMMIT
22344
+  (0.1ms) BEGIN
22345
+ SQL (1.0ms) 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: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
+  (0.2ms) COMMIT
22347
+  (0.1ms) BEGIN
22348
+ SQL (1.1ms) 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
+  (0.4ms) COMMIT
22350
+ StripeLocal::LineItem Load (0.8ms) SELECT "stripe_local_line_items".* FROM "stripe_local_line_items" WHERE "stripe_local_line_items"."invoice_id" = $1 [["invoice_id", "in_2blahblahagain"]]
22351
+ StripeLocal::Customer Load (1.0ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
22352
+  (0.1ms) BEGIN
22353
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
22354
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
22355
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
22356
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
22357
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
22358
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
22359
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
22360
+ StripeLocal::Customer Load (0.1ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
22361
+ SQL (0.7ms) INSERT INTO "clients" ("created_at", "email", "name", "password", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.2ms) COMMIT
22363
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" = 1 LIMIT 1
22364
+  (0.2ms) BEGIN
22365
+ SQL (1.6ms) 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_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
+  (0.3ms) COMMIT
22367
+  (0.1ms) BEGIN
22368
+ SQL (0.5ms) 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
+  (0.3ms) COMMIT
22370
+  (0.1ms) BEGIN
22371
+ SQL (0.9ms) 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: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
+  (0.4ms) COMMIT
22373
+ StripeLocal::Customer Load (0.3ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" = 1 LIMIT 1
22374
+ StripeLocal::Subscription Load (0.3ms) SELECT "stripe_local_subscriptions".* FROM "stripe_local_subscriptions" WHERE "stripe_local_subscriptions"."customer_id" = 'cus_123' LIMIT 1
22375
+ StripeLocal::Plan Load (0.3ms) SELECT "stripe_local_plans".* FROM "stripe_local_plans" WHERE "stripe_local_plans"."id" = 'New_Plan' LIMIT 1
22376
+  (0.2ms) BEGIN
22377
+ SQL (1.1ms) 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: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
+  (0.3ms) COMMIT
22379
+  (0.1ms) BEGIN
22380
+ SQL (1.1ms) 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
+  (0.3ms) COMMIT
22382
+  (0.1ms) BEGIN
22383
+ SQL (0.5ms) 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]]
22384
+  (0.3ms) COMMIT
22385
+  (0.1ms) BEGIN
22386
+ SQL (0.4ms) 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
+  (0.3ms) COMMIT
22388
+  (0.1ms) BEGIN
22389
+ SQL (0.3ms) 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]]
22390
+  (0.3ms) COMMIT
22391
+  (0.3ms) SELECT "stripe_local_balances"."available" FROM "stripe_local_balances"
22392
+  (0.2ms) BEGIN
22393
+ SQL (0.4ms) 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]]
22394
+  (0.3ms) COMMIT
22395
+  (0.1ms) BEGIN
22396
+ SQL (0.3ms) 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
+  (0.3ms) COMMIT
22398
+  (0.2ms) SELECT "stripe_local_balances"."available" FROM "stripe_local_balances"
22399
+  (0.1ms) BEGIN
22400
+ SQL (0.5ms) 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
+  (0.3ms) COMMIT
22402
+  (0.1ms) BEGIN
22403
+ SQL (0.2ms) 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]]
22404
+  (0.3ms) COMMIT
22405
+  (0.3ms) SELECT COUNT(*) FROM "stripe_local_balances"
22406
+  (0.1ms) BEGIN
22407
+ SQL (0.3ms) 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:09:51 CST -06:00], ["pending", 0], ["updated_at", Sat, 07 Dec 2013 08:09:51 CST -06:00]]
22408
+  (0.3ms) COMMIT
22409
+  (0.2ms) SELECT COUNT(*) FROM "stripe_local_balances"
22410
+  (0.1ms) BEGIN
22411
+ SQL (0.3ms) 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]]
22412
+  (0.3ms) COMMIT
22413
+  (0.1ms) BEGIN
22414
+ SQL (0.2ms) 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
+  (0.2ms) COMMIT
22416
+  (0.1ms) SELECT COUNT(*) FROM "stripe_local_balances"
22417
+ StripeLocal::Balance Load (0.4ms) SELECT "stripe_local_balances".* FROM "stripe_local_balances" ORDER BY "stripe_local_balances"."id" DESC LIMIT 1
22418
+ StripeLocal::Balance Load (0.2ms) SELECT "stripe_local_balances".* FROM "stripe_local_balances" ORDER BY "stripe_local_balances"."id" DESC LIMIT 1
22419
+ SQL (0.4ms) UPDATE "stripe_local_balances" SET "updated_at" = '2013-12-08 14:09:51.282655' WHERE "stripe_local_balances"."id" = 11
22420
+  (0.2ms) SELECT COUNT(*) FROM "stripe_local_balances"
22421
+ StripeLocal::Balance Load (0.2ms) SELECT "stripe_local_balances".* FROM "stripe_local_balances" ORDER BY "stripe_local_balances"."id" DESC LIMIT 1
22422
+  (0.1ms) BEGIN
22423
+ SQL (0.3ms) 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]]
22424
+  (0.3ms) COMMIT
22425
+  (0.1ms) BEGIN
22426
+ SQL (0.2ms) 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
+  (0.2ms) COMMIT
22428
+  (0.2ms) SELECT "stripe_local_balances"."pending" FROM "stripe_local_balances"
22429
+  (0.1ms) BEGIN
22430
+ SQL (0.3ms) 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
+  (0.2ms) COMMIT
22432
+  (0.1ms) BEGIN
22433
+ SQL (0.2ms) 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]]
22434
+  (0.2ms) COMMIT
22435
+  (0.1ms) BEGIN
22436
+ SQL (0.4ms) 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
+  (0.3ms) COMMIT
22438
+  (0.2ms) BEGIN
22439
+ SQL (1.1ms) 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: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
+  (0.3ms) COMMIT
22441
+  (0.2ms) BEGIN
22442
+ SQL (1.4ms) 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
+  (0.3ms) COMMIT
22444
+  (0.8ms) ALTER 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
22445
+  (1.1ms) select table_name from information_schema.views where table_schema = 'dummy_test'
22446
+  (27.0ms) TRUNCATE 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;
22447
+  (0.8ms) 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
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
22449
+  (0.2ms) BEGIN
22450
+ SQL (6.1ms) 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", 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
+  (0.3ms) COMMIT
22452
+ StripeLocal::Customer Load (0.4ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
22453
+  (0.1ms) BEGIN
22454
+ StripeLocal::Customer Load (0.5ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
22455
+ StripeLocal::Customer Load (0.3ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
22456
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
22457
+ StripeLocal::Customer Load (0.1ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
22458
+ StripeLocal::Customer Load (0.1ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
22459
+ StripeLocal::Customer Load (0.3ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
22460
+ StripeLocal::Customer Load (0.5ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
22461
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
22462
+ SQL (1.0ms) INSERT INTO "clients" ("created_at", "email", "name", "password", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.3ms) COMMIT
22464
+ StripeLocal::Customer Load (0.3ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" = 1 LIMIT 1
22465
+  (0.1ms) BEGIN
22466
+ SQL (0.9ms) 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: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
+  (0.3ms) COMMIT
22468
+  (0.1ms) BEGIN
22469
+ SQL (0.5ms) 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
+  (0.3ms) COMMIT
22471
+  (0.2ms) BEGIN
22472
+ SQL (1.1ms) 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: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
+  (0.3ms) COMMIT
22474
+ StripeLocal::Customer Load (0.3ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" = 1 LIMIT 1
22475
+ StripeLocal::Subscription Load (0.3ms) SELECT "stripe_local_subscriptions".* FROM "stripe_local_subscriptions" WHERE "stripe_local_subscriptions"."customer_id" = 'cus_123' LIMIT 1
22476
+  (0.1ms) BEGIN
22477
+ SQL (1.4ms) 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
+  (0.3ms) COMMIT
22479
+  (0.2ms) BEGIN
22480
+ SQL (1.1ms) 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: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
+  (0.4ms) COMMIT
22482
+ StripeLocal::LineItem Load (0.6ms) SELECT "stripe_local_line_items".* FROM "stripe_local_line_items" WHERE "stripe_local_line_items"."invoice_id" = $1 [["invoice_id", "in_2blahblahagain"]]
22483
+  (0.2ms) BEGIN
22484
+ SQL (1.3ms) 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: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
+  (0.3ms) COMMIT
22486
+  (0.2ms) BEGIN
22487
+ SQL (1.2ms) 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
+  (0.9ms) COMMIT
22489
+  (0.1ms) BEGIN
22490
+ SQL (1.4ms) 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: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
+  (0.3ms) COMMIT
22492
+ StripeLocal::Plan Load (0.2ms) SELECT "stripe_local_plans".* FROM "stripe_local_plans" WHERE "stripe_local_plans"."id" = 'New_Plan' LIMIT 1
22493
+  (0.2ms) BEGIN
22494
+ SQL (1.6ms) 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: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
+  (0.3ms) COMMIT
22496
+  (0.1ms) BEGIN
22497
+ SQL (0.8ms) 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
+  (0.2ms) COMMIT
22499
+  (0.1ms) BEGIN
22500
+ SQL (0.3ms) 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]]
22501
+  (0.3ms) COMMIT
22502
+  (0.3ms) SELECT COUNT(*) FROM "stripe_local_balances"
22503
+  (0.1ms) BEGIN
22504
+ SQL (0.2ms) 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:10:13 CST -06:00], ["pending", 0], ["updated_at", Sat, 07 Dec 2013 08:10:13 CST -06:00]]
22505
+  (0.2ms) COMMIT
22506
+  (0.2ms) SELECT COUNT(*) FROM "stripe_local_balances"
22507
+  (0.1ms) BEGIN
22508
+ SQL (0.3ms) 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]]
22509
+  (0.3ms) COMMIT
22510
+  (0.1ms) BEGIN
22511
+ SQL (0.2ms) 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
+  (0.3ms) COMMIT
22513
+  (0.2ms) SELECT "stripe_local_balances"."available" FROM "stripe_local_balances"
22514
+  (0.1ms) BEGIN
22515
+ SQL (0.3ms) 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
+  (0.3ms) COMMIT
22517
+  (0.1ms) BEGIN
22518
+ SQL (0.2ms) 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]]
22519
+  (0.2ms) COMMIT
22520
+  (0.1ms) BEGIN
22521
+ SQL (0.3ms) 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
+  (0.2ms) COMMIT
22523
+  (0.0ms) BEGIN
22524
+ SQL (0.2ms) 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]]
22525
+  (0.2ms) COMMIT
22526
+  (0.1ms) BEGIN
22527
+ SQL (0.3ms) 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
+  (0.2ms) COMMIT
22529
+  (0.1ms) BEGIN
22530
+ SQL (0.4ms) 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]]
22531
+  (0.4ms) COMMIT
22532
+  (0.2ms) SELECT "stripe_local_balances"."pending" FROM "stripe_local_balances"
22533
+  (0.1ms) BEGIN
22534
+ SQL (0.3ms) 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]]
22535
+  (0.3ms) COMMIT
22536
+  (0.1ms) BEGIN
22537
+ SQL (0.2ms) 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
+  (0.2ms) COMMIT
22539
+  (0.1ms) SELECT COUNT(*) FROM "stripe_local_balances"
22540
+ StripeLocal::Balance Load (0.3ms) SELECT "stripe_local_balances".* FROM "stripe_local_balances" ORDER BY "stripe_local_balances"."id" DESC LIMIT 1
22541
+ StripeLocal::Balance Load (0.2ms) SELECT "stripe_local_balances".* FROM "stripe_local_balances" ORDER BY "stripe_local_balances"."id" DESC LIMIT 1
22542
+ SQL (0.5ms) UPDATE "stripe_local_balances" SET "updated_at" = '2013-12-08 14:10:13.099327' WHERE "stripe_local_balances"."id" = 13
22543
+  (0.2ms) SELECT COUNT(*) FROM "stripe_local_balances"
22544
+ StripeLocal::Balance Load (0.2ms) SELECT "stripe_local_balances".* FROM "stripe_local_balances" ORDER BY "stripe_local_balances"."id" DESC LIMIT 1
22545
+  (0.2ms) BEGIN
22546
+ SQL (0.4ms) 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]]
22547
+  (0.4ms) COMMIT
22548
+  (0.1ms) BEGIN
22549
+ SQL (0.2ms) 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
+  (0.3ms) COMMIT
22551
+  (0.2ms) SELECT "stripe_local_balances"."available" FROM "stripe_local_balances"
22552
+  (0.1ms) BEGIN
22553
+ SQL (0.4ms) 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
+  (0.3ms) COMMIT
22555
+  (1.4ms) ALTER 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
22556
+  (1.6ms) select table_name from information_schema.views where table_schema = 'dummy_test'
22557
+  (41.2ms) TRUNCATE 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;
22558
+  (1.0ms) 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
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
22560
+  (0.1ms) BEGIN
22561
+ SQL (6.7ms) 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: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
+  (0.3ms) COMMIT
22563
+  (0.2ms) BEGIN
22564
+ SQL (1.4ms) 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
+  (0.3ms) COMMIT
22566
+  (0.1ms) BEGIN
22567
+ SQL (1.7ms) 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: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
+  (0.3ms) COMMIT
22569
+ StripeLocal::Plan Load (0.3ms) SELECT "stripe_local_plans".* FROM "stripe_local_plans" WHERE "stripe_local_plans"."id" = 'New_Plan' LIMIT 1
22570
+  (0.1ms) BEGIN
22571
+ SQL (0.8ms) 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: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
+  (0.3ms) COMMIT
22573
+ StripeLocal::Customer Load (0.6ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
22574
+  (0.2ms) BEGIN
22575
+ StripeLocal::Customer Load (0.3ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
22576
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
22577
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
22578
+ StripeLocal::Customer Load (0.1ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
22579
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
22580
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
22581
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
22582
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
22583
+ StripeLocal::Customer Load (0.1ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
22584
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
22585
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
22586
+ StripeLocal::Customer Load (0.1ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
22587
+ StripeLocal::Customer Load (0.1ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
22588
+ StripeLocal::Customer Load (0.1ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
22589
+ StripeLocal::Customer Load (0.1ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
22590
+ StripeLocal::Customer Load (0.1ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
22591
+ SQL (0.6ms) INSERT INTO "clients" ("email", "name", "password") VALUES ($1, $2, $3) RETURNING "id" [["email", "test@test.com"], ["name", "Test Case"], ["password", "password"]]
22592
+  (0.3ms) COMMIT
22593
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" = 1 LIMIT 1
22594
+ StripeLocal::Customer Load (0.1ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" = 1 LIMIT 1
22595
+  (0.1ms) BEGIN
22596
+ SQL (0.4ms) 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
+  (0.3ms) COMMIT
22598
+  (0.1ms) BEGIN
22599
+ SQL (0.5ms) 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: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
+  (0.3ms) COMMIT
22601
+  (0.2ms) BEGIN
22602
+ SQL (0.9ms) 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
+  (0.3ms) COMMIT
22604
+ StripeLocal::Customer Load (0.3ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" = 1 LIMIT 1
22605
+ StripeLocal::Subscription Load (0.3ms) SELECT "stripe_local_subscriptions".* FROM "stripe_local_subscriptions" WHERE "stripe_local_subscriptions"."customer_id" = 'cus_123' LIMIT 1
22606
+  (0.1ms) BEGIN
22607
+ SQL (1.1ms) 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: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
+  (0.3ms) COMMIT
22609
+  (0.2ms) BEGIN
22610
+ SQL (1.1ms) 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
+  (0.3ms) COMMIT
22612
+ StripeLocal::LineItem Load (0.7ms) SELECT "stripe_local_line_items".* FROM "stripe_local_line_items" WHERE "stripe_local_line_items"."invoice_id" = $1 [["invoice_id", "in_2blahblahagain"]]
22613
+  (0.1ms) BEGIN
22614
+ SQL (0.8ms) 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
+  (0.3ms) COMMIT
22616
+  (0.1ms) BEGIN
22617
+ SQL (0.3ms) 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]]
22618
+  (0.2ms) COMMIT
22619
+  (0.1ms) BEGIN
22620
+ SQL (0.3ms) 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
+  (0.4ms) COMMIT
22622
+  (0.1ms) BEGIN
22623
+ SQL (0.2ms) 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]]
22624
+  (0.2ms) COMMIT
22625
+  (0.2ms) SELECT "stripe_local_balances"."available" FROM "stripe_local_balances"
22626
+  (0.1ms) BEGIN
22627
+ SQL (0.3ms) 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]]
22628
+  (0.3ms) COMMIT
22629
+  (0.1ms) BEGIN
22630
+ SQL (0.2ms) 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
+  (0.2ms) COMMIT
22632
+  (0.1ms) BEGIN
22633
+ SQL (0.3ms) 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]]
22634
+  (0.2ms) COMMIT
22635
+  (0.1ms) BEGIN
22636
+ SQL (0.2ms) 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
+  (0.2ms) COMMIT
22638
+  (0.1ms) SELECT "stripe_local_balances"."available" FROM "stripe_local_balances"
22639
+  (0.1ms) BEGIN
22640
+ SQL (0.3ms) 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
+  (0.2ms) COMMIT
22642
+  (0.0ms) BEGIN
22643
+ SQL (0.2ms) 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]]
22644
+  (0.2ms) COMMIT
22645
+  (0.1ms) SELECT COUNT(*) FROM "stripe_local_balances"
22646
+  (0.0ms) BEGIN
22647
+ SQL (0.2ms) 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:09 CST -06:00], ["pending", 0], ["updated_at", Sat, 07 Dec 2013 08:16:09 CST -06:00]]
22648
+  (0.2ms) COMMIT
22649
+  (0.1ms) SELECT COUNT(*) FROM "stripe_local_balances"
22650
+  (0.1ms) BEGIN
22651
+ SQL (0.3ms) 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]]
22652
+  (0.3ms) COMMIT
22653
+  (0.1ms) BEGIN
22654
+ SQL (0.2ms) 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
+  (0.2ms) COMMIT
22656
+  (0.1ms) SELECT "stripe_local_balances"."pending" FROM "stripe_local_balances"
22657
+  (0.1ms) BEGIN
22658
+ SQL (0.4ms) 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
+  (0.3ms) COMMIT
22660
+  (0.1ms) BEGIN
22661
+ SQL (0.2ms) 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]]
22662
+  (0.2ms) COMMIT
22663
+  (0.2ms) SELECT COUNT(*) FROM "stripe_local_balances"
22664
+ StripeLocal::Balance Load (0.4ms) SELECT "stripe_local_balances".* FROM "stripe_local_balances" ORDER BY "stripe_local_balances"."id" DESC LIMIT 1
22665
+ StripeLocal::Balance Load (0.2ms) SELECT "stripe_local_balances".* FROM "stripe_local_balances" ORDER BY "stripe_local_balances"."id" DESC LIMIT 1
22666
+ SQL (0.5ms) UPDATE "stripe_local_balances" SET "updated_at" = '2013-12-08 14:16:09.239708' WHERE "stripe_local_balances"."id" = 15
22667
+  (0.2ms) SELECT COUNT(*) FROM "stripe_local_balances"
22668
+ StripeLocal::Balance Load (0.2ms) SELECT "stripe_local_balances".* FROM "stripe_local_balances" ORDER BY "stripe_local_balances"."id" DESC LIMIT 1
22669
+  (0.2ms) BEGIN
22670
+ SQL (1.4ms) 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
+  (0.4ms) COMMIT
22672
+  (0.2ms) BEGIN
22673
+ SQL (1.4ms) 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: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
+  (0.3ms) COMMIT
22675
+  (1.0ms) ALTER 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
22676
+  (1.2ms) select table_name from information_schema.views where table_schema = 'dummy_test'
22677
+  (20.6ms) TRUNCATE 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;
22678
+  (1.0ms) 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
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
22680
+  (0.1ms) BEGIN
22681
+ SQL (4.8ms) 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_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
+  (0.3ms) COMMIT
22683
+  (0.1ms) BEGIN
22684
+ SQL (0.8ms) 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
+  (0.3ms) COMMIT
22686
+  (0.1ms) BEGIN
22687
+ SQL (0.3ms) 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]]
22688
+  (0.3ms) COMMIT
22689
+  (0.1ms) BEGIN
22690
+ SQL (0.3ms) 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
+  (0.3ms) COMMIT
22692
+  (0.1ms) BEGIN
22693
+ SQL (0.2ms) 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]]
22694
+  (0.2ms) COMMIT
22695
+  (0.2ms) SELECT "stripe_local_balances"."available" FROM "stripe_local_balances"
22696
+  (0.1ms) BEGIN
22697
+ SQL (0.3ms) 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]]
22698
+  (0.3ms) COMMIT
22699
+  (0.1ms) BEGIN
22700
+ SQL (0.3ms) 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
+  (0.2ms) COMMIT
22702
+  (0.1ms) BEGIN
22703
+ SQL (0.3ms) 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]]
22704
+  (0.2ms) COMMIT
22705
+  (0.0ms) BEGIN
22706
+ SQL (0.2ms) 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
+  (0.2ms) COMMIT
22708
+  (0.4ms) SELECT COUNT(*) FROM "stripe_local_balances"
22709
+  (0.1ms) BEGIN
22710
+ SQL (0.5ms) 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
+  (0.3ms) COMMIT
22712
+  (0.1ms) SELECT COUNT(*) FROM "stripe_local_balances"
22713
+  (0.1ms) BEGIN
22714
+ SQL (0.3ms) 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
+  (0.3ms) COMMIT
22716
+  (0.1ms) BEGIN
22717
+ SQL (0.2ms) 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]]
22718
+  (0.2ms) COMMIT
22719
+  (0.1ms) SELECT COUNT(*) FROM "stripe_local_balances"
22720
+ StripeLocal::Balance Load (0.3ms) SELECT "stripe_local_balances".* FROM "stripe_local_balances" ORDER BY "stripe_local_balances"."id" DESC LIMIT 1
22721
+ StripeLocal::Balance Load (0.2ms) SELECT "stripe_local_balances".* FROM "stripe_local_balances" ORDER BY "stripe_local_balances"."id" DESC LIMIT 1
22722
+ SQL (0.5ms) UPDATE "stripe_local_balances" SET "updated_at" = '2013-12-08 14:16:13.821293' WHERE "stripe_local_balances"."id" = 11
22723
+  (0.2ms) SELECT COUNT(*) FROM "stripe_local_balances"
22724
+ StripeLocal::Balance Load (0.2ms) SELECT "stripe_local_balances".* FROM "stripe_local_balances" ORDER BY "stripe_local_balances"."id" DESC LIMIT 1
22725
+  (0.1ms) BEGIN
22726
+ SQL (0.5ms) 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
+  (0.3ms) COMMIT
22728
+  (0.1ms) BEGIN
22729
+ SQL (0.2ms) 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]]
22730
+  (0.2ms) COMMIT
22731
+  (0.1ms) SELECT "stripe_local_balances"."pending" FROM "stripe_local_balances"
22732
+  (0.1ms) BEGIN
22733
+ SQL (0.3ms) 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]]
22734
+  (0.3ms) COMMIT
22735
+  (0.1ms) BEGIN
22736
+ SQL (0.2ms) 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
+  (0.2ms) COMMIT
22738
+  (0.1ms) SELECT "stripe_local_balances"."available" FROM "stripe_local_balances"
22739
+ StripeLocal::Customer Load (0.5ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
22740
+  (0.1ms) BEGIN
22741
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
22742
+ StripeLocal::Customer Load (0.1ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
22743
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
22744
+ StripeLocal::Customer Load (0.1ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
22745
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
22746
+ StripeLocal::Customer Load (0.1ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
22747
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
22748
+ StripeLocal::Customer Load (0.1ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
22749
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
22750
+ StripeLocal::Customer Load (0.1ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
22751
+ StripeLocal::Customer Load (0.1ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
22752
+ StripeLocal::Customer Load (0.1ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
22753
+ StripeLocal::Customer Load (0.1ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
22754
+ StripeLocal::Customer Load (0.1ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
22755
+ StripeLocal::Customer Load (0.1ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
22756
+ StripeLocal::Customer Load (0.1ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
22757
+ SQL (0.5ms) INSERT INTO "clients" ("email", "name", "password") VALUES ($1, $2, $3) RETURNING "id" [["email", "test@test.com"], ["name", "Test Case"], ["password", "password"]]
22758
+  (0.3ms) COMMIT
22759
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" = 1 LIMIT 1
22760
+ StripeLocal::Customer Load (0.1ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" = 1 LIMIT 1
22761
+  (0.1ms) BEGIN
22762
+ SQL (0.4ms) 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
+  (0.3ms) COMMIT
22764
+  (0.2ms) BEGIN
22765
+ SQL (1.2ms) 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: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
+  (0.3ms) COMMIT
22767
+  (0.1ms) BEGIN
22768
+ SQL (1.1ms) 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
+  (0.3ms) COMMIT
22770
+ StripeLocal::Customer Load (0.4ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" = 1 LIMIT 1
22771
+ StripeLocal::Subscription Load (0.5ms) SELECT "stripe_local_subscriptions".* FROM "stripe_local_subscriptions" WHERE "stripe_local_subscriptions"."customer_id" = 'cus_123' LIMIT 1
22772
+  (0.2ms) BEGIN
22773
+ SQL (1.4ms) 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: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
+  (0.3ms) COMMIT
22775
+ StripeLocal::Plan Load (0.3ms) SELECT "stripe_local_plans".* FROM "stripe_local_plans" WHERE "stripe_local_plans"."id" = 'New_Plan' LIMIT 1
22776
+  (0.2ms) BEGIN
22777
+ SQL (1.0ms) 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: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
+  (0.3ms) COMMIT
22779
+  (0.2ms) BEGIN
22780
+ SQL (1.1ms) 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
+  (0.4ms) COMMIT
22782
+  (0.1ms) BEGIN
22783
+ SQL (1.0ms) 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: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
+  (0.3ms) COMMIT
22785
+ StripeLocal::LineItem Load (0.8ms) SELECT "stripe_local_line_items".* FROM "stripe_local_line_items" WHERE "stripe_local_line_items"."invoice_id" = $1 [["invoice_id", "in_2blahblahagain"]]
22786
+  (0.2ms) BEGIN
22787
+ SQL (1.1ms) 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: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
+  (0.4ms) COMMIT
22789
+  (0.2ms) BEGIN
22790
+ SQL (1.1ms) 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
+  (0.5ms) COMMIT
22792
+  (0.1ms) BEGIN
22793
+ SQL (0.5ms) 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: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
+  (0.3ms) COMMIT
22795
+  (0.9ms) ALTER 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
22796
+  (1.1ms) select table_name from information_schema.views where table_schema = 'dummy_test'
22797
+  (20.1ms) TRUNCATE 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;
22798
+  (0.8ms) 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
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
22800
+  (0.1ms) BEGIN
22801
+ SQL (4.4ms) 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]]
22802
+  (1.5ms) COMMIT
22803
+  (0.1ms) BEGIN
22804
+ SQL (0.4ms) 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
+  (0.3ms) COMMIT
22806
+  (0.1ms) BEGIN
22807
+ SQL (0.3ms) 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]]
22808
+  (0.2ms) COMMIT
22809
+  (0.1ms) BEGIN
22810
+ SQL (0.2ms) 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
+  (0.2ms) COMMIT
22812
+  (0.4ms) SELECT COUNT(*) FROM "stripe_local_balances"
22813
+  (0.1ms) BEGIN
22814
+ SQL (0.2ms) 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
+  (0.2ms) COMMIT
22816
+  (0.1ms) SELECT COUNT(*) FROM "stripe_local_balances"
22817
+  (0.1ms) BEGIN
22818
+ SQL (0.4ms) 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
+  (0.4ms) COMMIT
22820
+  (0.1ms) BEGIN
22821
+ SQL (0.2ms) 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]]
22822
+  (0.2ms) COMMIT
22823
+  (0.2ms) SELECT "stripe_local_balances"."available" FROM "stripe_local_balances"
22824
+  (0.1ms) BEGIN
22825
+ SQL (0.3ms) 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]]
22826
+  (0.3ms) COMMIT
22827
+  (0.1ms) BEGIN
22828
+ SQL (0.4ms) 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
+  (0.3ms) COMMIT
22830
+  (0.2ms) SELECT "stripe_local_balances"."available" FROM "stripe_local_balances"
22831
+  (0.1ms) BEGIN
22832
+ SQL (0.3ms) 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
+  (0.3ms) COMMIT
22834
+  (0.1ms) BEGIN
22835
+ SQL (0.3ms) 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]]
22836
+  (0.2ms) COMMIT
22837
+  (0.1ms) SELECT "stripe_local_balances"."pending" FROM "stripe_local_balances"
22838
+  (0.1ms) BEGIN
22839
+ SQL (0.3ms) 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]]
22840
+  (0.3ms) COMMIT
22841
+  (0.1ms) BEGIN
22842
+ SQL (0.2ms) 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
+  (0.2ms) COMMIT
22844
+  (0.1ms) SELECT COUNT(*) FROM "stripe_local_balances"
22845
+ StripeLocal::Balance Load (0.3ms) SELECT "stripe_local_balances".* FROM "stripe_local_balances" ORDER BY "stripe_local_balances"."id" DESC LIMIT 1
22846
+ StripeLocal::Balance Load (0.2ms) SELECT "stripe_local_balances".* FROM "stripe_local_balances" ORDER BY "stripe_local_balances"."id" DESC LIMIT 1
22847
+ SQL (0.5ms) UPDATE "stripe_local_balances" SET "updated_at" = '2013-12-08 14:20:08.463493' WHERE "stripe_local_balances"."id" = 13
22848
+  (0.2ms) SELECT COUNT(*) FROM "stripe_local_balances"
22849
+ StripeLocal::Balance Load (0.2ms) SELECT "stripe_local_balances".* FROM "stripe_local_balances" ORDER BY "stripe_local_balances"."id" DESC LIMIT 1
22850
+  (0.1ms) BEGIN
22851
+ SQL (0.5ms) 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]]
22852
+  (0.3ms) COMMIT
22853
+  (0.1ms) BEGIN
22854
+ SQL (0.2ms) 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
+  (0.2ms) COMMIT
22856
+  (0.2ms) BEGIN
22857
+ SQL (1.5ms) 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: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
+  (0.3ms) COMMIT
22859
+  (0.2ms) BEGIN
22860
+ SQL (1.2ms) 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
+  (0.4ms) COMMIT
22862
+  (0.1ms) BEGIN
22863
+ SQL (1.7ms) 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: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
+  (0.3ms) COMMIT
22865
+  (0.2ms) BEGIN
22866
+ SQL (1.0ms) 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
+  (0.3ms) COMMIT
22868
+  (0.2ms) BEGIN
22869
+ SQL (1.0ms) 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: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
+  (0.3ms) COMMIT
22871
+  (0.1ms) BEGIN
22872
+ SQL (1.1ms) 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
+  (0.4ms) COMMIT
22874
+ StripeLocal::LineItem Load (0.8ms) SELECT "stripe_local_line_items".* FROM "stripe_local_line_items" WHERE "stripe_local_line_items"."invoice_id" = $1 [["invoice_id", "in_2blahblahagain"]]
22875
+ StripeLocal::Plan Load (0.3ms) SELECT "stripe_local_plans".* FROM "stripe_local_plans" WHERE "stripe_local_plans"."id" = 'New_Plan' LIMIT 1
22876
+  (0.2ms) BEGIN
22877
+ SQL (1.1ms) 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: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
+  (0.3ms) COMMIT
22879
+ StripeLocal::Customer Load (0.3ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
22880
+  (0.1ms) BEGIN
22881
+ StripeLocal::Customer Load (0.3ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
22882
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
22883
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
22884
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
22885
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
22886
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
22887
+ StripeLocal::Customer Load (0.3ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
22888
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
22889
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
22890
+ StripeLocal::Customer Load (0.1ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
22891
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
22892
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
22893
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
22894
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
22895
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
22896
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
22897
+ SQL (0.6ms) INSERT INTO "clients" ("email", "name", "password") VALUES ($1, $2, $3) RETURNING "id" [["email", "test@test.com"], ["name", "Test Case"], ["password", "password"]]
22898
+  (0.3ms) COMMIT
22899
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" = 1 LIMIT 1
22900
+ StripeLocal::Customer Load (0.1ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" = 1 LIMIT 1
22901
+  (0.1ms) BEGIN
22902
+ SQL (0.4ms) 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
+  (0.3ms) COMMIT
22904
+  (0.1ms) BEGIN
22905
+ SQL (0.4ms) 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", 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
+  (0.2ms) COMMIT
22907
+  (0.2ms) BEGIN
22908
+ SQL (1.1ms) 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
+  (0.3ms) COMMIT
22910
+ StripeLocal::Customer Load (0.3ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" = 1 LIMIT 1
22911
+ StripeLocal::Subscription Load (0.3ms) SELECT "stripe_local_subscriptions".* FROM "stripe_local_subscriptions" WHERE "stripe_local_subscriptions"."customer_id" = 'cus_123' LIMIT 1
22912
+  (0.2ms) BEGIN
22913
+ SQL (1.9ms) 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: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
+  (0.5ms) COMMIT
22915
+  (1.0ms) ALTER 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
22916
+  (1.3ms) select table_name from information_schema.views where table_schema = 'dummy_test'
22917
+  (23.2ms) TRUNCATE 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;
22918
+  (1.5ms) 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
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
22920
+ StripeLocal::Customer Load (0.4ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
22921
+  (0.2ms) BEGIN
22922
+ StripeLocal::Customer Load (0.3ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
22923
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
22924
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
22925
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
22926
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
22927
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
22928
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
22929
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
22930
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
22931
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
22932
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
22933
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
22934
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
22935
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
22936
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
22937
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
22938
+ SQL (0.9ms) INSERT INTO "clients" ("email", "name", "password") VALUES ($1, $2, $3) RETURNING "id" [["email", "test@test.com"], ["name", "Test Case"], ["password", "password"]]
22939
+  (0.2ms) COMMIT
22940
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" = 1 LIMIT 1
22941
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" = 1 LIMIT 1
22942
+  (0.1ms) BEGIN
22943
+ SQL (31.4ms) 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: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
+  (0.4ms) COMMIT
22945
+  (0.1ms) BEGIN
22946
+ SQL (1.1ms) 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
+  (1.5ms) COMMIT
22948
+  (0.1ms) BEGIN
22949
+ SQL (0.9ms) 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: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
+  (0.3ms) COMMIT
22951
+ StripeLocal::Customer Load (0.3ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" = 1 LIMIT 1
22952
+ StripeLocal::Subscription Load (0.4ms) SELECT "stripe_local_subscriptions".* FROM "stripe_local_subscriptions" WHERE "stripe_local_subscriptions"."customer_id" = 'cus_123' LIMIT 1
22953
+  (0.2ms) BEGIN
22954
+ SQL (1.4ms) 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
+  (0.4ms) COMMIT
22956
+  (0.1ms) BEGIN
22957
+ SQL (1.0ms) 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: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
+  (0.3ms) COMMIT
22959
+  (0.1ms) BEGIN
22960
+ SQL (1.1ms) 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
+  (0.4ms) COMMIT
22962
+ StripeLocal::LineItem Load (0.6ms) SELECT "stripe_local_line_items".* FROM "stripe_local_line_items" WHERE "stripe_local_line_items"."invoice_id" = $1 [["invoice_id", "in_2blahblahagain"]]
22963
+  (0.1ms) BEGIN
22964
+ SQL (0.6ms) 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
+  (0.3ms) COMMIT
22966
+  (0.2ms) BEGIN
22967
+ SQL (1.2ms) 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: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
+  (0.4ms) COMMIT
22969
+  (0.1ms) BEGIN
22970
+ SQL (1.2ms) 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
+  (0.3ms) COMMIT
22972
+ StripeLocal::Plan Load (0.3ms) SELECT "stripe_local_plans".* FROM "stripe_local_plans" WHERE "stripe_local_plans"."id" = 'New_Plan' LIMIT 1
22973
+  (0.2ms) BEGIN
22974
+ SQL (1.0ms) 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
+  (0.4ms) COMMIT
22976
+  (0.1ms) BEGIN
22977
+ SQL (0.6ms) 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: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
+  (0.3ms) COMMIT
22979
+  (0.1ms) BEGIN
22980
+ SQL (0.9ms) 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
+  (0.3ms) COMMIT
22982
+  (0.1ms) BEGIN
22983
+ SQL (0.3ms) 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]]
22984
+  (0.3ms) COMMIT
22985
+  (0.2ms) SELECT COUNT(*) FROM "stripe_local_balances"
22986
+  (0.1ms) BEGIN
22987
+ SQL (0.3ms) 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:17 CST -06:00], ["pending", 0], ["updated_at", Sat, 07 Dec 2013 08:20:17 CST -06:00]]
22988
+  (0.3ms) COMMIT
22989
+  (0.3ms) SELECT COUNT(*) FROM "stripe_local_balances"
22990
+  (0.1ms) BEGIN
22991
+ SQL (0.7ms) 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]]
22992
+  (0.3ms) COMMIT
22993
+  (0.1ms) BEGIN
22994
+ SQL (0.3ms) 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
+  (0.3ms) COMMIT
22996
+  (0.2ms) SELECT "stripe_local_balances"."available" FROM "stripe_local_balances"
22997
+  (0.1ms) BEGIN
22998
+ SQL (0.3ms) 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
+  (0.2ms) COMMIT
23000
+  (0.1ms) BEGIN
23001
+ SQL (0.2ms) 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]]
23002
+  (0.2ms) COMMIT
23003
+  (0.1ms) SELECT "stripe_local_balances"."pending" FROM "stripe_local_balances"
23004
+  (0.1ms) BEGIN
23005
+ SQL (0.5ms) 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]]
23006
+  (0.2ms) COMMIT
23007
+  (0.1ms) BEGIN
23008
+ SQL (0.3ms) 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
+  (0.2ms) COMMIT
23010
+  (0.2ms) SELECT "stripe_local_balances"."available" FROM "stripe_local_balances"
23011
+  (0.1ms) BEGIN
23012
+ SQL (0.3ms) 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
+  (0.2ms) COMMIT
23014
+  (0.1ms) BEGIN
23015
+ SQL (0.2ms) 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]]
23016
+  (0.2ms) COMMIT
23017
+  (0.1ms) BEGIN
23018
+ SQL (0.3ms) 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
+  (0.4ms) COMMIT
23020
+  (0.1ms) BEGIN
23021
+ SQL (0.2ms) 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]]
23022
+  (0.2ms) COMMIT
23023
+  (0.1ms) SELECT COUNT(*) FROM "stripe_local_balances"
23024
+ StripeLocal::Balance Load (0.3ms) SELECT "stripe_local_balances".* FROM "stripe_local_balances" ORDER BY "stripe_local_balances"."id" DESC LIMIT 1
23025
+ StripeLocal::Balance Load (0.2ms) SELECT "stripe_local_balances".* FROM "stripe_local_balances" ORDER BY "stripe_local_balances"."id" DESC LIMIT 1
23026
+ SQL (0.4ms) UPDATE "stripe_local_balances" SET "updated_at" = '2013-12-08 14:20:17.450206' WHERE "stripe_local_balances"."id" = 13
23027
+  (0.2ms) SELECT COUNT(*) FROM "stripe_local_balances"
23028
+ StripeLocal::Balance Load (0.2ms) SELECT "stripe_local_balances".* FROM "stripe_local_balances" ORDER BY "stripe_local_balances"."id" DESC LIMIT 1
23029
+  (0.1ms) BEGIN
23030
+ SQL (0.3ms) 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
+  (0.3ms) COMMIT
23032
+  (0.1ms) BEGIN
23033
+ SQL (0.2ms) 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]]
23034
+  (0.2ms) COMMIT
23035
+  (1.0ms) ALTER 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
23036
+  (1.3ms) select table_name from information_schema.views where table_schema = 'dummy_test'
23037
+  (24.3ms) TRUNCATE 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;
23038
+  (0.7ms) 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
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
23040
+  (0.1ms) BEGIN
23041
+ SQL (4.2ms) 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: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
+  (0.3ms) COMMIT
23043
+  (0.1ms) BEGIN
23044
+ SQL (1.0ms) 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
+  (0.3ms) COMMIT
23046
+  (0.1ms) BEGIN
23047
+ SQL (0.5ms) 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]]
23048
+  (0.3ms) COMMIT
23049
+  (0.2ms) SELECT COUNT(*) FROM "stripe_local_balances"
23050
+ StripeLocal::Balance Load (0.3ms) SELECT "stripe_local_balances".* FROM "stripe_local_balances" ORDER BY "stripe_local_balances"."id" DESC LIMIT 1
23051
+ StripeLocal::Balance Load (0.2ms) SELECT "stripe_local_balances".* FROM "stripe_local_balances" ORDER BY "stripe_local_balances"."id" DESC LIMIT 1
23052
+ SQL (0.4ms) UPDATE "stripe_local_balances" SET "updated_at" = '2013-12-08 14:20:28.863615' WHERE "stripe_local_balances"."id" = 2
23053
+  (0.2ms) SELECT COUNT(*) FROM "stripe_local_balances"
23054
+ StripeLocal::Balance Load (0.3ms) SELECT "stripe_local_balances".* FROM "stripe_local_balances" ORDER BY "stripe_local_balances"."id" DESC LIMIT 1
23055
+  (0.3ms) BEGIN
23056
+ SQL (0.6ms) 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
+  (0.4ms) COMMIT
23058
+  (0.1ms) BEGIN
23059
+ SQL (0.2ms) 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]]
23060
+  (0.2ms) COMMIT
23061
+  (0.1ms) BEGIN
23062
+ SQL (0.3ms) 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
+  (0.3ms) COMMIT
23064
+  (0.1ms) BEGIN
23065
+ SQL (0.2ms) 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]]
23066
+  (0.2ms) COMMIT
23067
+  (0.1ms) SELECT COUNT(*) FROM "stripe_local_balances"
23068
+  (0.0ms) BEGIN
23069
+ SQL (0.2ms) 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:28 CST -06:00], ["pending", 0], ["updated_at", Sat, 07 Dec 2013 08:20:28 CST -06:00]]
23070
+  (0.2ms) COMMIT
23071
+  (0.1ms) SELECT COUNT(*) FROM "stripe_local_balances"
23072
+  (0.1ms) BEGIN
23073
+ SQL (0.3ms) 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]]
23074
+  (0.2ms) COMMIT
23075
+  (0.0ms) BEGIN
23076
+ SQL (0.2ms) 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
+  (0.2ms) COMMIT
23078
+  (0.1ms) SELECT "stripe_local_balances"."available" FROM "stripe_local_balances"
23079
+  (0.1ms) BEGIN
23080
+ SQL (0.3ms) 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
+  (0.3ms) COMMIT
23082
+  (0.1ms) BEGIN
23083
+ SQL (0.2ms) 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]]
23084
+  (0.2ms) COMMIT
23085
+  (0.1ms) SELECT "stripe_local_balances"."pending" FROM "stripe_local_balances"
23086
+  (0.1ms) BEGIN
23087
+ SQL (0.3ms) 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]]
23088
+  (0.2ms) COMMIT
23089
+  (0.0ms) BEGIN
23090
+ SQL (0.2ms) 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
+  (0.2ms) COMMIT
23092
+  (0.1ms) SELECT "stripe_local_balances"."available" FROM "stripe_local_balances"
23093
+  (0.1ms) BEGIN
23094
+ SQL (0.3ms) 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
+  (0.2ms) COMMIT
23096
+  (0.0ms) BEGIN
23097
+ SQL (0.2ms) 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]]
23098
+  (0.2ms) COMMIT
23099
+  (0.2ms) BEGIN
23100
+ SQL (1.2ms) 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
+  (1.5ms) COMMIT
23102
+  (0.2ms) BEGIN
23103
+ SQL (1.8ms) 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: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
+  (0.3ms) COMMIT
23105
+ StripeLocal::Plan Load (0.4ms) SELECT "stripe_local_plans".* FROM "stripe_local_plans" WHERE "stripe_local_plans"."id" = 'New_Plan' LIMIT 1
23106
+  (0.1ms) BEGIN
23107
+ SQL (0.8ms) 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: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
+  (0.3ms) COMMIT
23109
+  (0.2ms) BEGIN
23110
+ SQL (1.2ms) 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
+  (0.3ms) COMMIT
23112
+  (0.1ms) BEGIN
23113
+ SQL (1.1ms) 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: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
+  (0.4ms) COMMIT
23115
+  (0.2ms) BEGIN
23116
+ SQL (1.1ms) 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
+  (0.3ms) COMMIT
23118
+  (0.1ms) BEGIN
23119
+ SQL (2.1ms) 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: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
+  (0.6ms) COMMIT
23121
+ StripeLocal::LineItem Load (0.7ms) SELECT "stripe_local_line_items".* FROM "stripe_local_line_items" WHERE "stripe_local_line_items"."invoice_id" = $1 [["invoice_id", "in_2blahblahagain"]]
23122
+ StripeLocal::Customer Load (0.3ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
23123
+  (0.1ms) BEGIN
23124
+ StripeLocal::Customer Load (0.3ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
23125
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
23126
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
23127
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
23128
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
23129
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
23130
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
23131
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
23132
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
23133
+ StripeLocal::Customer Load (0.1ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
23134
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
23135
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
23136
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
23137
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
23138
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
23139
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
23140
+ SQL (0.6ms) INSERT INTO "clients" ("email", "name", "password") VALUES ($1, $2, $3) RETURNING "id" [["email", "test@test.com"], ["name", "Test Case"], ["password", "password"]]
23141
+  (0.3ms) COMMIT
23142
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" = 1 LIMIT 1
23143
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" = 1 LIMIT 1
23144
+  (0.1ms) BEGIN
23145
+ SQL (0.4ms) 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: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
+  (0.3ms) COMMIT
23147
+  (0.1ms) BEGIN
23148
+ SQL (0.4ms) 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
+  (0.4ms) COMMIT
23150
+  (0.2ms) BEGIN
23151
+ SQL (0.9ms) 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: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
+  (0.3ms) COMMIT
23153
+ StripeLocal::Customer Load (0.3ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" = 1 LIMIT 1
23154
+ StripeLocal::Subscription Load (0.3ms) SELECT "stripe_local_subscriptions".* FROM "stripe_local_subscriptions" WHERE "stripe_local_subscriptions"."customer_id" = 'cus_123' LIMIT 1
23155
+  (0.8ms) ALTER 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
23156
+  (1.2ms) select table_name from information_schema.views where table_schema = 'dummy_test'
23157
+  (20.5ms) TRUNCATE 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;
23158
+  (1.0ms) 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
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
23160
+  (0.1ms) BEGIN
23161
+ SQL (6.1ms) 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_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
+  (0.3ms) COMMIT
23163
+ StripeLocal::Plan Load (0.4ms) SELECT "stripe_local_plans".* FROM "stripe_local_plans" WHERE "stripe_local_plans"."id" = 'New_Plan' LIMIT 1
23164
+  (0.1ms) BEGIN
23165
+ SQL (0.7ms) 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: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
+  (0.4ms) COMMIT
23167
+ StripeLocal::Customer Load (0.4ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
23168
+  (0.1ms) BEGIN
23169
+ StripeLocal::Customer Load (0.3ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
23170
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
23171
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
23172
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
23173
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
23174
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
23175
+ StripeLocal::Customer Load (0.3ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
23176
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
23177
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
23178
+ StripeLocal::Customer Load (0.1ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
23179
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
23180
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
23181
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
23182
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
23183
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
23184
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
23185
+ SQL (0.6ms) INSERT INTO "clients" ("email", "name", "password") VALUES ($1, $2, $3) RETURNING "id" [["email", "test@test.com"], ["name", "Test Case"], ["password", "password"]]
23186
+  (0.3ms) COMMIT
23187
+ StripeLocal::Customer Load (0.3ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" = 1 LIMIT 1
23188
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" = 1 LIMIT 1
23189
+  (0.1ms) BEGIN
23190
+ SQL (0.5ms) 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
+  (0.3ms) COMMIT
23192
+  (0.2ms) BEGIN
23193
+ SQL (1.2ms) 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: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
+  (6.4ms) COMMIT
23195
+  (0.1ms) BEGIN
23196
+ SQL (0.8ms) 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
+  (0.4ms) COMMIT
23198
+ StripeLocal::Customer Load (0.3ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" = 1 LIMIT 1
23199
+ StripeLocal::Subscription Load (0.3ms) SELECT "stripe_local_subscriptions".* FROM "stripe_local_subscriptions" WHERE "stripe_local_subscriptions"."customer_id" = 'cus_123' LIMIT 1
23200
+  (0.2ms) BEGIN
23201
+ SQL (1.2ms) 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: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
+  (0.4ms) COMMIT
23203
+  (0.1ms) BEGIN
23204
+ SQL (1.0ms) 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
+  (0.3ms) COMMIT
23206
+  (0.2ms) BEGIN
23207
+ SQL (1.1ms) 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: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
+  (0.3ms) COMMIT
23209
+ StripeLocal::LineItem Load (0.7ms) SELECT "stripe_local_line_items".* FROM "stripe_local_line_items" WHERE "stripe_local_line_items"."invoice_id" = $1 [["invoice_id", "in_2blahblahagain"]]
23210
+  (0.1ms) BEGIN
23211
+ SQL (0.8ms) 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]]
23212
+  (0.3ms) COMMIT
23213
+  (0.1ms) BEGIN
23214
+ SQL (0.5ms) 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
+  (0.4ms) COMMIT
23216
+  (0.1ms) BEGIN
23217
+ SQL (0.3ms) 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]]
23218
+  (0.3ms) COMMIT
23219
+  (0.1ms) BEGIN
23220
+ SQL (0.2ms) 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
+  (0.2ms) COMMIT
23222
+  (0.2ms) SELECT "stripe_local_balances"."pending" FROM "stripe_local_balances"
23223
+  (0.1ms) BEGIN
23224
+ SQL (0.3ms) 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
+  (0.3ms) COMMIT
23226
+  (0.1ms) BEGIN
23227
+ SQL (0.2ms) 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]]
23228
+  (0.4ms) COMMIT
23229
+  (0.2ms) SELECT COUNT(*) FROM "stripe_local_balances"
23230
+ StripeLocal::Balance Load (0.3ms) SELECT "stripe_local_balances".* FROM "stripe_local_balances" ORDER BY "stripe_local_balances"."id" DESC LIMIT 1
23231
+ StripeLocal::Balance Load (0.2ms) SELECT "stripe_local_balances".* FROM "stripe_local_balances" ORDER BY "stripe_local_balances"."id" DESC LIMIT 1
23232
+ SQL (0.4ms) UPDATE "stripe_local_balances" SET "updated_at" = '2013-12-08 14:20:33.728291' WHERE "stripe_local_balances"."id" = 6
23233
+  (0.2ms) SELECT COUNT(*) FROM "stripe_local_balances"
23234
+ StripeLocal::Balance Load (0.2ms) SELECT "stripe_local_balances".* FROM "stripe_local_balances" ORDER BY "stripe_local_balances"."id" DESC LIMIT 1
23235
+  (0.1ms) BEGIN
23236
+ SQL (0.3ms) 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
+  (0.3ms) COMMIT
23238
+  (0.1ms) BEGIN
23239
+ SQL (0.2ms) 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]]
23240
+  (0.2ms) COMMIT
23241
+  (0.1ms) SELECT "stripe_local_balances"."available" FROM "stripe_local_balances"
23242
+  (0.1ms) BEGIN
23243
+ SQL (0.3ms) 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]]
23244
+  (0.2ms) COMMIT
23245
+  (0.1ms) BEGIN
23246
+ SQL (0.2ms) 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
+  (0.2ms) COMMIT
23248
+  (0.1ms) BEGIN
23249
+ SQL (0.3ms) 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]]
23250
+  (0.3ms) COMMIT
23251
+  (0.1ms) BEGIN
23252
+ SQL (0.2ms) 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
+  (0.2ms) COMMIT
23254
+  (0.1ms) SELECT "stripe_local_balances"."available" FROM "stripe_local_balances"
23255
+  (0.1ms) BEGIN
23256
+ SQL (0.3ms) 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
+  (0.2ms) COMMIT
23258
+  (0.1ms) BEGIN
23259
+ SQL (0.2ms) 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]]
23260
+  (0.2ms) COMMIT
23261
+  (0.1ms) SELECT COUNT(*) FROM "stripe_local_balances"
23262
+  (0.0ms) BEGIN
23263
+ SQL (0.2ms) 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:33 CST -06:00], ["pending", 0], ["updated_at", Sat, 07 Dec 2013 08:20:33 CST -06:00]]
23264
+  (0.2ms) COMMIT
23265
+  (0.1ms) SELECT COUNT(*) FROM "stripe_local_balances"
23266
+  (0.1ms) BEGIN
23267
+ SQL (0.5ms) 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: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
+  (0.3ms) COMMIT
23269
+  (0.2ms) BEGIN
23270
+ SQL (1.1ms) 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
+  (0.3ms) COMMIT
23272
+  (0.2ms) BEGIN
23273
+ SQL (1.6ms) 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: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
+  (0.5ms) COMMIT
23275
+  (1.0ms) ALTER 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
23276
+  (1.6ms) select table_name from information_schema.views where table_schema = 'dummy_test'
23277
+  (21.3ms) TRUNCATE 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;
23278
+  (1.0ms) 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
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
23280
+ StripeLocal::Customer Load (0.5ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
23281
+  (0.1ms) BEGIN
23282
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
23283
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
23284
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
23285
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
23286
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
23287
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
23288
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
23289
+ StripeLocal::Customer Load (0.1ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
23290
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
23291
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
23292
+ StripeLocal::Customer Load (0.1ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
23293
+ StripeLocal::Customer Load (0.1ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
23294
+ StripeLocal::Customer Load (0.1ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
23295
+ StripeLocal::Customer Load (0.1ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
23296
+ StripeLocal::Customer Load (0.1ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
23297
+ StripeLocal::Customer Load (0.1ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
23298
+ SQL (0.7ms) INSERT INTO "clients" ("email", "name", "password") VALUES ($1, $2, $3) RETURNING "id" [["email", "test@test.com"], ["name", "Test Case"], ["password", "password"]]
23299
+  (0.3ms) COMMIT
23300
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" = 1 LIMIT 1
23301
+ StripeLocal::Customer Load (0.1ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" = 1 LIMIT 1
23302
+  (0.2ms) BEGIN
23303
+ SQL (32.8ms) 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: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
+  (0.3ms) COMMIT
23305
+  (0.1ms) BEGIN
23306
+ SQL (1.1ms) 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
+  (0.4ms) COMMIT
23308
+  (0.2ms) BEGIN
23309
+ SQL (1.1ms) 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: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
+  (0.3ms) COMMIT
23311
+ StripeLocal::Customer Load (0.3ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" = 1 LIMIT 1
23312
+ StripeLocal::Subscription Load (0.4ms) SELECT "stripe_local_subscriptions".* FROM "stripe_local_subscriptions" WHERE "stripe_local_subscriptions"."customer_id" = 'cus_123' LIMIT 1
23313
+  (0.1ms) BEGIN
23314
+ SQL (0.6ms) 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
+  (0.3ms) COMMIT
23316
+  (0.2ms) BEGIN
23317
+ SQL (1.4ms) 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: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
+  (0.3ms) COMMIT
23319
+  (0.2ms) BEGIN
23320
+ SQL (1.1ms) 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
+  (0.4ms) COMMIT
23322
+ StripeLocal::LineItem Load (0.6ms) SELECT "stripe_local_line_items".* FROM "stripe_local_line_items" WHERE "stripe_local_line_items"."invoice_id" = $1 [["invoice_id", "in_2blahblahagain"]]
23323
+  (0.1ms) BEGIN
23324
+ SQL (0.5ms) 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
+  (0.3ms) COMMIT
23326
+  (0.2ms) BEGIN
23327
+ SQL (1.7ms) 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: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
+  (0.3ms) COMMIT
23329
+  (0.2ms) BEGIN
23330
+ SQL (1.1ms) 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
+  (0.9ms) COMMIT
23332
+  (0.1ms) BEGIN
23333
+ SQL (1.3ms) 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: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
+  (0.3ms) COMMIT
23335
+ StripeLocal::Plan Load (0.3ms) SELECT "stripe_local_plans".* FROM "stripe_local_plans" WHERE "stripe_local_plans"."id" = 'New_Plan' LIMIT 1
23336
+  (0.2ms) BEGIN
23337
+ SQL (1.3ms) 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: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
+  (0.3ms) COMMIT
23339
+  (0.1ms) BEGIN
23340
+ SQL (0.9ms) 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
+  (0.2ms) COMMIT
23342
+  (0.1ms) BEGIN
23343
+ SQL (0.3ms) 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]]
23344
+  (0.2ms) COMMIT
23345
+  (0.1ms) BEGIN
23346
+ SQL (0.3ms) 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
+  (0.4ms) COMMIT
23348
+  (0.1ms) BEGIN
23349
+ SQL (0.2ms) 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]]
23350
+  (0.2ms) COMMIT
23351
+  (0.2ms) SELECT COUNT(*) FROM "stripe_local_balances"
23352
+ StripeLocal::Balance Load (0.3ms) SELECT "stripe_local_balances".* FROM "stripe_local_balances" ORDER BY "stripe_local_balances"."id" DESC LIMIT 1
23353
+ StripeLocal::Balance Load (0.2ms) SELECT "stripe_local_balances".* FROM "stripe_local_balances" ORDER BY "stripe_local_balances"."id" DESC LIMIT 1
23354
+ SQL (0.4ms) UPDATE "stripe_local_balances" SET "updated_at" = '2013-12-08 14:20:37.237220' WHERE "stripe_local_balances"."id" = 4
23355
+  (0.2ms) SELECT COUNT(*) FROM "stripe_local_balances"
23356
+ StripeLocal::Balance Load (0.2ms) SELECT "stripe_local_balances".* FROM "stripe_local_balances" ORDER BY "stripe_local_balances"."id" DESC LIMIT 1
23357
+  (0.1ms) BEGIN
23358
+ SQL (0.3ms) 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
+  (0.3ms) COMMIT
23360
+  (0.1ms) BEGIN
23361
+ SQL (0.3ms) 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]]
23362
+  (0.2ms) COMMIT
23363
+  (0.1ms) BEGIN
23364
+ SQL (0.4ms) 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
+  (0.3ms) COMMIT
23366
+  (0.1ms) BEGIN
23367
+ SQL (0.3ms) 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]]
23368
+  (0.2ms) COMMIT
23369
+  (0.2ms) SELECT "stripe_local_balances"."available" FROM "stripe_local_balances"
23370
+  (0.1ms) BEGIN
23371
+ SQL (0.4ms) 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]]
23372
+  (0.3ms) COMMIT
23373
+  (0.1ms) BEGIN
23374
+ SQL (0.3ms) 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
+  (0.3ms) COMMIT
23376
+  (0.2ms) SELECT COUNT(*) FROM "stripe_local_balances"
23377
+  (0.1ms) BEGIN
23378
+ SQL (0.2ms) 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
+  (0.2ms) COMMIT
23380
+  (0.1ms) SELECT COUNT(*) FROM "stripe_local_balances"
23381
+  (0.1ms) BEGIN
23382
+ SQL (0.5ms) 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
+  (0.3ms) COMMIT
23384
+  (0.1ms) BEGIN
23385
+ SQL (0.2ms) 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]]
23386
+  (0.3ms) COMMIT
23387
+  (0.1ms) SELECT "stripe_local_balances"."available" FROM "stripe_local_balances"
23388
+  (0.1ms) BEGIN
23389
+ SQL (0.3ms) 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]]
23390
+  (0.3ms) COMMIT
23391
+  (0.1ms) BEGIN
23392
+ SQL (0.2ms) 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
+  (0.2ms) COMMIT
23394
+  (0.1ms) SELECT "stripe_local_balances"."pending" FROM "stripe_local_balances"
23395
+  (0.9ms) ALTER 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
23396
+  (1.1ms) select table_name from information_schema.views where table_schema = 'dummy_test'
23397
+  (20.5ms) TRUNCATE 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;
23398
+  (0.9ms) 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
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
23400
+  (0.1ms) BEGIN
23401
+ SQL (6.3ms) 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: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
+  (0.3ms) COMMIT
23403
+  (0.2ms) BEGIN
23404
+ SQL (1.1ms) 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
+  (0.4ms) COMMIT
23406
+  (0.1ms) BEGIN
23407
+ SQL (1.1ms) 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: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
+  (0.3ms) COMMIT
23409
+ StripeLocal::LineItem Load (0.7ms) SELECT "stripe_local_line_items".* FROM "stripe_local_line_items" WHERE "stripe_local_line_items"."invoice_id" = $1 [["invoice_id", "in_2blahblahagain"]]
23410
+  (0.2ms) BEGIN
23411
+ SQL (1.2ms) 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", 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
+  (0.3ms) COMMIT
23413
+  (0.2ms) BEGIN
23414
+ SQL (1.2ms) 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
+  (0.3ms) COMMIT
23416
+  (0.1ms) BEGIN
23417
+ SQL (0.3ms) 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]]
23418
+  (0.3ms) COMMIT
23419
+  (0.1ms) BEGIN
23420
+ SQL (0.3ms) 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
+  (0.3ms) COMMIT
23422
+  (0.1ms) BEGIN
23423
+ SQL (0.2ms) 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]]
23424
+  (0.2ms) COMMIT
23425
+  (0.4ms) SELECT "stripe_local_balances"."pending" FROM "stripe_local_balances"
23426
+  (0.1ms) BEGIN
23427
+ SQL (0.3ms) 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]]
23428
+  (0.3ms) COMMIT
23429
+  (0.1ms) BEGIN
23430
+ SQL (0.2ms) 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
+  (0.2ms) COMMIT
23432
+  (0.1ms) SELECT "stripe_local_balances"."available" FROM "stripe_local_balances"
23433
+  (0.1ms) BEGIN
23434
+ SQL (0.3ms) 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
+  (0.2ms) COMMIT
23436
+  (0.0ms) BEGIN
23437
+ SQL (0.2ms) 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]]
23438
+  (0.2ms) COMMIT
23439
+  (0.1ms) BEGIN
23440
+ SQL (0.3ms) 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
+  (0.2ms) COMMIT
23442
+  (0.1ms) BEGIN
23443
+ SQL (0.2ms) 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]]
23444
+  (0.2ms) COMMIT
23445
+  (0.2ms) SELECT COUNT(*) FROM "stripe_local_balances"
23446
+  (0.0ms) BEGIN
23447
+ SQL (0.2ms) 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:49 CST -06:00], ["pending", 0], ["updated_at", Sat, 07 Dec 2013 08:25:49 CST -06:00]]
23448
+  (0.2ms) COMMIT
23449
+  (0.1ms) SELECT COUNT(*) FROM "stripe_local_balances"
23450
+  (0.1ms) BEGIN
23451
+ SQL (0.3ms) 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]]
23452
+  (0.3ms) COMMIT
23453
+  (0.1ms) BEGIN
23454
+ SQL (0.2ms) 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
+  (0.2ms) COMMIT
23456
+  (0.2ms) SELECT COUNT(*) FROM "stripe_local_balances"
23457
+ StripeLocal::Balance Load (0.3ms) SELECT "stripe_local_balances".* FROM "stripe_local_balances" ORDER BY "stripe_local_balances"."id" DESC LIMIT 1
23458
+ StripeLocal::Balance Load (0.2ms) SELECT "stripe_local_balances".* FROM "stripe_local_balances" ORDER BY "stripe_local_balances"."id" DESC LIMIT 1
23459
+ SQL (0.5ms) UPDATE "stripe_local_balances" SET "updated_at" = '2013-12-08 14:25:49.160639' WHERE "stripe_local_balances"."id" = 13
23460
+  (0.2ms) SELECT COUNT(*) FROM "stripe_local_balances"
23461
+ StripeLocal::Balance Load (0.2ms) SELECT "stripe_local_balances".* FROM "stripe_local_balances" ORDER BY "stripe_local_balances"."id" DESC LIMIT 1
23462
+  (0.1ms) BEGIN
23463
+ SQL (0.3ms) 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]]
23464
+  (0.3ms) COMMIT
23465
+  (0.1ms) BEGIN
23466
+ SQL (0.2ms) 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
+  (0.2ms) COMMIT
23468
+  (0.1ms) SELECT "stripe_local_balances"."available" FROM "stripe_local_balances"
23469
+  (0.2ms) BEGIN
23470
+ SQL (1.5ms) 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
+  (0.3ms) COMMIT
23472
+  (0.2ms) BEGIN
23473
+ SQL (1.4ms) 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: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
+  (0.3ms) COMMIT
23475
+ StripeLocal::Plan Load (0.2ms) SELECT "stripe_local_plans".* FROM "stripe_local_plans" WHERE "stripe_local_plans"."id" = 'New_Plan' LIMIT 1
23476
+  (0.2ms) BEGIN
23477
+ SQL (1.0ms) 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: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
+  (0.3ms) COMMIT
23479
+  (0.1ms) BEGIN
23480
+ SQL (1.2ms) 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
+  (0.3ms) COMMIT
23482
+ StripeLocal::Customer Load (0.4ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
23483
+  (0.2ms) BEGIN
23484
+ StripeLocal::Customer Load (0.5ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
23485
+ StripeLocal::Customer Load (0.3ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
23486
+ StripeLocal::Customer Load (0.3ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
23487
+ StripeLocal::Customer Load (0.3ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
23488
+ StripeLocal::Customer Load (0.5ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
23489
+ StripeLocal::Customer Load (0.3ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
23490
+ StripeLocal::Customer Load (0.3ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
23491
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
23492
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
23493
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
23494
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
23495
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
23496
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
23497
+ StripeLocal::Customer Load (0.3ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
23498
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
23499
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
23500
+ SQL (0.8ms) INSERT INTO "clients" ("email", "name", "password") VALUES ($1, $2, $3) RETURNING "id" [["email", "test@test.com"], ["name", "Test Case"], ["password", "password"]]
23501
+  (0.3ms) COMMIT
23502
+ StripeLocal::Customer Load (0.5ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" = 1 LIMIT 1
23503
+ StripeLocal::Customer Load (0.3ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" = 1 LIMIT 1
23504
+  (0.1ms) BEGIN
23505
+ SQL (0.5ms) 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: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
+  (0.2ms) COMMIT
23507
+  (0.1ms) BEGIN
23508
+ SQL (0.4ms) 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
+  (0.3ms) COMMIT
23510
+  (0.1ms) BEGIN
23511
+ SQL (0.9ms) 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: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
+  (0.3ms) COMMIT
23513
+ StripeLocal::Customer Load (0.3ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" = 1 LIMIT 1
23514
+ StripeLocal::Subscription Load (0.3ms) SELECT "stripe_local_subscriptions".* FROM "stripe_local_subscriptions" WHERE "stripe_local_subscriptions"."customer_id" = 'cus_123' LIMIT 1
23515
+  (1.0ms) ALTER 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
23516
+  (1.6ms) select table_name from information_schema.views where table_schema = 'dummy_test'
23517
+  (24.1ms) TRUNCATE 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;
23518
+  (0.9ms) 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
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
23520
+  (0.2ms) BEGIN
23521
+ SQL (5.9ms) 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: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
+  (0.3ms) COMMIT
23523
+  (0.1ms) BEGIN
23524
+ SQL (1.2ms) 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
+  (0.3ms) COMMIT
23526
+  (0.2ms) BEGIN
23527
+ SQL (1.4ms) 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: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
+  (0.3ms) COMMIT
23529
+  (0.2ms) BEGIN
23530
+ SQL (1.1ms) 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
+  (0.3ms) COMMIT
23532
+  (0.1ms) BEGIN
23533
+ SQL (1.0ms) 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]]
23534
+  (0.3ms) COMMIT
23535
+  (0.1ms) BEGIN
23536
+ SQL (0.3ms) 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
+  (0.3ms) COMMIT
23538
+  (0.2ms) SELECT "stripe_local_balances"."pending" FROM "stripe_local_balances"
23539
+  (0.1ms) BEGIN
23540
+ SQL (0.3ms) 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
+  (0.3ms) COMMIT
23542
+  (0.1ms) BEGIN
23543
+ SQL (0.3ms) 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]]
23544
+  (0.3ms) COMMIT
23545
+  (0.2ms) SELECT "stripe_local_balances"."available" FROM "stripe_local_balances"
23546
+  (0.1ms) BEGIN
23547
+ SQL (0.5ms) 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]]
23548
+  (0.3ms) COMMIT
23549
+  (0.1ms) BEGIN
23550
+ SQL (0.3ms) 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
+  (0.2ms) COMMIT
23552
+  (0.1ms) BEGIN
23553
+ SQL (0.3ms) 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]]
23554
+  (0.3ms) COMMIT
23555
+  (0.1ms) BEGIN
23556
+ SQL (0.2ms) 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
+  (0.2ms) COMMIT
23558
+  (0.1ms) BEGIN
23559
+ SQL (0.3ms) 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]]
23560
+  (0.3ms) COMMIT
23561
+  (0.1ms) BEGIN
23562
+ SQL (0.2ms) 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
+  (0.2ms) COMMIT
23564
+  (0.2ms) SELECT COUNT(*) FROM "stripe_local_balances"
23565
+  (0.1ms) BEGIN
23566
+ SQL (0.2ms) 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
+  (0.2ms) COMMIT
23568
+  (0.1ms) SELECT COUNT(*) FROM "stripe_local_balances"
23569
+  (0.1ms) BEGIN
23570
+ SQL (0.3ms) 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
+  (0.3ms) COMMIT
23572
+  (0.1ms) BEGIN
23573
+ SQL (0.2ms) 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]]
23574
+  (0.2ms) COMMIT
23575
+  (0.1ms) SELECT "stripe_local_balances"."available" FROM "stripe_local_balances"
23576
+  (0.1ms) BEGIN
23577
+ SQL (0.3ms) 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]]
23578
+  (0.3ms) COMMIT
23579
+  (0.1ms) BEGIN
23580
+ SQL (0.3ms) 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
+  (0.3ms) COMMIT
23582
+  (0.2ms) SELECT COUNT(*) FROM "stripe_local_balances"
23583
+ StripeLocal::Balance Load (0.5ms) SELECT "stripe_local_balances".* FROM "stripe_local_balances" ORDER BY "stripe_local_balances"."id" DESC LIMIT 1
23584
+ StripeLocal::Balance Load (0.3ms) SELECT "stripe_local_balances".* FROM "stripe_local_balances" ORDER BY "stripe_local_balances"."id" DESC LIMIT 1
23585
+ SQL (0.5ms) UPDATE "stripe_local_balances" SET "updated_at" = '2013-12-08 14:25:53.325828' WHERE "stripe_local_balances"."id" = 15
23586
+  (0.2ms) SELECT COUNT(*) FROM "stripe_local_balances"
23587
+ StripeLocal::Balance Load (0.2ms) SELECT "stripe_local_balances".* FROM "stripe_local_balances" ORDER BY "stripe_local_balances"."id" DESC LIMIT 1
23588
+ StripeLocal::Customer Load (0.3ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
23589
+  (0.2ms) BEGIN
23590
+ StripeLocal::Customer Load (0.3ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
23591
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
23592
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
23593
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
23594
+ StripeLocal::Customer Load (0.3ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
23595
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
23596
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
23597
+ StripeLocal::Customer Load (0.1ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
23598
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
23599
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
23600
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
23601
+ StripeLocal::Customer Load (0.1ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
23602
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
23603
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
23604
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
23605
+ StripeLocal::Customer Load (0.3ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
23606
+ SQL (0.6ms) INSERT INTO "clients" ("email", "name", "password") VALUES ($1, $2, $3) RETURNING "id" [["email", "test@test.com"], ["name", "Test Case"], ["password", "password"]]
23607
+  (0.3ms) COMMIT
23608
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" = 1 LIMIT 1
23609
+ StripeLocal::Customer Load (0.1ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" = 1 LIMIT 1
23610
+  (0.1ms) BEGIN
23611
+ SQL (0.4ms) 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_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
+  (0.2ms) COMMIT
23613
+  (0.1ms) BEGIN
23614
+ SQL (1.2ms) 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
+  (0.3ms) COMMIT
23616
+  (0.2ms) BEGIN
23617
+ SQL (1.3ms) 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: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
+  (0.3ms) COMMIT
23619
+ StripeLocal::Customer Load (0.5ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" = 1 LIMIT 1
23620
+ StripeLocal::Subscription Load (0.9ms) SELECT "stripe_local_subscriptions".* FROM "stripe_local_subscriptions" WHERE "stripe_local_subscriptions"."customer_id" = 'cus_123' LIMIT 1
23621
+  (0.2ms) BEGIN
23622
+ SQL (0.9ms) 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
+  (0.3ms) COMMIT
23624
+  (0.2ms) BEGIN
23625
+ SQL (1.1ms) 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: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
+  (0.2ms) COMMIT
23627
+  (0.2ms) BEGIN
23628
+ SQL (1.1ms) 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
+  (0.3ms) COMMIT
23630
+ StripeLocal::LineItem Load (0.7ms) SELECT "stripe_local_line_items".* FROM "stripe_local_line_items" WHERE "stripe_local_line_items"."invoice_id" = $1 [["invoice_id", "in_2blahblahagain"]]
23631
+ StripeLocal::Plan Load (0.3ms) SELECT "stripe_local_plans".* FROM "stripe_local_plans" WHERE "stripe_local_plans"."id" = 'New_Plan' LIMIT 1
23632
+  (0.1ms) BEGIN
23633
+ SQL (0.8ms) 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: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
+  (1.1ms) COMMIT
23635
+  (8.5ms) ALTER 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
23636
+  (11.3ms) select table_name from information_schema.views where table_schema = 'dummy_test'
23637
+  (82.1ms) TRUNCATE 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;
23638
+  (0.5ms) 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
+ ActiveRecord::SchemaMigration Load (1.9ms) SELECT "schema_migrations".* FROM "schema_migrations"
23640
+  (0.2ms) BEGIN
23641
+ SQL (12.3ms) 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", 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
+  (0.2ms) COMMIT
23643
+  (0.2ms) BEGIN
23644
+ SQL (1.1ms) 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
+  (0.3ms) COMMIT
23646
+ StripeLocal::LineItem Load (0.7ms) SELECT "stripe_local_line_items".* FROM "stripe_local_line_items" WHERE "stripe_local_line_items"."invoice_id" = $1 [["invoice_id", "in_2blahblahagain"]]
23647
+ StripeLocal::Customer Load (1.5ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
23648
+  (0.2ms) BEGIN
23649
+ StripeLocal::Customer Load (0.3ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
23650
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
23651
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
23652
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
23653
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
23654
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
23655
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
23656
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
23657
+ SQL (0.8ms) 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: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
+  (0.3ms) COMMIT
23659
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" = 1 LIMIT 1
23660
+  (0.2ms) BEGIN
23661
+ SQL (1.0ms) 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_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
+  (0.3ms) COMMIT
23663
+  (0.1ms) BEGIN
23664
+ SQL (1.1ms) 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
+  (0.4ms) COMMIT
23666
+  (0.1ms) BEGIN
23667
+ SQL (0.8ms) 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: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
+  (0.3ms) COMMIT
23669
+ StripeLocal::Customer Load (0.3ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" = 1 LIMIT 1
23670
+ StripeLocal::Subscription Load (0.3ms) SELECT "stripe_local_subscriptions".* FROM "stripe_local_subscriptions" WHERE "stripe_local_subscriptions"."customer_id" = 'cus_123' LIMIT 1
23671
+  (0.1ms) BEGIN
23672
+ SQL (0.5ms) 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
+  (0.3ms) COMMIT
23674
+ StripeLocal::Plan Load (0.4ms) SELECT "stripe_local_plans".* FROM "stripe_local_plans" WHERE "stripe_local_plans"."id" = 'New_Plan' LIMIT 1
23675
+  (0.2ms) BEGIN
23676
+ SQL (1.0ms) 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
+  (0.3ms) COMMIT
23678
+  (0.1ms) BEGIN
23679
+ SQL (1.6ms) 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", 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
+  (0.3ms) COMMIT
23681
+  (0.1ms) BEGIN
23682
+ SQL (1.3ms) 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
+  (0.3ms) COMMIT
23684
+  (0.2ms) BEGIN
23685
+ SQL (1.6ms) 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: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
+  (0.3ms) COMMIT
23687
+  (0.1ms) BEGIN
23688
+ SQL (1.0ms) 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
+  (0.3ms) COMMIT
23690
+  (0.1ms) BEGIN
23691
+ SQL (0.5ms) 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]]
23692
+  (0.3ms) COMMIT
23693
+  (0.1ms) BEGIN
23694
+ SQL (0.4ms) 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
+  (0.3ms) COMMIT
23696
+  (0.1ms) BEGIN
23697
+ SQL (0.2ms) 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]]
23698
+  (0.2ms) COMMIT
23699
+  (0.2ms) SELECT "stripe_local_balances"."available" FROM "stripe_local_balances"
23700
+  (0.1ms) BEGIN
23701
+ SQL (0.4ms) 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]]
23702
+  (0.3ms) COMMIT
23703
+  (0.1ms) BEGIN
23704
+ SQL (0.2ms) 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
+  (0.2ms) COMMIT
23706
+  (0.1ms) SELECT "stripe_local_balances"."available" FROM "stripe_local_balances"
23707
+  (0.1ms) BEGIN
23708
+ SQL (0.3ms) 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
+  (0.2ms) COMMIT
23710
+  (0.1ms) BEGIN
23711
+ SQL (0.2ms) 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]]
23712
+  (0.2ms) COMMIT
23713
+  (0.2ms) SELECT "stripe_local_balances"."pending" FROM "stripe_local_balances"
23714
+  (0.2ms) BEGIN
23715
+ SQL (0.4ms) 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]]
23716
+  (0.2ms) COMMIT
23717
+  (0.1ms) BEGIN
23718
+ SQL (0.2ms) 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
+  (0.2ms) COMMIT
23720
+  (0.1ms) BEGIN
23721
+ SQL (0.3ms) 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]]
23722
+  (0.3ms) COMMIT
23723
+  (0.1ms) BEGIN
23724
+ SQL (0.2ms) 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
+  (0.2ms) COMMIT
23726
+  (0.2ms) SELECT COUNT(*) FROM "stripe_local_balances"
23727
+ StripeLocal::Balance Load (0.4ms) SELECT "stripe_local_balances".* FROM "stripe_local_balances" ORDER BY "stripe_local_balances"."id" DESC LIMIT 1
23728
+ StripeLocal::Balance Load (0.3ms) SELECT "stripe_local_balances".* FROM "stripe_local_balances" ORDER BY "stripe_local_balances"."id" DESC LIMIT 1
23729
+ SQL (1.3ms) UPDATE "stripe_local_balances" SET "updated_at" = '2013-12-13 07:07:39.571987' WHERE "stripe_local_balances"."id" = 12
23730
+  (0.2ms) SELECT COUNT(*) FROM "stripe_local_balances"
23731
+ StripeLocal::Balance Load (0.2ms) SELECT "stripe_local_balances".* FROM "stripe_local_balances" ORDER BY "stripe_local_balances"."id" DESC LIMIT 1
23732
+  (0.1ms) BEGIN
23733
+ SQL (0.4ms) 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]]
23734
+  (0.3ms) COMMIT
23735
+  (0.1ms) BEGIN
23736
+ SQL (0.2ms) 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
+  (0.2ms) COMMIT
23738
+  (0.1ms) SELECT COUNT(*) FROM "stripe_local_balances"
23739
+  (0.0ms) BEGIN
23740
+ SQL (0.2ms) 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
+  (0.2ms) COMMIT
23742
+  (0.1ms) SELECT COUNT(*) FROM "stripe_local_balances"
23743
+  (0.1ms) BEGIN
23744
+ SQL (0.5ms) 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
+  (0.3ms) COMMIT
23746
+  (1.2ms) ALTER 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
23747
+  (1.2ms) select table_name from information_schema.views where table_schema = 'dummy_test'
23748
+  (105.2ms) TRUNCATE 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;
23749
+  (0.5ms) 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
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
23751
+  (0.2ms) BEGIN
23752
+ SQL (7.9ms) 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: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
+  (0.3ms) COMMIT
23754
+  (0.2ms) BEGIN
23755
+ SQL (1.2ms) 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
+  (0.3ms) COMMIT
23757
+  (0.1ms) BEGIN
23758
+ SQL (1.0ms) 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", 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
+  (0.3ms) COMMIT
23760
+  (0.2ms) BEGIN
23761
+ SQL (1.3ms) 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
+  (0.2ms) COMMIT
23763
+ StripeLocal::Plan Load (0.3ms) SELECT "stripe_local_plans".* FROM "stripe_local_plans" WHERE "stripe_local_plans"."id" = 'New_Plan' LIMIT 1
23764
+  (0.1ms) BEGIN
23765
+ SQL (0.9ms) 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
+  (0.3ms) COMMIT
23767
+  (0.2ms) BEGIN
23768
+ SQL (1.4ms) 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", 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
+  (0.3ms) COMMIT
23770
+  (0.2ms) BEGIN
23771
+ SQL (1.1ms) 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
+  (0.3ms) COMMIT
23773
+ StripeLocal::LineItem Load (0.6ms) SELECT "stripe_local_line_items".* FROM "stripe_local_line_items" WHERE "stripe_local_line_items"."invoice_id" = $1 [["invoice_id", "in_2blahblahagain"]]
23774
+  (0.2ms) BEGIN
23775
+ SQL (1.0ms) 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
+  (0.3ms) COMMIT
23777
+  (0.1ms) BEGIN
23778
+ SQL (0.4ms) 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]]
23779
+  (0.3ms) COMMIT
23780
+  (0.2ms) SELECT "stripe_local_balances"."pending" FROM "stripe_local_balances"
23781
+  (0.1ms) BEGIN
23782
+ SQL (0.3ms) 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]]
23783
+  (0.3ms) COMMIT
23784
+  (0.1ms) BEGIN
23785
+ SQL (0.3ms) 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
+  (0.3ms) COMMIT
23787
+  (0.2ms) SELECT "stripe_local_balances"."available" FROM "stripe_local_balances"
23788
+  (0.1ms) BEGIN
23789
+ SQL (0.3ms) 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
+  (0.3ms) COMMIT
23791
+  (0.1ms) BEGIN
23792
+ SQL (0.3ms) 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]]
23793
+  (0.3ms) COMMIT
23794
+  (0.2ms) SELECT COUNT(*) FROM "stripe_local_balances"
23795
+ StripeLocal::Balance Load (0.3ms) SELECT "stripe_local_balances".* FROM "stripe_local_balances" ORDER BY "stripe_local_balances"."id" DESC LIMIT 1
23796
+ StripeLocal::Balance Load (0.2ms) SELECT "stripe_local_balances".* FROM "stripe_local_balances" ORDER BY "stripe_local_balances"."id" DESC LIMIT 1
23797
+ SQL (0.4ms) UPDATE "stripe_local_balances" SET "updated_at" = '2013-12-13 07:55:00.135161' WHERE "stripe_local_balances"."id" = 6
23798
+  (0.2ms) SELECT COUNT(*) FROM "stripe_local_balances"
23799
+ StripeLocal::Balance Load (0.2ms) SELECT "stripe_local_balances".* FROM "stripe_local_balances" ORDER BY "stripe_local_balances"."id" DESC LIMIT 1
23800
+  (0.1ms) BEGIN
23801
+ SQL (0.3ms) 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
+  (0.3ms) COMMIT
23803
+  (0.1ms) BEGIN
23804
+ SQL (0.3ms) 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]]
23805
+  (0.2ms) COMMIT
23806
+  (0.1ms) BEGIN
23807
+ SQL (0.4ms) 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
+  (0.3ms) COMMIT
23809
+  (0.1ms) BEGIN
23810
+ SQL (0.3ms) 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]]
23811
+  (0.2ms) COMMIT
23812
+  (0.1ms) SELECT "stripe_local_balances"."available" FROM "stripe_local_balances"
23813
+  (0.1ms) BEGIN
23814
+ SQL (0.3ms) 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]]
23815
+  (0.2ms) COMMIT
23816
+  (0.1ms) BEGIN
23817
+ SQL (0.2ms) 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
+  (0.2ms) COMMIT
23819
+  (0.2ms) SELECT COUNT(*) FROM "stripe_local_balances"
23820
+  (0.1ms) BEGIN
23821
+ SQL (0.4ms) 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
+  (0.3ms) COMMIT
23823
+  (0.2ms) SELECT COUNT(*) FROM "stripe_local_balances"
23824
+  (0.1ms) BEGIN
23825
+ SQL (0.3ms) 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
+  (0.3ms) COMMIT
23827
+  (0.1ms) BEGIN
23828
+ SQL (0.2ms) 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]]
23829
+  (0.3ms) COMMIT
23830
+  (0.2ms) BEGIN
23831
+ SQL (1.5ms) 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
+  (0.4ms) COMMIT
23833
+ StripeLocal::Customer Load (0.5ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
23834
+  (0.2ms) BEGIN
23835
+ StripeLocal::Customer Load (0.7ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
23836
+ StripeLocal::Customer Load (0.4ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
23837
+ StripeLocal::Customer Load (0.3ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
23838
+ StripeLocal::Customer Load (0.3ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
23839
+ StripeLocal::Customer Load (0.3ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
23840
+ StripeLocal::Customer Load (0.3ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
23841
+ StripeLocal::Customer Load (0.3ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
23842
+ StripeLocal::Customer Load (0.3ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
23843
+ SQL (1.3ms) 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
+  (0.3ms) COMMIT
23845
+ StripeLocal::Customer Load (0.4ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" = 1 LIMIT 1
23846
+  (0.1ms) BEGIN
23847
+ SQL (0.7ms) 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
+  (0.3ms) COMMIT
23849
+  (0.1ms) BEGIN
23850
+ SQL (0.7ms) 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: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
+  (0.3ms) COMMIT
23852
+  (0.1ms) BEGIN
23853
+ SQL (0.9ms) 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
+  (0.3ms) COMMIT
23855
+ StripeLocal::Customer Load (0.3ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" = 1 LIMIT 1
23856
+ StripeLocal::Subscription Load (0.3ms) SELECT "stripe_local_subscriptions".* FROM "stripe_local_subscriptions" WHERE "stripe_local_subscriptions"."customer_id" = 'cus_123' LIMIT 1