stripe_local 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (150) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.md +35 -0
  4. data/Rakefile +29 -0
  5. data/app/assets/javascripts/stripe_local/application.js +13 -0
  6. data/app/assets/javascripts/stripe_local/cards.js +2 -0
  7. data/app/assets/javascripts/stripe_local/charges.js +2 -0
  8. data/app/assets/javascripts/stripe_local/coupons.js +2 -0
  9. data/app/assets/javascripts/stripe_local/customers.js +2 -0
  10. data/app/assets/javascripts/stripe_local/discounts.js +2 -0
  11. data/app/assets/javascripts/stripe_local/invoices.js +2 -0
  12. data/app/assets/javascripts/stripe_local/line_items.js +2 -0
  13. data/app/assets/javascripts/stripe_local/plans.js +2 -0
  14. data/app/assets/javascripts/stripe_local/subscriptions.js +2 -0
  15. data/app/assets/stylesheets/stripe_local/application.css +13 -0
  16. data/app/assets/stylesheets/stripe_local/cards.css +4 -0
  17. data/app/assets/stylesheets/stripe_local/charges.css +4 -0
  18. data/app/assets/stylesheets/stripe_local/coupons.css +4 -0
  19. data/app/assets/stylesheets/stripe_local/customers.css +4 -0
  20. data/app/assets/stylesheets/stripe_local/discounts.css +4 -0
  21. data/app/assets/stylesheets/stripe_local/invoices.css +4 -0
  22. data/app/assets/stylesheets/stripe_local/line_items.css +4 -0
  23. data/app/assets/stylesheets/stripe_local/plans.css +4 -0
  24. data/app/assets/stylesheets/stripe_local/subscriptions.css +4 -0
  25. data/app/callbacks/stripe_local/plan_sync.rb +33 -0
  26. data/app/controllers/stripe_local/application_controller.rb +4 -0
  27. data/app/controllers/stripe_local/cards_controller.rb +6 -0
  28. data/app/controllers/stripe_local/charges_controller.rb +6 -0
  29. data/app/controllers/stripe_local/coupons_controller.rb +6 -0
  30. data/app/controllers/stripe_local/customers_controller.rb +6 -0
  31. data/app/controllers/stripe_local/discounts_controller.rb +6 -0
  32. data/app/controllers/stripe_local/invoices_controller.rb +6 -0
  33. data/app/controllers/stripe_local/line_items_controller.rb +6 -0
  34. data/app/controllers/stripe_local/plans_controller.rb +6 -0
  35. data/app/controllers/stripe_local/subscriptions_controller.rb +6 -0
  36. data/app/controllers/stripe_local/webhooks_controller.rb +13 -0
  37. data/app/helpers/stripe_local/application_helper.rb +4 -0
  38. data/app/helpers/stripe_local/cards_helper.rb +4 -0
  39. data/app/helpers/stripe_local/charges_helper.rb +4 -0
  40. data/app/helpers/stripe_local/coupons_helper.rb +4 -0
  41. data/app/helpers/stripe_local/customers_helper.rb +4 -0
  42. data/app/helpers/stripe_local/discounts_helper.rb +4 -0
  43. data/app/helpers/stripe_local/invoices_helper.rb +4 -0
  44. data/app/helpers/stripe_local/line_items_helper.rb +4 -0
  45. data/app/helpers/stripe_local/plans_helper.rb +4 -0
  46. data/app/helpers/stripe_local/subscriptions_helper.rb +4 -0
  47. data/app/mixins/stripe_local/object_adapter.rb +33 -0
  48. data/app/mixins/stripe_local/sync_plans.rb +39 -0
  49. data/app/models/stripe_local/balance.rb +48 -0
  50. data/app/models/stripe_local/card.rb +39 -0
  51. data/app/models/stripe_local/charge.rb +63 -0
  52. data/app/models/stripe_local/coupon.rb +21 -0
  53. data/app/models/stripe_local/customer.rb +98 -0
  54. data/app/models/stripe_local/discount.rb +36 -0
  55. data/app/models/stripe_local/invoice.rb +68 -0
  56. data/app/models/stripe_local/line_item.rb +56 -0
  57. data/app/models/stripe_local/plan.rb +41 -0
  58. data/app/models/stripe_local/subscription.rb +50 -0
  59. data/app/models/stripe_local/transaction.rb +45 -0
  60. data/app/models/stripe_local/transfer.rb +48 -0
  61. data/app/validators/email_pattern_validator.rb +7 -0
  62. data/app/validators/full_name_pattern_validator.rb +7 -0
  63. data/app/validators/legal_name_pattern_validator.rb +7 -0
  64. data/app/validators/phone_pattern_validator.rb +17 -0
  65. data/app/validators/plan_id_pattern_validator.rb +7 -0
  66. data/app/validators/slug_pattern_validator.rb +38 -0
  67. data/app/validators/state_abbreviation_validator.rb +13 -0
  68. data/app/validators/stripe_type_validator.rb +7 -0
  69. data/app/validators/zip_type_validator.rb +8 -0
  70. data/app/views/layouts/stripe_local/application.html.erb +14 -0
  71. data/config/routes.rb +22 -0
  72. data/db/migrate/20131122063517_load_stripe_tables.rb +200 -0
  73. data/lib/stripe_local/engine.rb +7 -0
  74. data/lib/stripe_local/version.rb +3 -0
  75. data/lib/stripe_local/webhook/subscriber.rb +34 -0
  76. data/lib/stripe_local/webhook/types.rb +45 -0
  77. data/lib/stripe_local/webhook.rb +55 -0
  78. data/lib/stripe_local/webhooks.rb +20 -0
  79. data/lib/stripe_local.rb +48 -0
  80. data/lib/tasks/stripe_local_tasks.rake +4 -0
  81. data/spec/dummy/README.rdoc +28 -0
  82. data/spec/dummy/Rakefile +6 -0
  83. data/spec/dummy/app/assets/javascripts/application.js +13 -0
  84. data/spec/dummy/app/assets/stylesheets/application.css +13 -0
  85. data/spec/dummy/app/controllers/application_controller.rb +5 -0
  86. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  87. data/spec/dummy/app/models/client.rb +4 -0
  88. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  89. data/spec/dummy/bin/bundle +3 -0
  90. data/spec/dummy/bin/rails +4 -0
  91. data/spec/dummy/bin/rake +4 -0
  92. data/spec/dummy/config/application.rb +21 -0
  93. data/spec/dummy/config/boot.rb +5 -0
  94. data/spec/dummy/config/database.yml +17 -0
  95. data/spec/dummy/config/environment.rb +5 -0
  96. data/spec/dummy/config/environments/development.rb +29 -0
  97. data/spec/dummy/config/environments/production.rb +80 -0
  98. data/spec/dummy/config/environments/test.rb +36 -0
  99. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  100. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  101. data/spec/dummy/config/initializers/inflections.rb +16 -0
  102. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  103. data/spec/dummy/config/initializers/secret_token.rb +12 -0
  104. data/spec/dummy/config/initializers/session_store.rb +3 -0
  105. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  106. data/spec/dummy/config/locales/en.yml +23 -0
  107. data/spec/dummy/config/routes.rb +4 -0
  108. data/spec/dummy/config.ru +4 -0
  109. data/spec/dummy/db/migrate/20131102200937_create_clients.rb +11 -0
  110. data/spec/dummy/db/migrate/20131122104223_add_stripe_customer_id_to_clients.rb +5 -0
  111. data/spec/dummy/db/schema.rb +236 -0
  112. data/spec/dummy/log/development.log +1290 -0
  113. data/spec/dummy/log/test.log +7041 -0
  114. data/spec/dummy/public/404.html +58 -0
  115. data/spec/dummy/public/422.html +58 -0
  116. data/spec/dummy/public/500.html +57 -0
  117. data/spec/dummy/public/favicon.ico +0 -0
  118. data/spec/dummy/spec/spec_helper.rb +42 -0
  119. data/spec/fixtures/client_params.json +18 -0
  120. data/spec/fixtures/credit_card.json +18 -0
  121. data/spec/fixtures/stripe_local/balance_transactions.yml +25 -0
  122. data/spec/fixtures/stripe_local/cards.yml +21 -0
  123. data/spec/fixtures/stripe_local/charges.yml +37 -0
  124. data/spec/fixtures/stripe_local/coupons.yml +23 -0
  125. data/spec/fixtures/stripe_local/customers.yml +21 -0
  126. data/spec/fixtures/stripe_local/discounts.yml +13 -0
  127. data/spec/fixtures/stripe_local/invoices.yml +37 -0
  128. data/spec/fixtures/stripe_local/line_items.yml +19 -0
  129. data/spec/fixtures/stripe_local/plans.yml +17 -0
  130. data/spec/fixtures/stripe_local/subscriptions.yml +25 -0
  131. data/spec/fixtures/stripe_local/transfers.yml +17 -0
  132. data/spec/models/stripe_local/balance_spec.rb +47 -0
  133. data/spec/models/stripe_local/card_spec.rb +13 -0
  134. data/spec/models/stripe_local/charge_spec.rb +13 -0
  135. data/spec/models/stripe_local/customer_spec.rb +17 -0
  136. data/spec/models/stripe_local/invoice_spec.rb +17 -0
  137. data/spec/models/stripe_local/plan_spec.rb +33 -0
  138. data/spec/models/stripe_local/subscription_spec.rb +15 -0
  139. data/spec/models/stripe_local/transaction_spec.rb +14 -0
  140. data/spec/models/stripe_local/transfer_spec.rb +13 -0
  141. data/spec/spec_helper.rb +19 -0
  142. data/spec/webhook_fixtures/balance_transaction.json +23 -0
  143. data/spec/webhook_fixtures/charge.succeeded.json +45 -0
  144. data/spec/webhook_fixtures/customer.created.json +41 -0
  145. data/spec/webhook_fixtures/customer.subscription.created.json +27 -0
  146. data/spec/webhook_fixtures/customer_creation_response.json +66 -0
  147. data/spec/webhook_fixtures/invoice.payment_succeeded.json +55 -0
  148. data/spec/webhook_fixtures/plan.created.json +12 -0
  149. data/spec/webhook_fixtures/transfer.json +32 -0
  150. metadata +403 -0
