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 @@ 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"]] + ActiveRecord::SchemaMigration Load (2.4ms) SELECT "schema_migrations".* FROM "schema_migrations" + ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" +Migrating to AddStripeCustomerIdToClients (20131122104223) +  (0.1ms) BEGIN +  (8.1ms) ALTER TABLE "clients" DROP "stripe_customer_id" + SQL (2.5ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20131122104223' +  (0.5ms) 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 LoadStripeTables (20131122063517) +  (0.1ms) BEGIN +  (6.0ms) DROP TABLE "stripe_local_balances" +  (0.1ms) DROP INDEX "index_transactions_on_source_id_and_source_type" +  (0.1ms) 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.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.5ms) DROP TABLE "stripe_local_line_items" +  (0.1ms) DROP INDEX "index_stripe_local_invoices_on_customer_id" +  (0.2ms) DROP INDEX "index_stripe_local_invoices_on_id" +  (2.1ms) 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.6ms) DROP TABLE "stripe_local_subscriptions" +  (0.2ms) DROP INDEX "index_stripe_local_discounts_on_coupon_id_and_subscription_id" +  (0.5ms) DROP TABLE "stripe_local_discounts" +  (0.2ms) DROP INDEX "index_stripe_local_coupons_on_id" +  (0.4ms) DROP TABLE "stripe_local_coupons" +  (0.1ms) DROP INDEX "index_stripe_local_plans_on_id" +  (1.0ms) DROP TABLE "stripe_local_plans" +  (0.2ms) 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' +  (53.7ms) 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 LoadStripeTables (20131122063517) +  (0.1ms) BEGIN +  (5.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), "model_id" integer, "metadata" text, "created_at" timestamp, "updated_at" timestamp)  +  (0.6ms) CREATE UNIQUE INDEX "index_stripe_local_customers_on_id" ON "stripe_local_customers" ("id") +  (0.5ms) CREATE INDEX "index_stripe_local_customers_on_model_id" ON "stripe_local_customers" ("model_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.4ms) 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.0ms) 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") +  (5.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.6ms) CREATE INDEX "index_stripe_local_discounts_on_coupon_id_and_subscription_id" ON "stripe_local_discounts" ("coupon_id", "subscription_id") +  (2.1ms) 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.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") +  (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.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.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.6ms) 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.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.6ms) CREATE INDEX "index_stripe_local_charges_on_transaction_id" ON "stripe_local_charges" ("transaction_id") +  (1.0ms) 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.8ms) 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.4ms) 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.5ms) 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.5ms) CREATE INDEX "index_transactions_on_source_id_and_source_type" ON "stripe_local_transactions" ("source_id", "source_type") +  (1.3ms) 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.0ms) COMMIT + ActiveRecord::SchemaMigration Load (0.3ms) 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" + ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" + ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"