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

- old
+ new

@@ -35320,5 +35320,324 @@  (0.6ms) ROLLBACK  (0.7ms) BEGIN  (0.6ms) COMMIT  (0.6ms) BEGIN  (0.5ms) ROLLBACK + ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (136.5ms) DROP DATABASE IF EXISTS "app_test" +  (519.7ms) CREATE DATABASE "app_test" ENCODING = 'unicode' + SQL (0.5ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" +  (81.4ms) CREATE TABLE "billers" ("id" serial primary key, "slug" character varying) +  (78.5ms) CREATE TABLE "bloom_remit_responses" ("id" serial primary key, "txn_id" integer NOT NULL, "body" text NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (62.5ms) CREATE INDEX "index_bloom_remit_responses_on_txn_id" ON "bloom_remit_responses" USING btree ("txn_id") +  (86.5ms) CREATE TABLE "bloom_remit_txns" ("id" serial primary key, "status" integer DEFAULT 0 NOT NULL, "sender_id" character varying NOT NULL, "sender_type" character varying NOT NULL, "amount" decimal NOT NULL, "account_name" character varying, "account_id" character varying, "secret" uuid NOT NULL, "target_slug" character varying NOT NULL, "owner_id" character varying, "owner_type" character varying, "external_id" character varying, "status_description" text, "vendor_external_id" character varying, "recipient_id" character varying)  +  (78.4ms) CREATE INDEX "index_bloom_remit_txns_on_external_id" ON "bloom_remit_txns" USING btree ("external_id") +  (63.0ms) CREATE INDEX "index_bloom_remit_txns_on_owner_id_and_owner_type" ON "bloom_remit_txns" USING btree ("owner_id", "owner_type") +  (51.2ms) CREATE INDEX "index_bloom_remit_txns_on_vendor_external_id" ON "bloom_remit_txns" USING btree ("vendor_external_id") +  (86.1ms) CREATE TABLE "payments" ("id" serial primary key, "type" character varying)  +  (81.3ms) CREATE TABLE "users" ("id" serial primary key, "email" character varying, "bloom_remit_id" character varying, "type" character varying) +  (49.7ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)  +  (43.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.9ms) SELECT version FROM "schema_migrations" +  (16.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20161005011429') +  (14.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20160729085500') +  (13.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20160805001840') +  (17.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20160805042105') +  (16.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20160806011259') +  (16.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20160806012210') + ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" + SQL (0.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" +  (16.6ms) DROP TABLE "billers" CASCADE +  (59.6ms) CREATE TABLE "billers" ("id" serial primary key, "slug" character varying)  +  (13.2ms) DROP TABLE "bloom_remit_responses" CASCADE +  (58.1ms) CREATE TABLE "bloom_remit_responses" ("id" serial primary key, "txn_id" integer NOT NULL, "body" text NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (33.6ms) CREATE INDEX "index_bloom_remit_responses_on_txn_id" ON "bloom_remit_responses" USING btree ("txn_id") +  (17.4ms) DROP TABLE "bloom_remit_txns" CASCADE +  (73.5ms) CREATE TABLE "bloom_remit_txns" ("id" serial primary key, "status" integer DEFAULT 0 NOT NULL, "sender_id" character varying NOT NULL, "sender_type" character varying NOT NULL, "amount" decimal NOT NULL, "account_name" character varying, "account_id" character varying, "secret" uuid NOT NULL, "target_slug" character varying NOT NULL, "owner_id" character varying, "owner_type" character varying, "external_id" character varying, "status_description" text, "vendor_external_id" character varying, "recipient_id" character varying) +  (44.5ms) CREATE INDEX "index_bloom_remit_txns_on_external_id" ON "bloom_remit_txns" USING btree ("external_id") +  (46.9ms) CREATE INDEX "index_bloom_remit_txns_on_owner_id_and_owner_type" ON "bloom_remit_txns" USING btree ("owner_id", "owner_type") +  (42.5ms) CREATE INDEX "index_bloom_remit_txns_on_vendor_external_id" ON "bloom_remit_txns" USING btree ("vendor_external_id") +  (14.5ms) DROP TABLE "payments" CASCADE +  (79.2ms) CREATE TABLE "payments" ("id" serial primary key, "type" character varying)  +  (12.6ms) DROP TABLE "users" CASCADE +  (67.1ms) CREATE TABLE "users" ("id" serial primary key, "email" character varying, "bloom_remit_id" character varying, "type" character varying)  +  (0.8ms) SELECT version FROM "schema_migrations" +  (12.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20160729070509') +  (11.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20160805004223') +  (14.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20160805004350') +  (13.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20160805040950') +  (13.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20160805095308') +  (17.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20160806054012') +  (16.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20160808081300') +  (13.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20160809043433') +  (13.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20160817003323') +  (13.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20160930034811') + ActiveRecord::SchemaMigration Load (0.6ms) 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 +  (1.5ms)  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' +  (436.4ms) 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.4ms) BEGIN +  (0.3ms) 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.4ms)  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.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.2ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) ROLLBACK + ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (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 +  (1.1ms)  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' +  (412.1ms) 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.4ms) COMMIT +  (0.3ms) BEGIN +  (0.3ms) 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.5ms)  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' +  (447.2ms) 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.2ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN +  (0.3ms) 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' +  (425.2ms) TRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE; +  (1.0ms) 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.2ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN +  (0.4ms) ROLLBACK +  (0.4ms) BEGIN + SQL (0.4ms) INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]] +  (11.0ms) COMMIT +  (0.2ms) BEGIN + SQL (0.4ms) INSERT INTO "users" ("type") VALUES ($1) RETURNING "id" [["type", "SubUser"]] +  (9.6ms) COMMIT +  (0.2ms) BEGIN + SQL (0.4ms) INSERT INTO "payments" ("type") VALUES ($1) RETURNING "id" [["type", "SubPayment"]] +  (14.8ms) COMMIT +  (0.2ms) 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", "a74fee53-1a8c-400e-8272-9b5f2c389a7a"], ["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", "d1c358c2f6364d6d8be84cbb"], ["recipient_id", "recipient-id"]] +  (12.5ms) 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 +  (401.2ms) 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.1ms) BEGIN + SQL (0.6ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id" +  (9.5ms) COMMIT +  (0.2ms) BEGIN + 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", "35d8dbd0-e059-4c8d-aeb5-279db433e037"], ["external_id", "3ff8211f76453c013913338e"], ["sender_id", "1"], ["sender_type", "User"]] +  (11.0ms) 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", "35d8dbd0-e059-4c8d-aeb5-279db433e037"]] +  (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]] +  (10.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 +  (371.2ms) 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.1ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) COMMIT +  (0.1ms) BEGIN +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) 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 +  (0.2ms) BEGIN +  (0.3ms) COMMIT +  (0.2ms) BEGIN +  (0.4ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.1ms) BEGIN +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +  (0.4ms) 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", "f4ccc2c9-5eff-409e-a865-0d0332f59d94"], ["external_id", "2943eb63c3ed81f7ea40dac5"], ["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:01:02 +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:01:02 +0000 +Processing by BloomRemit::Api::V1::TxnsController#post_update as JSON + Parameters: {"secret"=>"f4ccc2c9-5eff-409e-a865-0d0332f59d94", "status"=>"paid", "id"=>"1", "txn"=>{"status"=>"paid", "secret"=>"f4ccc2c9-5eff-409e-a865-0d0332f59d94"}} + 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", "f4ccc2c9-5eff-409e-a865-0d0332f59d94"]] +  (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.4ms | ActiveRecord: 1.0ms) + 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.2ms) 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", "7f466448-4c9f-467b-a836-19a829c67f83"], ["external_id", "53d42ed623937f3f553b5f47"], ["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:01: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.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:01:02 +0000 +Processing by BloomRemit::Api::V1::TxnsController#update as JSON + Parameters: {"secret"=>"7f466448-4c9f-467b-a836-19a829c67f83", "status"=>"paid", "id"=>"2", "txn"=>{"status"=>"paid", "secret"=>"7f466448-4c9f-467b-a836-19a829c67f83"}} + 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", "7f466448-4c9f-467b-a836-19a829c67f83"]] +  (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.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.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.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", "ddf2a4d3-a3ec-4447-bfe7-6af882e56017"], ["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", "5572b7d8262d034e78836fc7"], ["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.3ms) 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", "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", "abe685a1-af94-4f9d-be97-575927237b93"], ["external_id", "0c76b0d303984b6a4becaf39"], ["owner_id", "2"], ["owner_type", "Payment"], ["sender_id", "4"], ["sender_type", "User"]] +  (0.4ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) 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:01:02.730799"], ["updated_at", "2016-10-05 07:01:02.730799"]] +  (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.5ms) 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.3ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "payments" DEFAULT VALUES RETURNING "id" +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (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.6ms) INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "owner_id", "owner_type", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "dd23d350-e371-4985-8756-1111b85c779f"], ["external_id", "405c497a8cab7473f7f00b1d"], ["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.7ms) 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.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", "{\"status\":\"500\",\"error\":\"Internal Server Error\"}"], ["txn_id", 5], ["created_at", "2016-10-05 07:01:02.776864"], ["updated_at", "2016-10-05 07:01:02.776864"]] +  (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.3ms) BEGIN +  (0.2ms) COMMIT +  (0.4ms) BEGIN +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +  (0.3ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) ROLLBACK +  (0.3ms) BEGIN +  (0.3ms) COMMIT +  (0.3ms) BEGIN +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) ROLLBACK