@@ -0,0 +1,1290 @@
1
+  (2.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) 
2
+  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
3
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
4
+ Migrating to CreateStripeLocalCustomers (20131030062900)
5
+  (0.1ms) BEGIN
6
+  (0.1ms) ROLLBACK
7
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
8
+ Migrating to CreateStripeLocalCustomers (20131030062900)
9
+  (0.1ms) BEGIN
10
+  (3.9ms) CREATE TABLE "stripe_local_customers" ("id" character varying(255), "account_balance" integer, "default_card" character varying(255), "delinquent" boolean, "description" character varying(255), "email" character varying(255), "metadata" text, "model_type" character varying(255), "model_id" integer, "created_at" timestamp, "updated_at" timestamp) 
11
+  (0.7ms) ROLLBACK
12
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
13
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
14
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
15
+ Migrating to CreateStripeLocalCustomers (20131030062900)
16
+  (0.1ms) BEGIN
17
+  (5.9ms) CREATE TABLE "stripe_local_customers" ("id" character varying(255), "account_balance" integer, "default_card" character varying(255), "delinquent" boolean, "description" character varying(255), "email" character varying(255), "metadata" text, "model_type" character varying(255), "model_id" integer, "created_at" timestamp, "updated_at" timestamp) 
18
+  (1.0ms) CREATE UNIQUE INDEX "index_stripe_local_customers_on_id" ON "stripe_local_customers" ("id")
19
+  (0.6ms) CREATE INDEX "index_stripe_local_customers_on_model_type_and_model_id" ON "stripe_local_customers" ("model_type", "model_id")
20
+ SQL (1.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131030062900"]]
21
+  (0.4ms) COMMIT
22
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
23
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
24
+ Migrating to CreateStripeLocalCards (20131030064604)
25
+  (0.1ms) BEGIN
26
+  (4.8ms) CREATE TABLE "stripe_local_cards" ("id" character varying(255), "customer_id" integer, "name" character varying(255), "exp_month" integer, "exp_year" integer, "brand" character varying(255), "last4" character varying(255), "cvc_check" character varying(255), "created_at" timestamp, "updated_at" timestamp) 
27
+  (0.8ms) CREATE INDEX "index_stripe_local_cards_on_customer_id" ON "stripe_local_cards" ("customer_id")
28
+ SQL (0.8ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131030064604"]]
29
+  (0.6ms) COMMIT
30
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
31
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
32
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
33
+ Migrating to CreateStripeLocalCards (20131030064604)
34
+  (0.1ms) BEGIN
35
+  (1.3ms) DROP TABLE "stripe_local_cards"
36
+ SQL (0.7ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20131030064604'
37
+  (1.0ms) COMMIT
38
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
39
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
40
+ Migrating to CreateStripeLocalCards (20131030064604)
41
+  (0.1ms) BEGIN
42
+  (7.1ms) CREATE TABLE "stripe_local_cards" ("id" character varying(255), "customer_id" integer, "name" character varying(255), "exp_month" integer, "exp_year" integer, "brand" character varying(255), "last4" character varying(255), "cvc_check" character varying(255), "created_at" timestamp, "updated_at" timestamp) 
43
+  (0.8ms) CREATE INDEX "index_stripe_local_cards_on_customer_id" ON "stripe_local_cards" ("customer_id")
44
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131030064604"]]
45
+  (0.4ms) COMMIT
46
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
47
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
48
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
49
+ Migrating to CreateStripeLocalCards (20131030064604)
50
+  (0.1ms) BEGIN
51
+  (0.8ms) DROP TABLE "stripe_local_cards"
52
+ SQL (0.3ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20131030064604'
53
+  (2.5ms) COMMIT
54
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
55
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
56
+ Migrating to CreateStripeLocalCards (20131030064604)
57
+  (0.1ms) BEGIN
58
+  (5.9ms) CREATE TABLE "stripe_local_cards" ("id" character varying(255), "customer_id" integer, "name" character varying(255), "exp_month" integer, "exp_year" integer, "brand" character varying(255), "last4" character varying(255), "cvc_check" character varying(255), "created_at" timestamp, "updated_at" timestamp) 
59
+  (0.7ms) CREATE INDEX "index_stripe_local_cards_on_customer_id" ON "stripe_local_cards" ("customer_id")
60
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131030064604"]]
61
+  (0.3ms) COMMIT
62
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
63
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
64
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
65
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
66
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
67
+ Migrating to CreateStripeLocalCards (20131030064604)
68
+  (0.1ms) BEGIN
69
+  (1.1ms) DROP TABLE "stripe_local_cards"
70
+ SQL (0.5ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20131030064604'
71
+  (2.8ms) COMMIT
72
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
73
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
74
+ Migrating to CreateStripeLocalCards (20131030064604)
75
+  (0.1ms) BEGIN
76
+  (3.7ms) CREATE TABLE "stripe_local_cards" ("id" character varying(255), "customer_id" integer, "name" character varying(255), "exp_month" integer, "exp_year" integer, "brand" character varying(255), "last4" character varying(255), "cvc_check" character varying(255), "created_at" timestamp, "updated_at" timestamp) 
77
+  (0.7ms) CREATE INDEX "index_stripe_local_cards_on_customer_id" ON "stripe_local_cards" ("customer_id")
78
+  (1.0ms) CREATE UNIQUE INDEX "index_stripe_onbaord_cards_on_id" ON "stripe_onbaord_cards" ("id")
79
+ PG::UndefinedTable: ERROR: relation "stripe_onbaord_cards" does not exist
80
+ : CREATE UNIQUE INDEX "index_stripe_onbaord_cards_on_id" ON "stripe_onbaord_cards" ("id")
81
+  (0.1ms) ROLLBACK
82
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
83
+ Migrating to CreateStripeLocalCards (20131030064604)
84
+  (0.1ms) BEGIN
85
+  (6.5ms) CREATE TABLE "stripe_local_cards" ("id" character varying(255), "customer_id" integer, "name" character varying(255), "exp_month" integer, "exp_year" integer, "brand" character varying(255), "last4" character varying(255), "cvc_check" character varying(255), "created_at" timestamp, "updated_at" timestamp) 
86
+  (0.7ms) CREATE INDEX "index_stripe_local_cards_on_customer_id" ON "stripe_local_cards" ("customer_id")
87
+  (0.6ms) CREATE UNIQUE INDEX "index_stripe_local_cards_on_id" ON "stripe_local_cards" ("id")
88
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131030064604"]]
89
+  (0.3ms) COMMIT
90
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
91
+ ActiveRecord::SchemaMigration Load (2.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
92
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
93
+ Migrating to CreateStripeLocalCards (20131030064604)
94
+  (0.1ms) BEGIN
95
+  (7.1ms) DROP INDEX "index_stripe_local_cards_on_id"
96
+  (1.5ms) DROP TABLE "stripe_local_cards"
97
+ SQL (1.8ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20131030064604'
98
+  (114.5ms) COMMIT
99
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
100
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
101
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
102
+ Migrating to CreateStripeLocalCustomers (20131030062900)
103
+  (0.2ms) BEGIN
104
+  (0.6ms) DROP INDEX "index_stripe_local_customers_on_model_type_and_model_id"
105
+  (0.2ms) DROP INDEX "index_stripe_local_customers_on_id"
106
+  (0.5ms) DROP TABLE "stripe_local_customers"
107
+ SQL (0.3ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20131030062900'
108
+  (4.9ms) COMMIT
109
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
110
+ ActiveRecord::SchemaMigration Load (2.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
111
+ Migrating to CreateStripeOnboardCustomers (20131030062900)
112
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
113
+ Migrating to CreateStripeLocalCustomers (20131030062900)
114
+  (0.1ms) BEGIN
115
+  (17.4ms) CREATE TABLE "stripe_local_customers" ("id" character varying(255), "account_balance" integer, "default_card" character varying(255), "delinquent" boolean, "description" character varying(255), "email" character varying(255), "metadata" text, "model_type" character varying(255), "model_id" integer, "created_at" timestamp, "updated_at" timestamp) 
116
+  (0.9ms) CREATE UNIQUE INDEX "index_stripe_local_customers_on_id" ON "stripe_local_customers" ("id")
117
+  (1.0ms) CREATE INDEX "index_stripe_local_customers_on_model_type_and_model_id" ON "stripe_local_customers" ("model_type", "model_id")
118
+ SQL (1.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131030062900"]]
119
+  (103.8ms) COMMIT
120
+ Migrating to CreateStripeLocalCards (20131030064604)
121
+  (0.2ms) BEGIN
122
+  (4.7ms) CREATE TABLE "stripe_local_cards" ("id" character varying(255), "customer_id" integer, "name" character varying(255), "exp_month" integer, "exp_year" integer, "brand" character varying(255), "last4" character varying(255), "cvc_check" character varying(255), "created_at" timestamp, "updated_at" timestamp) 
123
+  (1.0ms) CREATE INDEX "index_stripe_local_cards_on_customer_id" ON "stripe_local_cards" ("customer_id")
124
+  (0.9ms) CREATE UNIQUE INDEX "index_stripe_local_cards_on_id" ON "stripe_local_cards" ("id")
125
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131030064604"]]
126
+  (0.3ms) COMMIT
127
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
128
+ ActiveRecord::SchemaMigration Load (1.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
129
+ Migrating to CreateStripeLocalPlans (20131031024841)
130
+  (0.2ms) BEGIN
131
+  (7.7ms) CREATE TABLE "stripe_local_plans" ("id" character varying(255), "name" character varying(255), "amount" integer, "interval" character varying(255), "interval_count" integer DEFAULT 1, "trial_period_days" integer DEFAULT 0, "currency" character varying(255) DEFAULT 'usd', "subscription_id" integer, "created_at" timestamp, "updated_at" timestamp) 
132
+  (0.7ms) CREATE INDEX "index_stripe_local_plans_on_subscription_id" ON "stripe_local_plans" ("subscription_id")
133
+  (0.7ms) CREATE UNIQUE INDEX "index_stripe_local_plans_on_id" ON "stripe_local_plans" ("id")
134
+ SQL (0.9ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131031024841"]]
135
+  (0.6ms) COMMIT
136
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
137
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
138
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
139
+ Migrating to CreateStripeLocalPlans (20131031024841)
140
+  (0.1ms) BEGIN
141
+  (2.9ms) DROP INDEX "index_stripe_local_plans_on_id"
142
+  (1.0ms) DROP TABLE "stripe_local_plans"
143
+ SQL (1.5ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20131031024841'
144
+  (1.0ms) COMMIT
145
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
146
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
147
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
148
+ Migrating to CreateStripeLocalCards (20131030064604)
149
+  (0.1ms) BEGIN
150
+  (0.4ms) DROP INDEX "index_stripe_local_cards_on_id"
151
+  (0.5ms) DROP TABLE "stripe_local_cards"
152
+ SQL (0.3ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20131030064604'
153
+  (4.9ms) COMMIT
154
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
155
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
156
+ Migrating to CreateStripeLocalCards (20131030064604)
157
+  (0.1ms) BEGIN
158
+  (3.8ms) CREATE TABLE "stripe_local_cards" ("id" character varying(255), "customer_id" character varying(255), "name" character varying(255), "exp_month" integer, "exp_year" integer, "brand" character varying(255), "last4" character varying(255), "cvc_check" character varying(255), "created_at" timestamp, "updated_at" timestamp) 
159
+  (0.8ms) CREATE UNIQUE INDEX "index_stripe_local_cards_on_id" ON "stripe_local_cards" ("id")
160
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131030064604"]]
161
+  (0.6ms) COMMIT
162
+ Migrating to CreateStripeLocalPlans (20131031024841)
163
+  (0.1ms) BEGIN
164
+  (1.4ms) CREATE TABLE "stripe_local_plans" ("id" character varying(255), "subscription_id" character varying(255), "name" character varying(255), "amount" integer, "interval" character varying(255), "interval_count" integer DEFAULT 1, "trial_period_days" integer DEFAULT 0, "currency" character varying(255) DEFAULT 'usd', "created_at" timestamp, "updated_at" timestamp)
165
+  (0.6ms) CREATE UNIQUE INDEX "index_stripe_local_plans_on_id" ON "stripe_local_plans" ("id")
166
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131031024841"]]
167
+  (0.3ms) COMMIT
168
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
169
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
170
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
171
+ Migrating to CreateStripeLocalPlans (20131031024841)
172
+  (0.1ms) BEGIN
173
+  (0.5ms) DROP INDEX "index_stripe_local_plans_on_id"
174
+  (0.7ms) DROP TABLE "stripe_local_plans"
175
+ SQL (0.3ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20131031024841'
176
+  (2.7ms) COMMIT
177
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
178
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
179
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
180
+ Migrating to CreateStripeLocalCards (20131030064604)
181
+  (0.1ms) BEGIN
182
+  (0.5ms) DROP INDEX "index_stripe_local_cards_on_id"
183
+  (0.5ms) DROP TABLE "stripe_local_cards"
184
+ SQL (0.3ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20131030064604'
185
+  (3.1ms) COMMIT
186
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
187
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
188
+ Migrating to CreateStripeLocalCards (20131030064604)
189
+  (0.1ms) BEGIN
190
+  (2.1ms) CREATE TABLE "stripe_local_cards" ("id" character varying(255), "customer_id" character varying(255), "name" character varying(255), "exp_month" integer, "exp_year" integer, "brand" character varying(255), "last4" character varying(255), "cvc_check" character varying(255), "created_at" timestamp, "updated_at" timestamp) 
191
+  (0.7ms) CREATE UNIQUE INDEX "index_stripe_local_cards_on_id" ON "stripe_local_cards" ("id")
192
+  (0.6ms) CREATE INDEX "index_stripe_local_cards_on_customer_id" ON "stripe_local_cards" ("customer_id")
193
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131030064604"]]
194
+  (0.3ms) COMMIT
195
+ Migrating to CreateStripeLocalPlans (20131031024841)
196
+  (0.1ms) BEGIN
197
+  (1.6ms) CREATE TABLE "stripe_local_plans" ("id" character varying(255), "subscription_id" character varying(255), "name" character varying(255), "amount" integer, "interval" character varying(255), "interval_count" integer DEFAULT 1, "trial_period_days" integer DEFAULT 0, "currency" character varying(255) DEFAULT 'usd', "created_at" timestamp, "updated_at" timestamp) 
198
+  (0.6ms) CREATE UNIQUE INDEX "index_stripe_local_plans_on_id" ON "stripe_local_plans" ("id")
199
+  (0.6ms) CREATE INDEX "index_stripe_local_plans_on_subscription_id" ON "stripe_local_plans" ("subscription_id")
200
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131031024841"]]
201
+  (0.3ms) COMMIT
202
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
203
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
204
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
205
+ Migrating to CreateStripeLocalPlans (20131031024841)
206
+  (0.1ms) BEGIN
207
+  (0.7ms) DROP INDEX "index_stripe_local_plans_on_subscription_id"
208
+  (0.2ms) DROP INDEX "index_stripe_local_plans_on_id"
209
+  (0.8ms) DROP TABLE "stripe_local_plans"
210
+ SQL (0.4ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20131031024841'
211
+  (127.2ms) COMMIT
212
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
213
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
214
+ Migrating to CreateStripeLocalPlans (20131031024841)
215
+  (0.1ms) BEGIN
216
+  (4.5ms) CREATE TABLE "stripe_local_plans" ("id" character varying(255), "name" character varying(255), "amount" integer, "interval" character varying(255), "interval_count" integer DEFAULT 1, "trial_period_days" integer DEFAULT 0, "currency" character varying(255) DEFAULT 'usd', "created_at" timestamp, "updated_at" timestamp) 
217
+  (1.0ms) CREATE UNIQUE INDEX "index_stripe_local_plans_on_id" ON "stripe_local_plans" ("id")
218
+ SQL (0.9ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131031024841"]]
219
+  (0.6ms) COMMIT
220
+ Migrating to CreateStripeLocalCoupons (20131031032453)
221
+  (0.2ms) BEGIN
222
+  (4.5ms) CREATE TABLE "stripe_local_coupons" ("id" character varying(255), "percent_off" integer, "amount_off" integer, "currency" character varying(255) DEFAULT 'usd', "duration" character varying(255), "redeem_by" timestamp, "max_redemptions" integer, "times_redeemed" integer DEFAULT 0, "duration_in_months" integer, "created_at" timestamp, "updated_at" timestamp)
223
+  (0.5ms) CREATE UNIQUE INDEX "index_stripe_local_coupons_on_id" ON "stripe_local_coupons" ("id")
224
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131031032453"]]
225
+  (0.3ms) COMMIT
226
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
227
+ ActiveRecord::SchemaMigration Load (1.9ms) SELECT "schema_migrations".* FROM "schema_migrations"
228
+ Migrating to CreateStripeLocalDiscounts (20131101034057)
229
+  (0.1ms) BEGIN
230
+  (24.5ms) CREATE TABLE "stripe_local_discounts" ("id" serial primary key, "coupon_id" character varying(255), "subscription_id" character varying(255), "start" timestamp, "end" timestamp, "created_at" timestamp, "updated_at" timestamp) 
231
+  (0.7ms) CREATE INDEX "index_stripe_local_discounts_on_coupon_id_and_subscription_id" ON "stripe_local_discounts" ("coupon_id", "subscription_id")
232
+ SQL (1.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131101034057"]]
233
+  (97.5ms) COMMIT
234
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
235
+ ActiveRecord::SchemaMigration Load (1.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
236
+ Migrating to CreateStripeLocalSubscriptions (20131101092526)
237
+  (0.4ms) BEGIN
238
+  (9.7ms) CREATE TABLE "stripe_local_subscriptions" ("id" character varying(255), "customer_id" character varying(255), "status" character varying(255), "quantity" integer, "start" timestamp, "canceled_at" timestamp, "ended_at" timestamp, "current_period_start" timestamp, "current_period_end" timestamp, "trial_start" timestamp, "trial_end" timestamp, "created_at" timestamp, "updated_at" timestamp) 
239
+  (5.9ms) CREATE UNIQUE INDEX "index_subscription_on_id" ON "subscription" ("id")
240
+ PG::UndefinedTable: ERROR: relation "subscription" does not exist
241
+ : CREATE UNIQUE INDEX "index_subscription_on_id" ON "subscription" ("id")
242
+  (0.1ms) ROLLBACK
243
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
244
+ Migrating to CreateStripeLocalSubscriptions (20131101092526)
245
+  (0.1ms) BEGIN
246
+  (4.0ms) CREATE TABLE "stripe_local_subscriptions" ("id" character varying(255), "customer_id" character varying(255), "plan_id" character varying(255), "status" character varying(255), "quantity" integer, "start" timestamp, "canceled_at" timestamp, "ended_at" timestamp, "current_period_start" timestamp, "current_period_end" timestamp, "trial_start" timestamp, "trial_end" timestamp, "created_at" timestamp, "updated_at" timestamp) 
247
+  (0.9ms) CREATE UNIQUE INDEX "index_subscription_on_id" ON "subscription" ("id")
248
+ PG::UndefinedTable: ERROR: relation "subscription" does not exist
249
+ : CREATE UNIQUE INDEX "index_subscription_on_id" ON "subscription" ("id")
250
+  (0.1ms) ROLLBACK
251
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
252
+ Migrating to CreateStripeLocalSubscriptions (20131101092526)
253
+  (0.1ms) BEGIN
254
+  (3.5ms) CREATE TABLE "stripe_local_subscriptions" ("id" character varying(255), "customer_id" character varying(255), "plan_id" character varying(255), "status" character varying(255), "quantity" integer, "start" timestamp, "canceled_at" timestamp, "ended_at" timestamp, "current_period_start" timestamp, "current_period_end" timestamp, "trial_start" timestamp, "trial_end" timestamp, "created_at" timestamp, "updated_at" timestamp) 
255
+  (1.2ms) CREATE UNIQUE INDEX "index_stripe_local_subscription_on_id" ON "stripe_local_subscription" ("id")
256
+ PG::UndefinedTable: ERROR: relation "stripe_local_subscription" does not exist
257
+ : CREATE UNIQUE INDEX "index_stripe_local_subscription_on_id" ON "stripe_local_subscription" ("id")
258
+  (0.1ms) ROLLBACK
259
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
260
+ Migrating to CreateStripeLocalSubscriptions (20131101092526)
261
+  (0.1ms) BEGIN
262
+  (4.1ms) CREATE TABLE "stripe_local_subscriptions" ("id" character varying(255), "customer_id" character varying(255), "plan_id" character varying(255), "status" character varying(255), "quantity" integer, "start" timestamp, "canceled_at" timestamp, "ended_at" timestamp, "current_period_start" timestamp, "current_period_end" timestamp, "trial_start" timestamp, "trial_end" timestamp, "created_at" timestamp, "updated_at" timestamp) 
263
+  (0.8ms) CREATE UNIQUE INDEX "index_stripe_local_subscription_on_id" ON "stripe_local_subscription" ("id")
264
+ PG::UndefinedTable: ERROR: relation "stripe_local_subscription" does not exist
265
+ : CREATE UNIQUE INDEX "index_stripe_local_subscription_on_id" ON "stripe_local_subscription" ("id")
266
+  (0.1ms) ROLLBACK
267
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
268
+ Migrating to CreateStripeLocalSubscriptions (20131101092526)
269
+  (0.1ms) BEGIN
270
+  (2.7ms) CREATE TABLE "stripe_local_subscriptions" ("id" character varying(255), "customer_id" character varying(255), "plan_id" character varying(255), "status" character varying(255), "quantity" integer, "start" timestamp, "canceled_at" timestamp, "ended_at" timestamp, "current_period_start" timestamp, "current_period_end" timestamp, "trial_start" timestamp, "trial_end" timestamp, "created_at" timestamp, "updated_at" timestamp) 
271
+  (0.9ms) CREATE UNIQUE INDEX "index_stripe_local_subscriptions_on_id" ON "stripe_local_subscriptions" ("id")
272
+  (0.6ms) CREATE INDEX "index_stripe_local_subscriptions_on_customer_id" ON "stripe_local_subscriptions" ("customer_id")
273
+  (0.7ms) CREATE INDEX "index_stripe_local_subscriptions_on_plan_id" ON "stripe_local_subscriptions" ("plan_id")
274
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131101092526"]]
275
+  (0.4ms) COMMIT
276
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
277
+ ActiveRecord::SchemaMigration Load (1.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
278
+ Migrating to CreateStripeLocalInvoices (20131101110359)
279
+  (0.1ms) BEGIN
280
+  (19.3ms) CREATE TABLE "stripe_local_invoices" ("id" serial primary key, "customer_id" character varying(255), "amount_due" integer, "attempt_count" integer, "attempted" boolean, "closed" boolean, "currency" character varying(255), "date" timestamp, "paid" boolean, "period_start" timestamp, "period_end" timestamp, "starting_balance" integer, "subtotal" integer, "total" integer, "charge_id" character varying(255), "ending_balance" integer, "next_payment_attempt" timestamp, "created_at" timestamp, "updated_at" timestamp) 
281
+ SQL (0.9ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131101110359"]]
282
+  (108.9ms) COMMIT
283
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
284
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
285
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
286
+ Migrating to CreateStripeLocalInvoices (20131101110359)
287
+  (0.1ms) BEGIN
288
+  (6.2ms) DROP TABLE "stripe_local_invoices"
289
+ SQL (1.7ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20131101110359'
290
+  (1.3ms) COMMIT
291
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
292
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
293
+ Migrating to CreateStripeLocalInvoices (20131101110359)
294
+  (0.1ms) BEGIN
295
+  (2.5ms) CREATE TABLE "stripe_local_invoices" ("id" character varying(255), "customer_id" character varying(255), "amount_due" integer, "attempt_count" integer, "attempted" boolean, "closed" boolean, "currency" character varying(255), "date" timestamp, "paid" boolean, "period_start" timestamp, "period_end" timestamp, "starting_balance" integer, "subtotal" integer, "total" integer, "charge_id" character varying(255), "ending_balance" integer, "next_payment_attempt" timestamp, "created_at" timestamp, "updated_at" timestamp) 
296
+  (0.7ms) CREATE UNIQUE INDEX "index_stripe_local_invoices_on_id" ON "stripe_local_invoices" ("id")
297
+  (0.6ms) CREATE INDEX "index_stripe_local_invoices_on_customer_id" ON "stripe_local_invoices" ("customer_id")
298
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131101110359"]]
299
+  (0.7ms) COMMIT
300
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
301
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
302
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
303
+ Migrating to CreateStripeLocalInvoices (20131101110359)
304
+  (0.1ms) BEGIN
305
+  (0.4ms) DROP INDEX "index_stripe_local_invoices_on_customer_id"
306
+  (0.1ms) DROP INDEX "index_stripe_local_invoices_on_id"
307
+  (0.4ms) DROP TABLE "stripe_local_invoices"
308
+ SQL (0.3ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20131101110359'
309
+  (1.2ms) COMMIT
310
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
311
+ ActiveRecord::SchemaMigration Load (1.9ms) SELECT "schema_migrations".* FROM "schema_migrations"
312
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
313
+ Migrating to CreateStripeLocalSubscriptions (20131101092526)
314
+  (0.1ms) BEGIN
315
+  (0.5ms) DROP INDEX "index_stripe_local_subscriptions_on_plan_id"
316
+  (0.1ms) DROP INDEX "index_stripe_local_subscriptions_on_customer_id"
317
+  (0.1ms) DROP INDEX "index_stripe_local_subscriptions_on_id"
318
+  (0.4ms) DROP TABLE "stripe_local_subscriptions"
319
+ SQL (0.3ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20131101092526'
320
+  (5.5ms) COMMIT
321
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
322
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
323
+ Migrating to CreateStripeLocalSubscriptions (20131101092526)
324
+  (0.1ms) BEGIN
325
+  (3.4ms) CREATE TABLE "stripe_local_subscriptions" ("id" character varying(255), "customer_id" character varying(255), "plan_id" character varying(255), "status" character varying(255), "quantity" integer DEFAULT 1, "start" timestamp, "canceled_at" timestamp, "ended_at" timestamp, "current_period_start" timestamp, "current_period_end" timestamp, "trial_start" timestamp, "trial_end" timestamp, "created_at" timestamp, "updated_at" timestamp) 
326
+  (0.7ms) CREATE UNIQUE INDEX "index_stripe_local_subscriptions_on_id" ON "stripe_local_subscriptions" ("id")
327
+  (0.5ms) CREATE INDEX "index_stripe_local_subscriptions_on_customer_id" ON "stripe_local_subscriptions" ("customer_id")
328
+  (0.7ms) CREATE INDEX "index_stripe_local_subscriptions_on_plan_id" ON "stripe_local_subscriptions" ("plan_id")
329
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131101092526"]]
330
+  (0.7ms) COMMIT
331
+ Migrating to CreateStripeLocalInvoices (20131101110359)
332
+  (0.1ms) BEGIN
333
+  (1.4ms) CREATE TABLE "stripe_local_invoices" ("id" character varying(255), "customer_id" character varying(255), "amount_due" integer, "attempt_count" integer, "attempted" boolean, "closed" boolean, "currency" character varying(255) DEFAULT 'usd', "date" timestamp, "paid" boolean, "period_start" timestamp, "period_end" timestamp, "starting_balance" integer, "subtotal" integer, "total" integer, "charge_id" character varying(255), "ending_balance" integer, "next_payment_attempt" timestamp, "created_at" timestamp, "updated_at" timestamp)
334
+  (0.6ms) CREATE UNIQUE INDEX "index_stripe_local_invoices_on_id" ON "stripe_local_invoices" ("id")
335
+  (0.5ms) CREATE INDEX "index_stripe_local_invoices_on_customer_id" ON "stripe_local_invoices" ("customer_id")
336
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131101110359"]]
337
+  (0.3ms) COMMIT
338
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
339
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
340
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
341
+ Migrating to CreateStripeLocalInvoices (20131101110359)
342
+  (0.1ms) BEGIN
343
+  (0.5ms) DROP INDEX "index_stripe_local_invoices_on_customer_id"
344
+  (0.1ms) DROP INDEX "index_stripe_local_invoices_on_id"
345
+  (0.7ms) DROP TABLE "stripe_local_invoices"
346
+ SQL (0.3ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20131101110359'
347
+  (1.0ms) COMMIT
348
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
349
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
350
+ Migrating to CreateStripeLocalInvoices (20131101110359)
351
+  (0.1ms) BEGIN
352
+  (4.9ms) CREATE TABLE "stripe_local_invoices" ("id" character varying(255), "customer_id" character varying(255), "amount_due" integer, "attempt_count" integer, "attempted" boolean, "closed" boolean, "currency" character varying(255) DEFAULT 'usd', "date" timestamp, "paid" boolean, "period_start" timestamp, "period_end" timestamp, "starting_balance" integer, "subtotal" integer, "total" integer, "charge_id" character varying(255), "ending_balance" integer, "next_payment_attempt" timestamp, "created_at" timestamp, "updated_at" timestamp) 
353
+  (0.9ms) CREATE UNIQUE INDEX "index_stripe_local_invoices_on_id" ON "stripe_local_invoices" ("id")
354
+  (0.5ms) CREATE INDEX "index_stripe_local_invoices_on_customer_id" ON "stripe_local_invoices" ("customer_id")
355
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131101110359"]]
356
+  (109.6ms) COMMIT
357
+ Migrating to CreateStripeLocalLineItems (20131101134517)
358
+  (0.1ms) BEGIN
359
+  (1.5ms) CREATE TABLE "stripe_local_line_items" ("id" character varying(255), "subscription" boolean DEFAULT 't', "amount" integer, "currency" character varying(255) DEFAULT 'usd', "date" timestamp, "proration" boolean, "description" character varying(255), "metadata" text, "created_at" timestamp, "updated_at" timestamp) 
360
+  (5.0ms) CREATE UNIQUE INDEX "index_stripe_local_line_items_on_id" ON "stripe_local_line_items" ("id")
361
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131101134517"]]
362
+  (0.4ms) COMMIT
363
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
364
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
365
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
366
+ Migrating to CreateStripeLocalLineItems (20131101134517)
367
+  (0.1ms) BEGIN
368
+  (0.4ms) DROP INDEX "index_stripe_local_line_items_on_id"
369
+  (0.5ms) DROP TABLE "stripe_local_line_items"
370
+ SQL (0.3ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20131101134517'
371
+  (102.3ms) COMMIT
372
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
373
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
374
+ Migrating to CreateStripeLocalLineItems (20131101134517)
375
+  (0.1ms) BEGIN
376
+  (4.2ms) CREATE TABLE "stripe_local_line_items" ("id" character varying(255), "invoice_id" character varying(255), "subscription" boolean DEFAULT 't', "amount" integer, "currency" character varying(255) DEFAULT 'usd', "date" timestamp, "proration" boolean, "description" character varying(255), "metadata" text, "created_at" timestamp, "updated_at" timestamp) 
377
+  (0.7ms) CREATE UNIQUE INDEX "index_stripe_local_line_items_on_id" ON "stripe_local_line_items" ("id")
378
+  (0.6ms) CREATE INDEX "index_stripe_local_line_items_on_invoice_id" ON "stripe_local_line_items" ("invoice_id")
379
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131101134517"]]
380
+  (0.6ms) COMMIT
381
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
382
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
383
+ Migrating to CreateStripeLocalCharges (20131101171503)
384
+  (0.1ms) BEGIN
385
+  (5.2ms) CREATE TABLE "stripe_local_charges" ("id" character varying(255), "card_id" character varying(255), "customer_id" character varying(255), "invoice_id" character varying(255), "balance_transaction_id" character varying(255), "amount" integer, "captured" boolean DEFAULT 't', "refunded" boolean DEFAULT 'f', "paid" boolean, "created" timestamp, "currency" character varying(255) DEFAULT 'usd', "amount_refunded" integer DEFAULT 0, "description" character varying(255), "failure_code" character varying(255), "failure_message" character varying(255), "metadata" text, "created_at" timestamp, "updated_at" timestamp) 
386
+  (0.8ms) CREATE UNIQUE INDEX "index_stripe_local_charges_on_id" ON "stripe_local_charges" ("id")
387
+  (0.6ms) CREATE INDEX "index_stripe_local_charges_on_card_id" ON "stripe_local_charges" ("card_id")
388
+  (0.9ms) CREATE INDEX "index_stripe_local_charges_on_customer_id" ON "stripe_local_charges" ("customer_id")
389
+  (0.6ms) CREATE INDEX "index_stripe_local_charges_on_invoice_id" ON "stripe_local_charges" ("invoice_id")
390
+  (0.6ms) CREATE INDEX "index_stripe_local_charges_on_balance_transaction_id" ON "stripe_local_charges" ("balance_transaction_id")
391
+ SQL (0.8ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131101171503"]]
392
+  (0.6ms) COMMIT
393
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
394
+ ActiveRecord::SchemaMigration Load (2.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
395
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
396
+ Migrating to CreateStripeLocalCharges (20131101171503)
397
+  (0.1ms) BEGIN
398
+  (7.2ms) DROP INDEX "index_stripe_local_charges_on_balance_transaction_id"
399
+  (0.1ms) DROP INDEX "index_stripe_local_charges_on_invoice_id"
400
+  (0.1ms) DROP INDEX "index_stripe_local_charges_on_customer_id"
401
+  (0.1ms) DROP INDEX "index_stripe_local_charges_on_card_id"
402
+  (0.1ms) DROP INDEX "index_stripe_local_charges_on_id"
403
+  (2.6ms) DROP TABLE "stripe_local_charges"
404
+ SQL (1.9ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20131101171503'
405
+  (120.0ms) COMMIT
406
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
407
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
408
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
409
+ Migrating to CreateStripeLocalLineItems (20131101134517)
410
+  (0.2ms) BEGIN
411
+  (0.5ms) DROP INDEX "index_stripe_local_line_items_on_invoice_id"
412
+  (0.2ms) DROP INDEX "index_stripe_local_line_items_on_id"
413
+  (0.6ms) DROP TABLE "stripe_local_line_items"
414
+ SQL (0.3ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20131101134517'
415
+  (4.9ms) COMMIT
416
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
417
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
418
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
419
+ Migrating to CreateStripeLocalInvoices (20131101110359)
420
+  (0.2ms) BEGIN
421
+  (0.5ms) DROP INDEX "index_stripe_local_invoices_on_customer_id"
422
+  (0.1ms) DROP INDEX "index_stripe_local_invoices_on_id"
423
+  (0.5ms) DROP TABLE "stripe_local_invoices"
424
+ SQL (0.3ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20131101110359'
425
+  (4.7ms) COMMIT
426
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
427
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
428
+ Migrating to CreateStripeLocalInvoices (20131101110359)
429
+  (0.1ms) BEGIN
430
+  (8.1ms) CREATE TABLE "stripe_local_invoices" ("id" character varying(255), "customer_id" character varying(255), "amount_due" integer, "subtotal" integer, "total" integer, "attempted" boolean, "attempt_count" integer, "paid" boolean, "closed" boolean, "date" timestamp, "period_start" timestamp, "period_end" timestamp, "currency" character varying(255) DEFAULT 'usd', "starting_balance" integer, "ending_balance" integer, "charge_id" character varying(255), "discount" integer DEFAULT 0, "application_fee" integer, "next_payment_attempt" timestamp, "created_at" timestamp, "updated_at" timestamp) 
431
+  (0.6ms) CREATE UNIQUE INDEX "index_stripe_local_invoices_on_id" ON "stripe_local_invoices" ("id")
432
+  (0.6ms) CREATE INDEX "index_stripe_local_invoices_on_customer_id" ON "stripe_local_invoices" ("customer_id")
433
+ SQL (0.7ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131101110359"]]
434
+  (0.6ms) COMMIT
435
+ Migrating to CreateStripeLocalLineItems (20131101134517)
436
+  (0.1ms) BEGIN
437
+  (1.3ms) CREATE TABLE "stripe_local_line_items" ("id" character varying(255), "invoice_id" character varying(255), "subscription" boolean DEFAULT 't', "amount" integer, "currency" character varying(255) DEFAULT 'usd', "proration" boolean, "period_start" timestamp, "period_end" timestamp, "quantity" integer, "plan_id" character varying(255), "description" character varying(255), "metadata" text, "created_at" timestamp, "updated_at" timestamp) 
438
+  (0.6ms) CREATE UNIQUE INDEX "index_stripe_local_line_items_on_id" ON "stripe_local_line_items" ("id")
439
+  (0.5ms) CREATE INDEX "index_stripe_local_line_items_on_invoice_id" ON "stripe_local_line_items" ("invoice_id")
440
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131101134517"]]
441
+  (0.3ms) COMMIT
442
+ Migrating to CreateStripeLocalCharges (20131101171503)
443
+  (0.1ms) BEGIN
444
+  (1.6ms) CREATE TABLE "stripe_local_charges" ("id" character varying(255), "card_id" character varying(255), "customer_id" character varying(255), "invoice_id" character varying(255), "balance_transaction_id" character varying(255), "amount" integer, "captured" boolean DEFAULT 't', "refunded" boolean DEFAULT 'f', "paid" boolean, "created" timestamp, "currency" character varying(255) DEFAULT 'usd', "amount_refunded" integer DEFAULT 0, "description" character varying(255), "failure_code" character varying(255), "failure_message" character varying(255), "metadata" text, "created_at" timestamp, "updated_at" timestamp) 
445
+  (0.8ms) CREATE UNIQUE INDEX "index_stripe_local_charges_on_id" ON "stripe_local_charges" ("id")
446
+  (0.6ms) CREATE INDEX "index_stripe_local_charges_on_card_id" ON "stripe_local_charges" ("card_id")
447
+  (0.4ms) CREATE INDEX "index_stripe_local_charges_on_customer_id" ON "stripe_local_charges" ("customer_id")
448
+  (0.5ms) CREATE INDEX "index_stripe_local_charges_on_invoice_id" ON "stripe_local_charges" ("invoice_id")
449
+  (0.5ms) CREATE INDEX "index_stripe_local_charges_on_balance_transaction_id" ON "stripe_local_charges" ("balance_transaction_id")
450
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131101171503"]]
451
+  (0.3ms) COMMIT
452
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
453
+ ActiveRecord::SchemaMigration Load (2.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
454
+ Migrating to CreateClients (20131102200937)
455
+  (0.1ms) BEGIN
456
+  (20.6ms) CREATE TABLE "clients" ("id" serial primary key, "name" character varying(255), "email" character varying(255), "password" character varying(255), "created_at" timestamp, "updated_at" timestamp) 
457
+ SQL (1.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131102200937"]]
458
+  (0.6ms) COMMIT
459
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
460
+  (0.1ms) BEGIN
461
+ SQL (6.0ms) INSERT INTO "clients" ("created_at", "email", "name", "password", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Sat, 02 Nov 2013 20:27:18 UTC +00:00], ["email", "andy@setpoint.io"], ["name", "Test Client"], ["password", "password"], ["updated_at", Sat, 02 Nov 2013 20:27:18 UTC +00:00]]
462
+  (0.3ms) COMMIT
463
+ Client Load (2.4ms) SELECT "clients".* FROM "clients" WHERE "clients"."id" = $1 LIMIT 1 [["id", 1]]
464
+  (0.2ms) BEGIN
465
+ SQL (6.0ms) INSERT INTO "stripe_local_customers" ("created_at", "model_id", "model_type", "updated_at") VALUES ($1, $2, $3, $4) [["created_at", Sat, 02 Nov 2013 20:28:48 UTC +00:00], ["model_id", 1], ["model_type", "Client"], ["updated_at", Sat, 02 Nov 2013 20:28:48 UTC +00:00]]
466
+  (0.5ms) COMMIT
467
+ StripeLocal::Customer Load (2.3ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" = $1 AND "stripe_local_customers"."model_type" = $2 LIMIT 1 [["model_id", 1], ["model_type", "Client"]]
468
+  (0.4ms) BEGIN
469
+ SQL (1.0ms) UPDATE "stripe_local_customers" SET "model_id" = $1, "updated_at" = $2 WHERE "stripe_local_customers"."" IS NULL [["model_id", nil], ["updated_at", Sat, 02 Nov 2013 20:28:48 UTC +00:00]]
470
+ PG::SyntaxError: ERROR: zero-length delimited identifier at or near """"
471
+ LINE 1: ... "updated_at" = $2 WHERE "stripe_local_customers"."" IS NULL
472
+ ^
473
+ : UPDATE "stripe_local_customers" SET "model_id" = $1, "updated_at" = $2 WHERE "stripe_local_customers"."" IS NULL
474
+  (0.2ms) ROLLBACK
475
+  (0.2ms) BEGIN
476
+ SQL (0.6ms) UPDATE "stripe_local_customers" SET "updated_at" = $1 WHERE "stripe_local_customers"."" IS NULL [["updated_at", Sat, 02 Nov 2013 20:28:48 UTC +00:00]]
477
+ PG::SyntaxError: ERROR: zero-length delimited identifier at or near """"
478
+ LINE 1: ... "updated_at" = $1 WHERE "stripe_local_customers"."" IS NULL
479
+ ^
480
+ : UPDATE "stripe_local_customers" SET "updated_at" = $1 WHERE "stripe_local_customers"."" IS NULL
481
+  (0.3ms) ROLLBACK
482
+  (0.2ms) BEGIN
483
+ SQL (0.3ms) UPDATE "stripe_local_customers" SET "updated_at" = $1, "id" = $2 WHERE "stripe_local_customers"."" = 'cust_123' [["updated_at", Sat, 02 Nov 2013 20:28:48 UTC +00:00], ["id", "cust_123"]]
484
+ PG::SyntaxError: ERROR: zero-length delimited identifier at or near """"
485
+ LINE 1: ...t" = $1, "id" = $2 WHERE "stripe_local_customers"."" = 'cust...
486
+ ^
487
+ : UPDATE "stripe_local_customers" SET "updated_at" = $1, "id" = $2 WHERE "stripe_local_customers"."" = 'cust_123'
488
+  (0.1ms) ROLLBACK
489
+  (0.2ms) BEGIN
490
+ SQL (0.4ms) UPDATE "stripe_local_customers" SET "updated_at" = $1, "id" = $2 WHERE "stripe_local_customers"."" = 'cust_123' [["updated_at", Sat, 02 Nov 2013 20:28:48 UTC +00:00], ["id", "cust_123"]]
491
+ PG::SyntaxError: ERROR: zero-length delimited identifier at or near """"
492
+ LINE 1: ...t" = $1, "id" = $2 WHERE "stripe_local_customers"."" = 'cust...
493
+ ^
494
+ : UPDATE "stripe_local_customers" SET "updated_at" = $1, "id" = $2 WHERE "stripe_local_customers"."" = 'cust_123'
495
+  (0.2ms) ROLLBACK
496
+ Client Load (2.9ms) SELECT "clients".* FROM "clients" WHERE "clients"."id" = $1 LIMIT 1 [["id", 1]]
497
+ StripeLocal::Customer Load (1.0ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" = $1 AND "stripe_local_customers"."model_type" = $2 ORDER BY "stripe_local_customers"."id" ASC LIMIT 1 [["model_id", 1], ["model_type", "Client"]]
498
+  (0.2ms) BEGIN
499
+ SQL (1.5ms) UPDATE "stripe_local_customers" SET "id" = $1, "updated_at" = $2 WHERE "stripe_local_customers"."id" = 'cust_123' [["id", "cust_123"], ["updated_at", Sat, 02 Nov 2013 20:35:19 UTC +00:00]]
500
+  (0.2ms) COMMIT
501
+  (0.2ms) BEGIN
502
+ SQL (1.0ms) INSERT INTO "clients" ("created_at", "email", "name", "password", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Sat, 02 Nov 2013 20:51:18 UTC +00:00], ["email", "outlawandy@gmail.com"], ["name", "Client Two"], ["password", "password"], ["updated_at", Sat, 02 Nov 2013 20:51:18 UTC +00:00]]
503
+  (1.8ms) COMMIT
504
+  (0.2ms) BEGIN
505
+ SQL (1.0ms) INSERT INTO "stripe_local_customers" ("created_at", "id", "model_id", "model_type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Sat, 02 Nov 2013 20:51:49 UTC +00:00], ["id", "cust_abc321"], ["model_id", 2], ["model_type", "Client"], ["updated_at", Sat, 02 Nov 2013 20:51:49 UTC +00:00]]
506
+  (2.2ms) COMMIT
507
+ StripeLocal::Customer Load (0.4ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" = $1 AND "stripe_local_customers"."model_type" = $2 ORDER BY "stripe_local_customers"."id" ASC LIMIT 1 [["model_id", 2], ["model_type", "Client"]]
508
+ Client Load (1.0ms) SELECT "clients".* FROM "clients" WHERE "clients"."id" = $1 ORDER BY "clients"."id" ASC LIMIT 1 [["id", 2]]
509
+  (0.2ms) BEGIN
510
+ SQL (3.5ms) INSERT INTO "clients" ("created_at", "email", "name", "password", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Sat, 02 Nov 2013 21:11:57 UTC +00:00], ["email", "test@tester.es"], ["name", "Testie J Testicles III"], ["password", "password"], ["updated_at", Sat, 02 Nov 2013 21:11:57 UTC +00:00]]
511
+  (43.8ms) COMMIT
512
+  (0.2ms) BEGIN
513
+ SQL (8.4ms) INSERT INTO "clients" ("created_at", "email", "name", "password", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Sun, 10 Nov 2013 12:46:05 UTC +00:00], ["email", "andy@setpoint.io"], ["name", "Andy Cohen"], ["password", "password"], ["updated_at", Sun, 10 Nov 2013 12:46:05 UTC +00:00]]
514
+  (92.6ms) COMMIT
515
+ Client Load (7.2ms) SELECT "clients".* FROM "clients" WHERE "clients"."id" = $1 LIMIT 1 [["id", 1]]
516
+ Client Load (2.7ms) SELECT "clients".* FROM "clients" WHERE "clients"."id" = $1 LIMIT 1 [["id", 1]]
517
+  (0.1ms) BEGIN
518
+ SQL (7.0ms) INSERT INTO "stripe_local_customers" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 12 Nov 2013 07:20:34 CST -06:00], ["updated_at", Tue, 12 Nov 2013 07:20:34 CST -06:00]]
519
+  (108.0ms) COMMIT
520
+ ActiveRecord::SchemaMigration Load (2.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
521
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
522
+ Migrating to CreateClients (20131102200937)
523
+  (0.1ms) BEGIN
524
+  (11.4ms) DROP TABLE "clients"
525
+ SQL (2.6ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20131102200937'
526
+  (141.2ms) COMMIT
527
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
528
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
529
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
530
+ Migrating to CreateStripeLocalCharges (20131101171503)
531
+  (0.1ms) BEGIN
532
+  (0.6ms) DROP INDEX "index_stripe_local_charges_on_balance_transaction_id"
533
+  (0.2ms) DROP INDEX "index_stripe_local_charges_on_invoice_id"
534
+  (0.2ms) DROP INDEX "index_stripe_local_charges_on_customer_id"
535
+  (0.2ms) DROP INDEX "index_stripe_local_charges_on_card_id"
536
+  (0.1ms) DROP INDEX "index_stripe_local_charges_on_id"
537
+  (0.7ms) DROP TABLE "stripe_local_charges"
538
+ SQL (0.3ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20131101171503'
539
+  (6.7ms) COMMIT
540
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
541
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
542
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
543
+ Migrating to CreateStripeLocalLineItems (20131101134517)
544
+  (0.1ms) BEGIN
545
+  (0.4ms) DROP INDEX "index_stripe_local_line_items_on_invoice_id"
546
+  (0.1ms) DROP INDEX "index_stripe_local_line_items_on_id"
547
+  (0.5ms) DROP TABLE "stripe_local_line_items"
548
+ SQL (0.3ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20131101134517'
549
+  (6.2ms) COMMIT
550
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
551
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
552
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
553
+ Migrating to CreateStripeLocalInvoices (20131101110359)
554
+  (0.1ms) BEGIN
555
+  (0.4ms) DROP INDEX "index_stripe_local_invoices_on_customer_id"
556
+  (0.1ms) DROP INDEX "index_stripe_local_invoices_on_id"
557
+  (0.6ms) DROP TABLE "stripe_local_invoices"
558
+ SQL (0.3ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20131101110359'
559
+  (6.2ms) COMMIT
560
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
561
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
562
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
563
+ Migrating to CreateStripeLocalSubscriptions (20131101092526)
564
+  (0.1ms) BEGIN
565
+  (0.5ms) DROP INDEX "index_stripe_local_subscriptions_on_plan_id"
566
+  (0.1ms) DROP INDEX "index_stripe_local_subscriptions_on_customer_id"
567
+  (0.1ms) DROP INDEX "index_stripe_local_subscriptions_on_id"
568
+  (0.4ms) DROP TABLE "stripe_local_subscriptions"
569
+ SQL (0.3ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20131101092526'
570
+  (7.7ms) COMMIT
571
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
572
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
573
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
574
+ Migrating to CreateStripeLocalDiscounts (20131101034057)
575
+  (0.1ms) BEGIN
576
+  (2.5ms) DROP INDEX "index_stripe_local_discounts_on_coupon_id_and_subscription_id"
577
+  (0.8ms) DROP TABLE "stripe_local_discounts"
578
+ SQL (0.3ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20131101034057'
579
+  (5.7ms) COMMIT
580
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
581
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
582
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
583
+ Migrating to CreateStripeLocalCoupons (20131031032453)
584
+  (0.1ms) BEGIN
585
+  (0.4ms) DROP INDEX "index_stripe_local_coupons_on_id"
586
+  (0.5ms) DROP TABLE "stripe_local_coupons"
587
+ SQL (0.3ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20131031032453'
588
+  (3.7ms) COMMIT
589
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
590
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
591
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
592
+ Migrating to CreateStripeLocalPlans (20131031024841)
593
+  (0.1ms) BEGIN
594
+  (0.5ms) DROP INDEX "index_stripe_local_plans_on_id"
595
+  (0.7ms) DROP TABLE "stripe_local_plans"
596
+ SQL (0.3ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20131031024841'
597
+  (5.3ms) COMMIT
598
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
599
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
600
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
601
+ Migrating to CreateStripeLocalCards (20131030064604)
602
+  (0.1ms) BEGIN
603
+  (0.5ms) DROP INDEX "index_stripe_local_cards_on_customer_id"
604
+  (0.1ms) DROP INDEX "index_stripe_local_cards_on_id"
605
+  (0.4ms) DROP TABLE "stripe_local_cards"
606
+ SQL (0.3ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20131030064604'
607
+  (5.0ms) COMMIT
608
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
609
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
610
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
611
+ Migrating to CreateStripeLocalCustomers (20131030062900)
612
+  (0.1ms) BEGIN
613
+  (0.6ms) DROP INDEX "index_stripe_local_customers_on_model_type_and_model_id"
614
+  (0.2ms) DROP INDEX "index_stripe_local_customers_on_id"
615
+  (0.5ms) DROP TABLE "stripe_local_customers"
616
+ SQL (0.3ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20131030062900'
617
+  (7.7ms) COMMIT
618
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
619
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
620
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
621
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
622
+ Migrating to CreateClients (20131102200937)
623
+  (0.1ms) BEGIN
624
+  (21.0ms) CREATE TABLE "clients" ("id" serial primary key, "name" character varying(255), "email" character varying(255), "password" character varying(255), "created_at" timestamp, "updated_at" timestamp) 
625
+ SQL (3.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131102200937"]]
626
+  (0.8ms) COMMIT
627
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
628
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
629
+ Migrating to LoadStripeTables (20131122063517)
630
+  (0.2ms) BEGIN
631
+  (2.5ms) CREATE TABLE "stripe_local_customers" ("id" character varying(255), "account_balance" integer, "default_card" character varying(255), "delinquent" boolean, "description" character varying(255), "email" character varying(255), "metadata" text, "created_at" timestamp, "updated_at" timestamp) 
632
+  (1.7ms) CREATE UNIQUE INDEX "index_stripe_local_customers_on_id" ON "stripe_local_customers" ("id")
633
+  (2.8ms) CREATE INDEX "index_stripe_local_customers_on_model_type_and_model_id" ON "stripe_local_customers" ("model_type", "model_id")
634
+ PG::UndefinedColumn: ERROR: column "model_type" does not exist
635
+ : CREATE INDEX "index_stripe_local_customers_on_model_type_and_model_id" ON "stripe_local_customers" ("model_type", "model_id")
636
+  (0.1ms) ROLLBACK
637
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
638
+ Migrating to LoadStripeTables (20131122063517)
639
+  (0.1ms) BEGIN
640
+  (4.0ms) CREATE TABLE "stripe_local_customers" ("id" character varying(255), "account_balance" integer, "default_card" character varying(255), "delinquent" boolean, "description" character varying(255), "email" character varying(255), "metadata" text, "created_at" timestamp, "updated_at" timestamp) 
641
+  (0.8ms) CREATE UNIQUE INDEX "index_stripe_local_customers_on_id" ON "stripe_local_customers" ("id")
642
+  (1.2ms) CREATE TABLE "stripe_local_cards" ("id" character varying(255), "customer_id" character varying(255), "name" character varying(255), "exp_month" integer, "exp_year" integer, "brand" character varying(255), "last4" character varying(255), "cvc_check" character varying(255), "created_at" timestamp, "updated_at" timestamp) 
643
+  (0.5ms) CREATE UNIQUE INDEX "index_stripe_local_cards_on_id" ON "stripe_local_cards" ("id")
644
+  (0.6ms) CREATE INDEX "index_stripe_local_cards_on_customer_id" ON "stripe_local_cards" ("customer_id")
645
+  (2.2ms) CREATE TABLE "stripe_local_plans" ("id" character varying(255), "name" character varying(255), "amount" integer, "interval" character varying(255), "interval_count" integer DEFAULT 1, "trial_period_days" integer DEFAULT 0, "currency" character varying(255) DEFAULT 'usd', "synced" boolean DEFAULT 'f', "created_at" timestamp, "updated_at" timestamp)
646
+  (0.6ms) CREATE UNIQUE INDEX "index_stripe_local_plans_on_id" ON "stripe_local_plans" ("id")
647
+  (1.2ms) CREATE TABLE "stripe_local_coupons" ("id" character varying(255), "percent_off" integer, "amount_off" integer, "currency" character varying(255) DEFAULT 'usd', "duration" character varying(255), "redeem_by" timestamp, "max_redemptions" integer, "times_redeemed" integer DEFAULT 0, "duration_in_months" integer, "synced" boolean DEFAULT 'f', "created_at" timestamp, "updated_at" timestamp)
648
+  (0.5ms) CREATE UNIQUE INDEX "index_stripe_local_coupons_on_id" ON "stripe_local_coupons" ("id")
649
+  (2.1ms) CREATE TABLE "stripe_local_discounts" ("id" serial primary key, "coupon_id" character varying(255), "subscription_id" character varying(255), "start" timestamp, "end" timestamp, "created_at" timestamp, "updated_at" timestamp)
650
+  (0.5ms) CREATE INDEX "index_stripe_local_discounts_on_coupon_id_and_subscription_id" ON "stripe_local_discounts" ("coupon_id", "subscription_id")
651
+  (1.2ms) CREATE TABLE "stripe_local_subscriptions" ("id" character varying(255), "customer_id" character varying(255), "plan_id" character varying(255), "status" character varying(255), "quantity" integer DEFAULT 1, "start" timestamp, "canceled_at" timestamp, "ended_at" timestamp, "current_period_start" timestamp, "current_period_end" timestamp, "trial_start" timestamp, "trial_end" timestamp, "created_at" timestamp, "updated_at" timestamp)
652
+  (0.5ms) CREATE UNIQUE INDEX "index_stripe_local_subscriptions_on_id" ON "stripe_local_subscriptions" ("id")
653
+  (0.5ms) CREATE INDEX "index_stripe_local_subscriptions_on_customer_id" ON "stripe_local_subscriptions" ("customer_id")
654
+  (0.5ms) CREATE INDEX "index_stripe_local_subscriptions_on_plan_id" ON "stripe_local_subscriptions" ("plan_id")
655
+  (1.4ms) CREATE TABLE "stripe_local_invoices" ("id" character varying(255), "customer_id" character varying(255), "amount_due" integer, "subtotal" integer, "total" integer, "attempted" boolean, "attempt_count" integer, "paid" boolean, "closed" boolean, "date" timestamp, "period_start" timestamp, "period_end" timestamp, "currency" character varying(255) DEFAULT 'usd', "starting_balance" integer, "ending_balance" integer, "charge_id" character varying(255), "discount" integer DEFAULT 0, "application_fee" integer, "next_payment_attempt" timestamp, "created_at" timestamp, "updated_at" timestamp)
656
+  (0.6ms) CREATE UNIQUE INDEX "index_stripe_local_invoices_on_id" ON "stripe_local_invoices" ("id")
657
+  (1.0ms) CREATE INDEX "index_stripe_local_invoices_on_customer_id" ON "stripe_local_invoices" ("customer_id")
658
+  (1.9ms) CREATE TABLE "stripe_local_line_items" ("id" character varying(255), "invoice_id" character varying(255), "subscription" boolean DEFAULT 't', "amount" integer, "currency" character varying(255) DEFAULT 'usd', "proration" boolean, "period_start" timestamp, "period_end" timestamp, "quantity" integer, "plan_id" character varying(255), "description" character varying(255), "metadata" text, "created_at" timestamp, "updated_at" timestamp) 
659
+  (0.5ms) CREATE UNIQUE INDEX "index_stripe_local_line_items_on_id" ON "stripe_local_line_items" ("id")
660
+  (0.5ms) CREATE INDEX "index_stripe_local_line_items_on_invoice_id" ON "stripe_local_line_items" ("invoice_id")
661
+  (1.5ms) CREATE TABLE "stripe_local_charges" ("id" character varying(255), "card_id" character varying(255), "customer_id" character varying(255), "invoice_id" character varying(255), "balance_transaction_id" character varying(255), "amount" integer, "captured" boolean DEFAULT 't', "refunded" boolean DEFAULT 'f', "paid" boolean, "created" timestamp, "currency" character varying(255) DEFAULT 'usd', "amount_refunded" integer DEFAULT 0, "description" character varying(255), "failure_code" character varying(255), "failure_message" character varying(255), "metadata" text, "created_at" timestamp, "updated_at" timestamp)
662
+  (0.5ms) CREATE UNIQUE INDEX "index_stripe_local_charges_on_id" ON "stripe_local_charges" ("id")
663
+  (0.5ms) CREATE INDEX "index_stripe_local_charges_on_card_id" ON "stripe_local_charges" ("card_id")
664
+  (0.5ms) CREATE INDEX "index_stripe_local_charges_on_customer_id" ON "stripe_local_charges" ("customer_id")
665
+  (0.5ms) CREATE INDEX "index_stripe_local_charges_on_invoice_id" ON "stripe_local_charges" ("invoice_id")
666
+  (0.5ms) CREATE INDEX "index_stripe_local_charges_on_balance_transaction_id" ON "stripe_local_charges" ("balance_transaction_id")
667
+  (1.2ms) CREATE TABLE "stripe_local_transfers" ("id" character varying(255), "amount" integer, "date" timestamp, "status" character varying(255), "balance_transaction_id" character varying(255), "description" character varying(255), "metadata" text, "created_at" timestamp, "updated_at" timestamp)
668
+  (0.9ms) CREATE UNIQUE INDEX "index_stripe_local_transfers_on_id" ON "stripe_local_transfers" ("id")
669
+  (0.7ms) CREATE INDEX "index_stripe_local_transfers_on_status" ON "stripe_local_transfers" ("status")
670
+  (0.8ms) CREATE INDEX "index_stripe_local_transfers_on_balance_transaction_id" ON "stripe_local_transfers" ("balance_transaction_id")
671
+  (1.5ms) CREATE TABLE "stripe_local_balance_transactions" ("id" character varying(255), "amount" integer, "available_on" timestamp, "created" timestamp, "fee" integer, "net" integer, "source_id" character varying(255), "source_type" character varying(255), "status" character varying(255), "description" character varying(255), "created_at" timestamp, "updated_at" timestamp)
672
+  (0.6ms) CREATE UNIQUE INDEX "index_stripe_local_balance_transactions_on_id" ON "stripe_local_balance_transactions" ("id")
673
+  (0.6ms) CREATE INDEX "index_stripe_local_balance_transactions_on_status" ON "stripe_local_balance_transactions" ("status")
674
+  (3.0ms) ROLLBACK
675
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
676
+ Migrating to LoadStripeTables (20131122063517)
677
+  (0.1ms) BEGIN
678
+  (2.3ms) CREATE TABLE "stripe_local_customers" ("id" character varying(255), "account_balance" integer, "default_card" character varying(255), "delinquent" boolean, "description" character varying(255), "email" character varying(255), "metadata" text, "created_at" timestamp, "updated_at" timestamp) 
679
+  (0.7ms) CREATE UNIQUE INDEX "index_stripe_local_customers_on_id" ON "stripe_local_customers" ("id")
680
+  (1.1ms) CREATE TABLE "stripe_local_cards" ("id" character varying(255), "customer_id" character varying(255), "name" character varying(255), "exp_month" integer, "exp_year" integer, "brand" character varying(255), "last4" character varying(255), "cvc_check" character varying(255), "created_at" timestamp, "updated_at" timestamp) 
681
+  (0.5ms) CREATE UNIQUE INDEX "index_stripe_local_cards_on_id" ON "stripe_local_cards" ("id")
682
+  (0.6ms) CREATE INDEX "index_stripe_local_cards_on_customer_id" ON "stripe_local_cards" ("customer_id")
683
+  (1.5ms) CREATE TABLE "stripe_local_plans" ("id" character varying(255), "name" character varying(255), "amount" integer, "interval" character varying(255), "interval_count" integer DEFAULT 1, "trial_period_days" integer DEFAULT 0, "currency" character varying(255) DEFAULT 'usd', "synced" boolean DEFAULT 'f', "created_at" timestamp, "updated_at" timestamp)
684
+  (0.6ms) CREATE UNIQUE INDEX "index_stripe_local_plans_on_id" ON "stripe_local_plans" ("id")
685
+  (1.3ms) CREATE TABLE "stripe_local_coupons" ("id" character varying(255), "percent_off" integer, "amount_off" integer, "currency" character varying(255) DEFAULT 'usd', "duration" character varying(255), "redeem_by" timestamp, "max_redemptions" integer, "times_redeemed" integer DEFAULT 0, "duration_in_months" integer, "synced" boolean DEFAULT 'f', "created_at" timestamp, "updated_at" timestamp)
686
+  (0.6ms) CREATE UNIQUE INDEX "index_stripe_local_coupons_on_id" ON "stripe_local_coupons" ("id")
687
+  (2.1ms) CREATE TABLE "stripe_local_discounts" ("id" serial primary key, "coupon_id" character varying(255), "subscription_id" character varying(255), "start" timestamp, "end" timestamp, "created_at" timestamp, "updated_at" timestamp)
688
+  (0.6ms) CREATE INDEX "index_stripe_local_discounts_on_coupon_id_and_subscription_id" ON "stripe_local_discounts" ("coupon_id", "subscription_id")
689
+  (1.3ms) CREATE TABLE "stripe_local_subscriptions" ("id" character varying(255), "customer_id" character varying(255), "plan_id" character varying(255), "status" character varying(255), "quantity" integer DEFAULT 1, "start" timestamp, "canceled_at" timestamp, "ended_at" timestamp, "current_period_start" timestamp, "current_period_end" timestamp, "trial_start" timestamp, "trial_end" timestamp, "created_at" timestamp, "updated_at" timestamp)
690
+  (0.5ms) CREATE UNIQUE INDEX "index_stripe_local_subscriptions_on_id" ON "stripe_local_subscriptions" ("id")
691
+  (0.6ms) CREATE INDEX "index_stripe_local_subscriptions_on_customer_id" ON "stripe_local_subscriptions" ("customer_id")
692
+  (0.5ms) CREATE INDEX "index_stripe_local_subscriptions_on_plan_id" ON "stripe_local_subscriptions" ("plan_id")
693
+  (1.3ms) CREATE TABLE "stripe_local_invoices" ("id" character varying(255), "customer_id" character varying(255), "amount_due" integer, "subtotal" integer, "total" integer, "attempted" boolean, "attempt_count" integer, "paid" boolean, "closed" boolean, "date" timestamp, "period_start" timestamp, "period_end" timestamp, "currency" character varying(255) DEFAULT 'usd', "starting_balance" integer, "ending_balance" integer, "charge_id" character varying(255), "discount" integer DEFAULT 0, "application_fee" integer, "next_payment_attempt" timestamp, "created_at" timestamp, "updated_at" timestamp)
694
+  (0.5ms) CREATE UNIQUE INDEX "index_stripe_local_invoices_on_id" ON "stripe_local_invoices" ("id")
695
+  (0.6ms) CREATE INDEX "index_stripe_local_invoices_on_customer_id" ON "stripe_local_invoices" ("customer_id")
696
+  (1.2ms) CREATE TABLE "stripe_local_line_items" ("id" character varying(255), "invoice_id" character varying(255), "subscription" boolean DEFAULT 't', "amount" integer, "currency" character varying(255) DEFAULT 'usd', "proration" boolean, "period_start" timestamp, "period_end" timestamp, "quantity" integer, "plan_id" character varying(255), "description" character varying(255), "metadata" text, "created_at" timestamp, "updated_at" timestamp) 
697
+  (1.0ms) CREATE UNIQUE INDEX "index_stripe_local_line_items_on_id" ON "stripe_local_line_items" ("id")
698
+  (0.6ms) CREATE INDEX "index_stripe_local_line_items_on_invoice_id" ON "stripe_local_line_items" ("invoice_id")
699
+  (1.4ms) CREATE TABLE "stripe_local_charges" ("id" character varying(255), "card_id" character varying(255), "customer_id" character varying(255), "invoice_id" character varying(255), "balance_transaction_id" character varying(255), "amount" integer, "captured" boolean DEFAULT 't', "refunded" boolean DEFAULT 'f', "paid" boolean, "created" timestamp, "currency" character varying(255) DEFAULT 'usd', "amount_refunded" integer DEFAULT 0, "description" character varying(255), "failure_code" character varying(255), "failure_message" character varying(255), "metadata" text, "created_at" timestamp, "updated_at" timestamp)
700
+  (0.5ms) CREATE UNIQUE INDEX "index_stripe_local_charges_on_id" ON "stripe_local_charges" ("id")
701
+  (0.5ms) CREATE INDEX "index_stripe_local_charges_on_card_id" ON "stripe_local_charges" ("card_id")
702
+  (0.5ms) CREATE INDEX "index_stripe_local_charges_on_customer_id" ON "stripe_local_charges" ("customer_id")
703
+  (0.5ms) CREATE INDEX "index_stripe_local_charges_on_invoice_id" ON "stripe_local_charges" ("invoice_id")
704
+  (0.5ms) CREATE INDEX "index_stripe_local_charges_on_balance_transaction_id" ON "stripe_local_charges" ("balance_transaction_id")
705
+  (1.1ms) CREATE TABLE "stripe_local_transfers" ("id" character varying(255), "amount" integer, "date" timestamp, "status" character varying(255), "balance_transaction_id" character varying(255), "description" character varying(255), "metadata" text, "created_at" timestamp, "updated_at" timestamp)
706
+  (0.6ms) CREATE UNIQUE INDEX "index_stripe_local_transfers_on_id" ON "stripe_local_transfers" ("id")
707
+  (0.5ms) CREATE INDEX "index_stripe_local_transfers_on_status" ON "stripe_local_transfers" ("status")
708
+  (0.6ms) CREATE INDEX "index_stripe_local_transfers_on_balance_transaction_id" ON "stripe_local_transfers" ("balance_transaction_id")
709
+  (1.2ms) CREATE TABLE "stripe_local_balance_transactions" ("id" character varying(255), "amount" integer, "available_on" timestamp, "created" timestamp, "fee" integer, "net" integer, "source_id" character varying(255), "source_type" character varying(255), "status" character varying(255), "description" character varying(255), "created_at" timestamp, "updated_at" timestamp)
710
+  (0.5ms) CREATE UNIQUE INDEX "index_stripe_local_balance_transactions_on_id" ON "stripe_local_balance_transactions" ("id")
711
+  (0.5ms) CREATE INDEX "index_stripe_local_balance_transactions_on_status" ON "stripe_local_balance_transactions" ("status")
712
+  (0.9ms) CREATE INDEX "index_transactions_on_source_id_and_source_type" ON "stripe_local_balance_transactions" ("source_id", "source_type")
713
+ SQL (0.9ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131122063517"]]
714
+  (1.5ms) COMMIT
715
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
716
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
717
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
718
+ Migrating to LoadStripeTables (20131122063517)
719
+  (0.1ms) BEGIN
720
+  (0.1ms) ROLLBACK
721
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
722
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
723
+ Migrating to LoadStripeTables (20131122063517)
724
+  (0.1ms) BEGIN
725
+  (0.6ms) DROP INDEX "index_transactions_on_source_id_and_source_type"
726
+  (0.2ms) DROP INDEX "index_stripe_local_balance_transactions_on_status"
727
+  (0.2ms) DROP INDEX "index_stripe_local_balance_transactions_on_id"
728
+  (0.4ms) DROP TABLE "stripe_local_balance_transactions"
729
+  (0.1ms) ROLLBACK
730
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
731
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
732
+ Migrating to LoadStripeTables (20131122063517)
733
+  (0.1ms) BEGIN
734
+  (0.6ms) DROP INDEX "index_transactions_on_source_id_and_source_type"
735
+  (0.2ms) DROP INDEX "index_stripe_local_balance_transactions_on_status"
736
+  (0.2ms) DROP INDEX "index_stripe_local_balance_transactions_on_id"
737
+  (0.4ms) DROP TABLE "stripe_local_balance_transactions"
738
+  (0.1ms) ROLLBACK
739
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
740
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
741
+ Migrating to LoadStripeTables (20131122063517)
742
+  (0.1ms) BEGIN
743
+  (0.5ms) DROP INDEX "index_transactions_on_source_id_and_source_type"
744
+  (0.2ms) DROP INDEX "index_stripe_local_balance_transactions_on_status"
745
+  (0.2ms) DROP INDEX "index_stripe_local_balance_transactions_on_id"
746
+  (0.4ms) DROP TABLE "stripe_local_balance_transactions"
747
+  (0.1ms) ROLLBACK
748
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
749
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
750
+ Migrating to LoadStripeTables (20131122063517)
751
+  (0.1ms) BEGIN
752
+  (0.5ms) DROP INDEX "index_transactions_on_source_id_and_source_type"
753
+  (0.2ms) DROP INDEX "index_stripe_local_balance_transactions_on_status"
754
+  (0.2ms) DROP INDEX "index_stripe_local_balance_transactions_on_id"
755
+  (0.5ms) DROP TABLE "stripe_local_balance_transactions"
756
+  (0.2ms) DROP INDEX "index_stripe_local_transfers_on_balance_transaction_id"
757
+  (0.1ms) DROP INDEX "index_stripe_local_transfers_on_status"
758
+  (0.1ms) DROP INDEX "index_stripe_local_transfers_on_id"
759
+  (0.4ms) DROP TABLE "stripe_local_transfers"
760
+  (0.2ms) DROP INDEX "index_stripe_local_charges_on_balance_transaction_id"
761
+  (0.1ms) DROP INDEX "index_stripe_local_charges_on_invoice_id"
762
+  (0.1ms) DROP INDEX "index_stripe_local_charges_on_customer_id"
763
+  (0.2ms) DROP INDEX "index_stripe_local_charges_on_card_id"
764
+  (0.1ms) DROP INDEX "index_stripe_local_charges_on_id"
765
+  (0.7ms) DROP TABLE "stripe_local_charges"
766
+  (0.1ms) DROP INDEX "index_stripe_local_line_items_on_invoice_id"
767
+  (0.1ms) DROP INDEX "index_stripe_local_line_items_on_id"
768
+  (0.4ms) DROP TABLE "stripe_local_line_items"
769
+  (0.2ms) DROP INDEX "index_stripe_local_invoices_on_customer_id"
770
+  (0.2ms) DROP INDEX "index_stripe_local_invoices_on_id"
771
+  (0.6ms) DROP TABLE "stripe_local_invoices"
772
+  (0.3ms) DROP INDEX "index_stripe_local_subscriptions_on_plan_id"
773
+  (0.3ms) DROP INDEX "index_stripe_local_subscriptions_on_customer_id"
774
+  (0.2ms) DROP INDEX "index_stripe_local_subscriptions_on_id"
775
+  (0.8ms) DROP TABLE "stripe_local_subscriptions"
776
+  (0.2ms) DROP INDEX "index_stripe_local_discounts_on_coupon_id_and_subscription_id"
777
+  (0.8ms) DROP TABLE "stripe_local_discounts"
778
+  (0.2ms) DROP INDEX "index_stripe_local_coupons_on_id"
779
+  (0.5ms) DROP TABLE "stripe_local_coupons"
780
+  (0.1ms) DROP INDEX "index_stripe_local_plans_on_id"
781
+  (0.6ms) DROP TABLE "stripe_local_plans"
782
+  (0.1ms) DROP INDEX "index_stripe_local_cards_on_customer_id"
783
+  (0.1ms) DROP INDEX "index_stripe_local_cards_on_id"
784
+  (0.4ms) DROP TABLE "stripe_local_cards"
785
+  (0.2ms) DROP INDEX "index_stripe_local_customers_on_id"
786
+  (0.4ms) DROP TABLE "stripe_local_customers"
787
+ SQL (0.3ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20131122063517'
788
+  (9.6ms) COMMIT
789
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
790
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
791
+ Migrating to LoadStripeTables (20131122063517)
792
+  (0.1ms) BEGIN
793
+  (2.6ms) CREATE TABLE "stripe_local_customers" ("id" character varying(255), "account_balance" integer, "default_card" character varying(255), "delinquent" boolean, "description" character varying(255), "email" character varying(255), "metadata" text, "created_at" timestamp, "updated_at" timestamp) 
794
+  (0.7ms) CREATE UNIQUE INDEX "index_stripe_local_customers_on_id" ON "stripe_local_customers" ("id")
795
+  (1.2ms) CREATE TABLE "stripe_local_cards" ("id" character varying(255), "customer_id" character varying(255), "name" character varying(255), "exp_month" integer, "exp_year" integer, "brand" character varying(255), "last4" character varying(255), "cvc_check" character varying(255), "created_at" timestamp, "updated_at" timestamp) 
796
+  (0.5ms) CREATE UNIQUE INDEX "index_stripe_local_cards_on_id" ON "stripe_local_cards" ("id")
797
+  (0.6ms) CREATE INDEX "index_stripe_local_cards_on_customer_id" ON "stripe_local_cards" ("customer_id")
798
+  (1.8ms) CREATE TABLE "stripe_local_plans" ("id" character varying(255), "name" character varying(255), "amount" integer, "interval" character varying(255), "interval_count" integer DEFAULT 1, "trial_period_days" integer DEFAULT 0, "currency" character varying(255) DEFAULT 'usd', "synced" boolean DEFAULT 'f', "created_at" timestamp, "updated_at" timestamp)
799
+  (0.6ms) CREATE UNIQUE INDEX "index_stripe_local_plans_on_id" ON "stripe_local_plans" ("id")
800
+  (1.3ms) CREATE TABLE "stripe_local_coupons" ("id" character varying(255), "percent_off" integer, "amount_off" integer, "currency" character varying(255) DEFAULT 'usd', "duration" character varying(255), "redeem_by" timestamp, "max_redemptions" integer, "times_redeemed" integer DEFAULT 0, "duration_in_months" integer, "synced" boolean DEFAULT 'f', "created_at" timestamp, "updated_at" timestamp)
801
+  (0.6ms) CREATE UNIQUE INDEX "index_stripe_local_coupons_on_id" ON "stripe_local_coupons" ("id")
802
+  (2.3ms) CREATE TABLE "stripe_local_discounts" ("id" serial primary key, "coupon_id" character varying(255), "subscription_id" character varying(255), "start" timestamp, "end" timestamp, "created_at" timestamp, "updated_at" timestamp)
803
+  (0.5ms) CREATE INDEX "index_stripe_local_discounts_on_coupon_id_and_subscription_id" ON "stripe_local_discounts" ("coupon_id", "subscription_id")
804
+  (1.2ms) CREATE TABLE "stripe_local_subscriptions" ("id" character varying(255), "customer_id" character varying(255), "plan_id" character varying(255), "status" character varying(255), "quantity" integer DEFAULT 1, "start" timestamp, "canceled_at" timestamp, "ended_at" timestamp, "current_period_start" timestamp, "current_period_end" timestamp, "trial_start" timestamp, "trial_end" timestamp, "created_at" timestamp, "updated_at" timestamp)
805
+  (0.5ms) CREATE UNIQUE INDEX "index_stripe_local_subscriptions_on_id" ON "stripe_local_subscriptions" ("id")
806
+  (0.6ms) CREATE INDEX "index_stripe_local_subscriptions_on_customer_id" ON "stripe_local_subscriptions" ("customer_id")
807
+  (0.8ms) CREATE INDEX "index_stripe_local_subscriptions_on_plan_id" ON "stripe_local_subscriptions" ("plan_id")
808
+  (2.0ms) CREATE TABLE "stripe_local_invoices" ("id" character varying(255), "customer_id" character varying(255), "amount_due" integer, "subtotal" integer, "total" integer, "attempted" boolean, "attempt_count" integer, "paid" boolean, "closed" boolean, "date" timestamp, "period_start" timestamp, "period_end" timestamp, "currency" character varying(255) DEFAULT 'usd', "starting_balance" integer, "ending_balance" integer, "charge_id" character varying(255), "discount" integer DEFAULT 0, "application_fee" integer, "next_payment_attempt" timestamp, "created_at" timestamp, "updated_at" timestamp)
809
+  (1.1ms) CREATE UNIQUE INDEX "index_stripe_local_invoices_on_id" ON "stripe_local_invoices" ("id")
810
+  (0.6ms) CREATE INDEX "index_stripe_local_invoices_on_customer_id" ON "stripe_local_invoices" ("customer_id")
811
+  (1.3ms) CREATE TABLE "stripe_local_line_items" ("id" character varying(255), "invoice_id" character varying(255), "subscription" boolean DEFAULT 't', "amount" integer, "currency" character varying(255) DEFAULT 'usd', "proration" boolean, "period_start" timestamp, "period_end" timestamp, "quantity" integer, "plan_id" character varying(255), "description" character varying(255), "metadata" text, "created_at" timestamp, "updated_at" timestamp) 
812
+  (0.5ms) CREATE UNIQUE INDEX "index_stripe_local_line_items_on_id" ON "stripe_local_line_items" ("id")
813
+  (0.5ms) CREATE INDEX "index_stripe_local_line_items_on_invoice_id" ON "stripe_local_line_items" ("invoice_id")
814
+  (1.5ms) CREATE TABLE "stripe_local_charges" ("id" character varying(255), "card_id" character varying(255), "customer_id" character varying(255), "invoice_id" character varying(255), "balance_transaction_id" character varying(255), "amount" integer, "captured" boolean DEFAULT 't', "refunded" boolean DEFAULT 'f', "paid" boolean, "created" timestamp, "currency" character varying(255) DEFAULT 'usd', "amount_refunded" integer DEFAULT 0, "description" character varying(255), "failure_code" character varying(255), "failure_message" character varying(255), "metadata" text, "created_at" timestamp, "updated_at" timestamp)
815
+  (0.5ms) CREATE UNIQUE INDEX "index_stripe_local_charges_on_id" ON "stripe_local_charges" ("id")
816
+  (0.5ms) CREATE INDEX "index_stripe_local_charges_on_card_id" ON "stripe_local_charges" ("card_id")
817
+  (0.5ms) CREATE INDEX "index_stripe_local_charges_on_customer_id" ON "stripe_local_charges" ("customer_id")
818
+  (0.6ms) CREATE INDEX "index_stripe_local_charges_on_invoice_id" ON "stripe_local_charges" ("invoice_id")
819
+  (0.6ms) CREATE INDEX "index_stripe_local_charges_on_balance_transaction_id" ON "stripe_local_charges" ("balance_transaction_id")
820
+  (1.1ms) CREATE TABLE "stripe_local_transfers" ("id" character varying(255), "amount" integer, "date" timestamp, "status" character varying(255), "balance_transaction_id" character varying(255), "description" character varying(255), "metadata" text, "created_at" timestamp, "updated_at" timestamp)
821
+  (0.5ms) CREATE UNIQUE INDEX "index_stripe_local_transfers_on_id" ON "stripe_local_transfers" ("id")
822
+  (0.5ms) CREATE INDEX "index_stripe_local_transfers_on_status" ON "stripe_local_transfers" ("status")
823
+  (3.6ms) CREATE INDEX "index_stripe_local_transfers_on_transaction_id" ON "stripe_local_transfers" ("transaction_id")
824
+ PG::UndefinedColumn: ERROR: column "transaction_id" does not exist
825
+ : CREATE INDEX "index_stripe_local_transfers_on_transaction_id" ON "stripe_local_transfers" ("transaction_id")
826
+  (0.2ms) ROLLBACK
827
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
828
+ Migrating to LoadStripeTables (20131122063517)
829
+  (0.1ms) BEGIN
830
+  (6.0ms) CREATE TABLE "stripe_local_customers" ("id" character varying(255), "account_balance" integer, "default_card" character varying(255), "delinquent" boolean, "description" character varying(255), "email" character varying(255), "metadata" text, "created_at" timestamp, "updated_at" timestamp) 
831
+  (8.8ms) CREATE UNIQUE INDEX "index_stripe_local_customers_on_id" ON "stripe_local_customers" ("id")
832
+  (1.9ms) CREATE TABLE "stripe_local_cards" ("id" character varying(255), "customer_id" character varying(255), "name" character varying(255), "exp_month" integer, "exp_year" integer, "brand" character varying(255), "last4" character varying(255), "cvc_check" character varying(255), "created_at" timestamp, "updated_at" timestamp) 
833
+  (0.9ms) CREATE UNIQUE INDEX "index_stripe_local_cards_on_id" ON "stripe_local_cards" ("id")
834
+  (0.7ms) CREATE INDEX "index_stripe_local_cards_on_customer_id" ON "stripe_local_cards" ("customer_id")
835
+  (1.9ms) CREATE TABLE "stripe_local_plans" ("id" character varying(255), "name" character varying(255), "amount" integer, "interval" character varying(255), "interval_count" integer DEFAULT 1, "trial_period_days" integer DEFAULT 0, "currency" character varying(255) DEFAULT 'usd', "synced" boolean DEFAULT 'f', "created_at" timestamp, "updated_at" timestamp)
836
+  (0.7ms) CREATE UNIQUE INDEX "index_stripe_local_plans_on_id" ON "stripe_local_plans" ("id")
837
+  (1.9ms) CREATE TABLE "stripe_local_coupons" ("id" character varying(255), "percent_off" integer, "amount_off" integer, "currency" character varying(255) DEFAULT 'usd', "duration" character varying(255), "redeem_by" timestamp, "max_redemptions" integer, "times_redeemed" integer DEFAULT 0, "duration_in_months" integer, "synced" boolean DEFAULT 'f', "created_at" timestamp, "updated_at" timestamp)
838
+  (0.6ms) CREATE UNIQUE INDEX "index_stripe_local_coupons_on_id" ON "stripe_local_coupons" ("id")
839
+  (2.9ms) CREATE TABLE "stripe_local_discounts" ("id" serial primary key, "coupon_id" character varying(255), "subscription_id" character varying(255), "start" timestamp, "end" timestamp, "created_at" timestamp, "updated_at" timestamp)
840
+  (0.6ms) CREATE INDEX "index_stripe_local_discounts_on_coupon_id_and_subscription_id" ON "stripe_local_discounts" ("coupon_id", "subscription_id")
841
+  (1.3ms) CREATE TABLE "stripe_local_subscriptions" ("id" character varying(255), "customer_id" character varying(255), "plan_id" character varying(255), "status" character varying(255), "quantity" integer DEFAULT 1, "start" timestamp, "canceled_at" timestamp, "ended_at" timestamp, "current_period_start" timestamp, "current_period_end" timestamp, "trial_start" timestamp, "trial_end" timestamp, "created_at" timestamp, "updated_at" timestamp)
842
+  (0.5ms) CREATE UNIQUE INDEX "index_stripe_local_subscriptions_on_id" ON "stripe_local_subscriptions" ("id")
843
+  (0.5ms) CREATE INDEX "index_stripe_local_subscriptions_on_customer_id" ON "stripe_local_subscriptions" ("customer_id")
844
+  (0.5ms) CREATE INDEX "index_stripe_local_subscriptions_on_plan_id" ON "stripe_local_subscriptions" ("plan_id")
845
+  (1.5ms) CREATE TABLE "stripe_local_invoices" ("id" character varying(255), "customer_id" character varying(255), "amount_due" integer, "subtotal" integer, "total" integer, "attempted" boolean, "attempt_count" integer, "paid" boolean, "closed" boolean, "date" timestamp, "period_start" timestamp, "period_end" timestamp, "currency" character varying(255) DEFAULT 'usd', "starting_balance" integer, "ending_balance" integer, "charge_id" character varying(255), "discount" integer DEFAULT 0, "application_fee" integer, "next_payment_attempt" timestamp, "created_at" timestamp, "updated_at" timestamp)
846
+  (0.5ms) CREATE UNIQUE INDEX "index_stripe_local_invoices_on_id" ON "stripe_local_invoices" ("id")
847
+  (0.5ms) CREATE INDEX "index_stripe_local_invoices_on_customer_id" ON "stripe_local_invoices" ("customer_id")
848
+  (1.3ms) CREATE TABLE "stripe_local_line_items" ("id" character varying(255), "invoice_id" character varying(255), "subscription" boolean DEFAULT 't', "amount" integer, "currency" character varying(255) DEFAULT 'usd', "proration" boolean, "period_start" timestamp, "period_end" timestamp, "quantity" integer, "plan_id" character varying(255), "description" character varying(255), "metadata" text, "created_at" timestamp, "updated_at" timestamp) 
849
+  (0.5ms) CREATE UNIQUE INDEX "index_stripe_local_line_items_on_id" ON "stripe_local_line_items" ("id")
850
+  (0.5ms) CREATE INDEX "index_stripe_local_line_items_on_invoice_id" ON "stripe_local_line_items" ("invoice_id")
851
+  (1.5ms) CREATE TABLE "stripe_local_charges" ("id" character varying(255), "card_id" character varying(255), "customer_id" character varying(255), "invoice_id" character varying(255), "transaction_id" character varying(255), "amount" integer, "captured" boolean DEFAULT 't', "refunded" boolean DEFAULT 'f', "paid" boolean, "created" timestamp, "currency" character varying(255) DEFAULT 'usd', "amount_refunded" integer DEFAULT 0, "description" character varying(255), "failure_code" character varying(255), "failure_message" character varying(255), "metadata" text, "created_at" timestamp, "updated_at" timestamp)
852
+  (0.6ms) CREATE UNIQUE INDEX "index_stripe_local_charges_on_id" ON "stripe_local_charges" ("id")
853
+  (1.1ms) CREATE INDEX "index_stripe_local_charges_on_card_id" ON "stripe_local_charges" ("card_id")
854
+  (1.1ms) CREATE INDEX "index_stripe_local_charges_on_customer_id" ON "stripe_local_charges" ("customer_id")
855
+  (1.9ms) CREATE INDEX "index_stripe_local_charges_on_invoice_id" ON "stripe_local_charges" ("invoice_id")
856
+  (3.1ms) CREATE INDEX "index_stripe_local_charges_on_balance_transaction_id" ON "stripe_local_charges" ("balance_transaction_id")
857
+ PG::UndefinedColumn: ERROR: column "balance_transaction_id" does not exist
858
+ : CREATE INDEX "index_stripe_local_charges_on_balance_transaction_id" ON "stripe_local_charges" ("balance_transaction_id")
859
+  (0.1ms) ROLLBACK
860
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
861
+ Migrating to LoadStripeTables (20131122063517)
862
+  (0.1ms) BEGIN
863
+  (2.7ms) CREATE TABLE "stripe_local_customers" ("id" character varying(255), "account_balance" integer, "default_card" character varying(255), "delinquent" boolean, "description" character varying(255), "email" character varying(255), "metadata" text, "created_at" timestamp, "updated_at" timestamp) 
864
+  (0.7ms) CREATE UNIQUE INDEX "index_stripe_local_customers_on_id" ON "stripe_local_customers" ("id")
865
+  (1.2ms) CREATE TABLE "stripe_local_cards" ("id" character varying(255), "customer_id" character varying(255), "name" character varying(255), "exp_month" integer, "exp_year" integer, "brand" character varying(255), "last4" character varying(255), "cvc_check" character varying(255), "created_at" timestamp, "updated_at" timestamp) 
866
+  (0.6ms) CREATE UNIQUE INDEX "index_stripe_local_cards_on_id" ON "stripe_local_cards" ("id")
867
+  (0.5ms) CREATE INDEX "index_stripe_local_cards_on_customer_id" ON "stripe_local_cards" ("customer_id")
868
+  (1.8ms) CREATE TABLE "stripe_local_plans" ("id" character varying(255), "name" character varying(255), "amount" integer, "interval" character varying(255), "interval_count" integer DEFAULT 1, "trial_period_days" integer DEFAULT 0, "currency" character varying(255) DEFAULT 'usd', "synced" boolean DEFAULT 'f', "created_at" timestamp, "updated_at" timestamp)
869
+  (0.6ms) CREATE UNIQUE INDEX "index_stripe_local_plans_on_id" ON "stripe_local_plans" ("id")
870
+  (1.3ms) CREATE TABLE "stripe_local_coupons" ("id" character varying(255), "percent_off" integer, "amount_off" integer, "currency" character varying(255) DEFAULT 'usd', "duration" character varying(255), "redeem_by" timestamp, "max_redemptions" integer, "times_redeemed" integer DEFAULT 0, "duration_in_months" integer, "synced" boolean DEFAULT 'f', "created_at" timestamp, "updated_at" timestamp)
871
+  (0.7ms) CREATE UNIQUE INDEX "index_stripe_local_coupons_on_id" ON "stripe_local_coupons" ("id")
872
+  (2.2ms) CREATE TABLE "stripe_local_discounts" ("id" serial primary key, "coupon_id" character varying(255), "subscription_id" character varying(255), "start" timestamp, "end" timestamp, "created_at" timestamp, "updated_at" timestamp)
873
+  (0.6ms) CREATE INDEX "index_stripe_local_discounts_on_coupon_id_and_subscription_id" ON "stripe_local_discounts" ("coupon_id", "subscription_id")
874
+  (1.3ms) CREATE TABLE "stripe_local_subscriptions" ("id" character varying(255), "customer_id" character varying(255), "plan_id" character varying(255), "status" character varying(255), "quantity" integer DEFAULT 1, "start" timestamp, "canceled_at" timestamp, "ended_at" timestamp, "current_period_start" timestamp, "current_period_end" timestamp, "trial_start" timestamp, "trial_end" timestamp, "created_at" timestamp, "updated_at" timestamp)
875
+  (0.5ms) CREATE UNIQUE INDEX "index_stripe_local_subscriptions_on_id" ON "stripe_local_subscriptions" ("id")
876
+  (0.6ms) CREATE INDEX "index_stripe_local_subscriptions_on_customer_id" ON "stripe_local_subscriptions" ("customer_id")
877
+  (0.6ms) CREATE INDEX "index_stripe_local_subscriptions_on_plan_id" ON "stripe_local_subscriptions" ("plan_id")
878
+  (1.6ms) CREATE TABLE "stripe_local_invoices" ("id" character varying(255), "customer_id" character varying(255), "amount_due" integer, "subtotal" integer, "total" integer, "attempted" boolean, "attempt_count" integer, "paid" boolean, "closed" boolean, "date" timestamp, "period_start" timestamp, "period_end" timestamp, "currency" character varying(255) DEFAULT 'usd', "starting_balance" integer, "ending_balance" integer, "charge_id" character varying(255), "discount" integer DEFAULT 0, "application_fee" integer, "next_payment_attempt" timestamp, "created_at" timestamp, "updated_at" timestamp)
879
+  (0.6ms) CREATE UNIQUE INDEX "index_stripe_local_invoices_on_id" ON "stripe_local_invoices" ("id")
880
+  (0.5ms) CREATE INDEX "index_stripe_local_invoices_on_customer_id" ON "stripe_local_invoices" ("customer_id")
881
+  (1.4ms) CREATE TABLE "stripe_local_line_items" ("id" character varying(255), "invoice_id" character varying(255), "subscription" boolean DEFAULT 't', "amount" integer, "currency" character varying(255) DEFAULT 'usd', "proration" boolean, "period_start" timestamp, "period_end" timestamp, "quantity" integer, "plan_id" character varying(255), "description" character varying(255), "metadata" text, "created_at" timestamp, "updated_at" timestamp) 
882
+  (0.5ms) CREATE UNIQUE INDEX "index_stripe_local_line_items_on_id" ON "stripe_local_line_items" ("id")
883
+  (0.5ms) CREATE INDEX "index_stripe_local_line_items_on_invoice_id" ON "stripe_local_line_items" ("invoice_id")
884
+  (1.5ms) CREATE TABLE "stripe_local_charges" ("id" character varying(255), "card_id" character varying(255), "customer_id" character varying(255), "invoice_id" character varying(255), "transaction_id" character varying(255), "amount" integer, "captured" boolean DEFAULT 't', "refunded" boolean DEFAULT 'f', "paid" boolean, "created" timestamp, "currency" character varying(255) DEFAULT 'usd', "amount_refunded" integer DEFAULT 0, "description" character varying(255), "failure_code" character varying(255), "failure_message" character varying(255), "metadata" text, "created_at" timestamp, "updated_at" timestamp)
885
+  (0.5ms) CREATE UNIQUE INDEX "index_stripe_local_charges_on_id" ON "stripe_local_charges" ("id")
886
+  (0.5ms) CREATE INDEX "index_stripe_local_charges_on_card_id" ON "stripe_local_charges" ("card_id")
887
+  (0.5ms) CREATE INDEX "index_stripe_local_charges_on_customer_id" ON "stripe_local_charges" ("customer_id")
888
+  (0.6ms) CREATE INDEX "index_stripe_local_charges_on_invoice_id" ON "stripe_local_charges" ("invoice_id")
889
+  (0.5ms) CREATE INDEX "index_stripe_local_charges_on_transaction_id" ON "stripe_local_charges" ("transaction_id")
890
+  (1.1ms) CREATE TABLE "stripe_local_transfers" ("id" character varying(255), "amount" integer, "date" timestamp, "status" character varying(255), "transaction_id" character varying(255), "description" character varying(255), "metadata" text, "created_at" timestamp, "updated_at" timestamp)
891
+  (0.5ms) CREATE UNIQUE INDEX "index_stripe_local_transfers_on_id" ON "stripe_local_transfers" ("id")
892
+  (0.4ms) CREATE INDEX "index_stripe_local_transfers_on_status" ON "stripe_local_transfers" ("status")
893
+  (0.4ms) CREATE INDEX "index_stripe_local_transfers_on_transaction_id" ON "stripe_local_transfers" ("transaction_id")
894
+  (1.0ms) CREATE TABLE "stripe_local_transactions" ("id" character varying(255), "amount" integer, "available_on" timestamp, "created" timestamp, "fee" integer, "net" integer, "source_id" character varying(255), "source_type" character varying(255), "status" character varying(255), "description" character varying(255), "created_at" timestamp, "updated_at" timestamp)
895
+  (0.4ms) CREATE UNIQUE INDEX "index_stripe_local_transactions_on_id" ON "stripe_local_transactions" ("id")
896
+  (0.5ms) CREATE INDEX "index_stripe_local_transactions_on_status" ON "stripe_local_transactions" ("status")
897
+  (0.9ms) CREATE INDEX "index_transactions_on_source_id_and_source_type" ON "stripe_local_transactions" ("source_id", "source_type")
898
+ SQL (1.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131122063517"]]
899
+  (2.0ms) COMMIT
900
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
901
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
902
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
903
+ Migrating to LoadStripeTables (20131122063517)
904
+  (0.1ms) BEGIN
905
+  (0.4ms) DROP INDEX "index_transactions_on_source_id_and_source_type"
906
+  (0.2ms) DROP INDEX "index_stripe_local_transactions_on_status"
907
+  (0.3ms) DROP INDEX "index_stripe_local_transactions_on_id"
908
+  (0.6ms) DROP TABLE "stripe_local_transactions"
909
+  (0.2ms) DROP INDEX "index_stripe_local_transfers_on_transaction_id"
910
+  (0.1ms) DROP INDEX "index_stripe_local_transfers_on_status"
911
+  (0.1ms) DROP INDEX "index_stripe_local_transfers_on_id"
912
+  (0.3ms) DROP TABLE "stripe_local_transfers"
913
+  (0.1ms) DROP INDEX "index_stripe_local_charges_on_transaction_id"
914
+  (0.1ms) DROP INDEX "index_stripe_local_charges_on_invoice_id"
915
+  (0.1ms) DROP INDEX "index_stripe_local_charges_on_customer_id"
916
+  (0.1ms) DROP INDEX "index_stripe_local_charges_on_card_id"
917
+  (0.1ms) DROP INDEX "index_stripe_local_charges_on_id"
918
+  (0.6ms) DROP TABLE "stripe_local_charges"
919
+  (0.1ms) DROP INDEX "index_stripe_local_line_items_on_invoice_id"
920
+  (0.2ms) DROP INDEX "index_stripe_local_line_items_on_id"
921
+  (0.6ms) DROP TABLE "stripe_local_line_items"
922
+  (0.2ms) DROP INDEX "index_stripe_local_invoices_on_customer_id"
923
+  (0.1ms) DROP INDEX "index_stripe_local_invoices_on_id"
924
+  (0.5ms) DROP TABLE "stripe_local_invoices"
925
+  (0.2ms) DROP INDEX "index_stripe_local_subscriptions_on_plan_id"
926
+  (0.1ms) DROP INDEX "index_stripe_local_subscriptions_on_customer_id"
927
+  (0.1ms) DROP INDEX "index_stripe_local_subscriptions_on_id"
928
+  (0.4ms) DROP TABLE "stripe_local_subscriptions"
929
+  (0.1ms) DROP INDEX "index_stripe_local_discounts_on_coupon_id_and_subscription_id"
930
+  (0.6ms) DROP TABLE "stripe_local_discounts"
931
+  (0.2ms) DROP INDEX "index_stripe_local_coupons_on_id"
932
+  (0.5ms) DROP TABLE "stripe_local_coupons"
933
+  (0.1ms) DROP INDEX "index_stripe_local_plans_on_id"
934
+  (0.6ms) DROP TABLE "stripe_local_plans"
935
+  (0.1ms) DROP INDEX "index_stripe_local_cards_on_customer_id"
936
+  (0.1ms) DROP INDEX "index_stripe_local_cards_on_id"
937
+  (0.3ms) DROP TABLE "stripe_local_cards"
938
+  (0.1ms) DROP INDEX "index_stripe_local_customers_on_id"
939
+  (0.3ms) DROP TABLE "stripe_local_customers"
940
+ SQL (0.3ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20131122063517'
941
+  (3.2ms) COMMIT
942
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
943
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
944
+ Migrating to LoadStripeTables (20131122063517)
945
+  (0.1ms) BEGIN
946
+  (2.5ms) CREATE TABLE "stripe_local_customers" ("id" character varying(255), "account_balance" integer, "default_card" character varying(255), "delinquent" boolean, "description" character varying(255), "email" character varying(255), "metadata" text, "created_at" timestamp, "updated_at" timestamp) 
947
+  (0.7ms) CREATE UNIQUE INDEX "index_stripe_local_customers_on_id" ON "stripe_local_customers" ("id")
948
+  (1.2ms) CREATE TABLE "stripe_local_cards" ("id" character varying(255), "customer_id" character varying(255), "name" character varying(255), "exp_month" integer, "exp_year" integer, "brand" character varying(255), "last4" character varying(255), "cvc_check" character varying(255), "created_at" timestamp, "updated_at" timestamp) 
949
+  (0.6ms) CREATE UNIQUE INDEX "index_stripe_local_cards_on_id" ON "stripe_local_cards" ("id")
950
+  (0.5ms) CREATE INDEX "index_stripe_local_cards_on_customer_id" ON "stripe_local_cards" ("customer_id")
951
+  (1.8ms) CREATE TABLE "stripe_local_plans" ("id" character varying(255), "name" character varying(255), "amount" integer, "interval" character varying(255), "interval_count" integer DEFAULT 1, "trial_period_days" integer DEFAULT 0, "currency" character varying(255) DEFAULT 'usd', "synced" boolean DEFAULT 'f', "created_at" timestamp, "updated_at" timestamp)
952
+  (0.6ms) CREATE UNIQUE INDEX "index_stripe_local_plans_on_id" ON "stripe_local_plans" ("id")
953
+  (1.3ms) CREATE TABLE "stripe_local_coupons" ("id" character varying(255), "percent_off" integer, "amount_off" integer, "currency" character varying(255) DEFAULT 'usd', "duration" character varying(255), "redeem_by" timestamp, "max_redemptions" integer, "times_redeemed" integer DEFAULT 0, "duration_in_months" integer, "synced" boolean DEFAULT 'f', "created_at" timestamp, "updated_at" timestamp)
954
+  (0.5ms) CREATE UNIQUE INDEX "index_stripe_local_coupons_on_id" ON "stripe_local_coupons" ("id")
955
+  (2.6ms) CREATE TABLE "stripe_local_discounts" ("id" serial primary key, "coupon_id" character varying(255), "subscription_id" character varying(255), "start" timestamp, "end" timestamp, "created_at" timestamp, "updated_at" timestamp)
956
+  (0.7ms) CREATE INDEX "index_stripe_local_discounts_on_coupon_id_and_subscription_id" ON "stripe_local_discounts" ("coupon_id", "subscription_id")
957
+  (1.5ms) CREATE TABLE "stripe_local_subscriptions" ("id" character varying(255), "customer_id" character varying(255), "plan_id" character varying(255), "status" character varying(255), "quantity" integer DEFAULT 1, "start" timestamp, "canceled_at" timestamp, "ended_at" timestamp, "current_period_start" timestamp, "current_period_end" timestamp, "trial_start" timestamp, "trial_end" timestamp, "created_at" timestamp, "updated_at" timestamp)
958
+  (0.6ms) CREATE UNIQUE INDEX "index_stripe_local_subscriptions_on_id" ON "stripe_local_subscriptions" ("id")
959
+  (0.5ms) CREATE INDEX "index_stripe_local_subscriptions_on_customer_id" ON "stripe_local_subscriptions" ("customer_id")
960
+  (0.7ms) CREATE INDEX "index_stripe_local_subscriptions_on_plan_id" ON "stripe_local_subscriptions" ("plan_id")
961
+  (1.4ms) CREATE TABLE "stripe_local_invoices" ("id" character varying(255), "customer_id" character varying(255), "amount_due" integer, "subtotal" integer, "total" integer, "attempted" boolean, "attempt_count" integer, "paid" boolean, "closed" boolean, "date" timestamp, "period_start" timestamp, "period_end" timestamp, "currency" character varying(255) DEFAULT 'usd', "starting_balance" integer, "ending_balance" integer, "charge_id" character varying(255), "discount" integer DEFAULT 0, "application_fee" integer, "next_payment_attempt" timestamp, "created_at" timestamp, "updated_at" timestamp)
962
+  (0.5ms) CREATE UNIQUE INDEX "index_stripe_local_invoices_on_id" ON "stripe_local_invoices" ("id")
963
+  (0.5ms) CREATE INDEX "index_stripe_local_invoices_on_customer_id" ON "stripe_local_invoices" ("customer_id")
964
+  (1.3ms) CREATE TABLE "stripe_local_line_items" ("id" character varying(255), "invoice_id" character varying(255), "subscription" boolean DEFAULT 't', "amount" integer, "currency" character varying(255) DEFAULT 'usd', "proration" boolean, "period_start" timestamp, "period_end" timestamp, "quantity" integer, "plan_id" character varying(255), "description" character varying(255), "metadata" text, "created_at" timestamp, "updated_at" timestamp) 
965
+  (0.5ms) CREATE UNIQUE INDEX "index_stripe_local_line_items_on_id" ON "stripe_local_line_items" ("id")
966
+  (0.5ms) CREATE INDEX "index_stripe_local_line_items_on_invoice_id" ON "stripe_local_line_items" ("invoice_id")
967
+  (1.4ms) CREATE TABLE "stripe_local_charges" ("id" character varying(255), "card_id" character varying(255), "customer_id" character varying(255), "invoice_id" character varying(255), "transaction_id" character varying(255), "amount" integer, "captured" boolean DEFAULT 't', "refunded" boolean DEFAULT 'f', "paid" boolean, "created" timestamp, "currency" character varying(255) DEFAULT 'usd', "amount_refunded" integer DEFAULT 0, "description" character varying(255), "failure_code" character varying(255), "failure_message" character varying(255), "metadata" text, "created_at" timestamp, "updated_at" timestamp)
968
+  (0.6ms) CREATE UNIQUE INDEX "index_stripe_local_charges_on_id" ON "stripe_local_charges" ("id")
969
+  (0.5ms) CREATE INDEX "index_stripe_local_charges_on_card_id" ON "stripe_local_charges" ("card_id")
970
+  (0.5ms) CREATE INDEX "index_stripe_local_charges_on_customer_id" ON "stripe_local_charges" ("customer_id")
971
+  (0.5ms) CREATE INDEX "index_stripe_local_charges_on_invoice_id" ON "stripe_local_charges" ("invoice_id")
972
+  (0.6ms) CREATE INDEX "index_stripe_local_charges_on_transaction_id" ON "stripe_local_charges" ("transaction_id")
973
+  (1.1ms) CREATE TABLE "stripe_local_transfers" ("id" character varying(255), "amount" integer, "date" timestamp, "status" character varying(255), "transaction_id" character varying(255), "description" character varying(255), "metadata" text, "created_at" timestamp, "updated_at" timestamp)
974
+  (0.5ms) CREATE UNIQUE INDEX "index_stripe_local_transfers_on_id" ON "stripe_local_transfers" ("id")
975
+  (0.7ms) CREATE INDEX "index_stripe_local_transfers_on_status" ON "stripe_local_transfers" ("status")
976
+  (0.9ms) CREATE INDEX "index_stripe_local_transfers_on_transaction_id" ON "stripe_local_transfers" ("transaction_id")
977
+  (1.7ms) CREATE TABLE "stripe_local_transactions" ("id" character varying(255), "amount" integer, "available_on" timestamp, "created" timestamp, "fee" integer, "net" integer, "source_id" character varying(255), "source_type" character varying(255), "status" character varying(255), "description" character varying(255), "created_at" timestamp, "updated_at" timestamp)
978
+  (0.8ms) CREATE UNIQUE INDEX "index_stripe_local_transactions_on_id" ON "stripe_local_transactions" ("id")
979
+  (1.3ms) CREATE INDEX "index_stripe_local_transactions_on_status" ON "stripe_local_transactions" ("status")
980
+  (1.1ms) CREATE INDEX "index_transactions_on_source_id_and_source_type" ON "stripe_local_transactions" ("source_id", "source_type")
981
+  (2.4ms) CREATE TABLE "balances" ("id" serial primary key, "available" integer, "pending" integer, "created_at" timestamp, "updated_at" timestamp)
982
+ SQL (0.7ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131122063517"]]
983
+  (1.4ms) COMMIT
984
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
985
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
986
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
987
+ Migrating to LoadStripeTables (20131122063517)
988
+  (0.1ms) BEGIN
989
+  (1.6ms) DROP TABLE "balances"
990
+  (0.2ms) DROP INDEX "index_transactions_on_source_id_and_source_type"
991
+  (0.2ms) DROP INDEX "index_stripe_local_transactions_on_status"
992
+  (0.3ms) DROP INDEX "index_stripe_local_transactions_on_id"
993
+  (0.4ms) DROP TABLE "stripe_local_transactions"
994
+  (0.1ms) DROP INDEX "index_stripe_local_transfers_on_transaction_id"
995
+  (0.1ms) DROP INDEX "index_stripe_local_transfers_on_status"
996
+  (0.1ms) DROP INDEX "index_stripe_local_transfers_on_id"
997
+  (0.3ms) DROP TABLE "stripe_local_transfers"
998
+  (0.1ms) DROP INDEX "index_stripe_local_charges_on_transaction_id"
999
+  (0.1ms) DROP INDEX "index_stripe_local_charges_on_invoice_id"
1000
+  (0.1ms) DROP INDEX "index_stripe_local_charges_on_customer_id"
1001
+  (0.1ms) DROP INDEX "index_stripe_local_charges_on_card_id"
1002
+  (0.1ms) DROP INDEX "index_stripe_local_charges_on_id"
1003
+  (0.5ms) DROP TABLE "stripe_local_charges"
1004
+  (0.1ms) DROP INDEX "index_stripe_local_line_items_on_invoice_id"
1005
+  (0.1ms) DROP INDEX "index_stripe_local_line_items_on_id"
1006
+  (0.4ms) DROP TABLE "stripe_local_line_items"
1007
+  (0.1ms) DROP INDEX "index_stripe_local_invoices_on_customer_id"
1008
+  (0.1ms) DROP INDEX "index_stripe_local_invoices_on_id"
1009
+  (0.5ms) DROP TABLE "stripe_local_invoices"
1010
+  (0.2ms) DROP INDEX "index_stripe_local_subscriptions_on_plan_id"
1011
+  (0.2ms) DROP INDEX "index_stripe_local_subscriptions_on_customer_id"
1012
+  (0.2ms) DROP INDEX "index_stripe_local_subscriptions_on_id"
1013
+  (0.4ms) DROP TABLE "stripe_local_subscriptions"
1014
+  (0.2ms) DROP INDEX "index_stripe_local_discounts_on_coupon_id_and_subscription_id"
1015
+  (0.6ms) DROP TABLE "stripe_local_discounts"
1016
+  (0.1ms) DROP INDEX "index_stripe_local_coupons_on_id"
1017
+  (0.5ms) DROP TABLE "stripe_local_coupons"
1018
+  (0.1ms) DROP INDEX "index_stripe_local_plans_on_id"
1019
+  (0.5ms) DROP TABLE "stripe_local_plans"
1020
+  (0.1ms) DROP INDEX "index_stripe_local_cards_on_customer_id"
1021
+  (0.1ms) DROP INDEX "index_stripe_local_cards_on_id"
1022
+  (0.4ms) DROP TABLE "stripe_local_cards"
1023
+  (0.1ms) DROP INDEX "index_stripe_local_customers_on_id"
1024
+  (0.3ms) DROP TABLE "stripe_local_customers"
1025
+ SQL (0.3ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20131122063517'
1026
+  (4.5ms) COMMIT
1027
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1028
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
1029
+ Migrating to LoadStripeTables (20131122063517)
1030
+  (0.1ms) BEGIN
1031
+  (1.8ms) CREATE TABLE "stripe_local_customers" ("id" character varying(255), "account_balance" integer, "default_card" character varying(255), "delinquent" boolean, "description" character varying(255), "email" character varying(255), "metadata" text, "created_at" timestamp, "updated_at" timestamp) 
1032
+  (0.6ms) CREATE UNIQUE INDEX "index_stripe_local_customers_on_id" ON "stripe_local_customers" ("id")
1033
+  (1.1ms) CREATE TABLE "stripe_local_cards" ("id" character varying(255), "customer_id" character varying(255), "name" character varying(255), "exp_month" integer, "exp_year" integer, "brand" character varying(255), "last4" character varying(255), "cvc_check" character varying(255), "created_at" timestamp, "updated_at" timestamp) 
1034
+  (0.5ms) CREATE UNIQUE INDEX "index_stripe_local_cards_on_id" ON "stripe_local_cards" ("id")
1035
+  (0.5ms) CREATE INDEX "index_stripe_local_cards_on_customer_id" ON "stripe_local_cards" ("customer_id")
1036
+  (2.1ms) CREATE TABLE "stripe_local_plans" ("id" character varying(255), "name" character varying(255), "amount" integer, "interval" character varying(255), "interval_count" integer DEFAULT 1, "trial_period_days" integer DEFAULT 0, "currency" character varying(255) DEFAULT 'usd', "synced" boolean DEFAULT 'f', "created_at" timestamp, "updated_at" timestamp)
1037
+  (0.5ms) CREATE UNIQUE INDEX "index_stripe_local_plans_on_id" ON "stripe_local_plans" ("id")
1038
+  (1.3ms) CREATE TABLE "stripe_local_coupons" ("id" character varying(255), "percent_off" integer, "amount_off" integer, "currency" character varying(255) DEFAULT 'usd', "duration" character varying(255), "redeem_by" timestamp, "max_redemptions" integer, "times_redeemed" integer DEFAULT 0, "duration_in_months" integer, "synced" boolean DEFAULT 'f', "created_at" timestamp, "updated_at" timestamp)
1039
+  (0.5ms) CREATE UNIQUE INDEX "index_stripe_local_coupons_on_id" ON "stripe_local_coupons" ("id")
1040
+  (2.7ms) CREATE TABLE "stripe_local_discounts" ("id" serial primary key, "coupon_id" character varying(255), "subscription_id" character varying(255), "start" timestamp, "end" timestamp, "created_at" timestamp, "updated_at" timestamp)
1041
+  (0.7ms) CREATE INDEX "index_stripe_local_discounts_on_coupon_id_and_subscription_id" ON "stripe_local_discounts" ("coupon_id", "subscription_id")
1042
+  (1.6ms) CREATE TABLE "stripe_local_subscriptions" ("id" character varying(255), "customer_id" character varying(255), "plan_id" character varying(255), "status" character varying(255), "quantity" integer DEFAULT 1, "start" timestamp, "canceled_at" timestamp, "ended_at" timestamp, "current_period_start" timestamp, "current_period_end" timestamp, "trial_start" timestamp, "trial_end" timestamp, "created_at" timestamp, "updated_at" timestamp)
1043
+  (0.5ms) CREATE UNIQUE INDEX "index_stripe_local_subscriptions_on_id" ON "stripe_local_subscriptions" ("id")
1044
+  (0.5ms) CREATE INDEX "index_stripe_local_subscriptions_on_customer_id" ON "stripe_local_subscriptions" ("customer_id")
1045
+  (0.4ms) CREATE INDEX "index_stripe_local_subscriptions_on_plan_id" ON "stripe_local_subscriptions" ("plan_id")
1046
+  (1.3ms) CREATE TABLE "stripe_local_invoices" ("id" character varying(255), "customer_id" character varying(255), "amount_due" integer, "subtotal" integer, "total" integer, "attempted" boolean, "attempt_count" integer, "paid" boolean, "closed" boolean, "date" timestamp, "period_start" timestamp, "period_end" timestamp, "currency" character varying(255) DEFAULT 'usd', "starting_balance" integer, "ending_balance" integer, "charge_id" character varying(255), "discount" integer DEFAULT 0, "application_fee" integer, "next_payment_attempt" timestamp, "created_at" timestamp, "updated_at" timestamp)
1047
+  (0.5ms) CREATE UNIQUE INDEX "index_stripe_local_invoices_on_id" ON "stripe_local_invoices" ("id")
1048
+  (0.4ms) CREATE INDEX "index_stripe_local_invoices_on_customer_id" ON "stripe_local_invoices" ("customer_id")
1049
+  (1.2ms) CREATE TABLE "stripe_local_line_items" ("id" character varying(255), "invoice_id" character varying(255), "subscription" boolean DEFAULT 't', "amount" integer, "currency" character varying(255) DEFAULT 'usd', "proration" boolean, "period_start" timestamp, "period_end" timestamp, "quantity" integer, "plan_id" character varying(255), "description" character varying(255), "metadata" text, "created_at" timestamp, "updated_at" timestamp) 
1050
+  (0.4ms) CREATE UNIQUE INDEX "index_stripe_local_line_items_on_id" ON "stripe_local_line_items" ("id")
1051
+  (0.4ms) CREATE INDEX "index_stripe_local_line_items_on_invoice_id" ON "stripe_local_line_items" ("invoice_id")
1052
+  (1.4ms) CREATE TABLE "stripe_local_charges" ("id" character varying(255), "card_id" character varying(255), "customer_id" character varying(255), "invoice_id" character varying(255), "transaction_id" character varying(255), "amount" integer, "captured" boolean DEFAULT 't', "refunded" boolean DEFAULT 'f', "paid" boolean, "created" timestamp, "currency" character varying(255) DEFAULT 'usd', "amount_refunded" integer DEFAULT 0, "description" character varying(255), "failure_code" character varying(255), "failure_message" character varying(255), "metadata" text, "created_at" timestamp, "updated_at" timestamp)
1053
+  (0.5ms) CREATE UNIQUE INDEX "index_stripe_local_charges_on_id" ON "stripe_local_charges" ("id")
1054
+  (0.5ms) CREATE INDEX "index_stripe_local_charges_on_card_id" ON "stripe_local_charges" ("card_id")
1055
+  (0.4ms) CREATE INDEX "index_stripe_local_charges_on_customer_id" ON "stripe_local_charges" ("customer_id")
1056
+  (0.5ms) CREATE INDEX "index_stripe_local_charges_on_invoice_id" ON "stripe_local_charges" ("invoice_id")
1057
+  (0.4ms) CREATE INDEX "index_stripe_local_charges_on_transaction_id" ON "stripe_local_charges" ("transaction_id")
1058
+  (1.3ms) CREATE TABLE "stripe_local_transfers" ("id" character varying(255), "amount" integer, "date" timestamp, "status" character varying(255), "transaction_id" character varying(255), "description" character varying(255), "metadata" text, "created_at" timestamp, "updated_at" timestamp)
1059
+  (1.1ms) CREATE UNIQUE INDEX "index_stripe_local_transfers_on_id" ON "stripe_local_transfers" ("id")
1060
+  (0.9ms) CREATE INDEX "index_stripe_local_transfers_on_status" ON "stripe_local_transfers" ("status")
1061
+  (1.3ms) CREATE INDEX "index_stripe_local_transfers_on_transaction_id" ON "stripe_local_transfers" ("transaction_id")
1062
+  (2.0ms) CREATE TABLE "stripe_local_transactions" ("id" character varying(255), "amount" integer, "available_on" timestamp, "created" timestamp, "fee" integer, "net" integer, "source_id" character varying(255), "source_type" character varying(255), "status" character varying(255), "description" character varying(255), "created_at" timestamp, "updated_at" timestamp)
1063
+  (0.6ms) CREATE UNIQUE INDEX "index_stripe_local_transactions_on_id" ON "stripe_local_transactions" ("id")
1064
+  (0.6ms) CREATE INDEX "index_stripe_local_transactions_on_status" ON "stripe_local_transactions" ("status")
1065
+  (0.6ms) CREATE INDEX "index_transactions_on_source_id_and_source_type" ON "stripe_local_transactions" ("source_id", "source_type")
1066
+  (1.6ms) CREATE TABLE "stripe_local_balances" ("id" serial primary key, "available" integer, "pending" integer, "created_at" timestamp, "updated_at" timestamp)
1067
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131122063517"]]
1068
+  (1.0ms) COMMIT
1069
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
1070
+ Client Load (2.0ms) SELECT "clients".* FROM "clients"
1071
+  (0.1ms) BEGIN
1072
+ SQL (11.2ms) INSERT INTO "clients" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Fri, 22 Nov 2013 03:45:28 CST -06:00], ["updated_at", Fri, 22 Nov 2013 03:45:28 CST -06:00]]
1073
+  (0.3ms) COMMIT
1074
+ Client Load (0.5ms) SELECT "clients".* FROM "clients" ORDER BY "clients"."id" DESC LIMIT 1
1075
+  (0.2ms) BEGIN
1076
+ SQL (5.7ms) UPDATE "clients" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clients"."id" = 1 [["name", "Test Tacular"], ["email", "test@gmail.com"], ["updated_at", Fri, 22 Nov 2013 04:37:01 CST -06:00]]
1077
+  (53.3ms) COMMIT
1078
+  (0.1ms) BEGIN
1079
+ SQL (6.3ms) 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) [["created_at", Fri, 22 Nov 2013 04:39:58 CST -06:00], ["current_period_end", nil], ["current_period_start", nil], ["customer_id", "cus_2zFr0NTMZC20pJ"], ["plan_id", "HR99"], ["start", nil], ["status", "active"], ["updated_at", Fri, 22 Nov 2013 04:39:58 CST -06:00]]
1080
+  (0.2ms) COMMIT
1081
+  (0.2ms) BEGIN
1082
+ SQL (3.8ms) INSERT INTO "stripe_local_cards" ("brand", "created_at", "customer_id", "cvc_check", "exp_month", "exp_year", "last4", "name", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) [["brand", "Visa"], ["created_at", Fri, 22 Nov 2013 04:39:58 CST -06:00], ["customer_id", "cus_2zFr0NTMZC20pJ"], ["cvc_check", "pass"], ["exp_month", 7], ["exp_year", 2017], ["last4", "4242"], ["name", "Test Tacular"], ["updated_at", Fri, 22 Nov 2013 04:39:58 CST -06:00]]
1083
+  (0.2ms) COMMIT
1084
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
1085
+ Migrating to AddStripeCustomerIdToClients (20131122104223)
1086
+  (0.1ms) BEGIN
1087
+  (0.7ms) ALTER TABLE "clients" ADD COLUMN "stripe_customer_id" character varying(255)
1088
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131122104223"]]
1089
+  (0.4ms) COMMIT
1090
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1091
+ Client Load (0.5ms) SELECT "clients".* FROM "clients" ORDER BY "clients"."id" DESC LIMIT 1
1092
+  (0.1ms) BEGIN
1093
+ SQL (6.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) [["created_at", Fri, 22 Nov 2013 04:43:46 CST -06:00], ["current_period_end", nil], ["current_period_start", nil], ["customer_id", "cus_2zFv6gFBvj67ch"], ["plan_id", "HR99"], ["start", nil], ["status", "active"], ["updated_at", Fri, 22 Nov 2013 04:43:46 CST -06:00]]
1094
+  (1.9ms) COMMIT
1095
+  (0.2ms) BEGIN
1096
+ SQL (1.0ms) INSERT INTO "stripe_local_cards" ("brand", "created_at", "customer_id", "cvc_check", "exp_month", "exp_year", "last4", "name", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) [["brand", "Visa"], ["created_at", Fri, 22 Nov 2013 04:43:46 CST -06:00], ["customer_id", "cus_2zFv6gFBvj67ch"], ["cvc_check", "pass"], ["exp_month", 7], ["exp_year", 2017], ["last4", "4242"], ["name", "Test Tacular"], ["updated_at", Fri, 22 Nov 2013 04:43:46 CST -06:00]]
1097
+  (0.3ms) COMMIT
1098
+ StripeLocal::Subscription Load (4.4ms) SELECT "stripe_local_subscriptions".* FROM "stripe_local_subscriptions" ORDER BY "stripe_local_subscriptions"."" DESC LIMIT 1
1099
+ PG::SyntaxError: ERROR: zero-length delimited identifier at or near """"
1100
+ LINE 1: ...riptions" ORDER BY "stripe_local_subscriptions"."" DESC LI...
1101
+ ^
1102
+ : SELECT "stripe_local_subscriptions".* FROM "stripe_local_subscriptions" ORDER BY "stripe_local_subscriptions"."" DESC LIMIT 1
1103
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
1104
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
1105
+ Migrating to AddStripeCustomerIdToClients (20131122104223)
1106
+  (0.1ms) BEGIN
1107
+  (2.0ms) ALTER TABLE "clients" DROP "stripe_customer_id"
1108
+ SQL (0.5ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20131122104223'
1109
+  (0.4ms) COMMIT
1110
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1111
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
1112
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1113
+ Migrating to LoadStripeTables (20131122063517)
1114
+  (0.1ms) BEGIN
1115
+  (1.5ms) DROP TABLE "stripe_local_balances"
1116
+  (0.2ms) DROP INDEX "index_transactions_on_source_id_and_source_type"
1117
+  (0.2ms) DROP INDEX "index_stripe_local_transactions_on_status"
1118
+  (0.1ms) DROP INDEX "index_stripe_local_transactions_on_id"
1119
+  (0.4ms) DROP TABLE "stripe_local_transactions"
1120
+  (0.1ms) DROP INDEX "index_stripe_local_transfers_on_transaction_id"
1121
+  (0.2ms) DROP INDEX "index_stripe_local_transfers_on_status"
1122
+  (0.1ms) DROP INDEX "index_stripe_local_transfers_on_id"
1123
+  (0.3ms) DROP TABLE "stripe_local_transfers"
1124
+  (0.1ms) DROP INDEX "index_stripe_local_charges_on_transaction_id"
1125
+  (0.1ms) DROP INDEX "index_stripe_local_charges_on_invoice_id"
1126
+  (0.1ms) DROP INDEX "index_stripe_local_charges_on_customer_id"
1127
+  (0.1ms) DROP INDEX "index_stripe_local_charges_on_card_id"
1128
+  (0.1ms) DROP INDEX "index_stripe_local_charges_on_id"
1129
+  (0.5ms) DROP TABLE "stripe_local_charges"
1130
+  (0.1ms) DROP INDEX "index_stripe_local_line_items_on_invoice_id"
1131
+  (0.1ms) DROP INDEX "index_stripe_local_line_items_on_id"
1132
+  (0.5ms) DROP TABLE "stripe_local_line_items"
1133
+  (0.1ms) DROP INDEX "index_stripe_local_invoices_on_customer_id"
1134
+  (0.1ms) DROP INDEX "index_stripe_local_invoices_on_id"
1135
+  (0.5ms) DROP TABLE "stripe_local_invoices"
1136
+  (0.2ms) DROP INDEX "index_stripe_local_subscriptions_on_plan_id"
1137
+  (0.3ms) DROP INDEX "index_stripe_local_subscriptions_on_customer_id"
1138
+  (0.2ms) DROP INDEX "index_stripe_local_subscriptions_on_id"
1139
+  (0.4ms) DROP TABLE "stripe_local_subscriptions"
1140
+  (0.1ms) DROP INDEX "index_stripe_local_discounts_on_coupon_id_and_subscription_id"
1141
+  (0.5ms) DROP TABLE "stripe_local_discounts"
1142
+  (0.1ms) DROP INDEX "index_stripe_local_coupons_on_id"
1143
+  (0.6ms) DROP TABLE "stripe_local_coupons"
1144
+  (0.1ms) DROP INDEX "index_stripe_local_plans_on_id"
1145
+  (0.5ms) DROP TABLE "stripe_local_plans"
1146
+  (0.1ms) DROP INDEX "index_stripe_local_cards_on_customer_id"
1147
+  (0.2ms) DROP INDEX "index_stripe_local_cards_on_id"
1148
+  (0.4ms) DROP TABLE "stripe_local_cards"
1149
+  (0.2ms) DROP INDEX "index_stripe_local_customers_on_id"
1150
+  (0.4ms) DROP TABLE "stripe_local_customers"
1151
+ SQL (0.3ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20131122063517'
1152
+  (35.5ms) COMMIT
1153
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
1154
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
1155
+ Migrating to LoadStripeTables (20131122063517)
1156
+  (0.1ms) BEGIN
1157
+  (4.9ms) CREATE TABLE "stripe_local_customers" ("id" character varying(255), "account_balance" integer, "default_card" character varying(255), "delinquent" boolean, "description" character varying(255), "email" character varying(255), "metadata" text, "created_at" timestamp, "updated_at" timestamp) 
1158
+  (0.7ms) CREATE UNIQUE INDEX "index_stripe_local_customers_on_id" ON "stripe_local_customers" ("id")
1159
+  (1.2ms) CREATE TABLE "stripe_local_cards" ("id" character varying(255), "customer_id" character varying(255), "name" character varying(255), "exp_month" integer, "exp_year" integer, "brand" character varying(255), "last4" character varying(255), "cvc_check" character varying(255), "created_at" timestamp, "updated_at" timestamp) 
1160
+  (0.6ms) CREATE UNIQUE INDEX "index_stripe_local_cards_on_id" ON "stripe_local_cards" ("id")
1161
+  (0.5ms) CREATE INDEX "index_stripe_local_cards_on_customer_id" ON "stripe_local_cards" ("customer_id")
1162
+  (1.7ms) CREATE TABLE "stripe_local_plans" ("id" character varying(255), "name" character varying(255), "amount" integer, "interval" character varying(255), "interval_count" integer DEFAULT 1, "trial_period_days" integer DEFAULT 0, "currency" character varying(255) DEFAULT 'usd', "synced" boolean DEFAULT 'f', "created_at" timestamp, "updated_at" timestamp)
1163
+  (0.7ms) CREATE UNIQUE INDEX "index_stripe_local_plans_on_id" ON "stripe_local_plans" ("id")
1164
+  (1.9ms) CREATE TABLE "stripe_local_coupons" ("id" character varying(255), "percent_off" integer, "amount_off" integer, "currency" character varying(255) DEFAULT 'usd', "duration" character varying(255), "redeem_by" timestamp, "max_redemptions" integer, "times_redeemed" integer DEFAULT 0, "duration_in_months" integer, "synced" boolean DEFAULT 'f', "created_at" timestamp, "updated_at" timestamp)
1165
+  (0.6ms) CREATE UNIQUE INDEX "index_stripe_local_coupons_on_id" ON "stripe_local_coupons" ("id")
1166
+  (2.2ms) CREATE TABLE "stripe_local_discounts" ("id" serial primary key, "coupon_id" character varying(255), "subscription_id" character varying(255), "start" timestamp, "end" timestamp, "created_at" timestamp, "updated_at" timestamp)
1167
+  (0.6ms) CREATE INDEX "index_stripe_local_discounts_on_coupon_id_and_subscription_id" ON "stripe_local_discounts" ("coupon_id", "subscription_id")
1168
+  (2.2ms) CREATE TABLE "stripe_local_subscriptions" ("id" serial primary key, "customer_id" character varying(255), "plan_id" character varying(255), "status" character varying(255), "quantity" integer DEFAULT 1, "start" timestamp, "canceled_at" timestamp, "ended_at" timestamp, "current_period_start" timestamp, "current_period_end" timestamp, "trial_start" timestamp, "trial_end" timestamp, "created_at" timestamp, "updated_at" timestamp)
1169
+  (0.5ms) CREATE INDEX "index_stripe_local_subscriptions_on_customer_id" ON "stripe_local_subscriptions" ("customer_id")
1170
+  (0.5ms) CREATE INDEX "index_stripe_local_subscriptions_on_plan_id" ON "stripe_local_subscriptions" ("plan_id")
1171
+  (1.6ms) CREATE TABLE "stripe_local_invoices" ("id" character varying(255), "customer_id" character varying(255), "amount_due" integer, "subtotal" integer, "total" integer, "attempted" boolean, "attempt_count" integer, "paid" boolean, "closed" boolean, "date" timestamp, "period_start" timestamp, "period_end" timestamp, "currency" character varying(255) DEFAULT 'usd', "starting_balance" integer, "ending_balance" integer, "charge_id" character varying(255), "discount" integer DEFAULT 0, "application_fee" integer, "next_payment_attempt" timestamp, "created_at" timestamp, "updated_at" timestamp) 
1172
+  (0.6ms) CREATE UNIQUE INDEX "index_stripe_local_invoices_on_id" ON "stripe_local_invoices" ("id")
1173
+  (1.0ms) CREATE INDEX "index_stripe_local_invoices_on_customer_id" ON "stripe_local_invoices" ("customer_id")
1174
+  (1.5ms) CREATE TABLE "stripe_local_line_items" ("id" character varying(255), "invoice_id" character varying(255), "subscription" boolean DEFAULT 't', "amount" integer, "currency" character varying(255) DEFAULT 'usd', "proration" boolean, "period_start" timestamp, "period_end" timestamp, "quantity" integer, "plan_id" character varying(255), "description" character varying(255), "metadata" text, "created_at" timestamp, "updated_at" timestamp)
1175
+  (0.5ms) CREATE UNIQUE INDEX "index_stripe_local_line_items_on_id" ON "stripe_local_line_items" ("id")
1176
+  (0.5ms) CREATE INDEX "index_stripe_local_line_items_on_invoice_id" ON "stripe_local_line_items" ("invoice_id")
1177
+  (1.6ms) CREATE TABLE "stripe_local_charges" ("id" character varying(255), "card_id" character varying(255), "customer_id" character varying(255), "invoice_id" character varying(255), "transaction_id" character varying(255), "amount" integer, "captured" boolean DEFAULT 't', "refunded" boolean DEFAULT 'f', "paid" boolean, "created" timestamp, "currency" character varying(255) DEFAULT 'usd', "amount_refunded" integer DEFAULT 0, "description" character varying(255), "failure_code" character varying(255), "failure_message" character varying(255), "metadata" text, "created_at" timestamp, "updated_at" timestamp) 
1178
+  (0.6ms) CREATE UNIQUE INDEX "index_stripe_local_charges_on_id" ON "stripe_local_charges" ("id")
1179
+  (0.5ms) CREATE INDEX "index_stripe_local_charges_on_card_id" ON "stripe_local_charges" ("card_id")
1180
+  (0.6ms) CREATE INDEX "index_stripe_local_charges_on_customer_id" ON "stripe_local_charges" ("customer_id")
1181
+  (1.0ms) CREATE INDEX "index_stripe_local_charges_on_invoice_id" ON "stripe_local_charges" ("invoice_id")
1182
+  (0.7ms) CREATE INDEX "index_stripe_local_charges_on_transaction_id" ON "stripe_local_charges" ("transaction_id")
1183
+  (1.7ms) CREATE TABLE "stripe_local_transfers" ("id" character varying(255), "amount" integer, "date" timestamp, "status" character varying(255), "transaction_id" character varying(255), "description" character varying(255), "metadata" text, "created_at" timestamp, "updated_at" timestamp) 
1184
+  (0.7ms) CREATE UNIQUE INDEX "index_stripe_local_transfers_on_id" ON "stripe_local_transfers" ("id")
1185
+  (0.6ms) CREATE INDEX "index_stripe_local_transfers_on_status" ON "stripe_local_transfers" ("status")
1186
+  (0.5ms) CREATE INDEX "index_stripe_local_transfers_on_transaction_id" ON "stripe_local_transfers" ("transaction_id")
1187
+  (1.3ms) CREATE TABLE "stripe_local_transactions" ("id" character varying(255), "amount" integer, "available_on" timestamp, "created" timestamp, "fee" integer, "net" integer, "source_id" character varying(255), "source_type" character varying(255), "status" character varying(255), "description" character varying(255), "created_at" timestamp, "updated_at" timestamp) 
1188
+  (0.6ms) CREATE UNIQUE INDEX "index_stripe_local_transactions_on_id" ON "stripe_local_transactions" ("id")
1189
+  (0.5ms) CREATE INDEX "index_stripe_local_transactions_on_status" ON "stripe_local_transactions" ("status")
1190
+  (0.7ms) CREATE INDEX "index_transactions_on_source_id_and_source_type" ON "stripe_local_transactions" ("source_id", "source_type")
1191
+  (3.8ms) CREATE TABLE "stripe_local_balances" ("id" serial primary key, "available" integer, "pending" integer, "created_at" timestamp, "updated_at" timestamp) 
1192
+ SQL (0.8ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131122063517"]]
1193
+  (1.4ms) COMMIT
1194
+ Migrating to AddStripeCustomerIdToClients (20131122104223)
1195
+  (0.9ms) BEGIN
1196
+  (0.8ms) ALTER TABLE "clients" ADD COLUMN "stripe_customer_id" character varying(255)
1197
+ SQL (0.7ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131122104223"]]
1198
+  (1.3ms) COMMIT
1199
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
1200
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
1201
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
1202
+  (0.2ms) BEGIN
1203
+ SQL (8.3ms) INSERT INTO "clients" ("created_at", "email", "name", "password", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 22 Nov 2013 06:00:51 CST -06:00], ["email", "test@example.com"], ["name", "Test Tastic"], ["password", "i love big boobs"], ["updated_at", Fri, 22 Nov 2013 06:00:51 CST -06:00]]
1204
+  (0.3ms) COMMIT
1205
+  (0.2ms) BEGIN
1206
+ SQL (6.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", Fri, 22 Nov 2013 06:01:40 CST -06:00], ["current_period_end", Sun, 22 Dec 2013 06:01:38 CST -06:00], ["current_period_start", Fri, 22 Nov 2013 06:01:38 CST -06:00], ["customer_id", "cus_2zHBGdsbpsfKU8"], ["plan_id", "HR99"], ["start", Fri, 22 Nov 2013 06:01:38 CST -06:00], ["status", "active"], ["updated_at", Fri, 22 Nov 2013 06:01:40 CST -06:00]]
1207
+  (0.2ms) COMMIT
1208
+  (0.1ms) BEGIN
1209
+ SQL (4.3ms) INSERT INTO "stripe_local_cards" ("brand", "created_at", "customer_id", "cvc_check", "exp_month", "exp_year", "last4", "name", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) [["brand", "Visa"], ["created_at", Fri, 22 Nov 2013 06:01:40 CST -06:00], ["customer_id", "cus_2zHBGdsbpsfKU8"], ["cvc_check", "pass"], ["exp_month", 2], ["exp_year", 2018], ["last4", "4242"], ["name", "Test Tastic"], ["updated_at", Fri, 22 Nov 2013 06:01:40 CST -06:00]]
1210
+  (0.4ms) COMMIT
1211
+ Client Load (0.6ms) SELECT "clients".* FROM "clients" ORDER BY "clients"."id" DESC LIMIT 1
1212
+  (0.1ms) BEGIN
1213
+ SQL (4.8ms) INSERT INTO "stripe_local_cards" ("brand", "created_at", "customer_id", "cvc_check", "exp_month", "exp_year", "last4", "name", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) [["brand", "Visa"], ["created_at", Fri, 22 Nov 2013 06:06:47 CST -06:00], ["customer_id", "cus_2zHG90Oz45Kpwa"], ["cvc_check", "pass"], ["exp_month", 11], ["exp_year", 2016], ["last4", "4242"], ["name", "Test Tastic"], ["updated_at", Fri, 22 Nov 2013 06:06:47 CST -06:00]]
1214
+  (2.0ms) COMMIT
1215
+ Client Load (0.6ms) SELECT "clients".* FROM "clients" ORDER BY "clients"."id" DESC LIMIT 1
1216
+ Client Load (0.6ms) SELECT "clients".* FROM "clients" ORDER BY "clients"."id" DESC LIMIT 1
1217
+ Client Load (0.5ms) SELECT "clients".* FROM "clients" ORDER BY "clients"."id" DESC LIMIT 1
1218
+  (0.2ms) BEGIN
1219
+ SQL (4.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", Fri, 22 Nov 2013 06:14:11 CST -06:00], ["current_period_end", Sun, 22 Dec 2013 06:14:09 CST -06:00], ["current_period_start", Fri, 22 Nov 2013 06:14:09 CST -06:00], ["customer_id", "cus_2zHN5EZUi4CwzU"], ["plan_id", "HR99"], ["start", Fri, 22 Nov 2013 06:14:09 CST -06:00], ["status", "active"], ["updated_at", Fri, 22 Nov 2013 06:14:11 CST -06:00]]
1220
+  (84.4ms) COMMIT
1221
+  (0.3ms) BEGIN
1222
+ SQL (0.8ms) INSERT INTO "stripe_local_cards" ("brand", "created_at", "customer_id", "cvc_check", "exp_month", "exp_year", "last4", "name", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) [["brand", "Visa"], ["created_at", Fri, 22 Nov 2013 06:14:11 CST -06:00], ["customer_id", "cus_2zHN5EZUi4CwzU"], ["cvc_check", "pass"], ["exp_month", 3], ["exp_year", 2014], ["last4", "4242"], ["name", "Testicle Tuesday"], ["updated_at", Fri, 22 Nov 2013 06:14:11 CST -06:00]]
1223
+  (0.6ms) COMMIT
1224
+ Client Load (0.5ms) SELECT "clients".* FROM "clients" ORDER BY "clients"."id" DESC LIMIT 1
1225
+  (0.2ms) BEGIN
1226
+ SQL (4.0ms) 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", Fri, 22 Nov 2013 06:18:16 CST -06:00], ["current_period_end", Sun, 22 Dec 2013 06:18:15 CST -06:00], ["current_period_start", Fri, 22 Nov 2013 06:18:15 CST -06:00], ["customer_id", "cus_2zHRgUUNwJvUM5"], ["plan_id", "HR99"], ["start", Fri, 22 Nov 2013 06:18:15 CST -06:00], ["status", "active"], ["updated_at", Fri, 22 Nov 2013 06:18:16 CST -06:00]]
1227
+  (57.4ms) COMMIT
1228
+  (0.3ms) BEGIN
1229
+ SQL (1.2ms) INSERT INTO "stripe_local_cards" ("brand", "created_at", "customer_id", "cvc_check", "exp_month", "exp_year", "last4", "name", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) [["brand", "Visa"], ["created_at", Fri, 22 Nov 2013 06:18:17 CST -06:00], ["customer_id", "cus_2zHRgUUNwJvUM5"], ["cvc_check", "pass"], ["exp_month", 5], ["exp_year", 2015], ["last4", "4242"], ["name", "Test Again"], ["updated_at", Fri, 22 Nov 2013 06:18:17 CST -06:00]]
1230
+  (0.3ms) COMMIT
1231
+ Client Load (0.9ms) SELECT "clients".* FROM "clients" ORDER BY "clients"."id" DESC LIMIT 1
1232
+  (0.2ms) BEGIN
1233
+ SQL (3.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", Fri, 22 Nov 2013 06:30:04 CST -06:00], ["current_period_end", Sun, 22 Dec 2013 06:30:03 CST -06:00], ["current_period_start", Fri, 22 Nov 2013 06:30:03 CST -06:00], ["customer_id", "cus_2zHdWSZlMzl8YX"], ["plan_id", "HR99"], ["start", Fri, 22 Nov 2013 06:30:03 CST -06:00], ["status", "active"], ["updated_at", Fri, 22 Nov 2013 06:30:04 CST -06:00]]
1234
+  (1.9ms) COMMIT
1235
+  (0.3ms) BEGIN
1236
+ SQL (0.7ms) INSERT INTO "stripe_local_cards" ("brand", "created_at", "customer_id", "cvc_check", "exp_month", "exp_year", "last4", "name", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) [["brand", "Visa"], ["created_at", Fri, 22 Nov 2013 06:30:05 CST -06:00], ["customer_id", "cus_2zHdWSZlMzl8YX"], ["cvc_check", "pass"], ["exp_month", 3], ["exp_year", 2014], ["last4", "4242"], ["name", "Try Again"], ["updated_at", Fri, 22 Nov 2013 06:30:05 CST -06:00]]
1237
+  (0.6ms) COMMIT
1238
+ Client Load (0.5ms) SELECT "clients".* FROM "clients" ORDER BY "clients"."id" DESC LIMIT 1
1239
+  (0.1ms) BEGIN
1240
+ SQL (3.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", Fri, 22 Nov 2013 06:44:50 CST -06:00], ["current_period_end", Sun, 22 Dec 2013 06:44:49 CST -06:00], ["current_period_start", Fri, 22 Nov 2013 06:44:49 CST -06:00], ["customer_id", "cus_2zHsxeBRF1rGU5"], ["plan_id", "HR99"], ["start", Fri, 22 Nov 2013 06:44:49 CST -06:00], ["status", "active"], ["updated_at", Fri, 22 Nov 2013 06:44:50 CST -06:00]]
1241
+  (2.0ms) COMMIT
1242
+  (0.2ms) BEGIN
1243
+ SQL (0.6ms) INSERT INTO "stripe_local_cards" ("brand", "created_at", "customer_id", "cvc_check", "exp_month", "exp_year", "last4", "name", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) [["brand", "American Express"], ["created_at", Fri, 22 Nov 2013 06:44:50 CST -06:00], ["customer_id", "cus_2zHsxeBRF1rGU5"], ["cvc_check", "pass"], ["exp_month", 6], ["exp_year", 2016], ["last4", "0005"], ["name", "Sacha Barron"], ["updated_at", Fri, 22 Nov 2013 06:44:50 CST -06:00]]
1244
+  (0.6ms) COMMIT
1245
+ Client Load (1.0ms) SELECT "clients".* FROM "clients" ORDER BY "clients"."id" DESC LIMIT 1
1246
+  (0.1ms) BEGIN
1247
+ SQL (2.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", Fri, 22 Nov 2013 07:27:59 CST -06:00], ["current_period_end", Sun, 22 Dec 2013 07:27:58 CST -06:00], ["current_period_start", Fri, 22 Nov 2013 07:27:58 CST -06:00], ["customer_id", "cus_2zIZopahLJsCzx"], ["plan_id", "HR99"], ["start", Fri, 22 Nov 2013 07:27:58 CST -06:00], ["status", "active"], ["updated_at", Fri, 22 Nov 2013 07:27:59 CST -06:00]]
1248
+  (60.6ms) COMMIT
1249
+  (0.1ms) BEGIN
1250
+ SQL (0.6ms) INSERT INTO "stripe_local_cards" ("brand", "created_at", "customer_id", "cvc_check", "exp_month", "exp_year", "last4", "name", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) [["brand", "Discover"], ["created_at", Fri, 22 Nov 2013 07:27:59 CST -06:00], ["customer_id", "cus_2zIZopahLJsCzx"], ["cvc_check", "pass"], ["exp_month", 12], ["exp_year", 2015], ["last4", "1117"], ["name", "Tes Tickles"], ["updated_at", Fri, 22 Nov 2013 07:27:59 CST -06:00]]
1251
+  (0.6ms) COMMIT
1252
+ Client Load (0.6ms) SELECT "clients".* FROM "clients" ORDER BY "clients"."id" DESC LIMIT 1
1253
+  (0.1ms) BEGIN
1254
+ SQL (4.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", Fri, 22 Nov 2013 07:30:07 CST -06:00], ["current_period_end", Sun, 22 Dec 2013 07:30:05 CST -06:00], ["current_period_start", Fri, 22 Nov 2013 07:30:05 CST -06:00], ["customer_id", "cus_2zIbb2qmfw4KLn"], ["plan_id", "HR99"], ["start", Fri, 22 Nov 2013 07:30:05 CST -06:00], ["status", "active"], ["updated_at", Fri, 22 Nov 2013 07:30:07 CST -06:00]]
1255
+  (0.5ms) COMMIT
1256
+  (0.2ms) BEGIN
1257
+ SQL (0.7ms) INSERT INTO "stripe_local_cards" ("brand", "created_at", "customer_id", "cvc_check", "exp_month", "exp_year", "last4", "name", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) [["brand", "Diners Club"], ["created_at", Fri, 22 Nov 2013 07:30:07 CST -06:00], ["customer_id", "cus_2zIbb2qmfw4KLn"], ["cvc_check", "pass"], ["exp_month", 10], ["exp_year", 2018], ["last4", "5904"], ["name", "Tes Tickles"], ["updated_at", Fri, 22 Nov 2013 07:30:07 CST -06:00]]
1258
+  (0.6ms) COMMIT
1259
+  (0.2ms) BEGIN
1260
+ SQL (7.4ms) INSERT INTO "stripe_local_customers" ("account_balance", "created_at", "default_card", "delinquent", "description", "email", "id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["account_balance", 0], ["created_at", Fri, 22 Nov 2013 07:30:07 CST -06:00], ["default_card", "card_2zIbNaJ3K0sN0C"], ["delinquent", false], ["description", "Testing StripeLocal! forth attempt"], ["email", "test@example.com"], ["id", "cus_2zIbb2qmfw4KLn"], ["updated_at", Fri, 22 Nov 2013 07:30:07 CST -06:00]]
1261
+  (0.6ms) COMMIT
1262
+  (0.2ms) BEGIN
1263
+  (0.2ms) COMMIT
1264
+ StripeLocal::Customer Load (0.6ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers"
1265
+ StripeLocal::Customer Load (0.9ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" ORDER BY "stripe_local_customers"."id" DESC LIMIT 1
1266
+ StripeLocal::Customer Load (0.5ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" ORDER BY "stripe_local_customers"."id" ASC LIMIT 1
1267
+ StripeLocal::Customer Load (0.5ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" ORDER BY "stripe_local_customers"."id" ASC LIMIT 1
1268
+ StripeLocal::Customer Load (0.5ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" ORDER BY "stripe_local_customers"."id" ASC LIMIT 1
1269
+ StripeLocal::Customer Load (0.5ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" ORDER BY "stripe_local_customers"."id" ASC LIMIT 1
1270
+ StripeLocal::Customer Load (1.5ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" ORDER BY "stripe_local_customers"."id" ASC LIMIT 1
1271
+ Client Load (0.6ms) SELECT "clients".* FROM "clients" ORDER BY "clients"."id" DESC LIMIT 1
1272
+ StripeLocal::Customer Load (0.6ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" ORDER BY "stripe_local_customers"."id" ASC LIMIT 1
1273
+ Client Load (0.7ms) SELECT "clients".* FROM "clients" ORDER BY "clients"."id" DESC LIMIT 1
1274
+ StripeLocal::Customer Load (1.4ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" ORDER BY "stripe_local_customers"."id" ASC LIMIT 1
1275
+  (0.2ms) BEGIN
1276
+ SQL (3.1ms) UPDATE "clients" SET "stripe_customer_id" = $1, "updated_at" = $2 WHERE "clients"."id" = 2 [["stripe_customer_id", "cus_2zIbb2qmfw4KLn"], ["updated_at", Fri, 22 Nov 2013 07:48:53 CST -06:00]]
1277
+  (1.7ms) COMMIT
1278
+ Client Load (0.6ms) SELECT "clients".* FROM "clients" ORDER BY "clients"."id" DESC LIMIT 1
1279
+ StripeLocal::Customer Load (1.1ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."id" = $1 ORDER BY "stripe_local_customers"."id" ASC LIMIT 1 [["id", "cus_2zIbb2qmfw4KLn"]]
1280
+ Client Load (0.5ms) SELECT "clients".* FROM "clients" ORDER BY "clients"."id" DESC LIMIT 1
1281
+ StripeLocal::Customer Load (2.4ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."id" = $1 ORDER BY "stripe_local_customers"."id" ASC LIMIT 1 [["id", "cus_2zIbb2qmfw4KLn"]]
1282
+ StripeLocal::Subscription Load (0.7ms) SELECT "stripe_local_subscriptions".* FROM "stripe_local_subscriptions" WHERE "stripe_local_subscriptions"."customer_id" = $1 ORDER BY "stripe_local_subscriptions"."id" ASC LIMIT 1 [["customer_id", "cus_2zIbb2qmfw4KLn"]]
1283
+ StripeLocal::Plan Load (1.1ms) SELECT "stripe_local_plans".* FROM "stripe_local_plans" INNER JOIN "stripe_local_subscriptions" ON "stripe_local_plans"."id" = "stripe_local_subscriptions"."plan_id" WHERE "stripe_local_subscriptions"."customer_id" = $1 ORDER BY "stripe_local_plans"."id" ASC LIMIT 1 [["customer_id", "cus_2zIbb2qmfw4KLn"]]
1284
+ Client Load (3.9ms) SELECT "clients".* FROM "clients" ORDER BY "clients"."id" DESC LIMIT 1
1285
+ StripeLocal::Customer Load (4.1ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."id" = $1 ORDER BY "stripe_local_customers"."id" ASC LIMIT 1 [["id", "cus_2zIbb2qmfw4KLn"]]
1286
+ StripeLocal::Subscription Load (3.4ms) SELECT "stripe_local_subscriptions".* FROM "stripe_local_subscriptions" WHERE "stripe_local_subscriptions"."customer_id" = $1 ORDER BY "stripe_local_subscriptions"."id" ASC LIMIT 1 [["customer_id", "cus_2zIbb2qmfw4KLn"]]
1287
+ Client Load (0.5ms) SELECT "clients".* FROM "clients" ORDER BY "clients"."id" DESC LIMIT 1
1288
+ StripeLocal::Customer Load (1.0ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."id" = $1 ORDER BY "stripe_local_customers"."id" ASC LIMIT 1 [["id", "cus_2zIbb2qmfw4KLn"]]
1289
+ StripeLocal::Invoice Load (2.4ms) SELECT "stripe_local_invoices".* FROM "stripe_local_invoices" WHERE "stripe_local_invoices"."customer_id" = $1 [["customer_id", "cus_2zIbb2qmfw4KLn"]]
1290
+ StripeLocal::Plan Load (1.3ms) SELECT "stripe_local_plans".* FROM "stripe_local_plans" INNER JOIN "stripe_local_subscriptions" ON "stripe_local_plans"."id" = "stripe_local_subscriptions"."plan_id" WHERE "stripe_local_subscriptions"."customer_id" = $1 ORDER BY "stripe_local_plans"."id" ASC LIMIT 1 [["customer_id", "cus_2zIbb2qmfw4KLn"]]