(2.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateStripeLocalCustomers (20131030062900)  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateStripeLocalCustomers (20131030062900)  (0.1ms) BEGIN  (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)   (0.7ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateStripeLocalCustomers (20131030062900)  (0.1ms) BEGIN  (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)   (1.0ms) CREATE UNIQUE INDEX "index_stripe_local_customers_on_id" ON "stripe_local_customers" ("id")  (0.6ms) CREATE INDEX "index_stripe_local_customers_on_model_type_and_model_id" ON "stripe_local_customers" ("model_type", "model_id") SQL (1.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131030062900"]]  (0.4ms) COMMIT ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateStripeLocalCards (20131030064604)  (0.1ms) BEGIN  (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)   (0.8ms) CREATE INDEX "index_stripe_local_cards_on_customer_id" ON "stripe_local_cards" ("customer_id") SQL (0.8ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131030064604"]]  (0.6ms) COMMIT ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateStripeLocalCards (20131030064604)  (0.1ms) BEGIN  (1.3ms) DROP TABLE "stripe_local_cards" SQL (0.7ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20131030064604'  (1.0ms) COMMIT ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateStripeLocalCards (20131030064604)  (0.1ms) BEGIN  (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)   (0.8ms) CREATE INDEX "index_stripe_local_cards_on_customer_id" ON "stripe_local_cards" ("customer_id") SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131030064604"]]  (0.4ms) COMMIT ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateStripeLocalCards (20131030064604)  (0.1ms) BEGIN  (0.8ms) DROP TABLE "stripe_local_cards" SQL (0.3ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20131030064604'  (2.5ms) COMMIT ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateStripeLocalCards (20131030064604)  (0.1ms) BEGIN  (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)   (0.7ms) CREATE INDEX "index_stripe_local_cards_on_customer_id" ON "stripe_local_cards" ("customer_id") SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131030064604"]]  (0.3ms) COMMIT ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateStripeLocalCards (20131030064604)  (0.1ms) BEGIN  (1.1ms) DROP TABLE "stripe_local_cards" SQL (0.5ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20131030064604'  (2.8ms) COMMIT ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateStripeLocalCards (20131030064604)  (0.1ms) BEGIN  (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)   (0.7ms) CREATE INDEX "index_stripe_local_cards_on_customer_id" ON "stripe_local_cards" ("customer_id")  (1.0ms) CREATE UNIQUE INDEX "index_stripe_onbaord_cards_on_id" ON "stripe_onbaord_cards" ("id") PG::UndefinedTable: ERROR: relation "stripe_onbaord_cards" does not exist : CREATE UNIQUE INDEX "index_stripe_onbaord_cards_on_id" ON "stripe_onbaord_cards" ("id")  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateStripeLocalCards (20131030064604)  (0.1ms) BEGIN  (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)   (0.7ms) CREATE INDEX "index_stripe_local_cards_on_customer_id" ON "stripe_local_cards" ("customer_id")  (0.6ms) CREATE UNIQUE INDEX "index_stripe_local_cards_on_id" ON "stripe_local_cards" ("id") SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131030064604"]]  (0.3ms) COMMIT ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (2.4ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateStripeLocalCards (20131030064604)  (0.1ms) BEGIN  (7.1ms) DROP INDEX "index_stripe_local_cards_on_id"  (1.5ms) DROP TABLE "stripe_local_cards" SQL (1.8ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20131030064604'  (114.5ms) COMMIT ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateStripeLocalCustomers (20131030062900)  (0.2ms) BEGIN  (0.6ms) DROP INDEX "index_stripe_local_customers_on_model_type_and_model_id"  (0.2ms) DROP INDEX "index_stripe_local_customers_on_id"  (0.5ms) DROP TABLE "stripe_local_customers" SQL (0.3ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20131030062900'  (4.9ms) COMMIT ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (2.2ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateStripeOnboardCustomers (20131030062900) ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateStripeLocalCustomers (20131030062900)  (0.1ms) BEGIN  (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)   (0.9ms) CREATE UNIQUE INDEX "index_stripe_local_customers_on_id" ON "stripe_local_customers" ("id")  (1.0ms) CREATE INDEX "index_stripe_local_customers_on_model_type_and_model_id" ON "stripe_local_customers" ("model_type", "model_id") SQL (1.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131030062900"]]  (103.8ms) COMMIT Migrating to CreateStripeLocalCards (20131030064604)  (0.2ms) BEGIN  (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)   (1.0ms) CREATE INDEX "index_stripe_local_cards_on_customer_id" ON "stripe_local_cards" ("customer_id")  (0.9ms) CREATE UNIQUE INDEX "index_stripe_local_cards_on_id" ON "stripe_local_cards" ("id") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131030064604"]]  (0.3ms) COMMIT ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (1.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateStripeLocalPlans (20131031024841)  (0.2ms) BEGIN  (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)   (0.7ms) CREATE INDEX "index_stripe_local_plans_on_subscription_id" ON "stripe_local_plans" ("subscription_id")  (0.7ms) CREATE UNIQUE INDEX "index_stripe_local_plans_on_id" ON "stripe_local_plans" ("id") SQL (0.9ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131031024841"]]  (0.6ms) COMMIT ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateStripeLocalPlans (20131031024841)  (0.1ms) BEGIN  (2.9ms) DROP INDEX "index_stripe_local_plans_on_id"  (1.0ms) DROP TABLE "stripe_local_plans" SQL (1.5ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20131031024841'  (1.0ms) COMMIT ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateStripeLocalCards (20131030064604)  (0.1ms) BEGIN  (0.4ms) DROP INDEX "index_stripe_local_cards_on_id"  (0.5ms) DROP TABLE "stripe_local_cards" SQL (0.3ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20131030064604'  (4.9ms) COMMIT ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateStripeLocalCards (20131030064604)  (0.1ms) BEGIN  (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)   (0.8ms) CREATE UNIQUE INDEX "index_stripe_local_cards_on_id" ON "stripe_local_cards" ("id") SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131030064604"]]  (0.6ms) COMMIT Migrating to CreateStripeLocalPlans (20131031024841)  (0.1ms) BEGIN  (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)  (0.6ms) CREATE UNIQUE INDEX "index_stripe_local_plans_on_id" ON "stripe_local_plans" ("id") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131031024841"]]  (0.3ms) COMMIT ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateStripeLocalPlans (20131031024841)  (0.1ms) BEGIN  (0.5ms) DROP INDEX "index_stripe_local_plans_on_id"  (0.7ms) DROP TABLE "stripe_local_plans" SQL (0.3ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20131031024841'  (2.7ms) COMMIT ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateStripeLocalCards (20131030064604)  (0.1ms) BEGIN  (0.5ms) DROP INDEX "index_stripe_local_cards_on_id"  (0.5ms) DROP TABLE "stripe_local_cards" SQL (0.3ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20131030064604'  (3.1ms) COMMIT ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateStripeLocalCards (20131030064604)  (0.1ms) BEGIN  (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)   (0.7ms) CREATE UNIQUE INDEX "index_stripe_local_cards_on_id" ON "stripe_local_cards" ("id")  (0.6ms) CREATE INDEX "index_stripe_local_cards_on_customer_id" ON "stripe_local_cards" ("customer_id") SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131030064604"]]  (0.3ms) COMMIT Migrating to CreateStripeLocalPlans (20131031024841)  (0.1ms) BEGIN  (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)   (0.6ms) CREATE UNIQUE INDEX "index_stripe_local_plans_on_id" ON "stripe_local_plans" ("id")  (0.6ms) CREATE INDEX "index_stripe_local_plans_on_subscription_id" ON "stripe_local_plans" ("subscription_id") SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131031024841"]]  (0.3ms) COMMIT ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateStripeLocalPlans (20131031024841)  (0.1ms) BEGIN  (0.7ms) DROP INDEX "index_stripe_local_plans_on_subscription_id"  (0.2ms) DROP INDEX "index_stripe_local_plans_on_id"  (0.8ms) DROP TABLE "stripe_local_plans" SQL (0.4ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20131031024841'  (127.2ms) COMMIT ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateStripeLocalPlans (20131031024841)  (0.1ms) BEGIN  (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)   (1.0ms) CREATE UNIQUE INDEX "index_stripe_local_plans_on_id" ON "stripe_local_plans" ("id") SQL (0.9ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131031024841"]]  (0.6ms) COMMIT Migrating to CreateStripeLocalCoupons (20131031032453)  (0.2ms) BEGIN  (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)  (0.5ms) CREATE UNIQUE INDEX "index_stripe_local_coupons_on_id" ON "stripe_local_coupons" ("id") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131031032453"]]  (0.3ms) COMMIT ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (1.9ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateStripeLocalDiscounts (20131101034057)  (0.1ms) BEGIN  (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)   (0.7ms) CREATE INDEX "index_stripe_local_discounts_on_coupon_id_and_subscription_id" ON "stripe_local_discounts" ("coupon_id", "subscription_id") SQL (1.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131101034057"]]  (97.5ms) COMMIT ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (1.7ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateStripeLocalSubscriptions (20131101092526)  (0.4ms) BEGIN  (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)   (5.9ms) CREATE UNIQUE INDEX "index_subscription_on_id" ON "subscription" ("id") PG::UndefinedTable: ERROR: relation "subscription" does not exist : CREATE UNIQUE INDEX "index_subscription_on_id" ON "subscription" ("id")  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateStripeLocalSubscriptions (20131101092526)  (0.1ms) BEGIN  (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)   (0.9ms) CREATE UNIQUE INDEX "index_subscription_on_id" ON "subscription" ("id") PG::UndefinedTable: ERROR: relation "subscription" does not exist : CREATE UNIQUE INDEX "index_subscription_on_id" ON "subscription" ("id")  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateStripeLocalSubscriptions (20131101092526)  (0.1ms) BEGIN  (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)   (1.2ms) CREATE UNIQUE INDEX "index_stripe_local_subscription_on_id" ON "stripe_local_subscription" ("id") PG::UndefinedTable: ERROR: relation "stripe_local_subscription" does not exist : CREATE UNIQUE INDEX "index_stripe_local_subscription_on_id" ON "stripe_local_subscription" ("id")  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateStripeLocalSubscriptions (20131101092526)  (0.1ms) BEGIN  (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)   (0.8ms) CREATE UNIQUE INDEX "index_stripe_local_subscription_on_id" ON "stripe_local_subscription" ("id") PG::UndefinedTable: ERROR: relation "stripe_local_subscription" does not exist : CREATE UNIQUE INDEX "index_stripe_local_subscription_on_id" ON "stripe_local_subscription" ("id")  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateStripeLocalSubscriptions (20131101092526)  (0.1ms) BEGIN  (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)   (0.9ms) CREATE UNIQUE INDEX "index_stripe_local_subscriptions_on_id" ON "stripe_local_subscriptions" ("id")  (0.6ms) CREATE INDEX "index_stripe_local_subscriptions_on_customer_id" ON "stripe_local_subscriptions" ("customer_id")  (0.7ms) CREATE INDEX "index_stripe_local_subscriptions_on_plan_id" ON "stripe_local_subscriptions" ("plan_id") SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131101092526"]]  (0.4ms) COMMIT ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (1.6ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateStripeLocalInvoices (20131101110359)  (0.1ms) BEGIN  (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)  SQL (0.9ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131101110359"]]  (108.9ms) COMMIT ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateStripeLocalInvoices (20131101110359)  (0.1ms) BEGIN  (6.2ms) DROP TABLE "stripe_local_invoices" SQL (1.7ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20131101110359'  (1.3ms) COMMIT ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateStripeLocalInvoices (20131101110359)  (0.1ms) BEGIN  (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)   (0.7ms) CREATE UNIQUE INDEX "index_stripe_local_invoices_on_id" ON "stripe_local_invoices" ("id")  (0.6ms) CREATE INDEX "index_stripe_local_invoices_on_customer_id" ON "stripe_local_invoices" ("customer_id") SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131101110359"]]  (0.7ms) COMMIT ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateStripeLocalInvoices (20131101110359)  (0.1ms) BEGIN  (0.4ms) DROP INDEX "index_stripe_local_invoices_on_customer_id"  (0.1ms) DROP INDEX "index_stripe_local_invoices_on_id"  (0.4ms) DROP TABLE "stripe_local_invoices" SQL (0.3ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20131101110359'  (1.2ms) COMMIT ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (1.9ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateStripeLocalSubscriptions (20131101092526)  (0.1ms) BEGIN  (0.5ms) DROP INDEX "index_stripe_local_subscriptions_on_plan_id"  (0.1ms) DROP INDEX "index_stripe_local_subscriptions_on_customer_id"  (0.1ms) DROP INDEX "index_stripe_local_subscriptions_on_id"  (0.4ms) DROP TABLE "stripe_local_subscriptions" SQL (0.3ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20131101092526'  (5.5ms) COMMIT ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateStripeLocalSubscriptions (20131101092526)  (0.1ms) BEGIN  (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)   (0.7ms) CREATE UNIQUE INDEX "index_stripe_local_subscriptions_on_id" ON "stripe_local_subscriptions" ("id")  (0.5ms) CREATE INDEX "index_stripe_local_subscriptions_on_customer_id" ON "stripe_local_subscriptions" ("customer_id")  (0.7ms) CREATE INDEX "index_stripe_local_subscriptions_on_plan_id" ON "stripe_local_subscriptions" ("plan_id") SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131101092526"]]  (0.7ms) COMMIT Migrating to CreateStripeLocalInvoices (20131101110359)  (0.1ms) BEGIN  (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)  (0.6ms) CREATE UNIQUE INDEX "index_stripe_local_invoices_on_id" ON "stripe_local_invoices" ("id")  (0.5ms) CREATE INDEX "index_stripe_local_invoices_on_customer_id" ON "stripe_local_invoices" ("customer_id") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131101110359"]]  (0.3ms) COMMIT ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateStripeLocalInvoices (20131101110359)  (0.1ms) BEGIN  (0.5ms) DROP INDEX "index_stripe_local_invoices_on_customer_id"  (0.1ms) DROP INDEX "index_stripe_local_invoices_on_id"  (0.7ms) DROP TABLE "stripe_local_invoices" SQL (0.3ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20131101110359'  (1.0ms) COMMIT ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateStripeLocalInvoices (20131101110359)  (0.1ms) BEGIN  (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)   (0.9ms) CREATE UNIQUE INDEX "index_stripe_local_invoices_on_id" ON "stripe_local_invoices" ("id")  (0.5ms) CREATE INDEX "index_stripe_local_invoices_on_customer_id" ON "stripe_local_invoices" ("customer_id") SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131101110359"]]  (109.6ms) COMMIT Migrating to CreateStripeLocalLineItems (20131101134517)  (0.1ms) BEGIN  (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)   (5.0ms) CREATE UNIQUE INDEX "index_stripe_local_line_items_on_id" ON "stripe_local_line_items" ("id") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131101134517"]]  (0.4ms) COMMIT ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateStripeLocalLineItems (20131101134517)  (0.1ms) BEGIN  (0.4ms) DROP INDEX "index_stripe_local_line_items_on_id"  (0.5ms) DROP TABLE "stripe_local_line_items" SQL (0.3ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20131101134517'  (102.3ms) COMMIT ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateStripeLocalLineItems (20131101134517)  (0.1ms) BEGIN  (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)   (0.7ms) CREATE UNIQUE INDEX "index_stripe_local_line_items_on_id" ON "stripe_local_line_items" ("id")  (0.6ms) CREATE INDEX "index_stripe_local_line_items_on_invoice_id" ON "stripe_local_line_items" ("invoice_id") SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131101134517"]]  (0.6ms) COMMIT ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateStripeLocalCharges (20131101171503)  (0.1ms) BEGIN  (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)   (0.8ms) CREATE UNIQUE INDEX "index_stripe_local_charges_on_id" ON "stripe_local_charges" ("id")  (0.6ms) CREATE INDEX "index_stripe_local_charges_on_card_id" ON "stripe_local_charges" ("card_id")  (0.9ms) CREATE INDEX "index_stripe_local_charges_on_customer_id" ON "stripe_local_charges" ("customer_id")  (0.6ms) CREATE INDEX "index_stripe_local_charges_on_invoice_id" ON "stripe_local_charges" ("invoice_id")  (0.6ms) CREATE INDEX "index_stripe_local_charges_on_balance_transaction_id" ON "stripe_local_charges" ("balance_transaction_id") SQL (0.8ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131101171503"]]  (0.6ms) COMMIT ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (2.3ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateStripeLocalCharges (20131101171503)  (0.1ms) BEGIN  (7.2ms) DROP INDEX "index_stripe_local_charges_on_balance_transaction_id"  (0.1ms) DROP INDEX "index_stripe_local_charges_on_invoice_id"  (0.1ms) DROP INDEX "index_stripe_local_charges_on_customer_id"  (0.1ms) DROP INDEX "index_stripe_local_charges_on_card_id"  (0.1ms) DROP INDEX "index_stripe_local_charges_on_id"  (2.6ms) DROP TABLE "stripe_local_charges" SQL (1.9ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20131101171503'  (120.0ms) COMMIT ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateStripeLocalLineItems (20131101134517)  (0.2ms) BEGIN  (0.5ms) DROP INDEX "index_stripe_local_line_items_on_invoice_id"  (0.2ms) DROP INDEX "index_stripe_local_line_items_on_id"  (0.6ms) DROP TABLE "stripe_local_line_items" SQL (0.3ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20131101134517'  (4.9ms) COMMIT ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateStripeLocalInvoices (20131101110359)  (0.2ms) BEGIN  (0.5ms) DROP INDEX "index_stripe_local_invoices_on_customer_id"  (0.1ms) DROP INDEX "index_stripe_local_invoices_on_id"  (0.5ms) DROP TABLE "stripe_local_invoices" SQL (0.3ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20131101110359'  (4.7ms) COMMIT ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateStripeLocalInvoices (20131101110359)  (0.1ms) BEGIN  (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)   (0.6ms) CREATE UNIQUE INDEX "index_stripe_local_invoices_on_id" ON "stripe_local_invoices" ("id")  (0.6ms) CREATE INDEX "index_stripe_local_invoices_on_customer_id" ON "stripe_local_invoices" ("customer_id") SQL (0.7ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131101110359"]]  (0.6ms) COMMIT Migrating to CreateStripeLocalLineItems (20131101134517)  (0.1ms) BEGIN  (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)   (0.6ms) CREATE UNIQUE INDEX "index_stripe_local_line_items_on_id" ON "stripe_local_line_items" ("id")  (0.5ms) CREATE INDEX "index_stripe_local_line_items_on_invoice_id" ON "stripe_local_line_items" ("invoice_id") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131101134517"]]  (0.3ms) COMMIT Migrating to CreateStripeLocalCharges (20131101171503)  (0.1ms) BEGIN  (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)   (0.8ms) CREATE UNIQUE INDEX "index_stripe_local_charges_on_id" ON "stripe_local_charges" ("id")  (0.6ms) CREATE INDEX "index_stripe_local_charges_on_card_id" ON "stripe_local_charges" ("card_id")  (0.4ms) CREATE INDEX "index_stripe_local_charges_on_customer_id" ON "stripe_local_charges" ("customer_id")  (0.5ms) CREATE INDEX "index_stripe_local_charges_on_invoice_id" ON "stripe_local_charges" ("invoice_id")  (0.5ms) CREATE INDEX "index_stripe_local_charges_on_balance_transaction_id" ON "stripe_local_charges" ("balance_transaction_id") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131101171503"]]  (0.3ms) COMMIT ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (2.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateClients (20131102200937)  (0.1ms) BEGIN  (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)  SQL (1.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131102200937"]]  (0.6ms) COMMIT ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN 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]]  (0.3ms) COMMIT Client Load (2.4ms) SELECT "clients".* FROM "clients" WHERE "clients"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) BEGIN 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]]  (0.5ms) COMMIT 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"]]  (0.4ms) BEGIN 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]] PG::SyntaxError: ERROR: zero-length delimited identifier at or near """" LINE 1: ... "updated_at" = $2 WHERE "stripe_local_customers"."" IS NULL ^ : UPDATE "stripe_local_customers" SET "model_id" = $1, "updated_at" = $2 WHERE "stripe_local_customers"."" IS NULL  (0.2ms) ROLLBACK  (0.2ms) BEGIN 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]] PG::SyntaxError: ERROR: zero-length delimited identifier at or near """" LINE 1: ... "updated_at" = $1 WHERE "stripe_local_customers"."" IS NULL ^ : UPDATE "stripe_local_customers" SET "updated_at" = $1 WHERE "stripe_local_customers"."" IS NULL  (0.3ms) ROLLBACK  (0.2ms) BEGIN 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"]] PG::SyntaxError: ERROR: zero-length delimited identifier at or near """" LINE 1: ...t" = $1, "id" = $2 WHERE "stripe_local_customers"."" = 'cust... ^ : UPDATE "stripe_local_customers" SET "updated_at" = $1, "id" = $2 WHERE "stripe_local_customers"."" = 'cust_123'  (0.1ms) ROLLBACK  (0.2ms) BEGIN 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"]] PG::SyntaxError: ERROR: zero-length delimited identifier at or near """" LINE 1: ...t" = $1, "id" = $2 WHERE "stripe_local_customers"."" = 'cust... ^ : UPDATE "stripe_local_customers" SET "updated_at" = $1, "id" = $2 WHERE "stripe_local_customers"."" = 'cust_123'  (0.2ms) ROLLBACK Client Load (2.9ms) SELECT "clients".* FROM "clients" WHERE "clients"."id" = $1 LIMIT 1 [["id", 1]] 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"]]  (0.2ms) BEGIN 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]]  (0.2ms) COMMIT  (0.2ms) BEGIN 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]]  (1.8ms) COMMIT  (0.2ms) BEGIN 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]]  (2.2ms) COMMIT 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"]] Client Load (1.0ms) SELECT "clients".* FROM "clients" WHERE "clients"."id" = $1 ORDER BY "clients"."id" ASC LIMIT 1 [["id", 2]]  (0.2ms) BEGIN 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]]  (43.8ms) COMMIT  (0.2ms) BEGIN 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]]  (92.6ms) COMMIT Client Load (7.2ms) SELECT "clients".* FROM "clients" WHERE "clients"."id" = $1 LIMIT 1 [["id", 1]] Client Load (2.7ms) SELECT "clients".* FROM "clients" WHERE "clients"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) BEGIN 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]]  (108.0ms) COMMIT ActiveRecord::SchemaMigration Load (2.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateClients (20131102200937)  (0.1ms) BEGIN  (11.4ms) DROP TABLE "clients" SQL (2.6ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20131102200937'  (141.2ms) COMMIT ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateStripeLocalCharges (20131101171503)  (0.1ms) BEGIN  (0.6ms) DROP INDEX "index_stripe_local_charges_on_balance_transaction_id"  (0.2ms) DROP INDEX "index_stripe_local_charges_on_invoice_id"  (0.2ms) DROP INDEX "index_stripe_local_charges_on_customer_id"  (0.2ms) DROP INDEX "index_stripe_local_charges_on_card_id"  (0.1ms) DROP INDEX "index_stripe_local_charges_on_id"  (0.7ms) DROP TABLE "stripe_local_charges" SQL (0.3ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20131101171503'  (6.7ms) COMMIT ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateStripeLocalLineItems (20131101134517)  (0.1ms) BEGIN  (0.4ms) DROP INDEX "index_stripe_local_line_items_on_invoice_id"  (0.1ms) DROP INDEX "index_stripe_local_line_items_on_id"  (0.5ms) DROP TABLE "stripe_local_line_items" SQL (0.3ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20131101134517'  (6.2ms) COMMIT ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateStripeLocalInvoices (20131101110359)  (0.1ms) BEGIN  (0.4ms) DROP INDEX "index_stripe_local_invoices_on_customer_id"  (0.1ms) DROP INDEX "index_stripe_local_invoices_on_id"  (0.6ms) DROP TABLE "stripe_local_invoices" SQL (0.3ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20131101110359'  (6.2ms) COMMIT ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateStripeLocalSubscriptions (20131101092526)  (0.1ms) BEGIN  (0.5ms) DROP INDEX "index_stripe_local_subscriptions_on_plan_id"  (0.1ms) DROP INDEX "index_stripe_local_subscriptions_on_customer_id"  (0.1ms) DROP INDEX "index_stripe_local_subscriptions_on_id"  (0.4ms) DROP TABLE "stripe_local_subscriptions" SQL (0.3ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20131101092526'  (7.7ms) COMMIT ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateStripeLocalDiscounts (20131101034057)  (0.1ms) BEGIN  (2.5ms) DROP INDEX "index_stripe_local_discounts_on_coupon_id_and_subscription_id"  (0.8ms) DROP TABLE "stripe_local_discounts" SQL (0.3ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20131101034057'  (5.7ms) COMMIT ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateStripeLocalCoupons (20131031032453)  (0.1ms) BEGIN  (0.4ms) DROP INDEX "index_stripe_local_coupons_on_id"  (0.5ms) DROP TABLE "stripe_local_coupons" SQL (0.3ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20131031032453'  (3.7ms) COMMIT ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateStripeLocalPlans (20131031024841)  (0.1ms) BEGIN  (0.5ms) DROP INDEX "index_stripe_local_plans_on_id"  (0.7ms) DROP TABLE "stripe_local_plans" SQL (0.3ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20131031024841'  (5.3ms) COMMIT ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateStripeLocalCards (20131030064604)  (0.1ms) BEGIN  (0.5ms) DROP INDEX "index_stripe_local_cards_on_customer_id"  (0.1ms) DROP INDEX "index_stripe_local_cards_on_id"  (0.4ms) DROP TABLE "stripe_local_cards" SQL (0.3ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20131030064604'  (5.0ms) COMMIT ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateStripeLocalCustomers (20131030062900)  (0.1ms) BEGIN  (0.6ms) DROP INDEX "index_stripe_local_customers_on_model_type_and_model_id"  (0.2ms) DROP INDEX "index_stripe_local_customers_on_id"  (0.5ms) DROP TABLE "stripe_local_customers" SQL (0.3ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20131030062900'  (7.7ms) COMMIT ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateClients (20131102200937)  (0.1ms) BEGIN  (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)  SQL (3.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131102200937"]]  (0.8ms) COMMIT ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to LoadStripeTables (20131122063517)  (0.2ms) BEGIN  (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)   (1.7ms) CREATE UNIQUE INDEX "index_stripe_local_customers_on_id" ON "stripe_local_customers" ("id")  (2.8ms) CREATE INDEX "index_stripe_local_customers_on_model_type_and_model_id" ON "stripe_local_customers" ("model_type", "model_id") PG::UndefinedColumn: ERROR: column "model_type" does not exist : CREATE INDEX "index_stripe_local_customers_on_model_type_and_model_id" ON "stripe_local_customers" ("model_type", "model_id")  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to LoadStripeTables (20131122063517)  (0.1ms) BEGIN  (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)   (0.8ms) CREATE UNIQUE INDEX "index_stripe_local_customers_on_id" ON "stripe_local_customers" ("id")  (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)   (0.5ms) CREATE UNIQUE INDEX "index_stripe_local_cards_on_id" ON "stripe_local_cards" ("id")  (0.6ms) CREATE INDEX "index_stripe_local_cards_on_customer_id" ON "stripe_local_cards" ("customer_id")  (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)  (0.6ms) CREATE UNIQUE INDEX "index_stripe_local_plans_on_id" ON "stripe_local_plans" ("id")  (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)  (0.5ms) CREATE UNIQUE INDEX "index_stripe_local_coupons_on_id" ON "stripe_local_coupons" ("id")  (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)  (0.5ms) CREATE INDEX "index_stripe_local_discounts_on_coupon_id_and_subscription_id" ON "stripe_local_discounts" ("coupon_id", "subscription_id")  (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)  (0.5ms) CREATE UNIQUE INDEX "index_stripe_local_subscriptions_on_id" ON "stripe_local_subscriptions" ("id")  (0.5ms) CREATE INDEX "index_stripe_local_subscriptions_on_customer_id" ON "stripe_local_subscriptions" ("customer_id")  (0.5ms) CREATE INDEX "index_stripe_local_subscriptions_on_plan_id" ON "stripe_local_subscriptions" ("plan_id")  (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)  (0.6ms) CREATE UNIQUE INDEX "index_stripe_local_invoices_on_id" ON "stripe_local_invoices" ("id")  (1.0ms) CREATE INDEX "index_stripe_local_invoices_on_customer_id" ON "stripe_local_invoices" ("customer_id")  (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)   (0.5ms) CREATE UNIQUE INDEX "index_stripe_local_line_items_on_id" ON "stripe_local_line_items" ("id")  (0.5ms) CREATE INDEX "index_stripe_local_line_items_on_invoice_id" ON "stripe_local_line_items" ("invoice_id")  (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)  (0.5ms) CREATE UNIQUE INDEX "index_stripe_local_charges_on_id" ON "stripe_local_charges" ("id")  (0.5ms) CREATE INDEX "index_stripe_local_charges_on_card_id" ON "stripe_local_charges" ("card_id")  (0.5ms) CREATE INDEX "index_stripe_local_charges_on_customer_id" ON "stripe_local_charges" ("customer_id")  (0.5ms) CREATE INDEX "index_stripe_local_charges_on_invoice_id" ON "stripe_local_charges" ("invoice_id")  (0.5ms) CREATE INDEX "index_stripe_local_charges_on_balance_transaction_id" ON "stripe_local_charges" ("balance_transaction_id")  (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)  (0.9ms) CREATE UNIQUE INDEX "index_stripe_local_transfers_on_id" ON "stripe_local_transfers" ("id")  (0.7ms) CREATE INDEX "index_stripe_local_transfers_on_status" ON "stripe_local_transfers" ("status")  (0.8ms) CREATE INDEX "index_stripe_local_transfers_on_balance_transaction_id" ON "stripe_local_transfers" ("balance_transaction_id")  (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)  (0.6ms) CREATE UNIQUE INDEX "index_stripe_local_balance_transactions_on_id" ON "stripe_local_balance_transactions" ("id")  (0.6ms) CREATE INDEX "index_stripe_local_balance_transactions_on_status" ON "stripe_local_balance_transactions" ("status")  (3.0ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to LoadStripeTables (20131122063517)  (0.1ms) BEGIN  (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)   (0.7ms) CREATE UNIQUE INDEX "index_stripe_local_customers_on_id" ON "stripe_local_customers" ("id")  (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)   (0.5ms) CREATE UNIQUE INDEX "index_stripe_local_cards_on_id" ON "stripe_local_cards" ("id")  (0.6ms) CREATE INDEX "index_stripe_local_cards_on_customer_id" ON "stripe_local_cards" ("customer_id")  (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)  (0.6ms) CREATE UNIQUE INDEX "index_stripe_local_plans_on_id" ON "stripe_local_plans" ("id")  (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)  (0.6ms) CREATE UNIQUE INDEX "index_stripe_local_coupons_on_id" ON "stripe_local_coupons" ("id")  (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)  (0.6ms) CREATE INDEX "index_stripe_local_discounts_on_coupon_id_and_subscription_id" ON "stripe_local_discounts" ("coupon_id", "subscription_id")  (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)  (0.5ms) CREATE UNIQUE INDEX "index_stripe_local_subscriptions_on_id" ON "stripe_local_subscriptions" ("id")  (0.6ms) CREATE INDEX "index_stripe_local_subscriptions_on_customer_id" ON "stripe_local_subscriptions" ("customer_id")  (0.5ms) CREATE INDEX "index_stripe_local_subscriptions_on_plan_id" ON "stripe_local_subscriptions" ("plan_id")  (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)  (0.5ms) CREATE UNIQUE INDEX "index_stripe_local_invoices_on_id" ON "stripe_local_invoices" ("id")  (0.6ms) CREATE INDEX "index_stripe_local_invoices_on_customer_id" ON "stripe_local_invoices" ("customer_id")  (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)   (1.0ms) CREATE UNIQUE INDEX "index_stripe_local_line_items_on_id" ON "stripe_local_line_items" ("id")  (0.6ms) CREATE INDEX "index_stripe_local_line_items_on_invoice_id" ON "stripe_local_line_items" ("invoice_id")  (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)  (0.5ms) CREATE UNIQUE INDEX "index_stripe_local_charges_on_id" ON "stripe_local_charges" ("id")  (0.5ms) CREATE INDEX "index_stripe_local_charges_on_card_id" ON "stripe_local_charges" ("card_id")  (0.5ms) CREATE INDEX "index_stripe_local_charges_on_customer_id" ON "stripe_local_charges" ("customer_id")  (0.5ms) CREATE INDEX "index_stripe_local_charges_on_invoice_id" ON "stripe_local_charges" ("invoice_id")  (0.5ms) CREATE INDEX "index_stripe_local_charges_on_balance_transaction_id" ON "stripe_local_charges" ("balance_transaction_id")  (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)  (0.6ms) CREATE UNIQUE INDEX "index_stripe_local_transfers_on_id" ON "stripe_local_transfers" ("id")  (0.5ms) CREATE INDEX "index_stripe_local_transfers_on_status" ON "stripe_local_transfers" ("status")  (0.6ms) CREATE INDEX "index_stripe_local_transfers_on_balance_transaction_id" ON "stripe_local_transfers" ("balance_transaction_id")  (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)  (0.5ms) CREATE UNIQUE INDEX "index_stripe_local_balance_transactions_on_id" ON "stripe_local_balance_transactions" ("id")  (0.5ms) CREATE INDEX "index_stripe_local_balance_transactions_on_status" ON "stripe_local_balance_transactions" ("status")  (0.9ms) CREATE INDEX "index_transactions_on_source_id_and_source_type" ON "stripe_local_balance_transactions" ("source_id", "source_type") SQL (0.9ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131122063517"]]  (1.5ms) COMMIT ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to LoadStripeTables (20131122063517)  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to LoadStripeTables (20131122063517)  (0.1ms) BEGIN  (0.6ms) DROP INDEX "index_transactions_on_source_id_and_source_type"  (0.2ms) DROP INDEX "index_stripe_local_balance_transactions_on_status"  (0.2ms) DROP INDEX "index_stripe_local_balance_transactions_on_id"  (0.4ms) DROP TABLE "stripe_local_balance_transactions"  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to LoadStripeTables (20131122063517)  (0.1ms) BEGIN  (0.6ms) DROP INDEX "index_transactions_on_source_id_and_source_type"  (0.2ms) DROP INDEX "index_stripe_local_balance_transactions_on_status"  (0.2ms) DROP INDEX "index_stripe_local_balance_transactions_on_id"  (0.4ms) DROP TABLE "stripe_local_balance_transactions"  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to LoadStripeTables (20131122063517)  (0.1ms) BEGIN  (0.5ms) DROP INDEX "index_transactions_on_source_id_and_source_type"  (0.2ms) DROP INDEX "index_stripe_local_balance_transactions_on_status"  (0.2ms) DROP INDEX "index_stripe_local_balance_transactions_on_id"  (0.4ms) DROP TABLE "stripe_local_balance_transactions"  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to LoadStripeTables (20131122063517)  (0.1ms) BEGIN  (0.5ms) DROP INDEX "index_transactions_on_source_id_and_source_type"  (0.2ms) DROP INDEX "index_stripe_local_balance_transactions_on_status"  (0.2ms) DROP INDEX "index_stripe_local_balance_transactions_on_id"  (0.5ms) DROP TABLE "stripe_local_balance_transactions"  (0.2ms) DROP INDEX "index_stripe_local_transfers_on_balance_transaction_id"  (0.1ms) DROP INDEX "index_stripe_local_transfers_on_status"  (0.1ms) DROP INDEX "index_stripe_local_transfers_on_id"  (0.4ms) DROP TABLE "stripe_local_transfers"  (0.2ms) DROP INDEX "index_stripe_local_charges_on_balance_transaction_id"  (0.1ms) DROP INDEX "index_stripe_local_charges_on_invoice_id"  (0.1ms) DROP INDEX "index_stripe_local_charges_on_customer_id"  (0.2ms) DROP INDEX "index_stripe_local_charges_on_card_id"  (0.1ms) DROP INDEX "index_stripe_local_charges_on_id"  (0.7ms) DROP TABLE "stripe_local_charges"  (0.1ms) DROP INDEX "index_stripe_local_line_items_on_invoice_id"  (0.1ms) DROP INDEX "index_stripe_local_line_items_on_id"  (0.4ms) DROP TABLE "stripe_local_line_items"  (0.2ms) DROP INDEX "index_stripe_local_invoices_on_customer_id"  (0.2ms) DROP INDEX "index_stripe_local_invoices_on_id"  (0.6ms) DROP TABLE "stripe_local_invoices"  (0.3ms) DROP INDEX "index_stripe_local_subscriptions_on_plan_id"  (0.3ms) DROP INDEX "index_stripe_local_subscriptions_on_customer_id"  (0.2ms) DROP INDEX "index_stripe_local_subscriptions_on_id"  (0.8ms) DROP TABLE "stripe_local_subscriptions"  (0.2ms) DROP INDEX "index_stripe_local_discounts_on_coupon_id_and_subscription_id"  (0.8ms) DROP TABLE "stripe_local_discounts"  (0.2ms) DROP INDEX "index_stripe_local_coupons_on_id"  (0.5ms) DROP TABLE "stripe_local_coupons"  (0.1ms) DROP INDEX "index_stripe_local_plans_on_id"  (0.6ms) DROP TABLE "stripe_local_plans"  (0.1ms) DROP INDEX "index_stripe_local_cards_on_customer_id"  (0.1ms) DROP INDEX "index_stripe_local_cards_on_id"  (0.4ms) DROP TABLE "stripe_local_cards"  (0.2ms) DROP INDEX "index_stripe_local_customers_on_id"  (0.4ms) DROP TABLE "stripe_local_customers" SQL (0.3ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20131122063517'  (9.6ms) COMMIT ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to LoadStripeTables (20131122063517)  (0.1ms) BEGIN  (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)   (0.7ms) CREATE UNIQUE INDEX "index_stripe_local_customers_on_id" ON "stripe_local_customers" ("id")  (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)   (0.5ms) CREATE UNIQUE INDEX "index_stripe_local_cards_on_id" ON "stripe_local_cards" ("id")  (0.6ms) CREATE INDEX "index_stripe_local_cards_on_customer_id" ON "stripe_local_cards" ("customer_id")  (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)  (0.6ms) CREATE UNIQUE INDEX "index_stripe_local_plans_on_id" ON "stripe_local_plans" ("id")  (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)  (0.6ms) CREATE UNIQUE INDEX "index_stripe_local_coupons_on_id" ON "stripe_local_coupons" ("id")  (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)  (0.5ms) CREATE INDEX "index_stripe_local_discounts_on_coupon_id_and_subscription_id" ON "stripe_local_discounts" ("coupon_id", "subscription_id")  (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)  (0.5ms) CREATE UNIQUE INDEX "index_stripe_local_subscriptions_on_id" ON "stripe_local_subscriptions" ("id")  (0.6ms) CREATE INDEX "index_stripe_local_subscriptions_on_customer_id" ON "stripe_local_subscriptions" ("customer_id")  (0.8ms) CREATE INDEX "index_stripe_local_subscriptions_on_plan_id" ON "stripe_local_subscriptions" ("plan_id")  (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)  (1.1ms) CREATE UNIQUE INDEX "index_stripe_local_invoices_on_id" ON "stripe_local_invoices" ("id")  (0.6ms) CREATE INDEX "index_stripe_local_invoices_on_customer_id" ON "stripe_local_invoices" ("customer_id")  (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)   (0.5ms) CREATE UNIQUE INDEX "index_stripe_local_line_items_on_id" ON "stripe_local_line_items" ("id")  (0.5ms) CREATE INDEX "index_stripe_local_line_items_on_invoice_id" ON "stripe_local_line_items" ("invoice_id")  (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)  (0.5ms) CREATE UNIQUE INDEX "index_stripe_local_charges_on_id" ON "stripe_local_charges" ("id")  (0.5ms) CREATE INDEX "index_stripe_local_charges_on_card_id" ON "stripe_local_charges" ("card_id")  (0.5ms) CREATE INDEX "index_stripe_local_charges_on_customer_id" ON "stripe_local_charges" ("customer_id")  (0.6ms) CREATE INDEX "index_stripe_local_charges_on_invoice_id" ON "stripe_local_charges" ("invoice_id")  (0.6ms) CREATE INDEX "index_stripe_local_charges_on_balance_transaction_id" ON "stripe_local_charges" ("balance_transaction_id")  (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)  (0.5ms) CREATE UNIQUE INDEX "index_stripe_local_transfers_on_id" ON "stripe_local_transfers" ("id")  (0.5ms) CREATE INDEX "index_stripe_local_transfers_on_status" ON "stripe_local_transfers" ("status")  (3.6ms) CREATE INDEX "index_stripe_local_transfers_on_transaction_id" ON "stripe_local_transfers" ("transaction_id") PG::UndefinedColumn: ERROR: column "transaction_id" does not exist : CREATE INDEX "index_stripe_local_transfers_on_transaction_id" ON "stripe_local_transfers" ("transaction_id")  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to LoadStripeTables (20131122063517)  (0.1ms) BEGIN  (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)   (8.8ms) CREATE UNIQUE INDEX "index_stripe_local_customers_on_id" ON "stripe_local_customers" ("id")  (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)   (0.9ms) CREATE UNIQUE INDEX "index_stripe_local_cards_on_id" ON "stripe_local_cards" ("id")  (0.7ms) CREATE INDEX "index_stripe_local_cards_on_customer_id" ON "stripe_local_cards" ("customer_id")  (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)  (0.7ms) CREATE UNIQUE INDEX "index_stripe_local_plans_on_id" ON "stripe_local_plans" ("id")  (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)  (0.6ms) CREATE UNIQUE INDEX "index_stripe_local_coupons_on_id" ON "stripe_local_coupons" ("id")  (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)  (0.6ms) CREATE INDEX "index_stripe_local_discounts_on_coupon_id_and_subscription_id" ON "stripe_local_discounts" ("coupon_id", "subscription_id")  (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)  (0.5ms) CREATE UNIQUE INDEX "index_stripe_local_subscriptions_on_id" ON "stripe_local_subscriptions" ("id")  (0.5ms) CREATE INDEX "index_stripe_local_subscriptions_on_customer_id" ON "stripe_local_subscriptions" ("customer_id")  (0.5ms) CREATE INDEX "index_stripe_local_subscriptions_on_plan_id" ON "stripe_local_subscriptions" ("plan_id")  (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)  (0.5ms) CREATE UNIQUE INDEX "index_stripe_local_invoices_on_id" ON "stripe_local_invoices" ("id")  (0.5ms) CREATE INDEX "index_stripe_local_invoices_on_customer_id" ON "stripe_local_invoices" ("customer_id")  (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)   (0.5ms) CREATE UNIQUE INDEX "index_stripe_local_line_items_on_id" ON "stripe_local_line_items" ("id")  (0.5ms) CREATE INDEX "index_stripe_local_line_items_on_invoice_id" ON "stripe_local_line_items" ("invoice_id")  (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)  (0.6ms) CREATE UNIQUE INDEX "index_stripe_local_charges_on_id" ON "stripe_local_charges" ("id")  (1.1ms) CREATE INDEX "index_stripe_local_charges_on_card_id" ON "stripe_local_charges" ("card_id")  (1.1ms) CREATE INDEX "index_stripe_local_charges_on_customer_id" ON "stripe_local_charges" ("customer_id")  (1.9ms) CREATE INDEX "index_stripe_local_charges_on_invoice_id" ON "stripe_local_charges" ("invoice_id")  (3.1ms) CREATE INDEX "index_stripe_local_charges_on_balance_transaction_id" ON "stripe_local_charges" ("balance_transaction_id") PG::UndefinedColumn: ERROR: column "balance_transaction_id" does not exist : CREATE INDEX "index_stripe_local_charges_on_balance_transaction_id" ON "stripe_local_charges" ("balance_transaction_id")  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to LoadStripeTables (20131122063517)  (0.1ms) BEGIN  (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)   (0.7ms) CREATE UNIQUE INDEX "index_stripe_local_customers_on_id" ON "stripe_local_customers" ("id")  (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)   (0.6ms) CREATE UNIQUE INDEX "index_stripe_local_cards_on_id" ON "stripe_local_cards" ("id")  (0.5ms) CREATE INDEX "index_stripe_local_cards_on_customer_id" ON "stripe_local_cards" ("customer_id")  (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)  (0.6ms) CREATE UNIQUE INDEX "index_stripe_local_plans_on_id" ON "stripe_local_plans" ("id")  (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)  (0.7ms) CREATE UNIQUE INDEX "index_stripe_local_coupons_on_id" ON "stripe_local_coupons" ("id")  (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)  (0.6ms) CREATE INDEX "index_stripe_local_discounts_on_coupon_id_and_subscription_id" ON "stripe_local_discounts" ("coupon_id", "subscription_id")  (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)  (0.5ms) CREATE UNIQUE INDEX "index_stripe_local_subscriptions_on_id" ON "stripe_local_subscriptions" ("id")  (0.6ms) CREATE INDEX "index_stripe_local_subscriptions_on_customer_id" ON "stripe_local_subscriptions" ("customer_id")  (0.6ms) CREATE INDEX "index_stripe_local_subscriptions_on_plan_id" ON "stripe_local_subscriptions" ("plan_id")  (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)  (0.6ms) CREATE UNIQUE INDEX "index_stripe_local_invoices_on_id" ON "stripe_local_invoices" ("id")  (0.5ms) CREATE INDEX "index_stripe_local_invoices_on_customer_id" ON "stripe_local_invoices" ("customer_id")  (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)   (0.5ms) CREATE UNIQUE INDEX "index_stripe_local_line_items_on_id" ON "stripe_local_line_items" ("id")  (0.5ms) CREATE INDEX "index_stripe_local_line_items_on_invoice_id" ON "stripe_local_line_items" ("invoice_id")  (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)  (0.5ms) CREATE UNIQUE INDEX "index_stripe_local_charges_on_id" ON "stripe_local_charges" ("id")  (0.5ms) CREATE INDEX "index_stripe_local_charges_on_card_id" ON "stripe_local_charges" ("card_id")  (0.5ms) CREATE INDEX "index_stripe_local_charges_on_customer_id" ON "stripe_local_charges" ("customer_id")  (0.6ms) CREATE INDEX "index_stripe_local_charges_on_invoice_id" ON "stripe_local_charges" ("invoice_id")  (0.5ms) CREATE INDEX "index_stripe_local_charges_on_transaction_id" ON "stripe_local_charges" ("transaction_id")  (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)  (0.5ms) CREATE UNIQUE INDEX "index_stripe_local_transfers_on_id" ON "stripe_local_transfers" ("id")  (0.4ms) CREATE INDEX "index_stripe_local_transfers_on_status" ON "stripe_local_transfers" ("status")  (0.4ms) CREATE INDEX "index_stripe_local_transfers_on_transaction_id" ON "stripe_local_transfers" ("transaction_id")  (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)  (0.4ms) CREATE UNIQUE INDEX "index_stripe_local_transactions_on_id" ON "stripe_local_transactions" ("id")  (0.5ms) CREATE INDEX "index_stripe_local_transactions_on_status" ON "stripe_local_transactions" ("status")  (0.9ms) CREATE INDEX "index_transactions_on_source_id_and_source_type" ON "stripe_local_transactions" ("source_id", "source_type") SQL (1.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131122063517"]]  (2.0ms) COMMIT ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to LoadStripeTables (20131122063517)  (0.1ms) BEGIN  (0.4ms) DROP INDEX "index_transactions_on_source_id_and_source_type"  (0.2ms) DROP INDEX "index_stripe_local_transactions_on_status"  (0.3ms) DROP INDEX "index_stripe_local_transactions_on_id"  (0.6ms) DROP TABLE "stripe_local_transactions"  (0.2ms) DROP INDEX "index_stripe_local_transfers_on_transaction_id"  (0.1ms) DROP INDEX "index_stripe_local_transfers_on_status"  (0.1ms) DROP INDEX "index_stripe_local_transfers_on_id"  (0.3ms) DROP TABLE "stripe_local_transfers"  (0.1ms) DROP INDEX "index_stripe_local_charges_on_transaction_id"  (0.1ms) DROP INDEX "index_stripe_local_charges_on_invoice_id"  (0.1ms) DROP INDEX "index_stripe_local_charges_on_customer_id"  (0.1ms) DROP INDEX "index_stripe_local_charges_on_card_id"  (0.1ms) DROP INDEX "index_stripe_local_charges_on_id"  (0.6ms) DROP TABLE "stripe_local_charges"  (0.1ms) DROP INDEX "index_stripe_local_line_items_on_invoice_id"  (0.2ms) DROP INDEX "index_stripe_local_line_items_on_id"  (0.6ms) DROP TABLE "stripe_local_line_items"  (0.2ms) DROP INDEX "index_stripe_local_invoices_on_customer_id"  (0.1ms) DROP INDEX "index_stripe_local_invoices_on_id"  (0.5ms) DROP TABLE "stripe_local_invoices"  (0.2ms) DROP INDEX "index_stripe_local_subscriptions_on_plan_id"  (0.1ms) DROP INDEX "index_stripe_local_subscriptions_on_customer_id"  (0.1ms) DROP INDEX "index_stripe_local_subscriptions_on_id"  (0.4ms) DROP TABLE "stripe_local_subscriptions"  (0.1ms) DROP INDEX "index_stripe_local_discounts_on_coupon_id_and_subscription_id"  (0.6ms) DROP TABLE "stripe_local_discounts"  (0.2ms) DROP INDEX "index_stripe_local_coupons_on_id"  (0.5ms) DROP TABLE "stripe_local_coupons"  (0.1ms) DROP INDEX "index_stripe_local_plans_on_id"  (0.6ms) DROP TABLE "stripe_local_plans"  (0.1ms) DROP INDEX "index_stripe_local_cards_on_customer_id"  (0.1ms) DROP INDEX "index_stripe_local_cards_on_id"  (0.3ms) DROP TABLE "stripe_local_cards"  (0.1ms) DROP INDEX "index_stripe_local_customers_on_id"  (0.3ms) DROP TABLE "stripe_local_customers" SQL (0.3ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20131122063517'  (3.2ms) COMMIT ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to LoadStripeTables (20131122063517)  (0.1ms) BEGIN  (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)   (0.7ms) CREATE UNIQUE INDEX "index_stripe_local_customers_on_id" ON "stripe_local_customers" ("id")  (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)   (0.6ms) CREATE UNIQUE INDEX "index_stripe_local_cards_on_id" ON "stripe_local_cards" ("id")  (0.5ms) CREATE INDEX "index_stripe_local_cards_on_customer_id" ON "stripe_local_cards" ("customer_id")  (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)  (0.6ms) CREATE UNIQUE INDEX "index_stripe_local_plans_on_id" ON "stripe_local_plans" ("id")  (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)  (0.5ms) CREATE UNIQUE INDEX "index_stripe_local_coupons_on_id" ON "stripe_local_coupons" ("id")  (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)  (0.7ms) CREATE INDEX "index_stripe_local_discounts_on_coupon_id_and_subscription_id" ON "stripe_local_discounts" ("coupon_id", "subscription_id")  (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)  (0.6ms) CREATE UNIQUE INDEX "index_stripe_local_subscriptions_on_id" ON "stripe_local_subscriptions" ("id")  (0.5ms) CREATE INDEX "index_stripe_local_subscriptions_on_customer_id" ON "stripe_local_subscriptions" ("customer_id")  (0.7ms) CREATE INDEX "index_stripe_local_subscriptions_on_plan_id" ON "stripe_local_subscriptions" ("plan_id")  (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)  (0.5ms) CREATE UNIQUE INDEX "index_stripe_local_invoices_on_id" ON "stripe_local_invoices" ("id")  (0.5ms) CREATE INDEX "index_stripe_local_invoices_on_customer_id" ON "stripe_local_invoices" ("customer_id")  (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)   (0.5ms) CREATE UNIQUE INDEX "index_stripe_local_line_items_on_id" ON "stripe_local_line_items" ("id")  (0.5ms) CREATE INDEX "index_stripe_local_line_items_on_invoice_id" ON "stripe_local_line_items" ("invoice_id")  (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)  (0.6ms) CREATE UNIQUE INDEX "index_stripe_local_charges_on_id" ON "stripe_local_charges" ("id")  (0.5ms) CREATE INDEX "index_stripe_local_charges_on_card_id" ON "stripe_local_charges" ("card_id")  (0.5ms) CREATE INDEX "index_stripe_local_charges_on_customer_id" ON "stripe_local_charges" ("customer_id")  (0.5ms) CREATE INDEX "index_stripe_local_charges_on_invoice_id" ON "stripe_local_charges" ("invoice_id")  (0.6ms) CREATE INDEX "index_stripe_local_charges_on_transaction_id" ON "stripe_local_charges" ("transaction_id")  (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)  (0.5ms) CREATE UNIQUE INDEX "index_stripe_local_transfers_on_id" ON "stripe_local_transfers" ("id")  (0.7ms) CREATE INDEX "index_stripe_local_transfers_on_status" ON "stripe_local_transfers" ("status")  (0.9ms) CREATE INDEX "index_stripe_local_transfers_on_transaction_id" ON "stripe_local_transfers" ("transaction_id")  (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)  (0.8ms) CREATE UNIQUE INDEX "index_stripe_local_transactions_on_id" ON "stripe_local_transactions" ("id")  (1.3ms) CREATE INDEX "index_stripe_local_transactions_on_status" ON "stripe_local_transactions" ("status")  (1.1ms) CREATE INDEX "index_transactions_on_source_id_and_source_type" ON "stripe_local_transactions" ("source_id", "source_type")  (2.4ms) CREATE TABLE "balances" ("id" serial primary key, "available" integer, "pending" integer, "created_at" timestamp, "updated_at" timestamp) SQL (0.7ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131122063517"]]  (1.4ms) COMMIT ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to LoadStripeTables (20131122063517)  (0.1ms) BEGIN  (1.6ms) DROP TABLE "balances"  (0.2ms) DROP INDEX "index_transactions_on_source_id_and_source_type"  (0.2ms) DROP INDEX "index_stripe_local_transactions_on_status"  (0.3ms) DROP INDEX "index_stripe_local_transactions_on_id"  (0.4ms) DROP TABLE "stripe_local_transactions"  (0.1ms) DROP INDEX "index_stripe_local_transfers_on_transaction_id"  (0.1ms) DROP INDEX "index_stripe_local_transfers_on_status"  (0.1ms) DROP INDEX "index_stripe_local_transfers_on_id"  (0.3ms) DROP TABLE "stripe_local_transfers"  (0.1ms) DROP INDEX "index_stripe_local_charges_on_transaction_id"  (0.1ms) DROP INDEX "index_stripe_local_charges_on_invoice_id"  (0.1ms) DROP INDEX "index_stripe_local_charges_on_customer_id"  (0.1ms) DROP INDEX "index_stripe_local_charges_on_card_id"  (0.1ms) DROP INDEX "index_stripe_local_charges_on_id"  (0.5ms) DROP TABLE "stripe_local_charges"  (0.1ms) DROP INDEX "index_stripe_local_line_items_on_invoice_id"  (0.1ms) DROP INDEX "index_stripe_local_line_items_on_id"  (0.4ms) DROP TABLE "stripe_local_line_items"  (0.1ms) DROP INDEX "index_stripe_local_invoices_on_customer_id"  (0.1ms) DROP INDEX "index_stripe_local_invoices_on_id"  (0.5ms) DROP TABLE "stripe_local_invoices"  (0.2ms) DROP INDEX "index_stripe_local_subscriptions_on_plan_id"  (0.2ms) DROP INDEX "index_stripe_local_subscriptions_on_customer_id"  (0.2ms) DROP INDEX "index_stripe_local_subscriptions_on_id"  (0.4ms) DROP TABLE "stripe_local_subscriptions"  (0.2ms) DROP INDEX "index_stripe_local_discounts_on_coupon_id_and_subscription_id"  (0.6ms) DROP TABLE "stripe_local_discounts"  (0.1ms) DROP INDEX "index_stripe_local_coupons_on_id"  (0.5ms) DROP TABLE "stripe_local_coupons"  (0.1ms) DROP INDEX "index_stripe_local_plans_on_id"  (0.5ms) DROP TABLE "stripe_local_plans"  (0.1ms) DROP INDEX "index_stripe_local_cards_on_customer_id"  (0.1ms) DROP INDEX "index_stripe_local_cards_on_id"  (0.4ms) DROP TABLE "stripe_local_cards"  (0.1ms) DROP INDEX "index_stripe_local_customers_on_id"  (0.3ms) DROP TABLE "stripe_local_customers" SQL (0.3ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20131122063517'  (4.5ms) COMMIT ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to LoadStripeTables (20131122063517)  (0.1ms) BEGIN  (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)   (0.6ms) CREATE UNIQUE INDEX "index_stripe_local_customers_on_id" ON "stripe_local_customers" ("id")  (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)   (0.5ms) CREATE UNIQUE INDEX "index_stripe_local_cards_on_id" ON "stripe_local_cards" ("id")  (0.5ms) CREATE INDEX "index_stripe_local_cards_on_customer_id" ON "stripe_local_cards" ("customer_id")  (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)  (0.5ms) CREATE UNIQUE INDEX "index_stripe_local_plans_on_id" ON "stripe_local_plans" ("id")  (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)  (0.5ms) CREATE UNIQUE INDEX "index_stripe_local_coupons_on_id" ON "stripe_local_coupons" ("id")  (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)  (0.7ms) CREATE INDEX "index_stripe_local_discounts_on_coupon_id_and_subscription_id" ON "stripe_local_discounts" ("coupon_id", "subscription_id")  (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)  (0.5ms) CREATE UNIQUE INDEX "index_stripe_local_subscriptions_on_id" ON "stripe_local_subscriptions" ("id")  (0.5ms) CREATE INDEX "index_stripe_local_subscriptions_on_customer_id" ON "stripe_local_subscriptions" ("customer_id")  (0.4ms) CREATE INDEX "index_stripe_local_subscriptions_on_plan_id" ON "stripe_local_subscriptions" ("plan_id")  (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)  (0.5ms) CREATE UNIQUE INDEX "index_stripe_local_invoices_on_id" ON "stripe_local_invoices" ("id")  (0.4ms) CREATE INDEX "index_stripe_local_invoices_on_customer_id" ON "stripe_local_invoices" ("customer_id")  (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)   (0.4ms) CREATE UNIQUE INDEX "index_stripe_local_line_items_on_id" ON "stripe_local_line_items" ("id")  (0.4ms) CREATE INDEX "index_stripe_local_line_items_on_invoice_id" ON "stripe_local_line_items" ("invoice_id")  (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)  (0.5ms) CREATE UNIQUE INDEX "index_stripe_local_charges_on_id" ON "stripe_local_charges" ("id")  (0.5ms) CREATE INDEX "index_stripe_local_charges_on_card_id" ON "stripe_local_charges" ("card_id")  (0.4ms) CREATE INDEX "index_stripe_local_charges_on_customer_id" ON "stripe_local_charges" ("customer_id")  (0.5ms) CREATE INDEX "index_stripe_local_charges_on_invoice_id" ON "stripe_local_charges" ("invoice_id")  (0.4ms) CREATE INDEX "index_stripe_local_charges_on_transaction_id" ON "stripe_local_charges" ("transaction_id")  (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)  (1.1ms) CREATE UNIQUE INDEX "index_stripe_local_transfers_on_id" ON "stripe_local_transfers" ("id")  (0.9ms) CREATE INDEX "index_stripe_local_transfers_on_status" ON "stripe_local_transfers" ("status")  (1.3ms) CREATE INDEX "index_stripe_local_transfers_on_transaction_id" ON "stripe_local_transfers" ("transaction_id")  (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)  (0.6ms) CREATE UNIQUE INDEX "index_stripe_local_transactions_on_id" ON "stripe_local_transactions" ("id")  (0.6ms) CREATE INDEX "index_stripe_local_transactions_on_status" ON "stripe_local_transactions" ("status")  (0.6ms) CREATE INDEX "index_transactions_on_source_id_and_source_type" ON "stripe_local_transactions" ("source_id", "source_type")  (1.6ms) CREATE TABLE "stripe_local_balances" ("id" serial primary key, "available" integer, "pending" integer, "created_at" timestamp, "updated_at" timestamp) SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131122063517"]]  (1.0ms) COMMIT ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" Client Load (2.0ms) SELECT "clients".* FROM "clients"  (0.1ms) BEGIN 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]]  (0.3ms) COMMIT Client Load (0.5ms) SELECT "clients".* FROM "clients" ORDER BY "clients"."id" DESC LIMIT 1  (0.2ms) BEGIN 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]]  (53.3ms) COMMIT  (0.1ms) BEGIN 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]]  (0.2ms) COMMIT  (0.2ms) BEGIN 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]]  (0.2ms) COMMIT ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to AddStripeCustomerIdToClients (20131122104223)  (0.1ms) BEGIN  (0.7ms) ALTER TABLE "clients" ADD COLUMN "stripe_customer_id" character varying(255) SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131122104223"]]  (0.4ms) COMMIT ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Client Load (0.5ms) SELECT "clients".* FROM "clients" ORDER BY "clients"."id" DESC LIMIT 1  (0.1ms) BEGIN 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]]  (1.9ms) COMMIT  (0.2ms) BEGIN 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]]  (0.3ms) COMMIT StripeLocal::Subscription Load (4.4ms) SELECT "stripe_local_subscriptions".* FROM "stripe_local_subscriptions" ORDER BY "stripe_local_subscriptions"."" DESC LIMIT 1 PG::SyntaxError: ERROR: zero-length delimited identifier at or near """" LINE 1: ...riptions" ORDER BY "stripe_local_subscriptions"."" DESC LI... ^ : SELECT "stripe_local_subscriptions".* FROM "stripe_local_subscriptions" ORDER BY "stripe_local_subscriptions"."" DESC LIMIT 1 ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to AddStripeCustomerIdToClients (20131122104223)  (0.1ms) BEGIN  (2.0ms) ALTER TABLE "clients" DROP "stripe_customer_id" SQL (0.5ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20131122104223'  (0.4ms) COMMIT ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to LoadStripeTables (20131122063517)  (0.1ms) BEGIN  (1.5ms) DROP TABLE "stripe_local_balances"  (0.2ms) DROP INDEX "index_transactions_on_source_id_and_source_type"  (0.2ms) DROP INDEX "index_stripe_local_transactions_on_status"  (0.1ms) DROP INDEX "index_stripe_local_transactions_on_id"  (0.4ms) DROP TABLE "stripe_local_transactions"  (0.1ms) DROP INDEX "index_stripe_local_transfers_on_transaction_id"  (0.2ms) DROP INDEX "index_stripe_local_transfers_on_status"  (0.1ms) DROP INDEX "index_stripe_local_transfers_on_id"  (0.3ms) DROP TABLE "stripe_local_transfers"  (0.1ms) DROP INDEX "index_stripe_local_charges_on_transaction_id"  (0.1ms) DROP INDEX "index_stripe_local_charges_on_invoice_id"  (0.1ms) DROP INDEX "index_stripe_local_charges_on_customer_id"  (0.1ms) DROP INDEX "index_stripe_local_charges_on_card_id"  (0.1ms) DROP INDEX "index_stripe_local_charges_on_id"  (0.5ms) DROP TABLE "stripe_local_charges"  (0.1ms) DROP INDEX "index_stripe_local_line_items_on_invoice_id"  (0.1ms) DROP INDEX "index_stripe_local_line_items_on_id"  (0.5ms) DROP TABLE "stripe_local_line_items"  (0.1ms) DROP INDEX "index_stripe_local_invoices_on_customer_id"  (0.1ms) DROP INDEX "index_stripe_local_invoices_on_id"  (0.5ms) DROP TABLE "stripe_local_invoices"  (0.2ms) DROP INDEX "index_stripe_local_subscriptions_on_plan_id"  (0.3ms) DROP INDEX "index_stripe_local_subscriptions_on_customer_id"  (0.2ms) DROP INDEX "index_stripe_local_subscriptions_on_id"  (0.4ms) DROP TABLE "stripe_local_subscriptions"  (0.1ms) DROP INDEX "index_stripe_local_discounts_on_coupon_id_and_subscription_id"  (0.5ms) DROP TABLE "stripe_local_discounts"  (0.1ms) DROP INDEX "index_stripe_local_coupons_on_id"  (0.6ms) DROP TABLE "stripe_local_coupons"  (0.1ms) DROP INDEX "index_stripe_local_plans_on_id"  (0.5ms) DROP TABLE "stripe_local_plans"  (0.1ms) DROP INDEX "index_stripe_local_cards_on_customer_id"  (0.2ms) DROP INDEX "index_stripe_local_cards_on_id"  (0.4ms) DROP TABLE "stripe_local_cards"  (0.2ms) DROP INDEX "index_stripe_local_customers_on_id"  (0.4ms) DROP TABLE "stripe_local_customers" SQL (0.3ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20131122063517'  (35.5ms) COMMIT ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to LoadStripeTables (20131122063517)  (0.1ms) BEGIN  (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)   (0.7ms) CREATE UNIQUE INDEX "index_stripe_local_customers_on_id" ON "stripe_local_customers" ("id")  (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)   (0.6ms) CREATE UNIQUE INDEX "index_stripe_local_cards_on_id" ON "stripe_local_cards" ("id")  (0.5ms) CREATE INDEX "index_stripe_local_cards_on_customer_id" ON "stripe_local_cards" ("customer_id")  (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)  (0.7ms) CREATE UNIQUE INDEX "index_stripe_local_plans_on_id" ON "stripe_local_plans" ("id")  (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)  (0.6ms) CREATE UNIQUE INDEX "index_stripe_local_coupons_on_id" ON "stripe_local_coupons" ("id")  (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)  (0.6ms) CREATE INDEX "index_stripe_local_discounts_on_coupon_id_and_subscription_id" ON "stripe_local_discounts" ("coupon_id", "subscription_id")  (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)  (0.5ms) CREATE INDEX "index_stripe_local_subscriptions_on_customer_id" ON "stripe_local_subscriptions" ("customer_id")  (0.5ms) CREATE INDEX "index_stripe_local_subscriptions_on_plan_id" ON "stripe_local_subscriptions" ("plan_id")  (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)   (0.6ms) CREATE UNIQUE INDEX "index_stripe_local_invoices_on_id" ON "stripe_local_invoices" ("id")  (1.0ms) CREATE INDEX "index_stripe_local_invoices_on_customer_id" ON "stripe_local_invoices" ("customer_id")  (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)  (0.5ms) CREATE UNIQUE INDEX "index_stripe_local_line_items_on_id" ON "stripe_local_line_items" ("id")  (0.5ms) CREATE INDEX "index_stripe_local_line_items_on_invoice_id" ON "stripe_local_line_items" ("invoice_id")  (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)   (0.6ms) CREATE UNIQUE INDEX "index_stripe_local_charges_on_id" ON "stripe_local_charges" ("id")  (0.5ms) CREATE INDEX "index_stripe_local_charges_on_card_id" ON "stripe_local_charges" ("card_id")  (0.6ms) CREATE INDEX "index_stripe_local_charges_on_customer_id" ON "stripe_local_charges" ("customer_id")  (1.0ms) CREATE INDEX "index_stripe_local_charges_on_invoice_id" ON "stripe_local_charges" ("invoice_id")  (0.7ms) CREATE INDEX "index_stripe_local_charges_on_transaction_id" ON "stripe_local_charges" ("transaction_id")  (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)   (0.7ms) CREATE UNIQUE INDEX "index_stripe_local_transfers_on_id" ON "stripe_local_transfers" ("id")  (0.6ms) CREATE INDEX "index_stripe_local_transfers_on_status" ON "stripe_local_transfers" ("status")  (0.5ms) CREATE INDEX "index_stripe_local_transfers_on_transaction_id" ON "stripe_local_transfers" ("transaction_id")  (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)   (0.6ms) CREATE UNIQUE INDEX "index_stripe_local_transactions_on_id" ON "stripe_local_transactions" ("id")  (0.5ms) CREATE INDEX "index_stripe_local_transactions_on_status" ON "stripe_local_transactions" ("status")  (0.7ms) CREATE INDEX "index_transactions_on_source_id_and_source_type" ON "stripe_local_transactions" ("source_id", "source_type")  (3.8ms) CREATE TABLE "stripe_local_balances" ("id" serial primary key, "available" integer, "pending" integer, "created_at" timestamp, "updated_at" timestamp)  SQL (0.8ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131122063517"]]  (1.4ms) COMMIT Migrating to AddStripeCustomerIdToClients (20131122104223)  (0.9ms) BEGIN  (0.8ms) ALTER TABLE "clients" ADD COLUMN "stripe_customer_id" character varying(255) SQL (0.7ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131122104223"]]  (1.3ms) COMMIT ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN 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]]  (0.3ms) COMMIT  (0.2ms) BEGIN 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]]  (0.2ms) COMMIT  (0.1ms) BEGIN 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]]  (0.4ms) COMMIT Client Load (0.6ms) SELECT "clients".* FROM "clients" ORDER BY "clients"."id" DESC LIMIT 1  (0.1ms) BEGIN 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]]  (2.0ms) COMMIT Client Load (0.6ms) SELECT "clients".* FROM "clients" ORDER BY "clients"."id" DESC LIMIT 1 Client Load (0.6ms) SELECT "clients".* FROM "clients" ORDER BY "clients"."id" DESC LIMIT 1 Client Load (0.5ms) SELECT "clients".* FROM "clients" ORDER BY "clients"."id" DESC LIMIT 1  (0.2ms) BEGIN 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]]  (84.4ms) COMMIT  (0.3ms) BEGIN 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]]  (0.6ms) COMMIT Client Load (0.5ms) SELECT "clients".* FROM "clients" ORDER BY "clients"."id" DESC LIMIT 1  (0.2ms) BEGIN 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]]  (57.4ms) COMMIT  (0.3ms) BEGIN 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]]  (0.3ms) COMMIT Client Load (0.9ms) SELECT "clients".* FROM "clients" ORDER BY "clients"."id" DESC LIMIT 1  (0.2ms) BEGIN 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]]  (1.9ms) COMMIT  (0.3ms) BEGIN 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]]  (0.6ms) COMMIT Client Load (0.5ms) SELECT "clients".* FROM "clients" ORDER BY "clients"."id" DESC LIMIT 1  (0.1ms) BEGIN 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]]  (2.0ms) COMMIT  (0.2ms) BEGIN 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]]  (0.6ms) COMMIT Client Load (1.0ms) SELECT "clients".* FROM "clients" ORDER BY "clients"."id" DESC LIMIT 1  (0.1ms) BEGIN 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]]  (60.6ms) COMMIT  (0.1ms) BEGIN 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]]  (0.6ms) COMMIT Client Load (0.6ms) SELECT "clients".* FROM "clients" ORDER BY "clients"."id" DESC LIMIT 1  (0.1ms) BEGIN 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]]  (0.5ms) COMMIT  (0.2ms) BEGIN 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]]  (0.6ms) COMMIT  (0.2ms) BEGIN 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]]  (0.6ms) COMMIT  (0.2ms) BEGIN  (0.2ms) COMMIT StripeLocal::Customer Load (0.6ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" StripeLocal::Customer Load (0.9ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" ORDER BY "stripe_local_customers"."id" DESC LIMIT 1 StripeLocal::Customer Load (0.5ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" ORDER BY "stripe_local_customers"."id" ASC LIMIT 1 StripeLocal::Customer Load (0.5ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" ORDER BY "stripe_local_customers"."id" ASC LIMIT 1 StripeLocal::Customer Load (0.5ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" ORDER BY "stripe_local_customers"."id" ASC LIMIT 1 StripeLocal::Customer Load (0.5ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" ORDER BY "stripe_local_customers"."id" ASC LIMIT 1 StripeLocal::Customer Load (1.5ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" ORDER BY "stripe_local_customers"."id" ASC LIMIT 1 Client Load (0.6ms) SELECT "clients".* FROM "clients" ORDER BY "clients"."id" DESC LIMIT 1 StripeLocal::Customer Load (0.6ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" ORDER BY "stripe_local_customers"."id" ASC LIMIT 1 Client Load (0.7ms) SELECT "clients".* FROM "clients" ORDER BY "clients"."id" DESC LIMIT 1 StripeLocal::Customer Load (1.4ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" ORDER BY "stripe_local_customers"."id" ASC LIMIT 1  (0.2ms) BEGIN 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]]  (1.7ms) COMMIT Client Load (0.6ms) SELECT "clients".* FROM "clients" ORDER BY "clients"."id" DESC LIMIT 1 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"]] Client Load (0.5ms) SELECT "clients".* FROM "clients" ORDER BY "clients"."id" DESC LIMIT 1 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"]] 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"]] 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"]] Client Load (3.9ms) SELECT "clients".* FROM "clients" ORDER BY "clients"."id" DESC LIMIT 1 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"]] 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"]] Client Load (0.5ms) SELECT "clients".* FROM "clients" ORDER BY "clients"."id" DESC LIMIT 1 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"]] StripeLocal::Invoice Load (2.4ms) SELECT "stripe_local_invoices".* FROM "stripe_local_invoices" WHERE "stripe_local_invoices"."customer_id" = $1 [["customer_id", "cus_2zIbb2qmfw4KLn"]] 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"]]