spec/dummy/log/development.log in stripe_local-0.0.2 vs spec/dummy/log/development.log in stripe_local-0.1.0
- old
+ new
@@ -1286,5 +1286,101 @@
[1m[36mStripeLocal::Subscription Load (3.4ms)[0m [1mSELECT "stripe_local_subscriptions".* FROM "stripe_local_subscriptions" WHERE "stripe_local_subscriptions"."customer_id" = $1 ORDER BY "stripe_local_subscriptions"."id" ASC LIMIT 1[0m [["customer_id", "cus_2zIbb2qmfw4KLn"]]
[1m[36mClient Load (0.5ms)[0m [1mSELECT "clients".* FROM "clients" ORDER BY "clients"."id" DESC LIMIT 1[0m
[1m[35mStripeLocal::Customer Load (1.0ms)[0m 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"]]
[1m[36mStripeLocal::Invoice Load (2.4ms)[0m [1mSELECT "stripe_local_invoices".* FROM "stripe_local_invoices" WHERE "stripe_local_invoices"."customer_id" = $1[0m [["customer_id", "cus_2zIbb2qmfw4KLn"]]
[1m[35mStripeLocal::Plan Load (1.3ms)[0m 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"]]
+ [1m[36mActiveRecord::SchemaMigration Load (2.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
+Migrating to AddStripeCustomerIdToClients (20131122104223)
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35m (8.1ms)[0m ALTER TABLE "clients" DROP "stripe_customer_id"
+ [1m[36mSQL (2.5ms)[0m [1mDELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20131122104223'[0m
+ [1m[35m (0.5ms)[0m COMMIT
+ [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
+Migrating to LoadStripeTables (20131122063517)
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35m (6.0ms)[0m DROP TABLE "stripe_local_balances"
+ [1m[36m (0.1ms)[0m [1mDROP INDEX "index_transactions_on_source_id_and_source_type"[0m
+ [1m[35m (0.1ms)[0m DROP INDEX "index_stripe_local_transactions_on_status"
+ [1m[36m (0.1ms)[0m [1mDROP INDEX "index_stripe_local_transactions_on_id"[0m
+ [1m[35m (0.4ms)[0m DROP TABLE "stripe_local_transactions"
+ [1m[36m (0.1ms)[0m [1mDROP INDEX "index_stripe_local_transfers_on_transaction_id"[0m
+ [1m[35m (0.1ms)[0m DROP INDEX "index_stripe_local_transfers_on_status"
+ [1m[36m (0.1ms)[0m [1mDROP INDEX "index_stripe_local_transfers_on_id"[0m
+ [1m[35m (0.3ms)[0m DROP TABLE "stripe_local_transfers"
+ [1m[36m (0.1ms)[0m [1mDROP INDEX "index_stripe_local_charges_on_transaction_id"[0m
+ [1m[35m (0.1ms)[0m DROP INDEX "index_stripe_local_charges_on_invoice_id"
+ [1m[36m (0.1ms)[0m [1mDROP INDEX "index_stripe_local_charges_on_customer_id"[0m
+ [1m[35m (0.1ms)[0m DROP INDEX "index_stripe_local_charges_on_card_id"
+ [1m[36m (0.1ms)[0m [1mDROP INDEX "index_stripe_local_charges_on_id"[0m
+ [1m[35m (0.5ms)[0m DROP TABLE "stripe_local_charges"
+ [1m[36m (0.1ms)[0m [1mDROP INDEX "index_stripe_local_line_items_on_invoice_id"[0m
+ [1m[35m (0.1ms)[0m DROP INDEX "index_stripe_local_line_items_on_id"
+ [1m[36m (0.5ms)[0m [1mDROP TABLE "stripe_local_line_items"[0m
+ [1m[35m (0.1ms)[0m DROP INDEX "index_stripe_local_invoices_on_customer_id"
+ [1m[36m (0.2ms)[0m [1mDROP INDEX "index_stripe_local_invoices_on_id"[0m
+ [1m[35m (2.1ms)[0m DROP TABLE "stripe_local_invoices"
+ [1m[36m (0.2ms)[0m [1mDROP INDEX "index_stripe_local_subscriptions_on_plan_id"[0m
+ [1m[35m (0.1ms)[0m DROP INDEX "index_stripe_local_subscriptions_on_customer_id"
+ [1m[36m (0.6ms)[0m [1mDROP TABLE "stripe_local_subscriptions"[0m
+ [1m[35m (0.2ms)[0m DROP INDEX "index_stripe_local_discounts_on_coupon_id_and_subscription_id"
+ [1m[36m (0.5ms)[0m [1mDROP TABLE "stripe_local_discounts"[0m
+ [1m[35m (0.2ms)[0m DROP INDEX "index_stripe_local_coupons_on_id"
+ [1m[36m (0.4ms)[0m [1mDROP TABLE "stripe_local_coupons"[0m
+ [1m[35m (0.1ms)[0m DROP INDEX "index_stripe_local_plans_on_id"
+ [1m[36m (1.0ms)[0m [1mDROP TABLE "stripe_local_plans"[0m
+ [1m[35m (0.2ms)[0m DROP INDEX "index_stripe_local_cards_on_customer_id"
+ [1m[36m (0.1ms)[0m [1mDROP INDEX "index_stripe_local_cards_on_id"[0m
+ [1m[35m (0.3ms)[0m DROP TABLE "stripe_local_cards"
+ [1m[36m (0.1ms)[0m [1mDROP INDEX "index_stripe_local_customers_on_id"[0m
+ [1m[35m (0.3ms)[0m DROP TABLE "stripe_local_customers"
+ [1m[36mSQL (0.3ms)[0m [1mDELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20131122063517'[0m
+ [1m[35m (53.7ms)[0m COMMIT
+ [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+Migrating to LoadStripeTables (20131122063517)
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36m (5.3ms)[0m [1mCREATE 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), "model_id" integer, "metadata" text, "created_at" timestamp, "updated_at" timestamp) [0m
+ [1m[35m (0.6ms)[0m CREATE UNIQUE INDEX "index_stripe_local_customers_on_id" ON "stripe_local_customers" ("id")
+ [1m[36m (0.5ms)[0m [1mCREATE INDEX "index_stripe_local_customers_on_model_id" ON "stripe_local_customers" ("model_id")[0m
+ [1m[35m (1.1ms)[0m 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)
+ [1m[36m (0.4ms)[0m [1mCREATE UNIQUE INDEX "index_stripe_local_cards_on_id" ON "stripe_local_cards" ("id")[0m
+ [1m[35m (0.5ms)[0m CREATE INDEX "index_stripe_local_cards_on_customer_id" ON "stripe_local_cards" ("customer_id")
+ [1m[36m (2.0ms)[0m [1mCREATE 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) [0m
+ [1m[35m (0.6ms)[0m CREATE UNIQUE INDEX "index_stripe_local_plans_on_id" ON "stripe_local_plans" ("id")
+ [1m[36m (1.3ms)[0m [1mCREATE 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) [0m
+ [1m[35m (0.6ms)[0m CREATE UNIQUE INDEX "index_stripe_local_coupons_on_id" ON "stripe_local_coupons" ("id")
+ [1m[36m (5.5ms)[0m [1mCREATE 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) [0m
+ [1m[35m (0.6ms)[0m CREATE INDEX "index_stripe_local_discounts_on_coupon_id_and_subscription_id" ON "stripe_local_discounts" ("coupon_id", "subscription_id")
+ [1m[36m (2.1ms)[0m [1mCREATE 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) [0m
+ [1m[35m (0.6ms)[0m CREATE INDEX "index_stripe_local_subscriptions_on_customer_id" ON "stripe_local_subscriptions" ("customer_id")
+ [1m[36m (0.8ms)[0m [1mCREATE INDEX "index_stripe_local_subscriptions_on_plan_id" ON "stripe_local_subscriptions" ("plan_id")[0m
+ [1m[35m (1.6ms)[0m 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)
+ [1m[36m (0.5ms)[0m [1mCREATE UNIQUE INDEX "index_stripe_local_invoices_on_id" ON "stripe_local_invoices" ("id")[0m
+ [1m[35m (0.5ms)[0m CREATE INDEX "index_stripe_local_invoices_on_customer_id" ON "stripe_local_invoices" ("customer_id")
+ [1m[36m (1.4ms)[0m [1mCREATE 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) [0m
+ [1m[35m (0.6ms)[0m CREATE UNIQUE INDEX "index_stripe_local_line_items_on_id" ON "stripe_local_line_items" ("id")
+ [1m[36m (0.6ms)[0m [1mCREATE INDEX "index_stripe_local_line_items_on_invoice_id" ON "stripe_local_line_items" ("invoice_id")[0m
+ [1m[35m (1.5ms)[0m 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)
+ [1m[36m (0.5ms)[0m [1mCREATE UNIQUE INDEX "index_stripe_local_charges_on_id" ON "stripe_local_charges" ("id")[0m
+ [1m[35m (0.5ms)[0m CREATE INDEX "index_stripe_local_charges_on_card_id" ON "stripe_local_charges" ("card_id")
+ [1m[36m (0.5ms)[0m [1mCREATE INDEX "index_stripe_local_charges_on_customer_id" ON "stripe_local_charges" ("customer_id")[0m
+ [1m[35m (0.6ms)[0m CREATE INDEX "index_stripe_local_charges_on_invoice_id" ON "stripe_local_charges" ("invoice_id")
+ [1m[36m (0.6ms)[0m [1mCREATE INDEX "index_stripe_local_charges_on_transaction_id" ON "stripe_local_charges" ("transaction_id")[0m
+ [1m[35m (1.0ms)[0m 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)
+ [1m[36m (0.7ms)[0m [1mCREATE UNIQUE INDEX "index_stripe_local_transfers_on_id" ON "stripe_local_transfers" ("id")[0m
+ [1m[35m (0.8ms)[0m CREATE INDEX "index_stripe_local_transfers_on_status" ON "stripe_local_transfers" ("status")
+ [1m[36m (0.5ms)[0m [1mCREATE INDEX "index_stripe_local_transfers_on_transaction_id" ON "stripe_local_transfers" ("transaction_id")[0m
+ [1m[35m (1.4ms)[0m 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)
+ [1m[36m (0.5ms)[0m [1mCREATE UNIQUE INDEX "index_stripe_local_transactions_on_id" ON "stripe_local_transactions" ("id")[0m
+ [1m[35m (0.5ms)[0m CREATE INDEX "index_stripe_local_transactions_on_status" ON "stripe_local_transactions" ("status")
+ [1m[36m (0.5ms)[0m [1mCREATE INDEX "index_transactions_on_source_id_and_source_type" ON "stripe_local_transactions" ("source_id", "source_type")[0m
+ [1m[35m (1.3ms)[0m CREATE TABLE "stripe_local_balances" ("id" serial primary key, "available" integer, "pending" integer, "created_at" timestamp, "updated_at" timestamp)
+ [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20131122063517"]]
+ [1m[35m (1.0ms)[0m COMMIT
+ [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
+ [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"