spec/dummy/log/test.log in bloom_remit-0.12.1 vs spec/dummy/log/test.log in bloom_remit-0.13.0

- old
+ new

@@ -35639,5 +35639,1987 @@  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.2ms) BEGIN  (0.2ms) ROLLBACK + ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (0.5ms) 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.6ms)  SELECT schemaname || '.' || tablename + FROM pg_tables + WHERE + tablename !~ '_prt_' AND + tablename <> 'schema_migrations' AND + schemaname = ANY (current_schemas(false)) + +  (1.3ms) select table_name from information_schema.views where table_schema = 'app_test' +  (404.7ms) TRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE; +  (0.7ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL +  (0.4ms) BEGIN +  (0.4ms) COMMIT +  (0.3ms) BEGIN +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +  (0.3ms) COMMIT +  (0.3ms) BEGIN +  (0.3ms) ROLLBACK +  (0.3ms) BEGIN + SQL (0.6ms) INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]] +  (10.3ms) COMMIT +  (0.2ms) BEGIN + SQL (0.3ms) INSERT INTO "users" ("type") VALUES ($1) RETURNING "id" [["type", "SubUser"]] +  (12.5ms) COMMIT +  (0.3ms) BEGIN + SQL (1.1ms) INSERT INTO "payments" ("type") VALUES ($1) RETURNING "id" [["type", "SubPayment"]] +  (14.5ms) COMMIT +  (0.2ms) BEGIN + SQL (0.5ms) INSERT INTO "bloom_remit_txns" ("secret", "sender_type", "sender_id", "amount", "account_name", "account_id", "target_slug", "owner_id", "owner_type", "external_id", "recipient_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11) RETURNING "id" [["secret", "05de8b1b-345a-43df-bc6c-d1c1afcc30b8"], ["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", "37bd176a279acb709d158df8"], ["recipient_id", "recipient-id"]] +  (11.8ms) COMMIT + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1]] + Payment Load (0.3ms) SELECT "payments".* FROM "payments" WHERE "payments"."id" = $1 LIMIT 1 [["id", 1]] +  (0.2ms) 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 +  (462.8ms) TRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE; +  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL +  (0.2ms) BEGIN + SQL (0.7ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id" +  (12.7ms) COMMIT +  (0.2ms) BEGIN + SQL (0.5ms) 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", "a5010696-1c6c-4561-9f5e-4f1946a3941e"], ["external_id", "581845b8fdaca43b606a7d15"], ["sender_id", "1"], ["sender_type", "User"]] +  (12.1ms) COMMIT + BloomRemit::Txn Load (0.4ms) 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", "a5010696-1c6c-4561-9f5e-4f1946a3941e"]] +  (0.2ms) BEGIN + SQL (0.3ms) UPDATE "bloom_remit_txns" SET "status" = $1, "status_description" = $2 WHERE "bloom_remit_txns"."id" = $3 [["status", 1], ["status_description", "My status description"], ["id", 1]] +  (12.8ms) COMMIT +  (0.3ms) 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 +  (366.9ms) TRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE; +  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +  (0.3ms) COMMIT +  (0.3ms) BEGIN +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) ROLLBACK +  (0.5ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +  (0.3ms) COMMIT +  (0.3ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id" +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.6ms) 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", "3d56d91a-b5c5-45bc-8c94-883e9c24a29d"], ["external_id", "b01ead171174a28dcb93f059"], ["sender_id", "1"], ["sender_type", "User"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-10-05 07:33:51 +0000 +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 (0.4ms) 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 51ms (Views: 49.5ms | ActiveRecord: 0.4ms) +Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-10-05 07:33:51 +0000 +Processing by BloomRemit::Api::V1::TxnsController#post_update as JSON + Parameters: {"secret"=>"3d56d91a-b5c5-45bc-8c94-883e9c24a29d", "status"=>"paid", "id"=>"1", "txn"=>{"status"=>"paid", "secret"=>"3d56d91a-b5c5-45bc-8c94-883e9c24a29d"}} + BloomRemit::Txn Load (0.4ms) 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", "3d56d91a-b5c5-45bc-8c94-883e9c24a29d"]] +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 1], ["id", 1]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Completed 200 OK in 8ms (Views: 0.4ms | ActiveRecord: 1.2ms) + BloomRemit::Txn Load (0.3ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1 [["id", 1]] +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id" +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) 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", "cd4ca939-be25-4d67-8549-14c662de6249"], ["external_id", "00a85e67646fee3cefb6a5f1"], ["sender_id", "2"], ["sender_type", "User"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-10-05 07:33:51 +0000 +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.5ms) 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 3ms (Views: 1.1ms | ActiveRecord: 0.5ms) +Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-10-05 07:33:51 +0000 +Processing by BloomRemit::Api::V1::TxnsController#update as JSON + Parameters: {"secret"=>"cd4ca939-be25-4d67-8549-14c662de6249", "status"=>"paid", "id"=>"2", "txn"=>{"status"=>"paid", "secret"=>"cd4ca939-be25-4d67-8549-14c662de6249"}} + BloomRemit::Txn Load (0.4ms) 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", "cd4ca939-be25-4d67-8549-14c662de6249"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 1], ["id", 2]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Completed 204 No Content in 46ms (ActiveRecord: 1.2ms) + BloomRemit::Txn Load (0.4ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1 [["id", 2]] +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "users" ("type") VALUES ($1) RETURNING "id" [["type", "SubUser"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "payments" ("type") VALUES ($1) RETURNING "id" [["type", "SubPayment"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "bloom_remit_txns" ("secret", "sender_type", "sender_id", "amount", "account_name", "account_id", "target_slug", "owner_id", "owner_type", "external_id", "recipient_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11) RETURNING "id" [["secret", "ca8d5712-933d-480d-8412-dc281f510ce7"], ["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", "e2bbb88776e3a4b51032e978"], ["recipient_id", "recipient-id"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "payments" DEFAULT VALUES RETURNING "id" +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id" +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) 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", "204adcd2-5f5e-4955-ac17-6329b528b22c"], ["external_id", "bd71b3d39fb01212c6852b3d"], ["owner_id", "2"], ["owner_type", "Payment"], ["sender_id", "4"], ["sender_type", "User"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) SAVEPOINT active_record_1 + SQL (0.5ms) 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-10-05 07:33:51.736008"], ["updated_at", "2016-10-05 07:33:51.736008"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) SELECT COUNT(*) FROM "bloom_remit_responses" WHERE "bloom_remit_responses"."txn_id" = $1 [["txn_id", 4]] + BloomRemit::Response Load (0.4ms) 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.4ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "payments" DEFAULT VALUES RETURNING "id" +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id" +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) 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", "235cfe1b-1112-440c-9aff-d29c906b55f8"], ["external_id", "2f7f410197faba0d27f95ce1"], ["owner_id", "3"], ["owner_type", "Payment"], ["sender_id", "5"], ["sender_type", "User"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 7], ["id", 5]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.3ms) 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-10-05 07:33:51.771326"], ["updated_at", "2016-10-05 07:33:51.771326"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + BloomRemit::Txn Load (0.3ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1 [["id", 5]] +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN +  (0.4ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.3ms) BEGIN +  (0.2ms) ROLLBACK + ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (0.7ms) 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.4ms)  SELECT schemaname || '.' || tablename + FROM pg_tables + WHERE + tablename !~ '_prt_' AND + tablename <> 'schema_migrations' AND + schemaname = ANY (current_schemas(false)) + +  (2.3ms) select table_name from information_schema.views where table_schema = 'app_test' +  (390.4ms) TRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE; +  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL +  (0.4ms) BEGIN +  (0.8ms) COMMIT +  (0.4ms) BEGIN +  (0.3ms) ROLLBACK +  (0.3ms) BEGIN +  (0.4ms) COMMIT +  (0.4ms) BEGIN +  (0.3ms) ROLLBACK +  (0.4ms) BEGIN + SQL (0.6ms) INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]] +  (12.0ms) COMMIT +  (0.3ms) BEGIN + SQL (0.7ms) INSERT INTO "users" ("type") VALUES ($1) RETURNING "id" [["type", "SubUser"]] +  (13.5ms) COMMIT +  (0.3ms) BEGIN + SQL (0.5ms) INSERT INTO "payments" ("type") VALUES ($1) RETURNING "id" [["type", "SubPayment"]] +  (13.9ms) COMMIT +  (0.3ms) BEGIN + SQL (0.7ms) INSERT INTO "bloom_remit_txns" ("secret", "sender_type", "sender_id", "amount", "account_name", "account_id", "target_slug", "owner_id", "owner_type", "external_id", "recipient_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11) RETURNING "id" [["secret", "6db44e38-6e16-4403-b7c7-55c0a403f14e"], ["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", "143713a066c4c4f3f348cc33"], ["recipient_id", "recipient-id"]] +  (12.3ms) COMMIT + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1]] + Payment Load (0.4ms) SELECT "payments".* FROM "payments" WHERE "payments"."id" = $1 LIMIT 1 [["id", 1]] +  (0.4ms) 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 +  (439.4ms) TRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE; +  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL +  (0.4ms) BEGIN + SQL (0.9ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id" +  (14.4ms) COMMIT +  (0.3ms) BEGIN + SQL (0.8ms) 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", "8c3c8937-c7be-42e5-9bc5-f82c5f97c477"], ["external_id", "8d787287c899e510fa975c14"], ["sender_id", "1"], ["sender_type", "User"]] +  (13.0ms) COMMIT + BloomRemit::Txn Load (0.5ms) 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", "8c3c8937-c7be-42e5-9bc5-f82c5f97c477"]] +  (0.4ms) BEGIN + SQL (0.5ms) 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", "vextid"], ["id", 1]] +  (13.2ms) COMMIT +  (0.4ms) 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 +  (385.2ms) TRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE; +  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL +  (0.4ms) BEGIN +  (0.4ms) COMMIT +  (0.3ms) BEGIN +  (0.4ms) ROLLBACK +  (0.3ms) BEGIN +  (0.3ms) COMMIT +  (0.3ms) BEGIN +  (0.5ms) ROLLBACK +  (0.5ms) BEGIN +  (0.5ms) COMMIT +  (0.4ms) BEGIN +  (0.3ms) ROLLBACK +  (0.3ms) BEGIN +  (0.4ms) COMMIT +  (0.3ms) BEGIN +  (0.3ms) ROLLBACK +  (0.3ms) BEGIN +  (0.4ms) COMMIT +  (0.4ms) BEGIN +  (0.4ms) ROLLBACK +  (0.3ms) BEGIN +  (0.3ms) COMMIT +  (0.3ms) BEGIN +  (0.3ms) ROLLBACK +  (0.3ms) BEGIN +  (0.3ms) COMMIT +  (0.3ms) BEGIN +  (0.5ms) ROLLBACK +  (0.4ms) BEGIN +  (0.3ms) COMMIT +  (0.3ms) BEGIN +  (0.4ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id" +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) SAVEPOINT active_record_1 + SQL (0.8ms) 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", "f925a204-dcc4-4b6a-bc03-ee340d655618"], ["external_id", "4cfb292a3acbaed11cf4b6f1"], ["sender_id", "1"], ["sender_type", "User"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-10-05 07:34:30 +0000 +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 (0.5ms) 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 69ms (Views: 66.9ms | ActiveRecord: 0.5ms) +Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-10-05 07:34:30 +0000 +Processing by BloomRemit::Api::V1::TxnsController#post_update as JSON + Parameters: {"secret"=>"f925a204-dcc4-4b6a-bc03-ee340d655618", "status"=>"paid", "id"=>"1", "txn"=>{"status"=>"paid", "secret"=>"f925a204-dcc4-4b6a-bc03-ee340d655618"}} + BloomRemit::Txn Load (0.5ms) 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", "f925a204-dcc4-4b6a-bc03-ee340d655618"]] +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.5ms) UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 1], ["id", 1]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Completed 200 OK in 8ms (Views: 0.4ms | ActiveRecord: 1.6ms) + BloomRemit::Txn Load (0.4ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1 [["id", 1]] +  (0.4ms) ROLLBACK +  (0.4ms) BEGIN +  (0.5ms) COMMIT +  (0.3ms) BEGIN +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id" +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.5ms) 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", "49c744b6-5fb5-4722-9f6c-cf2a3d517689"], ["external_id", "b8d2ee1c0ce70a93a9226a94"], ["sender_id", "2"], ["sender_type", "User"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-10-05 07:34:30 +0000 +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.5ms) 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 3ms (Views: 0.8ms | ActiveRecord: 0.5ms) +Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-10-05 07:34:30 +0000 +Processing by BloomRemit::Api::V1::TxnsController#update as JSON + Parameters: {"secret"=>"49c744b6-5fb5-4722-9f6c-cf2a3d517689", "status"=>"paid", "id"=>"2", "txn"=>{"status"=>"paid", "secret"=>"49c744b6-5fb5-4722-9f6c-cf2a3d517689"}} + BloomRemit::Txn Load (0.6ms) 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", "49c744b6-5fb5-4722-9f6c-cf2a3d517689"]] +  (0.4ms) SAVEPOINT active_record_1 + SQL (0.5ms) UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 1], ["id", 2]] +  (0.4ms) RELEASE SAVEPOINT active_record_1 +Completed 204 No Content in 48ms (ActiveRecord: 1.9ms) + BloomRemit::Txn Load (0.9ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1 [["id", 2]] +  (0.5ms) ROLLBACK +  (0.5ms) BEGIN +  (0.5ms) COMMIT +  (0.7ms) BEGIN +  (0.4ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "users" ("type") VALUES ($1) RETURNING "id" [["type", "SubUser"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.7ms) INSERT INTO "payments" ("type") VALUES ($1) RETURNING "id" [["type", "SubPayment"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) SAVEPOINT active_record_1 + SQL (0.9ms) INSERT INTO "bloom_remit_txns" ("secret", "sender_type", "sender_id", "amount", "account_name", "account_id", "target_slug", "owner_id", "owner_type", "external_id", "recipient_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11) RETURNING "id" [["secret", "be8744bb-6f1c-4658-95e9-4d5b0bc591a2"], ["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", "f8c45e4bbd408f3842704594"], ["recipient_id", "recipient-id"]] +  (0.6ms) RELEASE SAVEPOINT active_record_1 +  (1.6ms) ROLLBACK +  (0.4ms) BEGIN +  (0.4ms) COMMIT +  (0.5ms) BEGIN +  (0.4ms) ROLLBACK +  (0.3ms) BEGIN +  (0.3ms) COMMIT +  (0.4ms) BEGIN +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "payments" DEFAULT VALUES RETURNING "id" +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id" +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.4ms) 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", "4a03405d-1152-477c-b5b9-9b9cf0304304"], ["external_id", "b3db1b94fe5d710d76dd3247"], ["owner_id", "2"], ["owner_type", "Payment"], ["sender_id", "4"], ["sender_type", "User"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.6ms) 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-10-05 07:34:30.544261"], ["updated_at", "2016-10-05 07:34:30.544261"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) SELECT COUNT(*) FROM "bloom_remit_responses" WHERE "bloom_remit_responses"."txn_id" = $1 [["txn_id", 4]] + BloomRemit::Response Load (0.4ms) 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.3ms) ROLLBACK +  (0.3ms) BEGIN +  (0.4ms) COMMIT +  (0.9ms) BEGIN +  (0.4ms) SAVEPOINT active_record_1 + SQL (0.7ms) INSERT INTO "payments" DEFAULT VALUES RETURNING "id" +  (0.4ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id" +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.5ms) 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", "bd3581e8-474d-4ee9-a969-15151eb23032"], ["external_id", "2dfcbb3d85eb717e996304d4"], ["owner_id", "3"], ["owner_type", "Payment"], ["sender_id", "5"], ["sender_type", "User"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) SAVEPOINT active_record_1 + SQL (0.6ms) UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 7], ["id", 5]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.4ms) 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-10-05 07:34:30.587551"], ["updated_at", "2016-10-05 07:34:30.587551"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 + BloomRemit::Txn Load (0.5ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1 [["id", 5]] +  (0.4ms) ROLLBACK +  (0.4ms) BEGIN +  (0.6ms) COMMIT +  (0.4ms) BEGIN +  (0.5ms) ROLLBACK +  (0.3ms) BEGIN +  (0.5ms) COMMIT +  (0.2ms) BEGIN +  (0.3ms) ROLLBACK +  (0.4ms) BEGIN +  (0.5ms) COMMIT +  (0.8ms) BEGIN +  (0.3ms) ROLLBACK +  (0.3ms) BEGIN +  (0.4ms) COMMIT +  (0.6ms) BEGIN +  (0.4ms) ROLLBACK +  (1.1ms) BEGIN +  (0.3ms) COMMIT +  (0.4ms) BEGIN +  (0.2ms) ROLLBACK + ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (0.6ms) 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.6ms)  SELECT schemaname || '.' || tablename + FROM pg_tables + WHERE + tablename !~ '_prt_' AND + tablename <> 'schema_migrations' AND + schemaname = ANY (current_schemas(false)) + +  (1.2ms) select table_name from information_schema.views where table_schema = 'app_test' +  (440.8ms) TRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE; +  (0.6ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL +  (0.4ms) BEGIN +  (0.3ms) COMMIT +  (0.4ms) BEGIN +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.3ms) BEGIN +  (0.3ms) ROLLBACK +  (0.4ms) BEGIN + SQL (0.7ms) INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]] +  (14.2ms) COMMIT +  (0.3ms) BEGIN + SQL (0.4ms) INSERT INTO "users" ("type") VALUES ($1) RETURNING "id" [["type", "SubUser"]] +  (15.7ms) COMMIT +  (0.3ms) BEGIN + SQL (0.5ms) INSERT INTO "payments" ("type") VALUES ($1) RETURNING "id" [["type", "SubPayment"]] +  (14.5ms) COMMIT +  (0.3ms) BEGIN + SQL (0.7ms) INSERT INTO "bloom_remit_txns" ("secret", "sender_type", "sender_id", "amount", "account_name", "account_id", "target_slug", "owner_id", "owner_type", "external_id", "recipient_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11) RETURNING "id" [["secret", "4f0672bd-87fb-47f7-b69f-733120dd4778"], ["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", "92ee615295cdcdfed3da73fd"], ["recipient_id", "recipient-id"]] +  (14.2ms) COMMIT + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1]] + Payment Load (0.2ms) SELECT "payments".* FROM "payments" WHERE "payments"."id" = $1 LIMIT 1 [["id", 1]] +  (0.3ms) 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 +  (433.1ms) TRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE; +  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL +  (0.4ms) BEGIN + SQL (1.0ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id" +  (11.4ms) COMMIT +  (0.2ms) BEGIN + SQL (0.5ms) 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", "56372880-bf1b-442a-b258-bfeaf5b532ba"], ["external_id", "cfb82a2d162cc9c0fd280f97"], ["sender_id", "1"], ["sender_type", "User"]] +  (14.3ms) COMMIT + BloomRemit::Txn Load (0.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", "56372880-bf1b-442a-b258-bfeaf5b532ba"]] +  (0.2ms) BEGIN + SQL (0.3ms) 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", "vextid"], ["id", 1]] +  (12.3ms) COMMIT +  (0.2ms) 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 +  (423.3ms) TRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE; +  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL +  (0.3ms) BEGIN +  (0.4ms) COMMIT +  (0.3ms) BEGIN +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.4ms) COMMIT +  (0.3ms) BEGIN +  (0.2ms) ROLLBACK +  (0.4ms) BEGIN +  (0.3ms) COMMIT +  (0.4ms) BEGIN +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.4ms) COMMIT +  (0.4ms) BEGIN +  (0.4ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.3ms) COMMIT +  (0.3ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id" +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.6ms) 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", "1e9491a3-7a02-4587-ac14-4620ebf5d767"], ["external_id", "fae7670cb447fd515351e1b6"], ["sender_id", "1"], ["sender_type", "User"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-10-05 07:35:00 +0000 +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 (0.4ms) 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 54ms (Views: 51.7ms | ActiveRecord: 0.4ms) +Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-10-05 07:35:00 +0000 +Processing by BloomRemit::Api::V1::TxnsController#post_update as JSON + Parameters: {"secret"=>"1e9491a3-7a02-4587-ac14-4620ebf5d767", "status"=>"paid", "id"=>"1", "txn"=>{"status"=>"paid", "secret"=>"1e9491a3-7a02-4587-ac14-4620ebf5d767"}} + BloomRemit::Txn Load (0.4ms) 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", "1e9491a3-7a02-4587-ac14-4620ebf5d767"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 1], ["id", 1]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Completed 200 OK in 8ms (Views: 0.5ms | ActiveRecord: 1.1ms) + BloomRemit::Txn Load (0.3ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1 [["id", 1]] +  (0.2ms) ROLLBACK +  (0.3ms) BEGIN +  (0.3ms) COMMIT +  (0.3ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id" +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.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", "cda186ec-cfc6-46ff-bc26-2d72c5629223"], ["external_id", "4f7e91da3af3c9a36f4eaf39"], ["sender_id", "2"], ["sender_type", "User"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-10-05 07:35:00 +0000 +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.3ms) 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.8ms | ActiveRecord: 0.3ms) +Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-10-05 07:35:00 +0000 +Processing by BloomRemit::Api::V1::TxnsController#update as JSON + Parameters: {"secret"=>"cda186ec-cfc6-46ff-bc26-2d72c5629223", "status"=>"paid", "id"=>"2", "txn"=>{"status"=>"paid", "secret"=>"cda186ec-cfc6-46ff-bc26-2d72c5629223"}} + BloomRemit::Txn Load (0.3ms) 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", "cda186ec-cfc6-46ff-bc26-2d72c5629223"]] +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 1], ["id", 2]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Completed 204 No Content in 42ms (ActiveRecord: 1.2ms) + BloomRemit::Txn Load (0.4ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1 [["id", 2]] +  (0.4ms) ROLLBACK +  (0.2ms) BEGIN +  (0.4ms) COMMIT +  (0.6ms) BEGIN +  (0.4ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "users" ("type") VALUES ($1) RETURNING "id" [["type", "SubUser"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "payments" ("type") VALUES ($1) RETURNING "id" [["type", "SubPayment"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "bloom_remit_txns" ("secret", "sender_type", "sender_id", "amount", "account_name", "account_id", "target_slug", "owner_id", "owner_type", "external_id", "recipient_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11) RETURNING "id" [["secret", "7aba3cb9-9c6a-4d89-b72b-02805cdaa404"], ["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", "63316585f056a189299147d4"], ["recipient_id", "recipient-id"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.3ms) COMMIT +  (0.3ms) BEGIN +  (0.4ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "payments" DEFAULT VALUES RETURNING "id" +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id" +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) 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", "b8dfb8c3-b44f-4485-9d00-3355129f5eee"], ["external_id", "1750d1ace759e5a589e8a6cb"], ["owner_id", "2"], ["owner_type", "Payment"], ["sender_id", "4"], ["sender_type", "User"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) 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-10-05 07:35:01.041154"], ["updated_at", "2016-10-05 07:35:01.041154"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "bloom_remit_responses" WHERE "bloom_remit_responses"."txn_id" = $1 [["txn_id", 4]] + BloomRemit::Response Load (0.3ms) 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.2ms) ROLLBACK +  (0.3ms) BEGIN +  (0.3ms) COMMIT +  (0.3ms) BEGIN +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "payments" DEFAULT VALUES RETURNING "id" +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id" +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) 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", "9f6247ec-6448-4146-b28d-0d19de7ae099"], ["external_id", "d11ac26fe7085e003070704b"], ["owner_id", "3"], ["owner_type", "Payment"], ["sender_id", "5"], ["sender_type", "User"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 7], ["id", 5]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) 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-10-05 07:35:01.073774"], ["updated_at", "2016-10-05 07:35:01.073774"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + BloomRemit::Txn Load (0.4ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1 [["id", 5]] +  (0.2ms) ROLLBACK +  (0.3ms) BEGIN +  (0.3ms) COMMIT +  (0.3ms) BEGIN +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) ROLLBACK +  (0.3ms) BEGIN +  (0.3ms) COMMIT +  (0.3ms) BEGIN +  (0.2ms) ROLLBACK + ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (0.4ms) 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.2ms)  SELECT schemaname || '.' || tablename + FROM pg_tables + WHERE + tablename !~ '_prt_' AND + tablename <> 'schema_migrations' AND + schemaname = ANY (current_schemas(false)) + +  (1.0ms) select table_name from information_schema.views where table_schema = 'app_test' +  (417.9ms) TRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE; +  (0.6ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) ROLLBACK +  (0.3ms) BEGIN +  (0.2ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN + SQL (0.5ms) INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]] +  (13.1ms) COMMIT +  (0.2ms) BEGIN + SQL (0.3ms) INSERT INTO "users" ("type") VALUES ($1) RETURNING "id" [["type", "SubUser"]] +  (11.5ms) COMMIT +  (0.5ms) BEGIN + SQL (0.5ms) INSERT INTO "payments" ("type") VALUES ($1) RETURNING "id" [["type", "SubPayment"]] +  (9.8ms) COMMIT +  (0.2ms) BEGIN + SQL (0.5ms) INSERT INTO "bloom_remit_txns" ("secret", "sender_type", "sender_id", "amount", "account_name", "account_id", "target_slug", "owner_id", "owner_type", "external_id", "recipient_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11) RETURNING "id" [["secret", "ef608782-4eb8-4d90-9487-4963551717b8"], ["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", "41ac0f0d7e9497a77317dca4"], ["recipient_id", "recipient-id"]] +  (10.9ms) COMMIT + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1]] + Payment Load (0.3ms) SELECT "payments".* FROM "payments" WHERE "payments"."id" = $1 LIMIT 1 [["id", 1]] +  (0.2ms) 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 +  (376.4ms) TRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE; +  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL +  (0.2ms) BEGIN + SQL (0.5ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id" +  (8.4ms) COMMIT +  (0.2ms) BEGIN + SQL (0.5ms) 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", "ceb184a5-5c35-48b2-b160-4a10ca2c6e1c"], ["external_id", "2f8b88ffe8be2ecb4437d849"], ["sender_id", "1"], ["sender_type", "User"]] +  (13.2ms) COMMIT + BloomRemit::Txn Load (0.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", "ceb184a5-5c35-48b2-b160-4a10ca2c6e1c"]] +  (0.2ms) BEGIN + SQL (0.3ms) 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", "vextid"], ["id", 1]] +  (11.5ms) COMMIT +  (0.2ms) 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 +  (424.0ms) TRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE; +  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL +  (0.2ms) BEGIN +  (0.3ms) COMMIT +  (0.3ms) BEGIN +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) ROLLBACK +  (0.4ms) BEGIN +  (0.3ms) COMMIT +  (0.2ms) BEGIN +  (0.3ms) ROLLBACK +  (0.6ms) BEGIN +  (0.3ms) COMMIT +  (0.3ms) BEGIN +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN +  (0.4ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +  (0.3ms) COMMIT +  (0.3ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id" +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.6ms) 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", "e927b3ee-c48f-478a-96fc-cf9db28dec16"], ["external_id", "03e69e682bbeea2587891f4d"], ["sender_id", "1"], ["sender_type", "User"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-10-05 07:36:22 +0000 +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 (0.4ms) 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 56ms (Views: 54.6ms | ActiveRecord: 0.4ms) +Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-10-05 07:36:22 +0000 +Processing by BloomRemit::Api::V1::TxnsController#post_update as JSON + Parameters: {"secret"=>"e927b3ee-c48f-478a-96fc-cf9db28dec16", "status"=>"paid", "id"=>"1", "txn"=>{"status"=>"paid", "secret"=>"e927b3ee-c48f-478a-96fc-cf9db28dec16"}} + BloomRemit::Txn Load (0.4ms) 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", "e927b3ee-c48f-478a-96fc-cf9db28dec16"]] +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 1], ["id", 1]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Completed 200 OK in 7ms (Views: 0.4ms | ActiveRecord: 1.1ms) + BloomRemit::Txn Load (0.2ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1 [["id", 1]] +  (0.3ms) ROLLBACK +  (0.3ms) BEGIN +  (0.3ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id" +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) 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", "bdfdd8a9-b1cd-4cb5-ab5f-bf22c5ea3ef5"], ["external_id", "6499273164d90fc7fcccb72f"], ["sender_id", "2"], ["sender_type", "User"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-10-05 07:36:22 +0000 +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.4ms) 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 3ms (Views: 0.9ms | ActiveRecord: 0.4ms) +Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-10-05 07:36:22 +0000 +Processing by BloomRemit::Api::V1::TxnsController#update as JSON + Parameters: {"secret"=>"bdfdd8a9-b1cd-4cb5-ab5f-bf22c5ea3ef5", "status"=>"paid", "id"=>"2", "txn"=>{"status"=>"paid", "secret"=>"bdfdd8a9-b1cd-4cb5-ab5f-bf22c5ea3ef5"}} + BloomRemit::Txn Load (0.4ms) 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", "bdfdd8a9-b1cd-4cb5-ab5f-bf22c5ea3ef5"]] +  (0.6ms) SAVEPOINT active_record_1 + SQL (0.4ms) UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 1], ["id", 2]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Completed 204 No Content in 46ms (ActiveRecord: 1.6ms) + BloomRemit::Txn Load (0.4ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1 [["id", 2]] +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.3ms) COMMIT +  (0.3ms) BEGIN +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "users" ("type") VALUES ($1) RETURNING "id" [["type", "SubUser"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.7ms) INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "payments" ("type") VALUES ($1) RETURNING "id" [["type", "SubPayment"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "bloom_remit_txns" ("secret", "sender_type", "sender_id", "amount", "account_name", "account_id", "target_slug", "owner_id", "owner_type", "external_id", "recipient_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11) RETURNING "id" [["secret", "63138db0-a6ef-4fa1-93b4-28439efd3cf1"], ["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", "6204e7561a823698bb68b087"], ["recipient_id", "recipient-id"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN +  (0.4ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "payments" DEFAULT VALUES RETURNING "id" +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id" +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) 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", "37fd79a5-609f-49cb-89a3-3b98aceb7a95"], ["external_id", "a3cc22c6073f6279286197cd"], ["owner_id", "2"], ["owner_type", "Payment"], ["sender_id", "4"], ["sender_type", "User"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.5ms) 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-10-05 07:36:22.702281"], ["updated_at", "2016-10-05 07:36:22.702281"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT COUNT(*) FROM "bloom_remit_responses" WHERE "bloom_remit_responses"."txn_id" = $1 [["txn_id", 4]] + BloomRemit::Response Load (0.3ms) 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.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.3ms) COMMIT +  (0.3ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.9ms) INSERT INTO "payments" DEFAULT VALUES RETURNING "id" +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id" +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) 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", "55b2b983-5d9f-44a2-ba9b-93bb7004993b"], ["external_id", "00390bda3063b74946c1d904"], ["owner_id", "3"], ["owner_type", "Payment"], ["sender_id", "5"], ["sender_type", "User"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.4ms) UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 7], ["id", 5]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) 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-10-05 07:36:22.736446"], ["updated_at", "2016-10-05 07:36:22.736446"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + BloomRemit::Txn Load (0.4ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1 [["id", 5]] +  (0.2ms) ROLLBACK +  (0.3ms) BEGIN +  (0.3ms) COMMIT +  (0.3ms) BEGIN +  (0.3ms) ROLLBACK +  (0.4ms) BEGIN +  (0.2ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) ROLLBACK + ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (0.4ms) 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.3ms)  SELECT schemaname || '.' || tablename + FROM pg_tables + WHERE + tablename !~ '_prt_' AND + tablename <> 'schema_migrations' AND + schemaname = ANY (current_schemas(false)) + +  (1.1ms) select table_name from information_schema.views where table_schema = 'app_test' +  (462.0ms) TRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE; +  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL +  (0.4ms) BEGIN +  (0.4ms) COMMIT +  (0.3ms) BEGIN +  (0.3ms) ROLLBACK +  (0.3ms) BEGIN +  (0.3ms) COMMIT +  (0.3ms) BEGIN +  (0.3ms) ROLLBACK +  (0.3ms) BEGIN + SQL (1.9ms) INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]] +  (14.4ms) COMMIT +  (0.3ms) BEGIN + SQL (0.5ms) INSERT INTO "users" ("type") VALUES ($1) RETURNING "id" [["type", "SubUser"]] +  (11.3ms) COMMIT +  (0.3ms) BEGIN + SQL (0.6ms) INSERT INTO "payments" ("type") VALUES ($1) RETURNING "id" [["type", "SubPayment"]] +  (15.3ms) COMMIT +  (0.3ms) BEGIN + SQL (0.7ms) INSERT INTO "bloom_remit_txns" ("secret", "sender_type", "sender_id", "amount", "account_name", "account_id", "target_slug", "owner_id", "owner_type", "external_id", "recipient_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11) RETURNING "id" [["secret", "24230b91-2df7-4505-ac77-89181e5bc2ae"], ["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", "e92823aabc312cafb077491c"], ["recipient_id", "recipient-id"]] +  (11.9ms) COMMIT + User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1]] + Payment Load (0.5ms) SELECT "payments".* FROM "payments" WHERE "payments"."id" = $1 LIMIT 1 [["id", 1]] +  (0.5ms) 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 +  (437.4ms) TRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE; +  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL +  (0.3ms) BEGIN + SQL (1.0ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id" +  (14.9ms) COMMIT +  (0.3ms) BEGIN + SQL (0.6ms) 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", "0267da3a-e722-41e6-bcae-768a82e54608"], ["external_id", "c4ee991f61f2b4559b1f02d6"], ["sender_id", "1"], ["sender_type", "User"]] +  (12.6ms) COMMIT + BloomRemit::Txn Load (0.5ms) 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", "0267da3a-e722-41e6-bcae-768a82e54608"]] +  (0.3ms) BEGIN + SQL (0.4ms) 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", "vextid"], ["id", 1]] +  (11.9ms) COMMIT +  (0.2ms) 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 +  (430.6ms) TRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE; +  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.3ms) BEGIN +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN +  (0.5ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN +  (0.4ms) ROLLBACK +  (0.1ms) BEGIN +  (0.4ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.3ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id" +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.8ms) 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", "2ec64dde-e293-43fa-9810-48d8a1da765f"], ["external_id", "918f1fc489e9f3c57fa89ab0"], ["sender_id", "1"], ["sender_type", "User"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-10-05 07:37:12 +0000 +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 (0.5ms) 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 47ms (Views: 45.3ms | ActiveRecord: 0.5ms) +Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-10-05 07:37:12 +0000 +Processing by BloomRemit::Api::V1::TxnsController#post_update as JSON + Parameters: {"secret"=>"2ec64dde-e293-43fa-9810-48d8a1da765f", "status"=>"paid", "id"=>"1", "txn"=>{"status"=>"paid", "secret"=>"2ec64dde-e293-43fa-9810-48d8a1da765f"}} + BloomRemit::Txn Load (0.4ms) 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", "2ec64dde-e293-43fa-9810-48d8a1da765f"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 1], ["id", 1]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Completed 200 OK in 8ms (Views: 0.5ms | ActiveRecord: 1.1ms) + BloomRemit::Txn Load (0.3ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1 [["id", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) COMMIT +  (0.1ms) BEGIN +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id" +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) 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", "5cbb6c6b-a13f-4375-906b-90eb1fe24680"], ["external_id", "53199492ddea375625eaad09"], ["sender_id", "2"], ["sender_type", "User"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-10-05 07:37:12 +0000 +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.3ms) 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.8ms | ActiveRecord: 0.3ms) +Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-10-05 07:37:12 +0000 +Processing by BloomRemit::Api::V1::TxnsController#update as JSON + Parameters: {"secret"=>"5cbb6c6b-a13f-4375-906b-90eb1fe24680", "status"=>"paid", "id"=>"2", "txn"=>{"status"=>"paid", "secret"=>"5cbb6c6b-a13f-4375-906b-90eb1fe24680"}} + BloomRemit::Txn Load (0.4ms) 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", "5cbb6c6b-a13f-4375-906b-90eb1fe24680"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 1], ["id", 2]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Completed 204 No Content in 47ms (ActiveRecord: 1.2ms) + BloomRemit::Txn Load (0.4ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1 [["id", 2]] +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "users" ("type") VALUES ($1) RETURNING "id" [["type", "SubUser"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "payments" ("type") VALUES ($1) RETURNING "id" [["type", "SubPayment"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "bloom_remit_txns" ("secret", "sender_type", "sender_id", "amount", "account_name", "account_id", "target_slug", "owner_id", "owner_type", "external_id", "recipient_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11) RETURNING "id" [["secret", "feb9ca6f-eff2-4f01-b9b5-2bd62332278e"], ["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", "bce1abb8af441b187c8ef58b"], ["recipient_id", "recipient-id"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.7ms) INSERT INTO "payments" DEFAULT VALUES RETURNING "id" +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id" +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) 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", "dffdf059-64b8-4a2c-a3db-fd5c67529ebd"], ["external_id", "5b0901c7415aa01beebe537c"], ["owner_id", "2"], ["owner_type", "Payment"], ["sender_id", "4"], ["sender_type", "User"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.7ms) 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-10-05 07:37:13.087708"], ["updated_at", "2016-10-05 07:37:13.087708"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT COUNT(*) FROM "bloom_remit_responses" WHERE "bloom_remit_responses"."txn_id" = $1 [["txn_id", 4]] + BloomRemit::Response Load (0.4ms) 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.5ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.7ms) INSERT INTO "payments" DEFAULT VALUES RETURNING "id" +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id" +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) 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", "e46dc2c7-4998-4607-883d-d7744b4edc20"], ["external_id", "3768deb71b720094278fa2f6"], ["owner_id", "3"], ["owner_type", "Payment"], ["sender_id", "5"], ["sender_type", "User"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 7], ["id", 5]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) 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-10-05 07:37:13.125764"], ["updated_at", "2016-10-05 07:37:13.125764"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + BloomRemit::Txn Load (0.3ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1 [["id", 5]] +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.3ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) ROLLBACK + ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (0.5ms) 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.3ms)  SELECT schemaname || '.' || tablename + FROM pg_tables + WHERE + tablename !~ '_prt_' AND + tablename <> 'schema_migrations' AND + schemaname = ANY (current_schemas(false)) + +  (1.1ms) select table_name from information_schema.views where table_schema = 'app_test' +  (461.7ms) TRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE; +  (0.8ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL +  (0.3ms) BEGIN +  (0.3ms) COMMIT +  (0.3ms) BEGIN +  (0.3ms) ROLLBACK +  (0.3ms) BEGIN +  (0.3ms) COMMIT +  (0.3ms) BEGIN +  (0.3ms) ROLLBACK +  (0.7ms) BEGIN + SQL (0.6ms) INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]] +  (12.7ms) COMMIT +  (0.3ms) BEGIN + SQL (0.4ms) INSERT INTO "users" ("type") VALUES ($1) RETURNING "id" [["type", "SubUser"]] +  (12.4ms) COMMIT +  (0.4ms) BEGIN + SQL (0.4ms) INSERT INTO "payments" ("type") VALUES ($1) RETURNING "id" [["type", "SubPayment"]] +  (15.8ms) COMMIT +  (0.3ms) BEGIN + SQL (0.7ms) INSERT INTO "bloom_remit_txns" ("secret", "sender_type", "sender_id", "amount", "account_name", "account_id", "target_slug", "owner_id", "owner_type", "external_id", "recipient_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11) RETURNING "id" [["secret", "6e00a66a-6484-42b5-9acc-8e0c74f1ed33"], ["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", "105847b12835617c1b94c1fa"], ["recipient_id", "recipient-id"]] +  (15.5ms) COMMIT + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1]] + Payment Load (0.4ms) SELECT "payments".* FROM "payments" WHERE "payments"."id" = $1 LIMIT 1 [["id", 1]] +  (0.4ms) 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 +  (374.5ms) TRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE; +  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL +  (0.4ms) BEGIN + SQL (1.0ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id" +  (15.3ms) COMMIT +  (0.4ms) BEGIN + SQL (0.6ms) 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", "1ed3c458-e3aa-444e-bfaa-268cf69f91b4"], ["external_id", "cfd93b0fedc282d9792e23a1"], ["sender_id", "1"], ["sender_type", "User"]] +  (12.9ms) COMMIT + BloomRemit::Txn Load (0.4ms) 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", "1ed3c458-e3aa-444e-bfaa-268cf69f91b4"]] +  (0.3ms) BEGIN + SQL (0.4ms) 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", "vextid"], ["id", 1]] +  (14.6ms) COMMIT +  (0.5ms) 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 +  (437.4ms) TRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE; +  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL +  (0.5ms) BEGIN +  (0.4ms) COMMIT +  (0.5ms) BEGIN +  (0.5ms) ROLLBACK +  (0.3ms) BEGIN +  (0.3ms) COMMIT +  (0.3ms) BEGIN +  (0.8ms) ROLLBACK +  (0.3ms) BEGIN +  (0.3ms) COMMIT +  (0.3ms) BEGIN +  (0.4ms) ROLLBACK +  (0.2ms) BEGIN +  (0.4ms) COMMIT +  (0.4ms) BEGIN +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +  (0.3ms) COMMIT +  (0.4ms) BEGIN +  (0.4ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN +  (0.4ms) ROLLBACK +  (0.3ms) BEGIN +  (0.4ms) COMMIT +  (0.3ms) BEGIN +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id" +  (0.4ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.7ms) 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", "5d81f5d3-9411-4631-a1fc-fb6b2e8a33dd"], ["external_id", "f68e8e3e63b1efc7be12674c"], ["sender_id", "1"], ["sender_type", "User"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-10-05 07:38:01 +0000 +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 (0.4ms) 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 52ms (Views: 50.0ms | ActiveRecord: 0.4ms) +Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-10-05 07:38:01 +0000 +Processing by BloomRemit::Api::V1::TxnsController#post_update as JSON + Parameters: {"secret"=>"5d81f5d3-9411-4631-a1fc-fb6b2e8a33dd", "status"=>"paid", "id"=>"1", "txn"=>{"status"=>"paid", "secret"=>"5d81f5d3-9411-4631-a1fc-fb6b2e8a33dd"}} + BloomRemit::Txn Load (0.6ms) 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", "5d81f5d3-9411-4631-a1fc-fb6b2e8a33dd"]] +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.4ms) UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 1], ["id", 1]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Completed 200 OK in 8ms (Views: 0.5ms | ActiveRecord: 1.6ms) + BloomRemit::Txn Load (0.4ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1 [["id", 1]] +  (0.3ms) ROLLBACK +  (0.3ms) BEGIN +  (0.3ms) COMMIT +  (0.3ms) BEGIN +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id" +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.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", "99b82051-33c3-4a89-be71-911564b40fe9"], ["external_id", "eb229b90cd83496aad68f86d"], ["sender_id", "2"], ["sender_type", "User"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-10-05 07:38:02 +0000 +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.5ms) 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 3ms (Views: 1.1ms | ActiveRecord: 0.5ms) +Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-10-05 07:38:02 +0000 +Processing by BloomRemit::Api::V1::TxnsController#update as JSON + Parameters: {"secret"=>"99b82051-33c3-4a89-be71-911564b40fe9", "status"=>"paid", "id"=>"2", "txn"=>{"status"=>"paid", "secret"=>"99b82051-33c3-4a89-be71-911564b40fe9"}} + BloomRemit::Txn Load (0.5ms) 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", "99b82051-33c3-4a89-be71-911564b40fe9"]] +  (0.4ms) SAVEPOINT active_record_1 + SQL (0.6ms) UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 1], ["id", 2]] +  (0.5ms) RELEASE SAVEPOINT active_record_1 +Completed 204 No Content in 46ms (ActiveRecord: 2.1ms) + BloomRemit::Txn Load (0.4ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1 [["id", 2]] +  (0.3ms) ROLLBACK +  (0.3ms) BEGIN +  (0.3ms) COMMIT +  (0.3ms) BEGIN +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "users" ("type") VALUES ($1) RETURNING "id" [["type", "SubUser"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "payments" ("type") VALUES ($1) RETURNING "id" [["type", "SubPayment"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "bloom_remit_txns" ("secret", "sender_type", "sender_id", "amount", "account_name", "account_id", "target_slug", "owner_id", "owner_type", "external_id", "recipient_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11) RETURNING "id" [["secret", "8651ffc4-6c1c-4020-b789-2bd5dd5ce8a8"], ["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", "b3861689fe5eeaaf58fb6c8c"], ["recipient_id", "recipient-id"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) ROLLBACK +  (0.3ms) BEGIN +  (0.4ms) COMMIT +  (0.3ms) BEGIN +  (0.3ms) ROLLBACK +  (0.3ms) BEGIN +  (0.3ms) COMMIT +  (0.3ms) BEGIN +  (0.4ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "payments" DEFAULT VALUES RETURNING "id" +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id" +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.4ms) 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", "2f42987b-d2c9-4e09-b9da-967c458645d3"], ["external_id", "5d27f4e78db99546cd463bf1"], ["owner_id", "2"], ["owner_type", "Payment"], ["sender_id", "4"], ["sender_type", "User"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.5ms) 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-10-05 07:38:02.180592"], ["updated_at", "2016-10-05 07:38:02.180592"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) SELECT COUNT(*) FROM "bloom_remit_responses" WHERE "bloom_remit_responses"."txn_id" = $1 [["txn_id", 4]] + BloomRemit::Response Load (0.4ms) 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.3ms) ROLLBACK +  (0.2ms) BEGIN +  (0.3ms) COMMIT +  (0.3ms) BEGIN +  (0.4ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "payments" DEFAULT VALUES RETURNING "id" +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id" +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) 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", "36f03528-3f48-49f4-8fd0-159d5c92dde8"], ["external_id", "9189d4fb99ad08a5363819ce"], ["owner_id", "3"], ["owner_type", "Payment"], ["sender_id", "5"], ["sender_type", "User"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.4ms) UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 7], ["id", 5]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.4ms) 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-10-05 07:38:02.214241"], ["updated_at", "2016-10-05 07:38:02.214241"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 + BloomRemit::Txn Load (0.4ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1 [["id", 5]] +  (0.3ms) ROLLBACK +  (0.3ms) BEGIN +  (0.4ms) COMMIT +  (0.3ms) BEGIN +  (0.4ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +  (0.3ms) COMMIT +  (0.2ms) BEGIN +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN +  (0.3ms) ROLLBACK +  (0.4ms) BEGIN +  (0.4ms) COMMIT +  (0.4ms) BEGIN +  (0.4ms) ROLLBACK + ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (0.6ms) 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.7ms)  SELECT schemaname || '.' || tablename + FROM pg_tables + WHERE + tablename !~ '_prt_' AND + tablename <> 'schema_migrations' AND + schemaname = ANY (current_schemas(false)) + +  (1.1ms) select table_name from information_schema.views where table_schema = 'app_test' +  (393.4ms) TRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE; +  (0.7ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL +  (0.4ms) BEGIN +  (0.3ms) COMMIT +  (0.5ms) BEGIN +  (0.3ms) ROLLBACK +  (0.3ms) BEGIN +  (0.3ms) COMMIT +  (0.5ms) BEGIN +  (0.4ms) ROLLBACK +  (0.3ms) BEGIN + SQL (0.9ms) INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]] +  (13.9ms) COMMIT +  (0.3ms) BEGIN + SQL (0.5ms) INSERT INTO "users" ("type") VALUES ($1) RETURNING "id" [["type", "SubUser"]] +  (13.0ms) COMMIT +  (0.4ms) BEGIN + SQL (0.5ms) INSERT INTO "payments" ("type") VALUES ($1) RETURNING "id" [["type", "SubPayment"]] +  (12.9ms) COMMIT +  (0.3ms) BEGIN + SQL (0.9ms) INSERT INTO "bloom_remit_txns" ("secret", "sender_type", "sender_id", "amount", "account_name", "account_id", "target_slug", "owner_id", "owner_type", "external_id", "recipient_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11) RETURNING "id" [["secret", "f343730d-3888-4dc2-9956-7a5bcc9e3f92"], ["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", "6fd3ee728f044e3698058312"], ["recipient_id", "recipient-id"]] +  (11.8ms) COMMIT + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1]] + Payment Load (0.4ms) SELECT "payments".* FROM "payments" WHERE "payments"."id" = $1 LIMIT 1 [["id", 1]] +  (0.3ms) 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 +  (432.0ms) TRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE; +  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL +  (0.4ms) BEGIN + SQL (0.9ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id" +  (12.9ms) COMMIT +  (0.4ms) BEGIN + SQL (0.8ms) 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", "c24ecf75-b89a-46c2-854f-7fe662d60fee"], ["external_id", "7b9318af4a2f9a94b73235af"], ["sender_id", "1"], ["sender_type", "User"]] +  (12.6ms) COMMIT +  (0.6ms) 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 +  (425.5ms) TRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE; +  (0.6ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL +  (1.0ms) BEGIN +  (0.6ms) COMMIT +  (0.6ms) BEGIN +  (0.5ms) ROLLBACK +  (0.6ms) BEGIN +  (0.5ms) COMMIT +  (0.5ms) BEGIN +  (0.3ms) ROLLBACK +  (0.4ms) BEGIN +  (0.4ms) COMMIT +  (0.3ms) BEGIN +  (0.4ms) ROLLBACK +  (0.4ms) BEGIN +  (0.3ms) COMMIT +  (0.3ms) BEGIN +  (0.4ms) ROLLBACK +  (0.5ms) BEGIN +  (0.7ms) COMMIT +  (0.5ms) BEGIN +  (0.4ms) ROLLBACK +  (0.3ms) BEGIN +  (0.3ms) COMMIT +  (0.3ms) BEGIN +  (0.2ms) ROLLBACK +  (0.3ms) BEGIN +  (0.2ms) COMMIT +  (0.3ms) BEGIN +  (0.3ms) ROLLBACK +  (0.4ms) BEGIN +  (0.3ms) COMMIT +  (0.3ms) BEGIN +  (0.5ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id" +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.9ms) 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", "394ca95a-3159-429f-9467-15b5404669a3"], ["external_id", "9df6ee70cc63be5647451afd"], ["sender_id", "1"], ["sender_type", "User"]] +  (0.7ms) RELEASE SAVEPOINT active_record_1 +Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-10-05 07:39:06 +0000 +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"}} +Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +  (0.3ms) COMMIT +  (0.3ms) BEGIN +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id" +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.5ms) 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", "fc310364-4556-4546-8a30-2ebb5f3a7ad5"], ["external_id", "d889544c304a9be4d1411aa0"], ["sender_id", "2"], ["sender_type", "User"]] +  (0.4ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-10-05 07:39:06 +0000 +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"}} +Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) +  (0.3ms) ROLLBACK +  (0.9ms) BEGIN +  (0.3ms) COMMIT +  (0.3ms) BEGIN +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "users" ("type") VALUES ($1) RETURNING "id" [["type", "SubUser"]] +  (0.4ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "payments" ("type") VALUES ($1) RETURNING "id" [["type", "SubPayment"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "bloom_remit_txns" ("secret", "sender_type", "sender_id", "amount", "account_name", "account_id", "target_slug", "owner_id", "owner_type", "external_id", "recipient_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11) RETURNING "id" [["secret", "96b1ab96-27e8-4765-bbcd-bb5e355f433f"], ["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", "96233b0b709c630265c4755f"], ["recipient_id", "recipient-id"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) ROLLBACK +  (0.3ms) BEGIN +  (0.3ms) COMMIT +  (0.5ms) BEGIN +  (0.4ms) ROLLBACK +  (0.2ms) BEGIN +  (0.3ms) COMMIT +  (0.3ms) BEGIN +  (0.4ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "payments" DEFAULT VALUES RETURNING "id" +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id" +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) 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", "70a6e130-6bce-4ef8-b9cb-501e990527e9"], ["external_id", "f3ae2417d16c35e1956d5c4b"], ["owner_id", "2"], ["owner_type", "Payment"], ["sender_id", "4"], ["sender_type", "User"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.5ms) 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-10-05 07:39:07.088310"], ["updated_at", "2016-10-05 07:39:07.088310"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) SELECT COUNT(*) FROM "bloom_remit_responses" WHERE "bloom_remit_responses"."txn_id" = $1 [["txn_id", 4]] + BloomRemit::Response Load (0.4ms) 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.3ms) ROLLBACK +  (0.4ms) BEGIN +  (0.3ms) COMMIT +  (0.4ms) BEGIN +  (0.4ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "payments" DEFAULT VALUES RETURNING "id" +  (0.6ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id" +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.4ms) 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", "da31cd32-171a-4c43-995a-fc3c51b1b158"], ["external_id", "af8e2be098120c08c40df511"], ["owner_id", "3"], ["owner_type", "Payment"], ["sender_id", "5"], ["sender_type", "User"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 7], ["id", 5]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.5ms) 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-10-05 07:39:07.169374"], ["updated_at", "2016-10-05 07:39:07.169374"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 + BloomRemit::Txn Load (0.4ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1 [["id", 5]] +  (0.3ms) ROLLBACK +  (0.3ms) BEGIN +  (0.4ms) COMMIT +  (0.3ms) BEGIN +  (0.4ms) ROLLBACK +  (0.3ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN +  (0.4ms) ROLLBACK +  (0.3ms) BEGIN +  (0.4ms) COMMIT +  (0.3ms) BEGIN +  (0.4ms) ROLLBACK +  (0.3ms) BEGIN +  (0.3ms) COMMIT +  (0.3ms) BEGIN +  (0.4ms) ROLLBACK +  (0.3ms) BEGIN +  (0.3ms) COMMIT +  (0.3ms) BEGIN +  (0.4ms) ROLLBACK + ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (0.6ms) 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.3ms)  SELECT schemaname || '.' || tablename + FROM pg_tables + WHERE + tablename !~ '_prt_' AND + tablename <> 'schema_migrations' AND + schemaname = ANY (current_schemas(false)) + +  (1.1ms) select table_name from information_schema.views where table_schema = 'app_test' +  (387.8ms) TRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE; +  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL +  (0.8ms) BEGIN +  (0.4ms) COMMIT +  (0.3ms) BEGIN +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +  (0.3ms) COMMIT +  (0.3ms) BEGIN +  (0.3ms) ROLLBACK +  (0.4ms) BEGIN + SQL (1.5ms) INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]] +  (11.5ms) COMMIT +  (0.4ms) BEGIN + SQL (0.6ms) INSERT INTO "users" ("type") VALUES ($1) RETURNING "id" [["type", "SubUser"]] +  (18.2ms) COMMIT +  (0.3ms) BEGIN + SQL (0.6ms) INSERT INTO "payments" ("type") VALUES ($1) RETURNING "id" [["type", "SubPayment"]] +  (16.1ms) COMMIT +  (0.3ms) BEGIN + SQL (0.7ms) INSERT INTO "bloom_remit_txns" ("secret", "sender_type", "sender_id", "amount", "account_name", "account_id", "target_slug", "owner_id", "owner_type", "external_id", "recipient_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11) RETURNING "id" [["secret", "2afb06f1-4556-43d9-8b7a-51d9ef4f46c6"], ["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", "7b1be3778e76c76b1a5a6152"], ["recipient_id", "recipient-id"]] +  (12.9ms) COMMIT + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1]] + Payment Load (0.4ms) SELECT "payments".* FROM "payments" WHERE "payments"."id" = $1 LIMIT 1 [["id", 1]] +  (0.5ms) 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 +  (416.9ms) TRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE; +  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL +  (0.3ms) BEGIN + SQL (0.7ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id" +  (12.8ms) COMMIT +  (0.4ms) BEGIN + SQL (0.6ms) 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", "608093b4-517d-4b86-a98a-042939846319"], ["external_id", "aca01705bda38ef1a7fc23bb"], ["sender_id", "1"], ["sender_type", "User"]] +  (14.3ms) COMMIT +  (0.6ms) 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 +  (397.9ms) TRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE; +  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL +  (0.3ms) BEGIN +  (0.5ms) COMMIT +  (0.5ms) BEGIN +  (0.4ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN +  (0.5ms) ROLLBACK +  (0.5ms) BEGIN +  (0.5ms) COMMIT +  (0.5ms) BEGIN +  (0.4ms) ROLLBACK +  (0.4ms) BEGIN +  (0.4ms) COMMIT +  (0.9ms) BEGIN +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +  (0.3ms) COMMIT +  (0.4ms) BEGIN +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +  (0.3ms) COMMIT +  (0.3ms) BEGIN +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN +  (0.3ms) ROLLBACK +  (0.3ms) BEGIN +  (0.5ms) COMMIT +  (0.4ms) BEGIN +  (0.4ms) SAVEPOINT active_record_1 + SQL (0.8ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id" +  (0.4ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) SAVEPOINT active_record_1 + SQL (0.8ms) 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", "c8fe226e-3d4d-4a2f-8f25-b9a0b98fce7e"], ["external_id", "49a86fd34a351a107f84712b"], ["sender_id", "1"], ["sender_type", "User"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-10-05 07:39:25 +0000 +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"}} +Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.0ms) +  (0.4ms) ROLLBACK +  (0.3ms) BEGIN +  (0.3ms) COMMIT +  (0.3ms) BEGIN +  (0.4ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id" +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) SAVEPOINT active_record_1 + SQL (0.5ms) 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", "7d69d1b9-5a25-4a36-a8cb-982252c529f7"], ["external_id", "94a77deadb6fc296f29b6d87"], ["sender_id", "2"], ["sender_type", "User"]] +  (0.4ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-10-05 07:39:25 +0000 +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"}} +Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.0ms) +  (0.4ms) ROLLBACK +  (0.4ms) BEGIN +  (0.5ms) COMMIT +  (0.4ms) BEGIN +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "users" ("type") VALUES ($1) RETURNING "id" [["type", "SubUser"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "payments" ("type") VALUES ($1) RETURNING "id" [["type", "SubPayment"]] +  (0.4ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "bloom_remit_txns" ("secret", "sender_type", "sender_id", "amount", "account_name", "account_id", "target_slug", "owner_id", "owner_type", "external_id", "recipient_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11) RETURNING "id" [["secret", "c0bd1475-d62b-4479-a6ef-8ceeb2cc3317"], ["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", "916f5707cd81c3488fd39d24"], ["recipient_id", "recipient-id"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) ROLLBACK +  (0.3ms) BEGIN +  (0.3ms) COMMIT +  (0.2ms) BEGIN +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +  (0.3ms) COMMIT +  (0.2ms) BEGIN +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "payments" DEFAULT VALUES RETURNING "id" +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id" +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.4ms) 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", "b3b92919-c484-4239-a0bd-57fd6bd2f025"], ["external_id", "f3243765c4c81e23292624bd"], ["owner_id", "2"], ["owner_type", "Payment"], ["sender_id", "4"], ["sender_type", "User"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.6ms) 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-10-05 07:39:25.674147"], ["updated_at", "2016-10-05 07:39:25.674147"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) SELECT COUNT(*) FROM "bloom_remit_responses" WHERE "bloom_remit_responses"."txn_id" = $1 [["txn_id", 4]] + BloomRemit::Response Load (0.4ms) 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.4ms) ROLLBACK +  (0.3ms) BEGIN +  (0.3ms) COMMIT +  (0.5ms) BEGIN +  (0.4ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "payments" DEFAULT VALUES RETURNING "id" +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) SAVEPOINT active_record_1 + SQL (0.7ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id" +  (0.4ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.5ms) 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", "69e57455-9603-459f-8075-b4688c2f8a03"], ["external_id", "745d0c5e38d95dbae5f619ec"], ["owner_id", "3"], ["owner_type", "Payment"], ["sender_id", "5"], ["sender_type", "User"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.5ms) UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 7], ["id", 5]] +  (0.4ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.4ms) 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-10-05 07:39:25.747362"], ["updated_at", "2016-10-05 07:39:25.747362"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 + BloomRemit::Txn Load (0.4ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1 [["id", 5]] +  (0.4ms) ROLLBACK +  (0.3ms) BEGIN +  (0.4ms) COMMIT +  (0.4ms) BEGIN +  (0.3ms) ROLLBACK +  (0.4ms) BEGIN +  (0.3ms) COMMIT +  (0.2ms) BEGIN +  (0.3ms) ROLLBACK +  (0.4ms) BEGIN +  (0.5ms) COMMIT +  (0.4ms) BEGIN +  (0.3ms) ROLLBACK +  (0.3ms) BEGIN +  (0.3ms) COMMIT +  (0.3ms) BEGIN +  (0.5ms) ROLLBACK +  (0.3ms) BEGIN +  (0.4ms) COMMIT +  (0.2ms) BEGIN +  (0.5ms) ROLLBACK + ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (0.4ms) 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.7ms)  SELECT schemaname || '.' || tablename + FROM pg_tables + WHERE + tablename !~ '_prt_' AND + tablename <> 'schema_migrations' AND + schemaname = ANY (current_schemas(false)) + +  (1.5ms) select table_name from information_schema.views where table_schema = 'app_test' +  (393.6ms) TRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE; +  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL +  (0.5ms) BEGIN +  (0.4ms) COMMIT +  (0.4ms) BEGIN +  (0.3ms) ROLLBACK +  (0.3ms) BEGIN +  (0.4ms) COMMIT +  (0.3ms) BEGIN +  (0.3ms) ROLLBACK +  (0.5ms) BEGIN + SQL (0.7ms) INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]] +  (11.0ms) COMMIT +  (0.4ms) BEGIN + SQL (0.5ms) INSERT INTO "users" ("type") VALUES ($1) RETURNING "id" [["type", "SubUser"]] +  (9.4ms) COMMIT +  (0.3ms) BEGIN + SQL (0.5ms) INSERT INTO "payments" ("type") VALUES ($1) RETURNING "id" [["type", "SubPayment"]] +  (11.5ms) COMMIT +  (0.3ms) BEGIN + SQL (0.6ms) INSERT INTO "bloom_remit_txns" ("secret", "sender_type", "sender_id", "amount", "account_name", "account_id", "target_slug", "owner_id", "owner_type", "external_id", "recipient_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11) RETURNING "id" [["secret", "a30a9b78-04dc-4151-b4b0-e5082b25f463"], ["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", "eed0f1fd10fd1eb37a3cdc2b"], ["recipient_id", "recipient-id"]] +  (16.7ms) COMMIT + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1]] + Payment Load (0.4ms) SELECT "payments".* FROM "payments" WHERE "payments"."id" = $1 LIMIT 1 [["id", 1]] +  (0.3ms) 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 +  (431.9ms) TRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE; +  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL +  (0.3ms) BEGIN + SQL (0.9ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id" +  (9.5ms) COMMIT +  (0.4ms) BEGIN + SQL (0.6ms) 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", "508a8eed-2bfa-4beb-bb2b-d8cf954b4988"], ["external_id", "cc3cdd6509e69f62f97d7414"], ["sender_id", "1"], ["sender_type", "User"]] +  (9.6ms) COMMIT +  (0.4ms) 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 +  (398.1ms) TRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE; +  (0.8ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL +  (0.1ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN +  (0.3ms) ROLLBACK +  (0.3ms) BEGIN +  (0.2ms) COMMIT +  (0.1ms) BEGIN +  (0.4ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id" +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.7ms) 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", "294bf5e8-c294-444a-a225-77f69864ef87"], ["external_id", "366a57a370c8f1d064bc2e14"], ["sender_id", "1"], ["sender_type", "User"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-10-05 07:39:43 +0000 +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"}} +Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id" +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) SAVEPOINT active_record_1 + SQL (0.3ms) 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", "48de973e-e4fe-4643-8ae4-8c6c9a994f23"], ["external_id", "6a23bb8a9037e5b6403a4d3d"], ["sender_id", "2"], ["sender_type", "User"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-10-05 07:39:43 +0000 +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"}} +Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "users" ("type") VALUES ($1) RETURNING "id" [["type", "SubUser"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "payments" ("type") VALUES ($1) RETURNING "id" [["type", "SubPayment"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "bloom_remit_txns" ("secret", "sender_type", "sender_id", "amount", "account_name", "account_id", "target_slug", "owner_id", "owner_type", "external_id", "recipient_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11) RETURNING "id" [["secret", "ebe36d45-40bf-4f74-b3ff-c25440f29dca"], ["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", "19187930f8a96ae21c870b91"], ["recipient_id", "recipient-id"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) ROLLBACK +  (0.6ms) BEGIN +  (0.2ms) COMMIT +  (0.3ms) BEGIN +  (0.2ms) ROLLBACK +  (0.3ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "payments" DEFAULT VALUES RETURNING "id" +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id" +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) 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", "cf13aa96-1809-4563-8ace-d71a2f145e2d"], ["external_id", "869e930ecf790b7ba6de6a27"], ["owner_id", "2"], ["owner_type", "Payment"], ["sender_id", "4"], ["sender_type", "User"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.5ms) 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-10-05 07:39:43.451661"], ["updated_at", "2016-10-05 07:39:43.451661"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "bloom_remit_responses" WHERE "bloom_remit_responses"."txn_id" = $1 [["txn_id", 4]] + BloomRemit::Response Load (0.2ms) 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.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "payments" DEFAULT VALUES RETURNING "id" +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id" +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) 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", "add67c06-9893-47cb-a320-f520b558e790"], ["external_id", "bc0790a52c9d9e892862cfc8"], ["owner_id", "3"], ["owner_type", "Payment"], ["sender_id", "5"], ["sender_type", "User"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 7], ["id", 5]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) 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-10-05 07:39:43.517418"], ["updated_at", "2016-10-05 07:39:43.517418"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + BloomRemit::Txn Load (0.3ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1 [["id", 5]] +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) ROLLBACK +  (0.3ms) BEGIN +  (0.3ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) ROLLBACK + ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (0.9ms) 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 +  (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' +  (432.4ms) TRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE; +  (0.6ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL +  (0.4ms) BEGIN +  (0.4ms) COMMIT +  (0.4ms) BEGIN +  (0.4ms) ROLLBACK +  (0.5ms) BEGIN +  (0.6ms) COMMIT +  (0.4ms) BEGIN +  (0.6ms) ROLLBACK +  (0.4ms) BEGIN + SQL (1.3ms) INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]] +  (15.4ms) COMMIT +  (0.3ms) BEGIN + SQL (0.7ms) INSERT INTO "users" ("type") VALUES ($1) RETURNING "id" [["type", "SubUser"]] +  (13.6ms) COMMIT +  (0.3ms) BEGIN + SQL (0.5ms) INSERT INTO "payments" ("type") VALUES ($1) RETURNING "id" [["type", "SubPayment"]] +  (14.9ms) COMMIT +  (0.4ms) BEGIN + SQL (1.3ms) INSERT INTO "bloom_remit_txns" ("secret", "sender_type", "sender_id", "amount", "account_name", "account_id", "target_slug", "owner_id", "owner_type", "external_id", "recipient_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11) RETURNING "id" [["secret", "84974ff4-e3dd-4ef2-b243-9d5912ca235d"], ["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", "acdf0fc379bdd3f3609d3152"], ["recipient_id", "recipient-id"]] +  (13.8ms) COMMIT + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1]] + Payment Load (0.4ms) SELECT "payments".* FROM "payments" WHERE "payments"."id" = $1 LIMIT 1 [["id", 1]] +  (0.5ms) 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 +  (409.7ms) TRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE; +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL +  (0.3ms) BEGIN + SQL (0.9ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id" +  (13.1ms) COMMIT +  (0.3ms) BEGIN + SQL (0.6ms) 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", "5ddfb805-e620-4e52-9ed4-027fa0276ee1"], ["external_id", "eb5cbc2f2b9d5cbf1552bef7"], ["sender_id", "1"], ["sender_type", "User"]] +  (15.0ms) COMMIT + BloomRemit::Txn Load (0.5ms) 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", "5ddfb805-e620-4e52-9ed4-027fa0276ee1"]] +  (0.3ms) BEGIN + SQL (0.4ms) 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", "vextid"], ["id", 1]] +  (15.2ms) COMMIT +  (0.3ms) 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 +  (451.0ms) TRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE; +  (0.6ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL +  (0.2ms) BEGIN +  (0.3ms) COMMIT +  (0.2ms) BEGIN +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.3ms) BEGIN +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +  (0.3ms) COMMIT +  (0.3ms) BEGIN +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +  (0.3ms) COMMIT +  (0.2ms) BEGIN +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +  (0.3ms) COMMIT +  (0.3ms) BEGIN +  (0.3ms) ROLLBACK +  (0.3ms) BEGIN +  (0.3ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.3ms) COMMIT +  (0.2ms) BEGIN +  (0.4ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id" +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.8ms) 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", "3abb7585-226f-4dbe-add2-c392581868fc"], ["external_id", "d7ef623c558ede10ea7e1110"], ["sender_id", "1"], ["sender_type", "User"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-10-05 07:40:33 +0000 +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 (0.4ms) 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 49ms (Views: 47.5ms | ActiveRecord: 0.4ms) +Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-10-05 07:40:33 +0000 +Processing by BloomRemit::Api::V1::TxnsController#post_update as JSON + Parameters: {"secret"=>"3abb7585-226f-4dbe-add2-c392581868fc", "status"=>"paid", "id"=>"1", "txn"=>{"status"=>"paid", "secret"=>"3abb7585-226f-4dbe-add2-c392581868fc"}} + BloomRemit::Txn Load (0.4ms) 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", "3abb7585-226f-4dbe-add2-c392581868fc"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 1], ["id", 1]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Completed 200 OK in 7ms (Views: 0.5ms | ActiveRecord: 1.1ms) + BloomRemit::Txn Load (0.3ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1 [["id", 1]] +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id" +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) 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", "85f5c90f-637a-4d39-8aa6-e1a5281f72af"], ["external_id", "e3c75af669f165fe2c90841b"], ["sender_id", "2"], ["sender_type", "User"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-10-05 07:40:33 +0000 +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.3ms) 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 4ms (Views: 1.5ms | ActiveRecord: 0.3ms) +Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-10-05 07:40:33 +0000 +Processing by BloomRemit::Api::V1::TxnsController#update as JSON + Parameters: {"secret"=>"85f5c90f-637a-4d39-8aa6-e1a5281f72af", "status"=>"paid", "id"=>"2", "txn"=>{"status"=>"paid", "secret"=>"85f5c90f-637a-4d39-8aa6-e1a5281f72af"}} + BloomRemit::Txn Load (0.4ms) 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", "85f5c90f-637a-4d39-8aa6-e1a5281f72af"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 1], ["id", 2]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Completed 204 No Content in 43ms (ActiveRecord: 1.3ms) + BloomRemit::Txn Load (0.4ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1 [["id", 2]] +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "users" ("type") VALUES ($1) RETURNING "id" [["type", "SubUser"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "payments" ("type") VALUES ($1) RETURNING "id" [["type", "SubPayment"]] +  (0.4ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "bloom_remit_txns" ("secret", "sender_type", "sender_id", "amount", "account_name", "account_id", "target_slug", "owner_id", "owner_type", "external_id", "recipient_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11) RETURNING "id" [["secret", "d2abbcdd-a024-4368-8d65-1be4d76fe7ad"], ["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", "a0946df411b868e2fd9a599b"], ["recipient_id", "recipient-id"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) ROLLBACK +  (0.3ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.3ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "payments" DEFAULT VALUES RETURNING "id" +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id" +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) 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", "d9ca8cbf-d6a6-4939-953e-8e8715abe122"], ["external_id", "95fe85d7003f503d6b24c370"], ["owner_id", "2"], ["owner_type", "Payment"], ["sender_id", "4"], ["sender_type", "User"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.5ms) 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-10-05 07:40:33.650695"], ["updated_at", "2016-10-05 07:40:33.650695"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "bloom_remit_responses" WHERE "bloom_remit_responses"."txn_id" = $1 [["txn_id", 4]] + BloomRemit::Response Load (0.3ms) 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.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "payments" DEFAULT VALUES RETURNING "id" +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id" +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) 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", "1d509f01-0609-4f71-abb2-dc232476a4db"], ["external_id", "254effa44eb09d4f63295313"], ["owner_id", "3"], ["owner_type", "Payment"], ["sender_id", "5"], ["sender_type", "User"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 7], ["id", 5]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) 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-10-05 07:40:33.684094"], ["updated_at", "2016-10-05 07:40:33.684094"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + BloomRemit::Txn Load (0.4ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1 [["id", 5]] +  (0.4ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.3ms) COMMIT +  (0.3ms) BEGIN +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) ROLLBACK