spec/dummy/log/test.log in bloom_remit-0.8.0 vs spec/dummy/log/test.log in bloom_remit-0.9.0

- old
+ new

@@ -33825,5 +33825,601 @@  (0.6ms) ROLLBACK  (0.5ms) BEGIN  (0.3ms) COMMIT  (0.4ms) BEGIN  (0.6ms) ROLLBACK + ActiveRecord::SchemaMigration Load (14.7ms) SELECT "schema_migrations".* FROM "schema_migrations" + ActiveRecord::SchemaMigration Load (0.9ms) SELECT "schema_migrations".* FROM "schema_migrations" + ActiveRecord::SchemaMigration Load (0.9ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (4.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL +  (1.9ms)  SELECT schemaname || '.' || tablename + FROM pg_tables + WHERE + tablename !~ '_prt_' AND + tablename <> 'schema_migrations' AND + schemaname = ANY (current_schemas(false)) + +  (5.2ms) select table_name from information_schema.views where table_schema = 'app_test' +  (394.9ms) TRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE; +  (1.0ms) ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL +  (0.6ms) BEGIN +  (0.5ms) COMMIT +  (0.6ms) BEGIN +  (0.7ms) SAVEPOINT active_record_1 + SQL (1.0ms) INSERT INTO "users" ("type") VALUES ($1) RETURNING "id" [["type", "SubUser"]] +  (0.6ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) SAVEPOINT active_record_1 + SQL (0.8ms) INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]] +  (0.5ms) RELEASE SAVEPOINT active_record_1 +  (0.7ms) SAVEPOINT active_record_1 + SQL (0.8ms) INSERT INTO "payments" ("type") VALUES ($1) RETURNING "id" [["type", "SubPayment"]] +  (0.5ms) RELEASE SAVEPOINT active_record_1 +  (0.7ms) SAVEPOINT active_record_1 + SQL (1.0ms) INSERT INTO "bloom_remit_txns" ("secret", "sender_type", "sender_id", "amount", "account_name", "account_id", "target_slug", "owner_id", "owner_type", "external_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["secret", "9e4c75e1-fbf0-45e7-9cd4-6f0deb8abab4"], ["sender_type", "User"], ["sender_id", "1"], ["amount", "800.0"], ["account_name", "028109090"], ["account_id", "Hooli X"], ["target_slug", "PLDT"], ["owner_id", "1"], ["owner_type", "Payment"], ["external_id", "f8346db2d56fbc2f8ba599b7"]] +  (0.6ms) RELEASE SAVEPOINT active_record_1 +  (0.8ms) ROLLBACK + ActiveRecord::SchemaMigration Load (3.8ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (226.4ms) DROP DATABASE IF EXISTS "app_test" +  (596.9ms) CREATE DATABASE "app_test" ENCODING = 'unicode' + SQL (2.7ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" +  (123.1ms) CREATE TABLE "billers" ("id" serial primary key, "slug" character varying) +  (84.4ms) CREATE TABLE "bloom_remit_responses" ("id" serial primary key, "txn_id" integer NOT NULL, "body" text NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (55.5ms) CREATE INDEX "index_bloom_remit_responses_on_txn_id" ON "bloom_remit_responses" USING btree ("txn_id") +  (79.7ms) CREATE TABLE "bloom_remit_txns" ("id" serial primary key, "status" integer DEFAULT 0 NOT NULL, "sender_id" character varying NOT NULL, "sender_type" character varying NOT NULL, "amount" decimal NOT NULL, "account_name" character varying, "account_id" character varying, "secret" uuid NOT NULL, "target_slug" character varying NOT NULL, "owner_id" character varying, "owner_type" character varying, "external_id" character varying NOT NULL, "status_description" text, "vendor_external_id" character varying)  +  (51.4ms) CREATE INDEX "index_bloom_remit_txns_on_external_id" ON "bloom_remit_txns" USING btree ("external_id") +  (39.4ms) CREATE INDEX "index_bloom_remit_txns_on_owner_id_and_owner_type" ON "bloom_remit_txns" USING btree ("owner_id", "owner_type") +  (44.2ms) CREATE INDEX "index_bloom_remit_txns_on_vendor_external_id" ON "bloom_remit_txns" USING btree ("vendor_external_id") +  (90.4ms) CREATE TABLE "payments" ("id" serial primary key, "type" character varying)  +  (73.1ms) CREATE TABLE "users" ("id" serial primary key, "email" character varying, "bloom_remit_id" character varying, "type" character varying) +  (44.3ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)  +  (44.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (1.4ms) SELECT version FROM "schema_migrations" +  (13.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20160817003323') +  (14.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20160729085500') +  (11.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20160805001840') +  (11.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20160805042105') +  (12.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20160806011259') +  (11.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20160806012210') + ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations" + ActiveRecord::SchemaMigration Load (1.2ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (224.6ms) DROP DATABASE IF EXISTS "app_test" +  (512.8ms) CREATE DATABASE "app_test" ENCODING = 'unicode' + SQL (0.8ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" +  (59.9ms) CREATE TABLE "billers" ("id" serial primary key, "slug" character varying) +  (56.9ms) CREATE TABLE "bloom_remit_responses" ("id" serial primary key, "txn_id" integer NOT NULL, "body" text NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (38.0ms) CREATE INDEX "index_bloom_remit_responses_on_txn_id" ON "bloom_remit_responses" USING btree ("txn_id") +  (53.3ms) CREATE TABLE "bloom_remit_txns" ("id" serial primary key, "status" integer DEFAULT 0 NOT NULL, "sender_id" character varying NOT NULL, "sender_type" character varying NOT NULL, "amount" decimal NOT NULL, "account_name" character varying, "account_id" character varying, "secret" uuid NOT NULL, "target_slug" character varying NOT NULL, "owner_id" character varying, "owner_type" character varying, "external_id" character varying NOT NULL, "status_description" text, "vendor_external_id" character varying)  +  (37.5ms) CREATE INDEX "index_bloom_remit_txns_on_external_id" ON "bloom_remit_txns" USING btree ("external_id") +  (32.5ms) CREATE INDEX "index_bloom_remit_txns_on_owner_id_and_owner_type" ON "bloom_remit_txns" USING btree ("owner_id", "owner_type") +  (46.9ms) CREATE INDEX "index_bloom_remit_txns_on_vendor_external_id" ON "bloom_remit_txns" USING btree ("vendor_external_id") +  (67.9ms) CREATE TABLE "payments" ("id" serial primary key, "type" character varying)  +  (61.8ms) CREATE TABLE "users" ("id" serial primary key, "email" character varying, "bloom_remit_id" character varying, "type" character varying) +  (31.9ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)  +  (37.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (1.1ms) SELECT version FROM "schema_migrations" +  (11.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20160817003323') +  (17.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20160729085500') +  (13.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20160805001840') +  (17.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20160805042105') +  (16.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20160806011259') +  (16.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20160806012210') + ActiveRecord::SchemaMigration Load (3.5ms) SELECT "schema_migrations".* FROM "schema_migrations" + ActiveRecord::SchemaMigration Load (2.3ms) SELECT "schema_migrations".* FROM "schema_migrations" +Migrating to CreateBloomRemitTxns (20160729070509) +  (0.9ms) BEGIN +  (4.4ms) CREATE TABLE "bloom_remit_txns" ("id" serial primary key, "status" integer DEFAULT 0 NOT NULL, "recipient_type" character varying NOT NULL, "recipient_id" character varying NOT NULL, "sender_id" integer NOT NULL, "sender_type" character varying NOT NULL, "amount" decimal NOT NULL, "account_name" character varying, "account_id" character varying, "secret" uuid NOT NULL)  +  (0.6ms) ROLLBACK +  (38.8ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)  +  (42.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") + ActiveRecord::SchemaMigration Load (1.0ms) SELECT "schema_migrations".* FROM "schema_migrations" +Migrating to CreateBloomRemitTxns (20160729070509) +  (0.6ms) BEGIN +  (51.8ms) CREATE TABLE "bloom_remit_txns" ("id" serial primary key, "status" integer DEFAULT 0 NOT NULL, "recipient_type" character varying NOT NULL, "recipient_id" character varying NOT NULL, "sender_id" integer NOT NULL, "sender_type" character varying NOT NULL, "amount" decimal NOT NULL, "account_name" character varying, "account_id" character varying, "secret" uuid NOT NULL)  + SQL (0.7ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160729070509"]] +  (11.9ms) COMMIT +Migrating to CreateUsers (20160729085500) +  (2.9ms) BEGIN +  (77.6ms) CREATE TABLE "users" ("id" serial primary key, "email" character varying, "bloom_remit_id" character varying)  + SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160729085500"]] +  (26.3ms) COMMIT +Migrating to CreateBillers (20160805001840) +  (2.3ms) BEGIN +  (58.8ms) CREATE TABLE "billers" ("id" serial primary key, "slug" character varying)  + SQL (5.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160805001840"]] +  (15.6ms) COMMIT +Migrating to DropRecipientFromTxns (20160805004223) +  (1.8ms) BEGIN +  (9.2ms) ALTER TABLE "bloom_remit_txns" DROP "recipient_id" +  (6.5ms) ALTER TABLE "bloom_remit_txns" DROP "recipient_type" + SQL (2.9ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160805004223"]] +  (17.2ms) COMMIT +Migrating to AddTargetSlugToBloomRemitTxns (20160805004350) +  (2.0ms) BEGIN +  (2.9ms) ALTER TABLE "bloom_remit_txns" ADD "target_slug" character varying NOT NULL + SQL (3.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160805004350"]] +  (18.0ms) COMMIT +Migrating to AddOwnerToBloomRemitTxns (20160805040950) +  (0.9ms) BEGIN +  (1.4ms) ALTER TABLE "bloom_remit_txns" ADD "owner_id" character varying +  (4.6ms) ALTER TABLE "bloom_remit_txns" ADD "owner_type" character varying +  (35.5ms) CREATE INDEX "index_bloom_remit_txns_on_owner_id_and_owner_type" ON "bloom_remit_txns" ("owner_id", "owner_type") + SQL (3.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160805040950"]] +  (14.8ms) COMMIT +Migrating to CreatePayments (20160805042105) +  (0.7ms) BEGIN +  (30.7ms) CREATE TABLE "payments" ("id" serial primary key) + SQL (0.7ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160805042105"]] +  (23.6ms) COMMIT +Migrating to ChangeTxnsSenderIdToString (20160805095308) +  (4.9ms) BEGIN +  (115.3ms) ALTER TABLE "bloom_remit_txns" ALTER COLUMN "sender_id" TYPE character varying + SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160805095308"]] +  (13.9ms) COMMIT +Migrating to AddTypeToUsers (20160806011259) +  (0.7ms) BEGIN +  (1.1ms) ALTER TABLE "users" ADD "type" character varying + SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160806011259"]] +  (12.1ms) COMMIT +Migrating to AddTypeToPayments (20160806012210) +  (0.6ms) BEGIN +  (25.1ms) ALTER TABLE "payments" ADD "type" character varying + SQL (1.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160806012210"]] +  (13.1ms) COMMIT +Migrating to CreateBloomRemitResponses (20160806054012) +  (0.7ms) BEGIN +  (56.9ms) CREATE TABLE "bloom_remit_responses" ("id" serial primary key, "txn_id" integer NOT NULL, "body" text NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (26.0ms) CREATE INDEX "index_bloom_remit_responses_on_txn_id" ON "bloom_remit_responses" ("txn_id") + SQL (0.7ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160806054012"]] +  (9.7ms) COMMIT +Migrating to AddExternalIdToBloomRemitTxns (20160808081300) +  (0.8ms) BEGIN +  (0.9ms) ALTER TABLE "bloom_remit_txns" ADD "external_id" character varying NOT NULL +  (24.9ms) CREATE INDEX "index_bloom_remit_txns_on_external_id" ON "bloom_remit_txns" ("external_id") + SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160808081300"]] +  (11.2ms) COMMIT +Migrating to AddStatusDescriptionToBloomRemitTxns (20160809043433) +  (0.7ms) BEGIN +  (0.8ms) ALTER TABLE "bloom_remit_txns" ADD "status_description" text + SQL (1.7ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160809043433"]] +  (17.8ms) COMMIT +Migrating to AddVendorExternalIdToBloomRemitTxns (20160817003323) +  (1.3ms) BEGIN +  (0.9ms) ALTER TABLE "bloom_remit_txns" ADD "vendor_external_id" character varying +  (22.0ms) CREATE INDEX "index_bloom_remit_txns_on_vendor_external_id" ON "bloom_remit_txns" ("vendor_external_id") + SQL (5.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160817003323"]] +  (12.7ms) COMMIT +Migrating to AllowNullExternalIdForTxns (20160930034811) +  (0.8ms) BEGIN +  (1.5ms) ALTER TABLE "txns" ALTER COLUMN "external_id" TYPE character varying +  (1.1ms) ROLLBACK +  (38.1ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)  +  (39.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") + ActiveRecord::SchemaMigration Load (0.9ms) SELECT "schema_migrations".* FROM "schema_migrations" +Migrating to CreateBloomRemitTxns (20160729070509) +  (0.6ms) BEGIN +  (55.4ms) CREATE TABLE "bloom_remit_txns" ("id" serial primary key, "status" integer DEFAULT 0 NOT NULL, "recipient_type" character varying NOT NULL, "recipient_id" character varying NOT NULL, "sender_id" integer NOT NULL, "sender_type" character varying NOT NULL, "amount" decimal NOT NULL, "account_name" character varying, "account_id" character varying, "secret" uuid NOT NULL)  + SQL (2.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160729070509"]] +  (17.4ms) COMMIT +Migrating to CreateUsers (20160729085500) +  (2.2ms) BEGIN +  (53.1ms) CREATE TABLE "users" ("id" serial primary key, "email" character varying, "bloom_remit_id" character varying)  + SQL (0.7ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160729085500"]] +  (12.2ms) COMMIT +Migrating to CreateBillers (20160805001840) +  (1.1ms) BEGIN +  (53.2ms) CREATE TABLE "billers" ("id" serial primary key, "slug" character varying)  + SQL (1.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160805001840"]] +  (16.3ms) COMMIT +Migrating to DropRecipientFromTxns (20160805004223) +  (0.7ms) BEGIN +  (1.1ms) ALTER TABLE "bloom_remit_txns" DROP "recipient_id" +  (0.8ms) ALTER TABLE "bloom_remit_txns" DROP "recipient_type" + SQL (1.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160805004223"]] +  (16.6ms) COMMIT +Migrating to AddTargetSlugToBloomRemitTxns (20160805004350) +  (4.0ms) BEGIN +  (0.9ms) ALTER TABLE "bloom_remit_txns" ADD "target_slug" character varying NOT NULL + SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160805004350"]] +  (14.4ms) COMMIT +Migrating to AddOwnerToBloomRemitTxns (20160805040950) +  (1.5ms) BEGIN +  (3.0ms) ALTER TABLE "bloom_remit_txns" ADD "owner_id" character varying +  (2.8ms) ALTER TABLE "bloom_remit_txns" ADD "owner_type" character varying +  (34.5ms) CREATE INDEX "index_bloom_remit_txns_on_owner_id_and_owner_type" ON "bloom_remit_txns" ("owner_id", "owner_type") + SQL (2.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160805040950"]] +  (14.6ms) COMMIT +Migrating to CreatePayments (20160805042105) +  (5.9ms) BEGIN +  (33.1ms) CREATE TABLE "payments" ("id" serial primary key) + SQL (2.9ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160805042105"]] +  (19.3ms) COMMIT +Migrating to ChangeTxnsSenderIdToString (20160805095308) +  (1.4ms) BEGIN +  (90.9ms) ALTER TABLE "bloom_remit_txns" ALTER COLUMN "sender_id" TYPE character varying + SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160805095308"]] +  (16.3ms) COMMIT +Migrating to AddTypeToUsers (20160806011259) +  (0.8ms) BEGIN +  (0.8ms) ALTER TABLE "users" ADD "type" character varying + SQL (0.8ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160806011259"]] +  (12.2ms) COMMIT +Migrating to AddTypeToPayments (20160806012210) +  (0.7ms) BEGIN +  (28.2ms) ALTER TABLE "payments" ADD "type" character varying + SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160806012210"]] +  (12.6ms) COMMIT +Migrating to CreateBloomRemitResponses (20160806054012) +  (0.7ms) BEGIN +  (44.0ms) CREATE TABLE "bloom_remit_responses" ("id" serial primary key, "txn_id" integer NOT NULL, "body" text NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (21.5ms) CREATE INDEX "index_bloom_remit_responses_on_txn_id" ON "bloom_remit_responses" ("txn_id") + SQL (1.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160806054012"]] +  (11.3ms) COMMIT +Migrating to AddExternalIdToBloomRemitTxns (20160808081300) +  (1.2ms) BEGIN +  (0.8ms) ALTER TABLE "bloom_remit_txns" ADD "external_id" character varying NOT NULL +  (37.5ms) CREATE INDEX "index_bloom_remit_txns_on_external_id" ON "bloom_remit_txns" ("external_id") + SQL (3.0ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160808081300"]] +  (15.3ms) COMMIT +Migrating to AddStatusDescriptionToBloomRemitTxns (20160809043433) +  (0.7ms) BEGIN +  (0.7ms) ALTER TABLE "bloom_remit_txns" ADD "status_description" text + SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160809043433"]] +  (12.9ms) COMMIT +Migrating to AddVendorExternalIdToBloomRemitTxns (20160817003323) +  (1.5ms) BEGIN +  (1.5ms) ALTER TABLE "bloom_remit_txns" ADD "vendor_external_id" character varying +  (32.1ms) CREATE INDEX "index_bloom_remit_txns_on_vendor_external_id" ON "bloom_remit_txns" ("vendor_external_id") + SQL (1.0ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160817003323"]] +  (13.0ms) COMMIT +Migrating to AllowNullExternalIdForTxns (20160930034811) +  (42.5ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)  +  (38.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") + ActiveRecord::SchemaMigration Load (0.9ms) SELECT "schema_migrations".* FROM "schema_migrations" +Migrating to CreateBloomRemitTxns (20160729070509) +  (0.6ms) BEGIN +  (45.1ms) CREATE TABLE "bloom_remit_txns" ("id" serial primary key, "status" integer DEFAULT 0 NOT NULL, "recipient_type" character varying NOT NULL, "recipient_id" character varying NOT NULL, "sender_id" integer NOT NULL, "sender_type" character varying NOT NULL, "amount" decimal NOT NULL, "account_name" character varying, "account_id" character varying, "secret" uuid NOT NULL)  + SQL (1.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160729070509"]] +  (12.6ms) COMMIT +Migrating to CreateUsers (20160729085500) +  (0.9ms) BEGIN +  (52.6ms) CREATE TABLE "users" ("id" serial primary key, "email" character varying, "bloom_remit_id" character varying)  + SQL (0.8ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160729085500"]] +  (10.9ms) COMMIT +Migrating to CreateBillers (20160805001840) +  (1.8ms) BEGIN +  (76.5ms) CREATE TABLE "billers" ("id" serial primary key, "slug" character varying)  + SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160805001840"]] +  (10.0ms) COMMIT +Migrating to DropRecipientFromTxns (20160805004223) +  (1.9ms) BEGIN +  (4.2ms) ALTER TABLE "bloom_remit_txns" DROP "recipient_id" +  (4.2ms) ALTER TABLE "bloom_remit_txns" DROP "recipient_type" + SQL (1.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160805004223"]] +  (15.6ms) COMMIT +Migrating to AddTargetSlugToBloomRemitTxns (20160805004350) +  (0.7ms) BEGIN +  (0.8ms) ALTER TABLE "bloom_remit_txns" ADD "target_slug" character varying NOT NULL + SQL (2.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160805004350"]] +  (17.1ms) COMMIT +Migrating to AddOwnerToBloomRemitTxns (20160805040950) +  (3.1ms) BEGIN +  (3.2ms) ALTER TABLE "bloom_remit_txns" ADD "owner_id" character varying +  (1.1ms) ALTER TABLE "bloom_remit_txns" ADD "owner_type" character varying +  (37.9ms) CREATE INDEX "index_bloom_remit_txns_on_owner_id_and_owner_type" ON "bloom_remit_txns" ("owner_id", "owner_type") + SQL (1.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160805040950"]] +  (16.9ms) COMMIT +Migrating to CreatePayments (20160805042105) +  (1.3ms) BEGIN +  (39.1ms) CREATE TABLE "payments" ("id" serial primary key) + SQL (0.9ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160805042105"]] +  (19.2ms) COMMIT +Migrating to ChangeTxnsSenderIdToString (20160805095308) +  (2.9ms) BEGIN +  (94.9ms) ALTER TABLE "bloom_remit_txns" ALTER COLUMN "sender_id" TYPE character varying + SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160805095308"]] +  (10.6ms) COMMIT +Migrating to AddTypeToUsers (20160806011259) +  (0.6ms) BEGIN +  (0.9ms) ALTER TABLE "users" ADD "type" character varying + SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160806011259"]] +  (9.7ms) COMMIT +Migrating to AddTypeToPayments (20160806012210) +  (0.6ms) BEGIN +  (23.4ms) ALTER TABLE "payments" ADD "type" character varying + SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160806012210"]] +  (14.4ms) COMMIT +Migrating to CreateBloomRemitResponses (20160806054012) +  (3.0ms) BEGIN +  (57.8ms) CREATE TABLE "bloom_remit_responses" ("id" serial primary key, "txn_id" integer NOT NULL, "body" text NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (27.4ms) CREATE INDEX "index_bloom_remit_responses_on_txn_id" ON "bloom_remit_responses" ("txn_id") + SQL (0.9ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160806054012"]] +  (17.7ms) COMMIT +Migrating to AddExternalIdToBloomRemitTxns (20160808081300) +  (1.2ms) BEGIN +  (5.4ms) ALTER TABLE "bloom_remit_txns" ADD "external_id" character varying NOT NULL +  (33.1ms) CREATE INDEX "index_bloom_remit_txns_on_external_id" ON "bloom_remit_txns" ("external_id") + SQL (0.7ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160808081300"]] +  (14.7ms) COMMIT +Migrating to AddStatusDescriptionToBloomRemitTxns (20160809043433) +  (2.4ms) BEGIN +  (1.2ms) ALTER TABLE "bloom_remit_txns" ADD "status_description" text + SQL (2.7ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160809043433"]] +  (13.1ms) COMMIT +Migrating to AddVendorExternalIdToBloomRemitTxns (20160817003323) +  (0.8ms) BEGIN +  (1.2ms) ALTER TABLE "bloom_remit_txns" ADD "vendor_external_id" character varying +  (28.9ms) CREATE INDEX "index_bloom_remit_txns_on_vendor_external_id" ON "bloom_remit_txns" ("vendor_external_id") + SQL (0.8ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160817003323"]] +  (15.5ms) COMMIT +Migrating to AllowNullExternalIdForBloomRemitTxns (20160930034811) +  (0.7ms) BEGIN +  (1.2ms) ALTER TABLE "bloom_remit_txns" ALTER COLUMN "external_id" TYPE character varying +  (0.6ms) ALTER TABLE "bloom_remit_txns" ALTER "external_id" DROP NOT NULL + SQL (1.0ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160930034811"]] +  (14.8ms) COMMIT + ActiveRecord::SchemaMigration Load (1.2ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (2.7ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete +FROM pg_constraint c +JOIN pg_class t1 ON c.conrelid = t1.oid +JOIN pg_class t2 ON c.confrelid = t2.oid +JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid +JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid +JOIN pg_namespace t3 ON c.connamespace = t3.oid +WHERE c.contype = 'f' + AND t1.relname = 'billers' + AND t3.nspname = ANY (current_schemas(false)) +ORDER BY c.conname + +  (2.5ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete +FROM pg_constraint c +JOIN pg_class t1 ON c.conrelid = t1.oid +JOIN pg_class t2 ON c.confrelid = t2.oid +JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid +JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid +JOIN pg_namespace t3 ON c.connamespace = t3.oid +WHERE c.contype = 'f' + AND t1.relname = 'bloom_remit_responses' + AND t3.nspname = ANY (current_schemas(false)) +ORDER BY c.conname + +  (2.6ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete +FROM pg_constraint c +JOIN pg_class t1 ON c.conrelid = t1.oid +JOIN pg_class t2 ON c.confrelid = t2.oid +JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid +JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid +JOIN pg_namespace t3 ON c.connamespace = t3.oid +WHERE c.contype = 'f' + AND t1.relname = 'bloom_remit_txns' + AND t3.nspname = ANY (current_schemas(false)) +ORDER BY c.conname + +  (2.5ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete +FROM pg_constraint c +JOIN pg_class t1 ON c.conrelid = t1.oid +JOIN pg_class t2 ON c.confrelid = t2.oid +JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid +JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid +JOIN pg_namespace t3 ON c.connamespace = t3.oid +WHERE c.contype = 'f' + AND t1.relname = 'payments' + AND t3.nspname = ANY (current_schemas(false)) +ORDER BY c.conname + +  (2.4ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete +FROM pg_constraint c +JOIN pg_class t1 ON c.conrelid = t1.oid +JOIN pg_class t2 ON c.confrelid = t2.oid +JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid +JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid +JOIN pg_namespace t3 ON c.connamespace = t3.oid +WHERE c.contype = 'f' + AND t1.relname = 'users' + AND t3.nspname = ANY (current_schemas(false)) +ORDER BY c.conname + + ActiveRecord::SchemaMigration Load (1.0ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (1.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL +  (2.2ms)  SELECT schemaname || '.' || tablename + FROM pg_tables + WHERE + tablename !~ '_prt_' AND + tablename <> 'schema_migrations' AND + schemaname = ANY (current_schemas(false)) + +  (1.9ms) select table_name from information_schema.views where table_schema = 'app_test' +  (358.3ms) TRUNCATE TABLE "public"."billers", "public"."users", "public"."payments", "public"."bloom_remit_responses", "public"."bloom_remit_txns" RESTART IDENTITY CASCADE; +  (0.8ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL +  (0.6ms) BEGIN +  (0.5ms) COMMIT +  (0.5ms) BEGIN +  (0.7ms) ROLLBACK +  (0.6ms) BEGIN +  (0.4ms) COMMIT +  (0.5ms) BEGIN +  (0.6ms) ROLLBACK +  (0.6ms) BEGIN + SQL (0.9ms) INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]] +  (13.5ms) COMMIT +  (0.7ms) BEGIN + SQL (1.9ms) INSERT INTO "users" ("type") VALUES ($1) RETURNING "id" [["type", "SubUser"]] +  (21.6ms) COMMIT +  (0.9ms) BEGIN + SQL (1.0ms) INSERT INTO "payments" ("type") VALUES ($1) RETURNING "id" [["type", "SubPayment"]] +  (12.9ms) COMMIT +  (0.8ms) BEGIN + SQL (1.0ms) INSERT INTO "bloom_remit_txns" ("secret", "sender_type", "sender_id", "amount", "account_name", "account_id", "target_slug", "owner_id", "owner_type", "external_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["secret", "78e86390-c7bb-4356-9b57-1de35f8aeb4c"], ["sender_type", "User"], ["sender_id", "1"], ["amount", "800.0"], ["account_name", "028109090"], ["account_id", "Hooli X"], ["target_slug", "PLDT"], ["owner_id", "1"], ["owner_type", "Payment"], ["external_id", "ec2495560413b85cd84f8bcc"]] +  (12.4ms) COMMIT + User Load (0.8ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1]] + Payment Load (0.9ms) SELECT "payments".* FROM "payments" WHERE "payments"."id" = $1 LIMIT 1 [["id", 1]] +  (0.8ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL +  (359.9ms) TRUNCATE TABLE "public"."billers", "public"."users", "public"."payments", "public"."bloom_remit_responses", "public"."bloom_remit_txns" RESTART IDENTITY CASCADE; +  (1.0ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL +  (0.7ms) BEGIN + SQL (1.4ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id" +  (10.7ms) COMMIT +  (0.9ms) BEGIN + SQL (1.4ms) INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "60e9a0da-4b67-4acf-bee7-f7d29cd04eef"], ["external_id", "6abe9b9def0a5d6a8d8854d0"], ["sender_id", "1"], ["sender_type", "User"]] +  (13.7ms) COMMIT + BloomRemit::Txn Load (1.3ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 1], ["secret", "60e9a0da-4b67-4acf-bee7-f7d29cd04eef"]] +  (1.1ms) BEGIN + SQL (2.6ms) UPDATE "bloom_remit_txns" SET "status" = $1, "status_description" = $2, "vendor_external_id" = $3 WHERE "bloom_remit_txns"."id" = $4 [["status", 1], ["status_description", "My status description"], ["vendor_external_id", "somerefno"], ["id", 1]] +  (11.5ms) COMMIT +  (0.8ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL +  (352.2ms) TRUNCATE TABLE "public"."billers", "public"."users", "public"."payments", "public"."bloom_remit_responses", "public"."bloom_remit_txns" RESTART IDENTITY CASCADE; +  (1.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL +  (0.5ms) BEGIN +  (0.5ms) COMMIT +  (0.4ms) BEGIN +  (0.5ms) ROLLBACK +  (0.5ms) BEGIN +  (0.4ms) COMMIT +  (0.5ms) BEGIN +  (1.7ms) ROLLBACK +  (0.8ms) BEGIN +  (0.5ms) COMMIT +  (0.4ms) BEGIN +  (0.8ms) ROLLBACK +  (0.6ms) BEGIN +  (0.6ms) COMMIT +  (0.5ms) BEGIN +  (0.7ms) ROLLBACK +  (0.6ms) BEGIN +  (0.5ms) COMMIT +  (0.5ms) BEGIN +  (0.5ms) ROLLBACK +  (0.6ms) BEGIN +  (0.5ms) COMMIT +  (0.4ms) BEGIN +  (0.4ms) ROLLBACK +  (0.4ms) BEGIN +  (0.4ms) COMMIT +  (0.4ms) BEGIN +  (1.4ms) ROLLBACK +  (0.6ms) BEGIN +  (0.5ms) COMMIT +  (0.5ms) BEGIN +  (0.9ms) SAVEPOINT active_record_1 + SQL (1.3ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id" +  (0.6ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) SAVEPOINT active_record_1 + SQL (1.0ms) INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "3597527b-097a-41b9-bf95-6d4068dad936"], ["external_id", "f9145fea664a67b039934157"], ["sender_id", "1"], ["sender_type", "User"]] +  (0.6ms) RELEASE SAVEPOINT active_record_1 +Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-09-30 11:55:23 +0800 +Processing by BloomRemit::Api::V1::TxnsController#post_update as JSON + Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"1", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}} + BloomRemit::Txn Load (1.0ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 1], ["secret", nil]] + Rendered text template (0.0ms) +Completed 404 Not Found in 17ms (Views: 15.4ms | ActiveRecord: 1.0ms) +Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-09-30 11:55:24 +0800 +Processing by BloomRemit::Api::V1::TxnsController#post_update as JSON + Parameters: {"secret"=>"3597527b-097a-41b9-bf95-6d4068dad936", "status"=>"paid", "id"=>"1", "txn"=>{"status"=>"paid", "secret"=>"3597527b-097a-41b9-bf95-6d4068dad936"}} + BloomRemit::Txn Load (1.3ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 1], ["secret", "3597527b-097a-41b9-bf95-6d4068dad936"]] +  (0.6ms) SAVEPOINT active_record_1 + SQL (0.8ms) UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 1], ["id", 1]] +  (0.4ms) RELEASE SAVEPOINT active_record_1 +Completed 200 OK in 8ms (Views: 0.4ms | ActiveRecord: 3.1ms) + BloomRemit::Txn Load (0.7ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1 [["id", 1]] +  (0.6ms) ROLLBACK +  (0.4ms) BEGIN +  (0.4ms) COMMIT +  (0.4ms) BEGIN +  (0.8ms) SAVEPOINT active_record_1 + SQL (0.7ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id" +  (0.5ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) SAVEPOINT active_record_1 + SQL (1.0ms) INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "ebbc4f0d-2ed9-4207-9354-4a35a56788d2"], ["external_id", "5d65f6ca013abe6f13c097ab"], ["sender_id", "2"], ["sender_type", "User"]] +  (0.7ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-09-30 11:55:24 +0800 +Processing by BloomRemit::Api::V1::TxnsController#update as JSON + Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"2", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}} + BloomRemit::Txn Load (0.9ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 2], ["secret", nil]] + Rendered text template (0.0ms) +Completed 404 Not Found in 2ms (Views: 0.3ms | ActiveRecord: 0.9ms) +Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-09-30 11:55:24 +0800 +Processing by BloomRemit::Api::V1::TxnsController#update as JSON + Parameters: {"secret"=>"ebbc4f0d-2ed9-4207-9354-4a35a56788d2", "status"=>"paid", "id"=>"2", "txn"=>{"status"=>"paid", "secret"=>"ebbc4f0d-2ed9-4207-9354-4a35a56788d2"}} + BloomRemit::Txn Load (0.9ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 2], ["secret", "ebbc4f0d-2ed9-4207-9354-4a35a56788d2"]] +  (0.9ms) SAVEPOINT active_record_1 + SQL (1.0ms) UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 1], ["id", 2]] +  (0.7ms) RELEASE SAVEPOINT active_record_1 +Completed 204 No Content in 23ms (ActiveRecord: 3.5ms) + BloomRemit::Txn Load (1.2ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1 [["id", 2]] +  (0.7ms) ROLLBACK +  (0.7ms) BEGIN +  (0.6ms) COMMIT +  (0.6ms) BEGIN +  (0.6ms) SAVEPOINT active_record_1 + SQL (1.0ms) INSERT INTO "users" ("type") VALUES ($1) RETURNING "id" [["type", "SubUser"]] +  (0.6ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) SAVEPOINT active_record_1 + SQL (0.9ms) INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]] +  (0.6ms) RELEASE SAVEPOINT active_record_1 +  (1.5ms) SAVEPOINT active_record_1 + SQL (0.9ms) INSERT INTO "payments" ("type") VALUES ($1) RETURNING "id" [["type", "SubPayment"]] +  (0.5ms) RELEASE SAVEPOINT active_record_1 +  (0.8ms) SAVEPOINT active_record_1 + SQL (1.0ms) INSERT INTO "bloom_remit_txns" ("secret", "sender_type", "sender_id", "amount", "account_name", "account_id", "target_slug", "owner_id", "owner_type", "external_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["secret", "d2f65adf-0924-4c16-91b6-bc63b96ef15d"], ["sender_type", "User"], ["sender_id", "3"], ["amount", "800.0"], ["account_name", "028109090"], ["account_id", "Hooli X"], ["target_slug", "PLDT"], ["owner_id", "1"], ["owner_type", "Payment"], ["external_id", "8c13944c69c425e285e7b1b8"]] +  (0.7ms) RELEASE SAVEPOINT active_record_1 +  (0.7ms) ROLLBACK +  (0.6ms) BEGIN +  (0.7ms) COMMIT +  (0.6ms) BEGIN +  (0.7ms) ROLLBACK +  (0.5ms) BEGIN +  (0.5ms) COMMIT +  (1.2ms) BEGIN +  (0.7ms) SAVEPOINT active_record_1 + SQL (0.9ms) INSERT INTO "payments" DEFAULT VALUES RETURNING "id" +  (0.6ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) SAVEPOINT active_record_1 + SQL (0.7ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id" +  (0.6ms) RELEASE SAVEPOINT active_record_1 +  (0.7ms) SAVEPOINT active_record_1 + SQL (0.7ms) INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "owner_id", "owner_type", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "0c3cf030-ca19-45d7-a96e-8fcf7ffbd728"], ["external_id", "0c05e32beefd0e97024f8825"], ["owner_id", "2"], ["owner_type", "Payment"], ["sender_id", "4"], ["sender_type", "User"]] +  (0.7ms) RELEASE SAVEPOINT active_record_1 +  (0.8ms) SAVEPOINT active_record_1 + SQL (1.1ms) INSERT INTO "bloom_remit_responses" ("body", "txn_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["body", "{\"i\":\"am body\"}"], ["txn_id", 4], ["created_at", "2016-09-30 03:55:24.141234"], ["updated_at", "2016-09-30 03:55:24.141234"]] +  (0.6ms) RELEASE SAVEPOINT active_record_1 +  (1.0ms) SELECT COUNT(*) FROM "bloom_remit_responses" WHERE "bloom_remit_responses"."txn_id" = $1 [["txn_id", 4]] + BloomRemit::Response Load (0.8ms) SELECT "bloom_remit_responses".* FROM "bloom_remit_responses" WHERE "bloom_remit_responses"."txn_id" = $1 ORDER BY "bloom_remit_responses"."id" ASC LIMIT 1 [["txn_id", 4]] +  (0.6ms) ROLLBACK +  (0.5ms) BEGIN +  (0.5ms) COMMIT +  (0.4ms) BEGIN +  (0.6ms) SAVEPOINT active_record_1 + SQL (0.8ms) INSERT INTO "payments" DEFAULT VALUES RETURNING "id" +  (0.6ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) SAVEPOINT active_record_1 + SQL (0.7ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id" +  (0.5ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "owner_id", "owner_type", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "d4068db1-db2e-41e3-9028-d56d18438a11"], ["external_id", "f317415d3fca29902c933c06"], ["owner_id", "3"], ["owner_type", "Payment"], ["sender_id", "5"], ["sender_type", "User"]] +  (0.6ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) SAVEPOINT active_record_1 + SQL (0.9ms) UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 7], ["id", 5]] +  (0.6ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) SAVEPOINT active_record_1 + SQL (0.8ms) INSERT INTO "bloom_remit_responses" ("body", "txn_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["body", "{\"status\":\"500\",\"error\":\"Internal Server Error\"}"], ["txn_id", 5], ["created_at", "2016-09-30 03:55:24.172343"], ["updated_at", "2016-09-30 03:55:24.172343"]] +  (0.6ms) RELEASE SAVEPOINT active_record_1 + BloomRemit::Txn Load (0.8ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1 [["id", 5]] +  (0.7ms) ROLLBACK +  (0.5ms) BEGIN +  (0.5ms) COMMIT +  (0.4ms) BEGIN +  (0.7ms) ROLLBACK +  (1.2ms) BEGIN +  (0.6ms) COMMIT +  (0.5ms) BEGIN +  (0.7ms) ROLLBACK +  (0.9ms) BEGIN +  (1.1ms) COMMIT +  (0.5ms) BEGIN +  (0.6ms) ROLLBACK +  (0.7ms) BEGIN +  (0.5ms) COMMIT +  (0.4ms) BEGIN +  (0.8ms) ROLLBACK +  (0.7ms) BEGIN +  (0.6ms) COMMIT +  (0.5ms) BEGIN +  (0.7ms) ROLLBACK