bloom_remit 0.7.0 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7cdb2c2f7b353f74026d084ec937cf4ef0b01eb6
4
- data.tar.gz: a956e34dc807d9026f2101368d8979f34028acea
3
+ metadata.gz: 19e5b892ac994036a07aa500f15a42d40218b98d
4
+ data.tar.gz: 1f205caf04341f305ae7c21b9dbf0e92f12aecb6
5
5
  SHA512:
6
- metadata.gz: 8e7cf8fe8cdbed00df092ff1bdeb92a4159941cfcf058035e4c43cc18bb8efcdcf9d21f832734d323fe414b8ebab870cd41ada3b7044b23cfd5b7f266658a421
7
- data.tar.gz: dd01c5c43a22a472ee13c8b9c076e2f6db7d2954838a0329c63202bcf4f7ef3daa0171ffc36968b6c9762bd5db7eb6ceccd3f24c84f1d8ee6a616ed829bdddb0
6
+ metadata.gz: b3e6c2ee8efc6d63d9163bebe7cbd32b966290a1e27f49fae93eaff9972ac2d68dc5c65de3b3af1d6a5e2e8869aeabd427eb1b5e9f528c258457b41c0394596f
7
+ data.tar.gz: 7e15e8b2a09af1ba376e466b501ba67c2b9c1f4486a2da37eaac83948efee9eae9dbb3370a96f48083ec0b9d22cd7ef63a92c78a1235a09444b7cc62706e9d9c
@@ -6,10 +6,10 @@ module BloomRemit
6
6
 
7
7
  executed do |c|
8
8
  c.client = BloomRemitClient.new(
9
- token: BloomRemit.token,
10
- secret: BloomRemit.secret,
9
+ api_token: BloomRemit.token,
10
+ api_secret: BloomRemit.secret,
11
11
  agent_id: BloomRemit.agent_id,
12
- url: BloomRemit.url,
12
+ sandbox: BloomRemit.sandbox,
13
13
  )
14
14
  end
15
15
 
@@ -20,7 +20,8 @@ module BloomRemit
20
20
  mattr_accessor :token
21
21
  mattr_accessor :secret
22
22
  mattr_accessor :agent_id
23
- mattr_accessor :url
23
+ mattr_accessor :sandbox
24
+ mattr_accessor :host
24
25
  mattr_reader :sender_id_method_default
25
26
  mattr_accessor :on_txn_response
26
27
  @@sender_id_method_default = :bloom_remit_id
@@ -1,3 +1,3 @@
1
1
  module BloomRemit
2
- VERSION = "0.7.0"
2
+ VERSION = "0.8.0"
3
3
  end
@@ -6,14 +6,13 @@ RSpec.describe BloomRemit do
6
6
  BloomRemit.configure do |c|
7
7
  c.token = "token"
8
8
  c.secret = "secret"
9
- c.url = "https://url.com"
10
9
  c.agent_id = "agent_id"
11
10
  c.on_txn_response = OnTxnResponse
11
+ c.sandbox = true
12
12
  end
13
13
 
14
14
  expect(described_class.token).to eq "token"
15
15
  expect(described_class.secret).to eq "secret"
16
- expect(described_class.url).to eq "https://url.com"
17
16
  expect(described_class.agent_id).to eq "agent_id"
18
17
  expect(described_class.sender_id_method).to eq :bloom_remit_id
19
18
  expect(described_class.on_txn_response).to eq OnTxnResponse
@@ -6,7 +6,8 @@ development: &default
6
6
  pool: 5
7
7
  username: postgres
8
8
  password:
9
- host: db
9
+ host: localhost # run ruby on host
10
+ # host: db # everything via docker services
10
11
 
11
12
  test:
12
13
  <<: *default
@@ -6,7 +6,8 @@ development: &default
6
6
  pool: 5
7
7
  username: postgres
8
8
  password:
9
- host: db
9
+ host: localhost # run ruby on host
10
+ # host: db # everything via docker services
10
11
 
11
12
  test:
12
13
  <<: *default
@@ -0,0 +1,7 @@
1
+ ---
2
+ test:
3
+ adapter: postgresql
4
+ encoding: unicode
5
+ database: travis_ci_test
6
+ username: postgres
7
+ password:
@@ -2191,4 +2191,120 @@ WHERE c.contype = 'f'
2191
2191
  AND t1.relname = 'users'
2192
2192
  AND t3.nspname = ANY (current_schemas(false))
2193
2193
  ORDER BY c.conname
2194
+ 
2195
+ SQL (1.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
2196
+  (59.8ms) CREATE TABLE "billers" ("id" serial primary key, "slug" character varying)
2197
+  (75.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) 
2198
+  (39.0ms) CREATE INDEX "index_bloom_remit_responses_on_txn_id" ON "bloom_remit_responses" USING btree ("txn_id")
2199
+  (56.4ms) CREATE TABLE "bloom_remit_txns" ("id" serial primary key, "status" integer DEFAULT 0 NOT NULL, "sender_id" character varying NOT NULL, "sender_type" character varying NOT NULL, "amount" decimal NOT NULL, "account_name" character varying, "account_id" character varying, "secret" uuid NOT NULL, "target_slug" character varying NOT NULL, "owner_id" character varying, "owner_type" character varying, "external_id" character varying NOT NULL, "status_description" text, "vendor_external_id" character varying) 
2200
+  (37.4ms) CREATE INDEX "index_bloom_remit_txns_on_external_id" ON "bloom_remit_txns" USING btree ("external_id")
2201
+  (42.9ms) CREATE INDEX "index_bloom_remit_txns_on_owner_id_and_owner_type" ON "bloom_remit_txns" USING btree ("owner_id", "owner_type")
2202
+  (41.0ms) CREATE INDEX "index_bloom_remit_txns_on_vendor_external_id" ON "bloom_remit_txns" USING btree ("vendor_external_id")
2203
+  (56.9ms) CREATE TABLE "payments" ("id" serial primary key, "type" character varying) 
2204
+  (67.3ms) CREATE TABLE "users" ("id" serial primary key, "email" character varying, "bloom_remit_id" character varying, "type" character varying)
2205
+  (32.4ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
2206
+  (31.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
2207
+  (1.5ms) SELECT version FROM "schema_migrations"
2208
+  (10.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20160817003323')
2209
+  (9.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20160729085500')
2210
+  (10.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20160805001840')
2211
+  (10.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20160805042105')
2212
+  (11.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20160806011259')
2213
+  (11.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20160806012210')
2214
+  (11.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20160729070509')
2215
+  (11.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20160805004223')
2216
+  (10.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20160805004350')
2217
+  (13.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20160805040950')
2218
+  (11.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20160805095308')
2219
+  (10.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20160806054012')
2220
+  (19.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20160808081300')
2221
+  (14.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20160809043433')
2222
+ SQL (0.7ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
2223
+  (71.2ms) CREATE TABLE "billers" ("id" serial primary key, "slug" character varying) 
2224
+  (57.2ms) 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)
2225
+  (42.7ms) CREATE INDEX "index_bloom_remit_responses_on_txn_id" ON "bloom_remit_responses" USING btree ("txn_id")
2226
+  (69.8ms) CREATE TABLE "bloom_remit_txns" ("id" serial primary key, "status" integer DEFAULT 0 NOT NULL, "sender_id" character varying NOT NULL, "sender_type" character varying NOT NULL, "amount" decimal NOT NULL, "account_name" character varying, "account_id" character varying, "secret" uuid NOT NULL, "target_slug" character varying NOT NULL, "owner_id" character varying, "owner_type" character varying, "external_id" character varying NOT NULL, "status_description" text, "vendor_external_id" character varying)
2227
+  (35.7ms) CREATE INDEX "index_bloom_remit_txns_on_external_id" ON "bloom_remit_txns" USING btree ("external_id")
2228
+  (35.9ms) CREATE INDEX "index_bloom_remit_txns_on_owner_id_and_owner_type" ON "bloom_remit_txns" USING btree ("owner_id", "owner_type")
2229
+  (42.6ms) CREATE INDEX "index_bloom_remit_txns_on_vendor_external_id" ON "bloom_remit_txns" USING btree ("vendor_external_id")
2230
+  (71.4ms) CREATE TABLE "payments" ("id" serial primary key, "type" character varying)
2231
+  (54.0ms) CREATE TABLE "users" ("id" serial primary key, "email" character varying, "bloom_remit_id" character varying, "type" character varying) 
2232
+  (36.0ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)
2233
+  (33.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
2234
+  (1.1ms) SELECT version FROM "schema_migrations"
2235
+  (9.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20160817003323')
2236
+  (12.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20160729085500')
2237
+  (13.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20160805001840')
2238
+  (13.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20160805042105')
2239
+  (13.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20160806011259')
2240
+  (12.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20160806012210')
2241
+  (17.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20160729070509')
2242
+  (12.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20160805004223')
2243
+  (9.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20160805004350')
2244
+  (9.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20160805040950')
2245
+  (10.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20160805095308')
2246
+  (12.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20160806054012')
2247
+  (9.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20160808081300')
2248
+  (10.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20160809043433')
2249
+ ActiveRecord::SchemaMigration Load (0.9ms) SELECT "schema_migrations".* FROM "schema_migrations"
2250
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
2251
+  (3.1ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
2252
+ FROM pg_constraint c
2253
+ JOIN pg_class t1 ON c.conrelid = t1.oid
2254
+ JOIN pg_class t2 ON c.confrelid = t2.oid
2255
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
2256
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
2257
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
2258
+ WHERE c.contype = 'f'
2259
+ AND t1.relname = 'billers'
2260
+ AND t3.nspname = ANY (current_schemas(false))
2261
+ ORDER BY c.conname
2262
+ 
2263
+  (4.9ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
2264
+ FROM pg_constraint c
2265
+ JOIN pg_class t1 ON c.conrelid = t1.oid
2266
+ JOIN pg_class t2 ON c.confrelid = t2.oid
2267
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
2268
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
2269
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
2270
+ WHERE c.contype = 'f'
2271
+ AND t1.relname = 'bloom_remit_responses'
2272
+ AND t3.nspname = ANY (current_schemas(false))
2273
+ ORDER BY c.conname
2274
+
2275
+  (2.3ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
2276
+ FROM pg_constraint c
2277
+ JOIN pg_class t1 ON c.conrelid = t1.oid
2278
+ JOIN pg_class t2 ON c.confrelid = t2.oid
2279
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
2280
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
2281
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
2282
+ WHERE c.contype = 'f'
2283
+ AND t1.relname = 'bloom_remit_txns'
2284
+ AND t3.nspname = ANY (current_schemas(false))
2285
+ ORDER BY c.conname
2286
+ 
2287
+  (2.3ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
2288
+ FROM pg_constraint c
2289
+ JOIN pg_class t1 ON c.conrelid = t1.oid
2290
+ JOIN pg_class t2 ON c.confrelid = t2.oid
2291
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
2292
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
2293
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
2294
+ WHERE c.contype = 'f'
2295
+ AND t1.relname = 'payments'
2296
+ AND t3.nspname = ANY (current_schemas(false))
2297
+ ORDER BY c.conname
2298
+
2299
+  (2.4ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
2300
+ FROM pg_constraint c
2301
+ JOIN pg_class t1 ON c.conrelid = t1.oid
2302
+ JOIN pg_class t2 ON c.confrelid = t2.oid
2303
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
2304
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
2305
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
2306
+ WHERE c.contype = 'f'
2307
+ AND t1.relname = 'users'
2308
+ AND t3.nspname = ANY (current_schemas(false))
2309
+ ORDER BY c.conname
2194
2310
  
@@ -31505,3 +31505,2325 @@ Completed 204 No Content in 47ms (ActiveRecord: 1.2ms)
31505
31505
   (0.4ms) COMMIT
31506
31506
   (0.4ms) BEGIN
31507
31507
   (0.4ms) ROLLBACK
31508
+ ActiveRecord::SchemaMigration Load (3.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
31509
+  (5.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL
31510
+  (2.6ms)  SELECT schemaname || '.' || tablename
31511
+ FROM pg_tables
31512
+ WHERE
31513
+ tablename !~ '_prt_' AND
31514
+ tablename <> 'schema_migrations' AND
31515
+ schemaname = ANY (current_schemas(false))
31516
+ 
31517
+  (5.8ms) select table_name from information_schema.views where table_schema = 'app_test'
31518
+  (34.6ms) TRUNCATE TABLE "public"."billers", "public"."users", "public"."payments", "public"."bloom_remit_responses", "public"."bloom_remit_txns" RESTART IDENTITY CASCADE;
31519
+  (0.9ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL
31520
+  (0.2ms) BEGIN
31521
+  (0.2ms) COMMIT
31522
+  (0.2ms) BEGIN
31523
+  (0.2ms) ROLLBACK
31524
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
31525
+  (0.6ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL
31526
+  (1.5ms)  SELECT schemaname || '.' || tablename
31527
+ FROM pg_tables
31528
+ WHERE
31529
+ tablename !~ '_prt_' AND
31530
+ tablename <> 'schema_migrations' AND
31531
+ schemaname = ANY (current_schemas(false))
31532
+ 
31533
+  (1.3ms) select table_name from information_schema.views where table_schema = 'app_test'
31534
+  (24.6ms) TRUNCATE TABLE "public"."billers", "public"."users", "public"."payments", "public"."bloom_remit_responses", "public"."bloom_remit_txns" RESTART IDENTITY CASCADE;
31535
+  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL
31536
+  (0.3ms) BEGIN
31537
+  (0.3ms) COMMIT
31538
+  (0.3ms) BEGIN
31539
+  (0.3ms) ROLLBACK
31540
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
31541
+  (0.5ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL
31542
+  (1.4ms)  SELECT schemaname || '.' || tablename
31543
+ FROM pg_tables
31544
+ WHERE
31545
+ tablename !~ '_prt_' AND
31546
+ tablename <> 'schema_migrations' AND
31547
+ schemaname = ANY (current_schemas(false))
31548
+ 
31549
+  (1.2ms) select table_name from information_schema.views where table_schema = 'app_test'
31550
+  (21.7ms) TRUNCATE TABLE "public"."billers", "public"."users", "public"."payments", "public"."bloom_remit_responses", "public"."bloom_remit_txns" RESTART IDENTITY CASCADE;
31551
+  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL
31552
+  (0.3ms) BEGIN
31553
+  (0.4ms) COMMIT
31554
+  (0.3ms) BEGIN
31555
+  (0.3ms) ROLLBACK
31556
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
31557
+  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL
31558
+  (1.2ms)  SELECT schemaname || '.' || tablename
31559
+ FROM pg_tables
31560
+ WHERE
31561
+ tablename !~ '_prt_' AND
31562
+ tablename <> 'schema_migrations' AND
31563
+ schemaname = ANY (current_schemas(false))
31564
+ 
31565
+  (1.3ms) select table_name from information_schema.views where table_schema = 'app_test'
31566
+  (27.6ms) TRUNCATE TABLE "public"."billers", "public"."users", "public"."payments", "public"."bloom_remit_responses", "public"."bloom_remit_txns" RESTART IDENTITY CASCADE;
31567
+  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL
31568
+  (0.4ms) BEGIN
31569
+  (0.4ms) COMMIT
31570
+  (0.3ms) BEGIN
31571
+  (0.4ms) ROLLBACK
31572
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
31573
+  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL
31574
+  (1.2ms)  SELECT schemaname || '.' || tablename
31575
+ FROM pg_tables
31576
+ WHERE
31577
+ tablename !~ '_prt_' AND
31578
+ tablename <> 'schema_migrations' AND
31579
+ schemaname = ANY (current_schemas(false))
31580
+ 
31581
+  (1.5ms) select table_name from information_schema.views where table_schema = 'app_test'
31582
+  (22.8ms) TRUNCATE TABLE "public"."billers", "public"."users", "public"."payments", "public"."bloom_remit_responses", "public"."bloom_remit_txns" RESTART IDENTITY CASCADE;
31583
+  (0.7ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL
31584
+  (0.3ms) BEGIN
31585
+  (0.3ms) COMMIT
31586
+  (0.3ms) BEGIN
31587
+  (0.3ms) ROLLBACK
31588
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
31589
+  (0.5ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL
31590
+  (1.3ms)  SELECT schemaname || '.' || tablename
31591
+ FROM pg_tables
31592
+ WHERE
31593
+ tablename !~ '_prt_' AND
31594
+ tablename <> 'schema_migrations' AND
31595
+ schemaname = ANY (current_schemas(false))
31596
+ 
31597
+  (1.3ms) select table_name from information_schema.views where table_schema = 'app_test'
31598
+  (22.0ms) TRUNCATE TABLE "public"."billers", "public"."users", "public"."payments", "public"."bloom_remit_responses", "public"."bloom_remit_txns" RESTART IDENTITY CASCADE;
31599
+  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL
31600
+  (0.2ms) BEGIN
31601
+  (0.3ms) COMMIT
31602
+  (0.2ms) BEGIN
31603
+  (0.3ms) ROLLBACK
31604
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
31605
+  (0.5ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL
31606
+  (1.3ms)  SELECT schemaname || '.' || tablename
31607
+ FROM pg_tables
31608
+ WHERE
31609
+ tablename !~ '_prt_' AND
31610
+ tablename <> 'schema_migrations' AND
31611
+ schemaname = ANY (current_schemas(false))
31612
+ 
31613
+  (1.0ms) select table_name from information_schema.views where table_schema = 'app_test'
31614
+  (24.8ms) TRUNCATE TABLE "public"."billers", "public"."users", "public"."payments", "public"."bloom_remit_responses", "public"."bloom_remit_txns" RESTART IDENTITY CASCADE;
31615
+  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL
31616
+  (0.3ms) BEGIN
31617
+  (0.3ms) COMMIT
31618
+  (0.3ms) BEGIN
31619
+  (0.3ms) ROLLBACK
31620
+  (0.2ms) BEGIN
31621
+  (0.3ms) COMMIT
31622
+  (0.2ms) BEGIN
31623
+  (0.3ms) ROLLBACK
31624
+  (0.2ms) BEGIN
31625
+  (0.3ms) COMMIT
31626
+  (0.2ms) BEGIN
31627
+  (0.3ms) ROLLBACK
31628
+  (0.4ms) BEGIN
31629
+ SQL (1.1ms) INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
31630
+  (0.7ms) COMMIT
31631
+  (0.3ms) BEGIN
31632
+ SQL (1.3ms) INSERT INTO "users" ("type") VALUES ($1) RETURNING "id" [["type", "SubUser"]]
31633
+  (0.9ms) COMMIT
31634
+  (0.3ms) BEGIN
31635
+ SQL (0.5ms) INSERT INTO "payments" ("type") VALUES ($1) RETURNING "id" [["type", "SubPayment"]]
31636
+  (1.0ms) COMMIT
31637
+  (0.3ms) BEGIN
31638
+ SQL (2.1ms) INSERT INTO "bloom_remit_txns" ("secret", "sender_type", "sender_id", "amount", "account_name", "account_id", "target_slug", "owner_id", "owner_type", "external_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["secret", "ec62a532-5145-4b31-a908-51cdc1083fab"], ["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", "083d4e4ee08cb70794798235"]]
31639
+  (0.9ms) COMMIT
31640
+ User Load (1.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1]]
31641
+ Payment Load (0.4ms) SELECT "payments".* FROM "payments" WHERE "payments"."id" = $1 LIMIT 1 [["id", 1]]
31642
+  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL
31643
+  (20.5ms) TRUNCATE TABLE "public"."billers", "public"."users", "public"."payments", "public"."bloom_remit_responses", "public"."bloom_remit_txns" RESTART IDENTITY CASCADE;
31644
+  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL
31645
+  (0.3ms) BEGIN
31646
+ SQL (0.9ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
31647
+  (1.0ms) COMMIT
31648
+  (0.3ms) BEGIN
31649
+ 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", "6ba32f9c-ce4d-4b5c-aeab-ad000df4c505"], ["external_id", "0733f02ca3f8adad8de50836"], ["sender_id", "1"], ["sender_type", "User"]]
31650
+  (1.0ms) COMMIT
31651
+ 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", "6ba32f9c-ce4d-4b5c-aeab-ad000df4c505"]]
31652
+  (0.3ms) BEGIN
31653
+ SQL (1.2ms) UPDATE "bloom_remit_txns" SET "status" = $1, "status_description" = $2, "vendor_external_id" = $3 WHERE "bloom_remit_txns"."id" = $4 [["status", 1], ["status_description", "My status description"], ["vendor_external_id", "somerefno"], ["id", 1]]
31654
+  (1.2ms) COMMIT
31655
+  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL
31656
+  (24.3ms) TRUNCATE TABLE "public"."billers", "public"."users", "public"."payments", "public"."bloom_remit_responses", "public"."bloom_remit_txns" RESTART IDENTITY CASCADE;
31657
+  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL
31658
+  (0.4ms) BEGIN
31659
+  (0.3ms) COMMIT
31660
+  (0.3ms) BEGIN
31661
+  (0.3ms) ROLLBACK
31662
+  (0.3ms) BEGIN
31663
+  (0.3ms) COMMIT
31664
+  (0.2ms) BEGIN
31665
+  (0.3ms) ROLLBACK
31666
+  (0.2ms) BEGIN
31667
+  (0.2ms) COMMIT
31668
+  (0.2ms) BEGIN
31669
+  (0.3ms) ROLLBACK
31670
+  (0.3ms) BEGIN
31671
+  (0.4ms) COMMIT
31672
+  (0.3ms) BEGIN
31673
+  (0.3ms) ROLLBACK
31674
+  (0.2ms) BEGIN
31675
+  (0.2ms) COMMIT
31676
+  (0.2ms) BEGIN
31677
+  (0.2ms) ROLLBACK
31678
+  (0.3ms) BEGIN
31679
+  (0.2ms) COMMIT
31680
+  (0.2ms) BEGIN
31681
+  (0.2ms) ROLLBACK
31682
+  (0.3ms) BEGIN
31683
+  (0.3ms) COMMIT
31684
+  (0.3ms) BEGIN
31685
+  (0.4ms) ROLLBACK
31686
+  (0.2ms) BEGIN
31687
+  (0.8ms) COMMIT
31688
+  (0.3ms) BEGIN
31689
+  (0.3ms) SAVEPOINT active_record_1
31690
+ SQL (0.6ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
31691
+  (0.3ms) RELEASE SAVEPOINT active_record_1
31692
+  (0.3ms) SAVEPOINT active_record_1
31693
+ 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", "184ddaa0-0f06-46b3-b757-254c82b73435"], ["external_id", "e9a7d4929ed5aaae009c4661"], ["sender_id", "1"], ["sender_type", "User"]]
31694
+  (0.3ms) RELEASE SAVEPOINT active_record_1
31695
+ Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-09-16 01:11:14 +0000
31696
+ Processing by BloomRemit::Api::V1::TxnsController#post_update as JSON
31697
+ Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"1", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
31698
+ 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]]
31699
+ Rendered text template (0.0ms)
31700
+ Completed 404 Not Found in 51ms (Views: 48.9ms | ActiveRecord: 0.4ms)
31701
+ Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-09-16 01:11:14 +0000
31702
+ Processing by BloomRemit::Api::V1::TxnsController#post_update as JSON
31703
+ Parameters: {"secret"=>"184ddaa0-0f06-46b3-b757-254c82b73435", "status"=>"paid", "id"=>"1", "txn"=>{"status"=>"paid", "secret"=>"184ddaa0-0f06-46b3-b757-254c82b73435"}}
31704
+ 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", "184ddaa0-0f06-46b3-b757-254c82b73435"]]
31705
+  (0.3ms) SAVEPOINT active_record_1
31706
+ SQL (0.3ms) UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 1], ["id", 1]]
31707
+  (0.3ms) RELEASE SAVEPOINT active_record_1
31708
+ Completed 200 OK in 7ms (Views: 0.4ms | ActiveRecord: 1.4ms)
31709
+ BloomRemit::Txn Load (0.3ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1 [["id", 1]]
31710
+  (0.3ms) ROLLBACK
31711
+  (0.6ms) BEGIN
31712
+  (0.4ms) COMMIT
31713
+  (0.3ms) BEGIN
31714
+  (0.4ms) SAVEPOINT active_record_1
31715
+ SQL (0.5ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
31716
+  (0.3ms) RELEASE SAVEPOINT active_record_1
31717
+  (0.3ms) SAVEPOINT active_record_1
31718
+ 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", "d77300d0-8e82-4545-9f4d-99e85fa873bf"], ["external_id", "e0c650e4ca347916339528d0"], ["sender_id", "2"], ["sender_type", "User"]]
31719
+  (0.3ms) RELEASE SAVEPOINT active_record_1
31720
+ Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-09-16 01:11:14 +0000
31721
+ Processing by BloomRemit::Api::V1::TxnsController#update as JSON
31722
+ Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"2", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
31723
+ 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]]
31724
+ Rendered text template (0.0ms)
31725
+ Completed 404 Not Found in 3ms (Views: 1.0ms | ActiveRecord: 0.5ms)
31726
+ Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-09-16 01:11:14 +0000
31727
+ Processing by BloomRemit::Api::V1::TxnsController#update as JSON
31728
+ Parameters: {"secret"=>"d77300d0-8e82-4545-9f4d-99e85fa873bf", "status"=>"paid", "id"=>"2", "txn"=>{"status"=>"paid", "secret"=>"d77300d0-8e82-4545-9f4d-99e85fa873bf"}}
31729
+ 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", "d77300d0-8e82-4545-9f4d-99e85fa873bf"]]
31730
+  (0.3ms) SAVEPOINT active_record_1
31731
+ SQL (0.4ms) UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 1], ["id", 2]]
31732
+  (0.3ms) RELEASE SAVEPOINT active_record_1
31733
+ Completed 204 No Content in 45ms (ActiveRecord: 1.6ms)
31734
+ BloomRemit::Txn Load (0.6ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1 [["id", 2]]
31735
+  (0.3ms) ROLLBACK
31736
+  (0.3ms) BEGIN
31737
+  (0.3ms) COMMIT
31738
+  (0.3ms) BEGIN
31739
+  (0.4ms) ROLLBACK
31740
+  (0.2ms) BEGIN
31741
+  (0.2ms) COMMIT
31742
+  (0.2ms) BEGIN
31743
+  (0.3ms) ROLLBACK
31744
+  (0.2ms) BEGIN
31745
+  (0.2ms) COMMIT
31746
+  (0.2ms) BEGIN
31747
+  (0.3ms) SAVEPOINT active_record_1
31748
+ SQL (0.6ms) INSERT INTO "payments" DEFAULT VALUES RETURNING "id"
31749
+  (0.3ms) RELEASE SAVEPOINT active_record_1
31750
+  (0.2ms) SAVEPOINT active_record_1
31751
+ SQL (0.4ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
31752
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31753
+  (0.2ms) SAVEPOINT active_record_1
31754
+ 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", "f55849e6-746b-4c5b-ad34-aacf031fc1e5"], ["external_id", "88589a71abbeb29f0a4f4ce9"], ["owner_id", "1"], ["owner_type", "Payment"], ["sender_id", "3"], ["sender_type", "User"]]
31755
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31756
+  (0.4ms) ROLLBACK
31757
+  (0.3ms) BEGIN
31758
+  (0.3ms) COMMIT
31759
+  (0.3ms) BEGIN
31760
+  (0.4ms) SAVEPOINT active_record_1
31761
+ SQL (0.5ms) INSERT INTO "payments" DEFAULT VALUES RETURNING "id"
31762
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31763
+  (0.2ms) SAVEPOINT active_record_1
31764
+ SQL (0.4ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
31765
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31766
+  (0.2ms) SAVEPOINT active_record_1
31767
+ 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", "923e4ca7-8e87-4aa0-a942-d4dcf3cdcbb6"], ["external_id", "78eb5a99279d12b20024c736"], ["owner_id", "2"], ["owner_type", "Payment"], ["sender_id", "4"], ["sender_type", "User"]]
31768
+  (0.3ms) RELEASE SAVEPOINT active_record_1
31769
+  (0.3ms) ROLLBACK
31770
+  (0.2ms) BEGIN
31771
+  (0.3ms) COMMIT
31772
+  (0.2ms) BEGIN
31773
+  (0.3ms) ROLLBACK
31774
+  (0.5ms) BEGIN
31775
+  (0.3ms) COMMIT
31776
+  (0.2ms) BEGIN
31777
+  (0.3ms) ROLLBACK
31778
+  (0.3ms) BEGIN
31779
+  (0.3ms) COMMIT
31780
+  (0.3ms) BEGIN
31781
+  (0.4ms) ROLLBACK
31782
+  (0.2ms) BEGIN
31783
+  (0.3ms) COMMIT
31784
+  (0.2ms) BEGIN
31785
+  (0.4ms) ROLLBACK
31786
+  (0.4ms) BEGIN
31787
+  (0.4ms) COMMIT
31788
+  (0.4ms) BEGIN
31789
+  (0.3ms) ROLLBACK
31790
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
31791
+  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL
31792
+  (1.3ms)  SELECT schemaname || '.' || tablename
31793
+ FROM pg_tables
31794
+ WHERE
31795
+ tablename !~ '_prt_' AND
31796
+ tablename <> 'schema_migrations' AND
31797
+ schemaname = ANY (current_schemas(false))
31798
+ 
31799
+  (1.1ms) select table_name from information_schema.views where table_schema = 'app_test'
31800
+  (26.5ms) TRUNCATE TABLE "public"."billers", "public"."users", "public"."payments", "public"."bloom_remit_responses", "public"."bloom_remit_txns" RESTART IDENTITY CASCADE;
31801
+  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL
31802
+  (0.4ms) BEGIN
31803
+  (0.3ms) COMMIT
31804
+  (0.4ms) BEGIN
31805
+  (0.4ms) ROLLBACK
31806
+  (0.3ms) BEGIN
31807
+  (0.3ms) COMMIT
31808
+  (0.2ms) BEGIN
31809
+  (0.3ms) ROLLBACK
31810
+  (0.2ms) BEGIN
31811
+  (0.4ms) COMMIT
31812
+  (0.3ms) BEGIN
31813
+  (0.4ms) ROLLBACK
31814
+  (0.4ms) BEGIN
31815
+ SQL (0.6ms) INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
31816
+  (0.8ms) COMMIT
31817
+  (0.3ms) BEGIN
31818
+ SQL (0.5ms) INSERT INTO "users" ("type") VALUES ($1) RETURNING "id" [["type", "SubUser"]]
31819
+  (0.9ms) COMMIT
31820
+  (0.3ms) BEGIN
31821
+ SQL (0.5ms) INSERT INTO "payments" ("type") VALUES ($1) RETURNING "id" [["type", "SubPayment"]]
31822
+  (1.1ms) COMMIT
31823
+  (0.3ms) BEGIN
31824
+ 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") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["secret", "260b046a-38ce-4935-b2af-beaae7ebf0ca"], ["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", "7229ae29bfa05715a42fa8e4"]]
31825
+  (0.9ms) COMMIT
31826
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1]]
31827
+ Payment Load (0.4ms) SELECT "payments".* FROM "payments" WHERE "payments"."id" = $1 LIMIT 1 [["id", 1]]
31828
+  (0.5ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL
31829
+  (26.0ms) TRUNCATE TABLE "public"."billers", "public"."users", "public"."payments", "public"."bloom_remit_responses", "public"."bloom_remit_txns" RESTART IDENTITY CASCADE;
31830
+  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL
31831
+  (0.8ms) BEGIN
31832
+ SQL (1.1ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
31833
+  (1.2ms) COMMIT
31834
+  (0.3ms) BEGIN
31835
+ 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", "1cb3b6b4-c3f6-4515-9f0d-4c8993e5eb8f"], ["external_id", "306fac3998660b2277dcfd86"], ["sender_id", "1"], ["sender_type", "User"]]
31836
+  (1.0ms) COMMIT
31837
+ 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", "1cb3b6b4-c3f6-4515-9f0d-4c8993e5eb8f"]]
31838
+  (0.3ms) BEGIN
31839
+ 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", "somerefno"], ["id", 1]]
31840
+  (1.0ms) COMMIT
31841
+  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL
31842
+  (27.0ms) TRUNCATE TABLE "public"."billers", "public"."users", "public"."payments", "public"."bloom_remit_responses", "public"."bloom_remit_txns" RESTART IDENTITY CASCADE;
31843
+  (0.7ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL
31844
+  (0.4ms) BEGIN
31845
+  (0.5ms) COMMIT
31846
+  (0.7ms) BEGIN
31847
+  (0.4ms) ROLLBACK
31848
+  (0.2ms) BEGIN
31849
+  (0.3ms) COMMIT
31850
+  (0.3ms) BEGIN
31851
+  (0.4ms) ROLLBACK
31852
+  (0.4ms) BEGIN
31853
+  (0.4ms) COMMIT
31854
+  (0.3ms) BEGIN
31855
+  (0.5ms) ROLLBACK
31856
+  (0.3ms) BEGIN
31857
+  (0.4ms) COMMIT
31858
+  (0.4ms) BEGIN
31859
+  (0.3ms) ROLLBACK
31860
+  (0.2ms) BEGIN
31861
+  (0.2ms) COMMIT
31862
+  (0.2ms) BEGIN
31863
+  (0.2ms) ROLLBACK
31864
+  (0.1ms) BEGIN
31865
+  (0.2ms) COMMIT
31866
+  (0.2ms) BEGIN
31867
+  (0.2ms) ROLLBACK
31868
+  (0.2ms) BEGIN
31869
+  (0.2ms) COMMIT
31870
+  (0.2ms) BEGIN
31871
+  (0.3ms) ROLLBACK
31872
+  (0.2ms) BEGIN
31873
+  (0.3ms) COMMIT
31874
+  (0.3ms) BEGIN
31875
+  (0.3ms) SAVEPOINT active_record_1
31876
+ SQL (0.6ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
31877
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31878
+  (0.2ms) SAVEPOINT active_record_1
31879
+ 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", "8e876109-5f91-441c-887d-cc8e66e79792"], ["external_id", "7b5ce3230e6d1e82df334d64"], ["sender_id", "1"], ["sender_type", "User"]]
31880
+  (0.3ms) RELEASE SAVEPOINT active_record_1
31881
+ Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-09-16 01:13:37 +0000
31882
+ Processing by BloomRemit::Api::V1::TxnsController#post_update as JSON
31883
+ Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"1", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
31884
+ 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]]
31885
+ Rendered text template (0.0ms)
31886
+ Completed 404 Not Found in 58ms (Views: 56.3ms | ActiveRecord: 0.5ms)
31887
+ Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-09-16 01:13:37 +0000
31888
+ Processing by BloomRemit::Api::V1::TxnsController#post_update as JSON
31889
+ Parameters: {"secret"=>"8e876109-5f91-441c-887d-cc8e66e79792", "status"=>"paid", "id"=>"1", "txn"=>{"status"=>"paid", "secret"=>"8e876109-5f91-441c-887d-cc8e66e79792"}}
31890
+ 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", "8e876109-5f91-441c-887d-cc8e66e79792"]]
31891
+  (0.4ms) SAVEPOINT active_record_1
31892
+ SQL (0.5ms) UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 1], ["id", 1]]
31893
+  (0.4ms) RELEASE SAVEPOINT active_record_1
31894
+ Completed 200 OK in 9ms (Views: 0.5ms | ActiveRecord: 1.8ms)
31895
+ BloomRemit::Txn Load (0.4ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1 [["id", 1]]
31896
+  (0.3ms) ROLLBACK
31897
+  (0.3ms) BEGIN
31898
+  (0.3ms) COMMIT
31899
+  (0.4ms) BEGIN
31900
+  (0.4ms) SAVEPOINT active_record_1
31901
+ SQL (0.5ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
31902
+  (0.3ms) RELEASE SAVEPOINT active_record_1
31903
+  (0.3ms) SAVEPOINT active_record_1
31904
+ 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", "f7b1d284-11f2-4fa5-a173-c1d3caef9d88"], ["external_id", "b4e2e1943f297bb18cb4ec36"], ["sender_id", "2"], ["sender_type", "User"]]
31905
+  (0.3ms) RELEASE SAVEPOINT active_record_1
31906
+ Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-09-16 01:13:37 +0000
31907
+ Processing by BloomRemit::Api::V1::TxnsController#update as JSON
31908
+ Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"2", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
31909
+ 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]]
31910
+ Rendered text template (0.0ms)
31911
+ Completed 404 Not Found in 3ms (Views: 0.9ms | ActiveRecord: 0.5ms)
31912
+ Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-09-16 01:13:37 +0000
31913
+ Processing by BloomRemit::Api::V1::TxnsController#update as JSON
31914
+ Parameters: {"secret"=>"f7b1d284-11f2-4fa5-a173-c1d3caef9d88", "status"=>"paid", "id"=>"2", "txn"=>{"status"=>"paid", "secret"=>"f7b1d284-11f2-4fa5-a173-c1d3caef9d88"}}
31915
+ 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", "f7b1d284-11f2-4fa5-a173-c1d3caef9d88"]]
31916
+  (0.3ms) SAVEPOINT active_record_1
31917
+ SQL (0.6ms) UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 1], ["id", 2]]
31918
+  (0.5ms) RELEASE SAVEPOINT active_record_1
31919
+ Completed 204 No Content in 51ms (ActiveRecord: 2.0ms)
31920
+ BloomRemit::Txn Load (0.5ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1 [["id", 2]]
31921
+  (0.3ms) ROLLBACK
31922
+  (0.3ms) BEGIN
31923
+  (0.4ms) COMMIT
31924
+  (0.4ms) BEGIN
31925
+  (0.3ms) ROLLBACK
31926
+  (0.3ms) BEGIN
31927
+  (0.3ms) COMMIT
31928
+  (0.3ms) BEGIN
31929
+  (0.4ms) ROLLBACK
31930
+  (0.2ms) BEGIN
31931
+  (0.2ms) COMMIT
31932
+  (0.2ms) BEGIN
31933
+  (0.3ms) SAVEPOINT active_record_1
31934
+ SQL (0.6ms) INSERT INTO "payments" DEFAULT VALUES RETURNING "id"
31935
+  (0.3ms) RELEASE SAVEPOINT active_record_1
31936
+  (0.2ms) SAVEPOINT active_record_1
31937
+ SQL (0.4ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
31938
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31939
+  (0.2ms) SAVEPOINT active_record_1
31940
+ 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", "2bdce183-22dc-4d4c-bd2b-b3c645a61033"], ["external_id", "052e13745cd3054b290d01e1"], ["owner_id", "1"], ["owner_type", "Payment"], ["sender_id", "3"], ["sender_type", "User"]]
31941
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31942
+  (0.3ms) ROLLBACK
31943
+  (0.3ms) BEGIN
31944
+  (0.4ms) COMMIT
31945
+  (0.3ms) BEGIN
31946
+  (0.3ms) SAVEPOINT active_record_1
31947
+ SQL (0.4ms) INSERT INTO "payments" DEFAULT VALUES RETURNING "id"
31948
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31949
+  (0.2ms) SAVEPOINT active_record_1
31950
+ SQL (0.4ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
31951
+  (0.3ms) RELEASE SAVEPOINT active_record_1
31952
+  (0.2ms) SAVEPOINT active_record_1
31953
+ 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", "32cabca1-5815-4041-a15e-4a3d74d1ddf4"], ["external_id", "8398757fac8b9f7332ce7a54"], ["owner_id", "2"], ["owner_type", "Payment"], ["sender_id", "4"], ["sender_type", "User"]]
31954
+  (0.3ms) RELEASE SAVEPOINT active_record_1
31955
+  (0.3ms) ROLLBACK
31956
+  (0.2ms) BEGIN
31957
+  (0.3ms) COMMIT
31958
+  (0.2ms) BEGIN
31959
+  (0.3ms) ROLLBACK
31960
+  (0.3ms) BEGIN
31961
+  (0.5ms) COMMIT
31962
+  (0.4ms) BEGIN
31963
+  (0.3ms) ROLLBACK
31964
+  (0.3ms) BEGIN
31965
+  (0.4ms) COMMIT
31966
+  (0.3ms) BEGIN
31967
+  (0.3ms) ROLLBACK
31968
+  (0.3ms) BEGIN
31969
+  (0.3ms) COMMIT
31970
+  (0.3ms) BEGIN
31971
+  (0.3ms) ROLLBACK
31972
+  (0.3ms) BEGIN
31973
+  (0.4ms) COMMIT
31974
+  (0.3ms) BEGIN
31975
+  (0.3ms) ROLLBACK
31976
+ ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"
31977
+  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL
31978
+  (1.2ms)  SELECT schemaname || '.' || tablename
31979
+ FROM pg_tables
31980
+ WHERE
31981
+ tablename !~ '_prt_' AND
31982
+ tablename <> 'schema_migrations' AND
31983
+ schemaname = ANY (current_schemas(false))
31984
+ 
31985
+  (1.1ms) select table_name from information_schema.views where table_schema = 'app_test'
31986
+  (27.3ms) TRUNCATE TABLE "public"."billers", "public"."users", "public"."payments", "public"."bloom_remit_responses", "public"."bloom_remit_txns" RESTART IDENTITY CASCADE;
31987
+  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL
31988
+  (0.3ms) BEGIN
31989
+  (0.3ms) COMMIT
31990
+  (0.2ms) BEGIN
31991
+  (0.3ms) ROLLBACK
31992
+  (0.2ms) BEGIN
31993
+  (0.5ms) COMMIT
31994
+  (0.4ms) BEGIN
31995
+  (0.6ms) ROLLBACK
31996
+  (0.4ms) BEGIN
31997
+  (0.6ms) COMMIT
31998
+  (1.1ms) BEGIN
31999
+  (0.3ms) ROLLBACK
32000
+  (0.3ms) BEGIN
32001
+ SQL (0.7ms) INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
32002
+  (1.1ms) COMMIT
32003
+  (0.4ms) BEGIN
32004
+ SQL (0.5ms) INSERT INTO "users" ("type") VALUES ($1) RETURNING "id" [["type", "SubUser"]]
32005
+  (1.1ms) COMMIT
32006
+  (0.3ms) BEGIN
32007
+ SQL (0.5ms) INSERT INTO "payments" ("type") VALUES ($1) RETURNING "id" [["type", "SubPayment"]]
32008
+  (1.0ms) COMMIT
32009
+  (0.3ms) BEGIN
32010
+ 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") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["secret", "ef81f1a8-ab44-4ffb-9389-efaf6bf30849"], ["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", "be2903aeabba691e4b9e0502"]]
32011
+  (1.0ms) COMMIT
32012
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1]]
32013
+ Payment Load (0.4ms) SELECT "payments".* FROM "payments" WHERE "payments"."id" = $1 LIMIT 1 [["id", 1]]
32014
+  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL
32015
+  (25.7ms) TRUNCATE TABLE "public"."billers", "public"."users", "public"."payments", "public"."bloom_remit_responses", "public"."bloom_remit_txns" RESTART IDENTITY CASCADE;
32016
+  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL
32017
+  (0.3ms) BEGIN
32018
+ SQL (1.7ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
32019
+  (0.8ms) COMMIT
32020
+  (0.2ms) BEGIN
32021
+ 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", "94577739-c67e-4cdb-9f07-7730a0d2e50b"], ["external_id", "9545701985ee4a6456093143"], ["sender_id", "1"], ["sender_type", "User"]]
32022
+  (1.1ms) COMMIT
32023
+ 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", "94577739-c67e-4cdb-9f07-7730a0d2e50b"]]
32024
+  (0.3ms) BEGIN
32025
+ 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", "somerefno"], ["id", 1]]
32026
+  (0.9ms) COMMIT
32027
+  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL
32028
+  (27.8ms) TRUNCATE TABLE "public"."billers", "public"."users", "public"."payments", "public"."bloom_remit_responses", "public"."bloom_remit_txns" RESTART IDENTITY CASCADE;
32029
+  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL
32030
+  (0.3ms) BEGIN
32031
+  (0.5ms) COMMIT
32032
+  (0.4ms) BEGIN
32033
+  (0.3ms) ROLLBACK
32034
+  (0.2ms) BEGIN
32035
+  (0.2ms) COMMIT
32036
+  (0.2ms) BEGIN
32037
+  (0.4ms) ROLLBACK
32038
+  (0.4ms) BEGIN
32039
+  (0.5ms) COMMIT
32040
+  (0.3ms) BEGIN
32041
+  (0.5ms) ROLLBACK
32042
+  (0.3ms) BEGIN
32043
+  (0.3ms) COMMIT
32044
+  (0.3ms) BEGIN
32045
+  (0.2ms) ROLLBACK
32046
+  (0.2ms) BEGIN
32047
+  (1.3ms) COMMIT
32048
+  (0.4ms) BEGIN
32049
+  (0.3ms) ROLLBACK
32050
+  (0.3ms) BEGIN
32051
+  (0.3ms) COMMIT
32052
+  (0.3ms) BEGIN
32053
+  (0.3ms) ROLLBACK
32054
+  (0.2ms) BEGIN
32055
+  (0.2ms) COMMIT
32056
+  (0.2ms) BEGIN
32057
+  (0.3ms) ROLLBACK
32058
+  (0.3ms) BEGIN
32059
+  (0.3ms) COMMIT
32060
+  (0.3ms) BEGIN
32061
+  (0.3ms) SAVEPOINT active_record_1
32062
+ SQL (0.6ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
32063
+  (0.4ms) RELEASE SAVEPOINT active_record_1
32064
+  (0.3ms) SAVEPOINT active_record_1
32065
+ 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", "cfd3a3b8-60f8-4fce-a1ca-420c709cd76f"], ["external_id", "04c995634950aad904c0cf47"], ["sender_id", "1"], ["sender_type", "User"]]
32066
+  (0.3ms) RELEASE SAVEPOINT active_record_1
32067
+ Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-09-16 01:15:37 +0000
32068
+ Processing by BloomRemit::Api::V1::TxnsController#post_update as JSON
32069
+ Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"1", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
32070
+ 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]]
32071
+ Rendered text template (0.0ms)
32072
+ Completed 404 Not Found in 55ms (Views: 53.3ms | ActiveRecord: 0.5ms)
32073
+ Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-09-16 01:15:37 +0000
32074
+ Processing by BloomRemit::Api::V1::TxnsController#post_update as JSON
32075
+ Parameters: {"secret"=>"cfd3a3b8-60f8-4fce-a1ca-420c709cd76f", "status"=>"paid", "id"=>"1", "txn"=>{"status"=>"paid", "secret"=>"cfd3a3b8-60f8-4fce-a1ca-420c709cd76f"}}
32076
+ 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", "cfd3a3b8-60f8-4fce-a1ca-420c709cd76f"]]
32077
+  (0.3ms) SAVEPOINT active_record_1
32078
+ SQL (0.4ms) UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 1], ["id", 1]]
32079
+  (0.3ms) RELEASE SAVEPOINT active_record_1
32080
+ Completed 200 OK in 8ms (Views: 0.4ms | ActiveRecord: 1.4ms)
32081
+ BloomRemit::Txn Load (0.4ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1 [["id", 1]]
32082
+  (0.3ms) ROLLBACK
32083
+  (0.3ms) BEGIN
32084
+  (0.4ms) COMMIT
32085
+  (0.3ms) BEGIN
32086
+  (0.3ms) SAVEPOINT active_record_1
32087
+ SQL (0.4ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
32088
+  (0.3ms) RELEASE SAVEPOINT active_record_1
32089
+  (0.3ms) SAVEPOINT active_record_1
32090
+ 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", "3b0ebb5a-bd61-496b-a509-1a627cd7c335"], ["external_id", "05aa8afaa66de13563b6a1ad"], ["sender_id", "2"], ["sender_type", "User"]]
32091
+  (0.3ms) RELEASE SAVEPOINT active_record_1
32092
+ Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-09-16 01:15:37 +0000
32093
+ Processing by BloomRemit::Api::V1::TxnsController#update as JSON
32094
+ Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"2", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
32095
+ 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", nil]]
32096
+ Rendered text template (0.0ms)
32097
+ Completed 404 Not Found in 4ms (Views: 0.9ms | ActiveRecord: 0.6ms)
32098
+ Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-09-16 01:15:37 +0000
32099
+ Processing by BloomRemit::Api::V1::TxnsController#update as JSON
32100
+ Parameters: {"secret"=>"3b0ebb5a-bd61-496b-a509-1a627cd7c335", "status"=>"paid", "id"=>"2", "txn"=>{"status"=>"paid", "secret"=>"3b0ebb5a-bd61-496b-a509-1a627cd7c335"}}
32101
+ 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", "3b0ebb5a-bd61-496b-a509-1a627cd7c335"]]
32102
+  (0.4ms) SAVEPOINT active_record_1
32103
+ SQL (0.5ms) UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 1], ["id", 2]]
32104
+  (0.3ms) RELEASE SAVEPOINT active_record_1
32105
+ Completed 204 No Content in 53ms (ActiveRecord: 1.7ms)
32106
+ BloomRemit::Txn Load (0.5ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1 [["id", 2]]
32107
+  (0.4ms) ROLLBACK
32108
+  (0.3ms) BEGIN
32109
+  (0.3ms) COMMIT
32110
+  (0.3ms) BEGIN
32111
+  (0.3ms) ROLLBACK
32112
+  (0.2ms) BEGIN
32113
+  (0.3ms) COMMIT
32114
+  (0.3ms) BEGIN
32115
+  (0.3ms) ROLLBACK
32116
+  (0.2ms) BEGIN
32117
+  (0.2ms) COMMIT
32118
+  (0.2ms) BEGIN
32119
+  (0.3ms) SAVEPOINT active_record_1
32120
+ SQL (0.5ms) INSERT INTO "payments" DEFAULT VALUES RETURNING "id"
32121
+  (0.3ms) RELEASE SAVEPOINT active_record_1
32122
+  (0.2ms) SAVEPOINT active_record_1
32123
+ SQL (0.4ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
32124
+  (0.3ms) RELEASE SAVEPOINT active_record_1
32125
+  (0.2ms) SAVEPOINT active_record_1
32126
+ 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", "8d1c7c38-ff56-49a5-8c17-870da434af1c"], ["external_id", "a02df48bd7b456e706118f18"], ["owner_id", "1"], ["owner_type", "Payment"], ["sender_id", "3"], ["sender_type", "User"]]
32127
+  (0.3ms) RELEASE SAVEPOINT active_record_1
32128
+  (0.3ms) ROLLBACK
32129
+  (0.2ms) BEGIN
32130
+  (0.2ms) COMMIT
32131
+  (0.2ms) BEGIN
32132
+  (0.3ms) SAVEPOINT active_record_1
32133
+ SQL (0.4ms) INSERT INTO "payments" DEFAULT VALUES RETURNING "id"
32134
+  (0.3ms) RELEASE SAVEPOINT active_record_1
32135
+  (0.2ms) SAVEPOINT active_record_1
32136
+ SQL (0.5ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
32137
+  (0.4ms) RELEASE SAVEPOINT active_record_1
32138
+  (0.3ms) SAVEPOINT active_record_1
32139
+ 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", "38855de5-55a4-43eb-aa03-53896883e122"], ["external_id", "34ba3edd8eca49d9c47e8251"], ["owner_id", "2"], ["owner_type", "Payment"], ["sender_id", "4"], ["sender_type", "User"]]
32140
+  (0.3ms) RELEASE SAVEPOINT active_record_1
32141
+  (0.3ms) ROLLBACK
32142
+  (0.2ms) BEGIN
32143
+  (0.3ms) COMMIT
32144
+  (0.2ms) BEGIN
32145
+  (0.4ms) ROLLBACK
32146
+  (0.6ms) BEGIN
32147
+  (0.5ms) COMMIT
32148
+  (0.4ms) BEGIN
32149
+  (0.3ms) ROLLBACK
32150
+  (0.3ms) BEGIN
32151
+  (0.4ms) COMMIT
32152
+  (0.4ms) BEGIN
32153
+  (0.3ms) ROLLBACK
32154
+  (0.2ms) BEGIN
32155
+  (0.3ms) COMMIT
32156
+  (0.3ms) BEGIN
32157
+  (0.3ms) ROLLBACK
32158
+  (0.2ms) BEGIN
32159
+  (0.2ms) COMMIT
32160
+  (0.2ms) BEGIN
32161
+  (0.2ms) ROLLBACK
32162
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
32163
+  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL
32164
+  (1.2ms)  SELECT schemaname || '.' || tablename
32165
+ FROM pg_tables
32166
+ WHERE
32167
+ tablename !~ '_prt_' AND
32168
+ tablename <> 'schema_migrations' AND
32169
+ schemaname = ANY (current_schemas(false))
32170
+ 
32171
+  (1.0ms) select table_name from information_schema.views where table_schema = 'app_test'
32172
+  (25.2ms) TRUNCATE TABLE "public"."billers", "public"."users", "public"."payments", "public"."bloom_remit_responses", "public"."bloom_remit_txns" RESTART IDENTITY CASCADE;
32173
+  (1.0ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL
32174
+  (0.3ms) BEGIN
32175
+  (0.3ms) COMMIT
32176
+  (0.4ms) BEGIN
32177
+  (0.3ms) ROLLBACK
32178
+  (0.2ms) BEGIN
32179
+  (0.2ms) COMMIT
32180
+  (0.2ms) BEGIN
32181
+  (0.3ms) ROLLBACK
32182
+  (0.4ms) BEGIN
32183
+  (0.4ms) COMMIT
32184
+  (0.4ms) BEGIN
32185
+  (0.4ms) ROLLBACK
32186
+  (0.2ms) BEGIN
32187
+ SQL (0.6ms) INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
32188
+  (0.9ms) COMMIT
32189
+  (0.4ms) BEGIN
32190
+ SQL (0.5ms) INSERT INTO "users" ("type") VALUES ($1) RETURNING "id" [["type", "SubUser"]]
32191
+  (0.8ms) COMMIT
32192
+  (0.3ms) BEGIN
32193
+ SQL (0.4ms) INSERT INTO "payments" ("type") VALUES ($1) RETURNING "id" [["type", "SubPayment"]]
32194
+  (0.8ms) COMMIT
32195
+  (0.4ms) BEGIN
32196
+ 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") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["secret", "6f46faf8-197b-4d6f-a313-9c588dd317ff"], ["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", "820ab386879a91c7aeedfeeb"]]
32197
+  (1.0ms) COMMIT
32198
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1]]
32199
+ Payment Load (0.4ms) SELECT "payments".* FROM "payments" WHERE "payments"."id" = $1 LIMIT 1 [["id", 1]]
32200
+  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL
32201
+  (21.4ms) TRUNCATE TABLE "public"."billers", "public"."users", "public"."payments", "public"."bloom_remit_responses", "public"."bloom_remit_txns" RESTART IDENTITY CASCADE;
32202
+  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL
32203
+  (0.4ms) BEGIN
32204
+ SQL (0.8ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
32205
+  (0.9ms) COMMIT
32206
+  (0.3ms) BEGIN
32207
+ 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", "862dcd7b-44b2-4345-8cae-c07bfcee9989"], ["external_id", "dd8323f7c11693ce2531b8e7"], ["sender_id", "1"], ["sender_type", "User"]]
32208
+  (1.0ms) COMMIT
32209
+ 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", "862dcd7b-44b2-4345-8cae-c07bfcee9989"]]
32210
+  (0.4ms) BEGIN
32211
+ 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", "somerefno"], ["id", 1]]
32212
+  (1.0ms) COMMIT
32213
+  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL
32214
+  (25.9ms) TRUNCATE TABLE "public"."billers", "public"."users", "public"."payments", "public"."bloom_remit_responses", "public"."bloom_remit_txns" RESTART IDENTITY CASCADE;
32215
+  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL
32216
+  (0.4ms) BEGIN
32217
+  (0.3ms) COMMIT
32218
+  (0.4ms) BEGIN
32219
+  (0.3ms) ROLLBACK
32220
+  (0.2ms) BEGIN
32221
+  (0.3ms) COMMIT
32222
+  (0.3ms) BEGIN
32223
+  (0.3ms) ROLLBACK
32224
+  (0.3ms) BEGIN
32225
+  (0.3ms) COMMIT
32226
+  (0.3ms) BEGIN
32227
+  (0.5ms) ROLLBACK
32228
+  (0.2ms) BEGIN
32229
+  (0.3ms) COMMIT
32230
+  (0.3ms) BEGIN
32231
+  (0.3ms) ROLLBACK
32232
+  (0.2ms) BEGIN
32233
+  (0.3ms) COMMIT
32234
+  (0.2ms) BEGIN
32235
+  (0.3ms) ROLLBACK
32236
+  (0.3ms) BEGIN
32237
+  (0.3ms) COMMIT
32238
+  (0.3ms) BEGIN
32239
+  (0.4ms) ROLLBACK
32240
+  (0.2ms) BEGIN
32241
+  (0.4ms) COMMIT
32242
+  (0.2ms) BEGIN
32243
+  (0.3ms) ROLLBACK
32244
+  (0.2ms) BEGIN
32245
+  (0.2ms) COMMIT
32246
+  (0.2ms) BEGIN
32247
+  (0.3ms) SAVEPOINT active_record_1
32248
+ SQL (0.7ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
32249
+  (0.3ms) RELEASE SAVEPOINT active_record_1
32250
+  (0.3ms) SAVEPOINT active_record_1
32251
+ 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", "50c91f52-f7a0-48ab-9fcc-fa797f4c611f"], ["external_id", "ef3f6e4a8c10f05ba42d9b61"], ["sender_id", "1"], ["sender_type", "User"]]
32252
+  (0.3ms) RELEASE SAVEPOINT active_record_1
32253
+ Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-09-16 01:16:20 +0000
32254
+ Processing by BloomRemit::Api::V1::TxnsController#post_update as JSON
32255
+ Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"1", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
32256
+ 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]]
32257
+ Rendered text template (0.0ms)
32258
+ Completed 404 Not Found in 59ms (Views: 56.7ms | ActiveRecord: 0.5ms)
32259
+ Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-09-16 01:16:20 +0000
32260
+ Processing by BloomRemit::Api::V1::TxnsController#post_update as JSON
32261
+ Parameters: {"secret"=>"50c91f52-f7a0-48ab-9fcc-fa797f4c611f", "status"=>"paid", "id"=>"1", "txn"=>{"status"=>"paid", "secret"=>"50c91f52-f7a0-48ab-9fcc-fa797f4c611f"}}
32262
+ 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", "50c91f52-f7a0-48ab-9fcc-fa797f4c611f"]]
32263
+  (0.3ms) SAVEPOINT active_record_1
32264
+ SQL (0.4ms) UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 1], ["id", 1]]
32265
+  (0.3ms) RELEASE SAVEPOINT active_record_1
32266
+ Completed 200 OK in 8ms (Views: 0.4ms | ActiveRecord: 1.5ms)
32267
+ BloomRemit::Txn Load (0.4ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1 [["id", 1]]
32268
+  (0.3ms) ROLLBACK
32269
+  (0.3ms) BEGIN
32270
+  (0.4ms) COMMIT
32271
+  (0.3ms) BEGIN
32272
+  (0.3ms) SAVEPOINT active_record_1
32273
+ SQL (0.4ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
32274
+  (0.4ms) RELEASE SAVEPOINT active_record_1
32275
+  (0.3ms) SAVEPOINT active_record_1
32276
+ 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", "ebf17738-eb89-42b4-93cc-0d9dcb7b217d"], ["external_id", "8205d58f2f58b996261b82b8"], ["sender_id", "2"], ["sender_type", "User"]]
32277
+  (0.3ms) RELEASE SAVEPOINT active_record_1
32278
+ Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-09-16 01:16:20 +0000
32279
+ Processing by BloomRemit::Api::V1::TxnsController#update as JSON
32280
+ Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"2", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
32281
+ BloomRemit::Txn Load (0.7ms) 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]]
32282
+ Rendered text template (0.0ms)
32283
+ Completed 404 Not Found in 3ms (Views: 1.0ms | ActiveRecord: 0.7ms)
32284
+ Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-09-16 01:16:20 +0000
32285
+ Processing by BloomRemit::Api::V1::TxnsController#update as JSON
32286
+ Parameters: {"secret"=>"ebf17738-eb89-42b4-93cc-0d9dcb7b217d", "status"=>"paid", "id"=>"2", "txn"=>{"status"=>"paid", "secret"=>"ebf17738-eb89-42b4-93cc-0d9dcb7b217d"}}
32287
+ 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", "ebf17738-eb89-42b4-93cc-0d9dcb7b217d"]]
32288
+  (0.3ms) SAVEPOINT active_record_1
32289
+ SQL (0.6ms) UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 1], ["id", 2]]
32290
+  (0.3ms) RELEASE SAVEPOINT active_record_1
32291
+ Completed 204 No Content in 48ms (ActiveRecord: 1.7ms)
32292
+ BloomRemit::Txn Load (0.4ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1 [["id", 2]]
32293
+  (0.3ms) ROLLBACK
32294
+  (0.2ms) BEGIN
32295
+  (0.3ms) COMMIT
32296
+  (0.3ms) BEGIN
32297
+  (0.6ms) ROLLBACK
32298
+  (0.3ms) BEGIN
32299
+  (0.3ms) COMMIT
32300
+  (0.2ms) BEGIN
32301
+  (0.3ms) ROLLBACK
32302
+  (0.2ms) BEGIN
32303
+  (0.4ms) COMMIT
32304
+  (0.3ms) BEGIN
32305
+  (0.3ms) SAVEPOINT active_record_1
32306
+ SQL (0.6ms) INSERT INTO "payments" DEFAULT VALUES RETURNING "id"
32307
+  (0.3ms) RELEASE SAVEPOINT active_record_1
32308
+  (0.3ms) SAVEPOINT active_record_1
32309
+ SQL (0.4ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
32310
+  (0.3ms) RELEASE SAVEPOINT active_record_1
32311
+  (0.2ms) SAVEPOINT active_record_1
32312
+ 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", "48917bef-e574-4184-9c2a-9a8318944975"], ["external_id", "8b479132aeb74b0beeffa5ea"], ["owner_id", "1"], ["owner_type", "Payment"], ["sender_id", "3"], ["sender_type", "User"]]
32313
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32314
+  (0.3ms) SAVEPOINT active_record_1
32315
+ SQL (0.8ms) 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", 3], ["created_at", "2016-09-16 01:16:20.907457"], ["updated_at", "2016-09-16 01:16:20.907457"]]
32316
+  (0.3ms) RELEASE SAVEPOINT active_record_1
32317
+  (0.4ms) SELECT COUNT(*) FROM "bloom_remit_responses" WHERE "bloom_remit_responses"."txn_id" = $1 [["txn_id", 3]]
32318
+ 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", 3]]
32319
+  (0.3ms) ROLLBACK
32320
+  (0.2ms) BEGIN
32321
+  (0.3ms) COMMIT
32322
+  (0.3ms) BEGIN
32323
+  (0.3ms) SAVEPOINT active_record_1
32324
+ SQL (0.5ms) INSERT INTO "payments" DEFAULT VALUES RETURNING "id"
32325
+  (0.3ms) RELEASE SAVEPOINT active_record_1
32326
+  (0.3ms) SAVEPOINT active_record_1
32327
+ SQL (0.5ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
32328
+  (0.3ms) RELEASE SAVEPOINT active_record_1
32329
+  (0.2ms) SAVEPOINT active_record_1
32330
+ 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", "06b02eb4-8b9e-4242-b06a-6e504219181e"], ["external_id", "2d5d54ffb3cac101b0234951"], ["owner_id", "2"], ["owner_type", "Payment"], ["sender_id", "4"], ["sender_type", "User"]]
32331
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32332
+  (0.2ms) SAVEPOINT active_record_1
32333
+ SQL (0.4ms) UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 7], ["id", 4]]
32334
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32335
+  (0.3ms) SAVEPOINT active_record_1
32336
+ SQL (0.6ms) 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", 4], ["created_at", "2016-09-16 01:16:20.942611"], ["updated_at", "2016-09-16 01:16:20.942611"]]
32337
+  (0.3ms) RELEASE SAVEPOINT active_record_1
32338
+ BloomRemit::Txn Load (1.2ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1 [["id", 4]]
32339
+  (0.3ms) ROLLBACK
32340
+  (0.2ms) BEGIN
32341
+  (0.3ms) COMMIT
32342
+  (0.3ms) BEGIN
32343
+  (0.4ms) ROLLBACK
32344
+  (0.3ms) BEGIN
32345
+  (0.3ms) COMMIT
32346
+  (0.3ms) BEGIN
32347
+  (0.3ms) ROLLBACK
32348
+  (0.2ms) BEGIN
32349
+  (0.5ms) COMMIT
32350
+  (0.3ms) BEGIN
32351
+  (0.4ms) ROLLBACK
32352
+  (0.2ms) BEGIN
32353
+  (0.3ms) COMMIT
32354
+  (0.2ms) BEGIN
32355
+  (0.5ms) ROLLBACK
32356
+  (0.4ms) BEGIN
32357
+  (0.4ms) COMMIT
32358
+  (0.3ms) BEGIN
32359
+  (0.3ms) ROLLBACK
32360
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
32361
+  (0.6ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL
32362
+  (1.3ms)  SELECT schemaname || '.' || tablename
32363
+ FROM pg_tables
32364
+ WHERE
32365
+ tablename !~ '_prt_' AND
32366
+ tablename <> 'schema_migrations' AND
32367
+ schemaname = ANY (current_schemas(false))
32368
+ 
32369
+  (1.1ms) select table_name from information_schema.views where table_schema = 'app_test'
32370
+  (42.0ms) TRUNCATE TABLE "public"."billers", "public"."users", "public"."payments", "public"."bloom_remit_responses", "public"."bloom_remit_txns" RESTART IDENTITY CASCADE;
32371
+  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL
32372
+  (0.4ms) BEGIN
32373
+  (0.3ms) COMMIT
32374
+  (0.3ms) BEGIN
32375
+  (0.3ms) ROLLBACK
32376
+  (0.2ms) BEGIN
32377
+  (0.3ms) COMMIT
32378
+  (0.2ms) BEGIN
32379
+  (0.3ms) ROLLBACK
32380
+  (0.4ms) BEGIN
32381
+  (0.4ms) COMMIT
32382
+  (0.5ms) BEGIN
32383
+  (0.4ms) ROLLBACK
32384
+  (0.4ms) BEGIN
32385
+ SQL (1.2ms) INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
32386
+  (1.4ms) COMMIT
32387
+  (0.3ms) BEGIN
32388
+ SQL (0.5ms) INSERT INTO "users" ("type") VALUES ($1) RETURNING "id" [["type", "SubUser"]]
32389
+  (0.8ms) COMMIT
32390
+  (0.3ms) BEGIN
32391
+ SQL (0.6ms) INSERT INTO "payments" ("type") VALUES ($1) RETURNING "id" [["type", "SubPayment"]]
32392
+  (0.8ms) COMMIT
32393
+  (0.4ms) BEGIN
32394
+ 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") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["secret", "6289d9e3-716d-4c8c-8f75-a52e91f367fe"], ["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", "52c0d5cca8dcb7a1ab2982a2"]]
32395
+  (0.8ms) COMMIT
32396
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1]]
32397
+ Payment Load (0.4ms) SELECT "payments".* FROM "payments" WHERE "payments"."id" = $1 LIMIT 1 [["id", 1]]
32398
+  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL
32399
+  (24.7ms) TRUNCATE TABLE "public"."billers", "public"."users", "public"."payments", "public"."bloom_remit_responses", "public"."bloom_remit_txns" RESTART IDENTITY CASCADE;
32400
+  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL
32401
+  (0.3ms) BEGIN
32402
+ SQL (0.6ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
32403
+  (0.9ms) COMMIT
32404
+  (0.3ms) BEGIN
32405
+ 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", "b5b58bfa-b225-4a73-90b3-2b4f87b0e4d0"], ["external_id", "9082820a82b7684c5468896b"], ["sender_id", "1"], ["sender_type", "User"]]
32406
+  (0.8ms) COMMIT
32407
+ 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", "b5b58bfa-b225-4a73-90b3-2b4f87b0e4d0"]]
32408
+  (0.3ms) BEGIN
32409
+ 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", "somerefno"], ["id", 1]]
32410
+  (0.9ms) COMMIT
32411
+  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL
32412
+  (23.6ms) TRUNCATE TABLE "public"."billers", "public"."users", "public"."payments", "public"."bloom_remit_responses", "public"."bloom_remit_txns" RESTART IDENTITY CASCADE;
32413
+  (0.6ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL
32414
+  (0.3ms) BEGIN
32415
+  (0.4ms) COMMIT
32416
+  (0.3ms) BEGIN
32417
+  (0.3ms) ROLLBACK
32418
+  (0.3ms) BEGIN
32419
+  (0.2ms) COMMIT
32420
+  (0.2ms) BEGIN
32421
+  (0.3ms) ROLLBACK
32422
+  (0.3ms) BEGIN
32423
+  (0.3ms) COMMIT
32424
+  (0.3ms) BEGIN
32425
+  (0.4ms) ROLLBACK
32426
+  (0.2ms) BEGIN
32427
+  (0.4ms) COMMIT
32428
+  (0.5ms) BEGIN
32429
+  (0.3ms) ROLLBACK
32430
+  (0.4ms) BEGIN
32431
+  (0.5ms) COMMIT
32432
+  (0.8ms) BEGIN
32433
+  (0.9ms) ROLLBACK
32434
+  (0.3ms) BEGIN
32435
+  (0.4ms) COMMIT
32436
+  (0.4ms) BEGIN
32437
+  (0.4ms) ROLLBACK
32438
+  (0.5ms) BEGIN
32439
+  (0.3ms) COMMIT
32440
+  (0.3ms) BEGIN
32441
+  (0.3ms) ROLLBACK
32442
+  (0.2ms) BEGIN
32443
+  (0.2ms) COMMIT
32444
+  (0.2ms) BEGIN
32445
+  (0.3ms) SAVEPOINT active_record_1
32446
+ SQL (0.6ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
32447
+  (0.4ms) RELEASE SAVEPOINT active_record_1
32448
+  (0.3ms) SAVEPOINT active_record_1
32449
+ 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", "65e56458-4838-4eec-baa4-2ac08eac64b7"], ["external_id", "78e284d84b8e31078ff34378"], ["sender_id", "1"], ["sender_type", "User"]]
32450
+  (0.3ms) RELEASE SAVEPOINT active_record_1
32451
+ Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-09-16 01:17:00 +0000
32452
+ Processing by BloomRemit::Api::V1::TxnsController#post_update as JSON
32453
+ Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"1", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
32454
+ 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]]
32455
+ Rendered text template (0.0ms)
32456
+ Completed 404 Not Found in 50ms (Views: 48.4ms | ActiveRecord: 0.5ms)
32457
+ Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-09-16 01:17:00 +0000
32458
+ Processing by BloomRemit::Api::V1::TxnsController#post_update as JSON
32459
+ Parameters: {"secret"=>"65e56458-4838-4eec-baa4-2ac08eac64b7", "status"=>"paid", "id"=>"1", "txn"=>{"status"=>"paid", "secret"=>"65e56458-4838-4eec-baa4-2ac08eac64b7"}}
32460
+ 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", "65e56458-4838-4eec-baa4-2ac08eac64b7"]]
32461
+  (0.3ms) SAVEPOINT active_record_1
32462
+ SQL (0.4ms) UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 1], ["id", 1]]
32463
+  (0.3ms) RELEASE SAVEPOINT active_record_1
32464
+ Completed 200 OK in 8ms (Views: 0.4ms | ActiveRecord: 1.5ms)
32465
+ BloomRemit::Txn Load (0.3ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1 [["id", 1]]
32466
+  (0.4ms) ROLLBACK
32467
+  (0.3ms) BEGIN
32468
+  (0.3ms) COMMIT
32469
+  (0.3ms) BEGIN
32470
+  (0.3ms) SAVEPOINT active_record_1
32471
+ SQL (0.5ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
32472
+  (0.3ms) RELEASE SAVEPOINT active_record_1
32473
+  (0.3ms) SAVEPOINT active_record_1
32474
+ 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", "8178db3a-95e9-410a-842a-486b019da436"], ["external_id", "256edb39607d93d343991b64"], ["sender_id", "2"], ["sender_type", "User"]]
32475
+  (0.3ms) RELEASE SAVEPOINT active_record_1
32476
+ Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-09-16 01:17:00 +0000
32477
+ Processing by BloomRemit::Api::V1::TxnsController#update as JSON
32478
+ Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"2", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
32479
+ 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]]
32480
+ Rendered text template (0.0ms)
32481
+ Completed 404 Not Found in 3ms (Views: 0.8ms | ActiveRecord: 0.5ms)
32482
+ Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-09-16 01:17:00 +0000
32483
+ Processing by BloomRemit::Api::V1::TxnsController#update as JSON
32484
+ Parameters: {"secret"=>"8178db3a-95e9-410a-842a-486b019da436", "status"=>"paid", "id"=>"2", "txn"=>{"status"=>"paid", "secret"=>"8178db3a-95e9-410a-842a-486b019da436"}}
32485
+ 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", "8178db3a-95e9-410a-842a-486b019da436"]]
32486
+  (0.3ms) SAVEPOINT active_record_1
32487
+ SQL (0.4ms) UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 1], ["id", 2]]
32488
+  (0.3ms) RELEASE SAVEPOINT active_record_1
32489
+ Completed 204 No Content in 46ms (ActiveRecord: 1.6ms)
32490
+ BloomRemit::Txn Load (0.5ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1 [["id", 2]]
32491
+  (0.4ms) ROLLBACK
32492
+  (0.3ms) BEGIN
32493
+  (0.2ms) COMMIT
32494
+  (0.3ms) BEGIN
32495
+  (0.3ms) SAVEPOINT active_record_1
32496
+ SQL (0.7ms) INSERT INTO "users" ("type") VALUES ($1) RETURNING "id" [["type", "SubUser"]]
32497
+  (0.3ms) RELEASE SAVEPOINT active_record_1
32498
+  (0.3ms) SAVEPOINT active_record_1
32499
+ SQL (0.6ms) INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
32500
+  (0.3ms) RELEASE SAVEPOINT active_record_1
32501
+  (0.3ms) SAVEPOINT active_record_1
32502
+ SQL (0.5ms) INSERT INTO "payments" ("type") VALUES ($1) RETURNING "id" [["type", "SubPayment"]]
32503
+  (0.3ms) RELEASE SAVEPOINT active_record_1
32504
+  (0.3ms) SAVEPOINT active_record_1
32505
+ 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") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["secret", "08d13411-9825-4552-835b-3fa4a8870b09"], ["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", "d4977442e8a751ab891db28c"]]
32506
+  (0.3ms) RELEASE SAVEPOINT active_record_1
32507
+  (0.3ms) ROLLBACK
32508
+  (0.2ms) BEGIN
32509
+  (0.3ms) COMMIT
32510
+  (0.2ms) BEGIN
32511
+  (0.4ms) ROLLBACK
32512
+  (0.6ms) BEGIN
32513
+  (0.3ms) COMMIT
32514
+  (0.3ms) BEGIN
32515
+  (0.3ms) SAVEPOINT active_record_1
32516
+ SQL (0.4ms) INSERT INTO "payments" DEFAULT VALUES RETURNING "id"
32517
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32518
+  (0.2ms) SAVEPOINT active_record_1
32519
+ SQL (0.4ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
32520
+  (0.3ms) RELEASE SAVEPOINT active_record_1
32521
+  (0.2ms) SAVEPOINT active_record_1
32522
+ 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", "7b91f8ad-c666-4f4d-b59f-2f99badf17ce"], ["external_id", "4c936b4e38a1266f50ba472c"], ["owner_id", "2"], ["owner_type", "Payment"], ["sender_id", "4"], ["sender_type", "User"]]
32523
+  (0.4ms) RELEASE SAVEPOINT active_record_1
32524
+  (0.3ms) SAVEPOINT active_record_1
32525
+ 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-09-16 01:17:00.531637"], ["updated_at", "2016-09-16 01:17:00.531637"]]
32526
+  (0.3ms) RELEASE SAVEPOINT active_record_1
32527
+  (0.4ms) SELECT COUNT(*) FROM "bloom_remit_responses" WHERE "bloom_remit_responses"."txn_id" = $1 [["txn_id", 4]]
32528
+ 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]]
32529
+  (0.4ms) ROLLBACK
32530
+  (0.2ms) BEGIN
32531
+  (0.7ms) COMMIT
32532
+  (0.3ms) BEGIN
32533
+  (0.4ms) SAVEPOINT active_record_1
32534
+ SQL (0.5ms) INSERT INTO "payments" DEFAULT VALUES RETURNING "id"
32535
+  (0.3ms) RELEASE SAVEPOINT active_record_1
32536
+  (0.4ms) SAVEPOINT active_record_1
32537
+ SQL (0.4ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
32538
+  (0.4ms) RELEASE SAVEPOINT active_record_1
32539
+  (0.3ms) SAVEPOINT active_record_1
32540
+ SQL (0.9ms) 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", "61868532-f568-45e0-89b9-db7ce1f5fe24"], ["external_id", "7aba7b0b778e07cacab04c6b"], ["owner_id", "3"], ["owner_type", "Payment"], ["sender_id", "5"], ["sender_type", "User"]]
32541
+  (0.3ms) RELEASE SAVEPOINT active_record_1
32542
+  (0.4ms) SAVEPOINT active_record_1
32543
+ SQL (0.7ms) UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 7], ["id", 5]]
32544
+  (0.5ms) RELEASE SAVEPOINT active_record_1
32545
+  (0.4ms) SAVEPOINT active_record_1
32546
+ 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-09-16 01:17:00.571094"], ["updated_at", "2016-09-16 01:17:00.571094"]]
32547
+  (0.3ms) RELEASE SAVEPOINT active_record_1
32548
+ BloomRemit::Txn Load (0.5ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1 [["id", 5]]
32549
+  (0.4ms) ROLLBACK
32550
+  (0.6ms) BEGIN
32551
+  (0.5ms) COMMIT
32552
+  (0.4ms) BEGIN
32553
+  (0.4ms) ROLLBACK
32554
+  (0.3ms) BEGIN
32555
+  (0.3ms) COMMIT
32556
+  (0.3ms) BEGIN
32557
+  (0.3ms) ROLLBACK
32558
+  (0.3ms) BEGIN
32559
+  (0.2ms) COMMIT
32560
+  (0.3ms) BEGIN
32561
+  (0.4ms) ROLLBACK
32562
+  (0.2ms) BEGIN
32563
+  (0.3ms) COMMIT
32564
+  (0.3ms) BEGIN
32565
+  (0.3ms) ROLLBACK
32566
+  (0.3ms) BEGIN
32567
+  (0.3ms) COMMIT
32568
+  (0.4ms) BEGIN
32569
+  (0.3ms) ROLLBACK
32570
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
32571
+  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL
32572
+  (1.1ms)  SELECT schemaname || '.' || tablename
32573
+ FROM pg_tables
32574
+ WHERE
32575
+ tablename !~ '_prt_' AND
32576
+ tablename <> 'schema_migrations' AND
32577
+ schemaname = ANY (current_schemas(false))
32578
+ 
32579
+  (1.0ms) select table_name from information_schema.views where table_schema = 'app_test'
32580
+  (34.0ms) TRUNCATE TABLE "public"."billers", "public"."users", "public"."payments", "public"."bloom_remit_responses", "public"."bloom_remit_txns" RESTART IDENTITY CASCADE;
32581
+  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL
32582
+  (0.2ms) BEGIN
32583
+  (0.2ms) COMMIT
32584
+  (0.3ms) BEGIN
32585
+  (0.3ms) ROLLBACK
32586
+  (0.2ms) BEGIN
32587
+  (0.2ms) COMMIT
32588
+  (0.2ms) BEGIN
32589
+  (0.2ms) ROLLBACK
32590
+  (0.1ms) BEGIN
32591
+  (0.2ms) COMMIT
32592
+  (0.1ms) BEGIN
32593
+  (0.2ms) ROLLBACK
32594
+  (0.3ms) BEGIN
32595
+ SQL (0.5ms) INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
32596
+  (1.6ms) COMMIT
32597
+  (0.2ms) BEGIN
32598
+ SQL (0.3ms) INSERT INTO "users" ("type") VALUES ($1) RETURNING "id" [["type", "SubUser"]]
32599
+  (0.7ms) COMMIT
32600
+  (0.2ms) BEGIN
32601
+ SQL (0.4ms) INSERT INTO "payments" ("type") VALUES ($1) RETURNING "id" [["type", "SubPayment"]]
32602
+  (0.8ms) COMMIT
32603
+  (0.2ms) BEGIN
32604
+ 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") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["secret", "436bc828-fda8-40c2-accd-7c1e6f23fc18"], ["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", "733fc4daff7e37b85cb60be2"]]
32605
+  (0.8ms) COMMIT
32606
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1]]
32607
+ Payment Load (0.2ms) SELECT "payments".* FROM "payments" WHERE "payments"."id" = $1 LIMIT 1 [["id", 1]]
32608
+  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL
32609
+  (24.2ms) TRUNCATE TABLE "public"."billers", "public"."users", "public"."payments", "public"."bloom_remit_responses", "public"."bloom_remit_txns" RESTART IDENTITY CASCADE;
32610
+  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL
32611
+  (0.1ms) BEGIN
32612
+ SQL (0.6ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
32613
+  (0.7ms) COMMIT
32614
+  (0.2ms) BEGIN
32615
+ 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", "f3a81db6-f779-4aa8-af4e-0a254caff834"], ["external_id", "81998d88d0cd3c2a72b222c3"], ["sender_id", "1"], ["sender_type", "User"]]
32616
+  (0.7ms) COMMIT
32617
+ 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", "f3a81db6-f779-4aa8-af4e-0a254caff834"]]
32618
+  (0.2ms) BEGIN
32619
+ 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", "somerefno"], ["id", 1]]
32620
+  (2.0ms) COMMIT
32621
+  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL
32622
+  (26.0ms) TRUNCATE TABLE "public"."billers", "public"."users", "public"."payments", "public"."bloom_remit_responses", "public"."bloom_remit_txns" RESTART IDENTITY CASCADE;
32623
+  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL
32624
+  (0.1ms) BEGIN
32625
+  (0.2ms) COMMIT
32626
+  (0.1ms) BEGIN
32627
+  (0.2ms) ROLLBACK
32628
+  (0.1ms) BEGIN
32629
+  (0.2ms) COMMIT
32630
+  (0.1ms) BEGIN
32631
+  (0.2ms) ROLLBACK
32632
+  (0.1ms) BEGIN
32633
+  (0.2ms) COMMIT
32634
+  (0.1ms) BEGIN
32635
+  (0.3ms) ROLLBACK
32636
+  (0.1ms) BEGIN
32637
+  (0.2ms) COMMIT
32638
+  (0.2ms) BEGIN
32639
+  (0.3ms) ROLLBACK
32640
+  (0.1ms) BEGIN
32641
+  (0.2ms) COMMIT
32642
+  (0.1ms) BEGIN
32643
+  (0.3ms) ROLLBACK
32644
+  (0.1ms) BEGIN
32645
+  (0.2ms) COMMIT
32646
+  (0.1ms) BEGIN
32647
+  (0.2ms) ROLLBACK
32648
+  (0.2ms) BEGIN
32649
+  (0.2ms) COMMIT
32650
+  (0.1ms) BEGIN
32651
+  (0.2ms) ROLLBACK
32652
+  (0.1ms) BEGIN
32653
+  (0.2ms) COMMIT
32654
+  (0.2ms) BEGIN
32655
+  (0.2ms) SAVEPOINT active_record_1
32656
+ SQL (0.5ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
32657
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32658
+  (0.2ms) SAVEPOINT active_record_1
32659
+ 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", "32df5820-114d-4d28-82e3-2d896c7bdfe5"], ["external_id", "e975c5fdbf00fdb4fcbdb747"], ["sender_id", "1"], ["sender_type", "User"]]
32660
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32661
+ Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-09-16 01:17:19 +0000
32662
+ Processing by BloomRemit::Api::V1::TxnsController#post_update as JSON
32663
+ Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"1", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
32664
+ 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]]
32665
+ Rendered text template (0.0ms)
32666
+ Completed 404 Not Found in 54ms (Views: 51.7ms | ActiveRecord: 0.4ms)
32667
+ Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-09-16 01:17:19 +0000
32668
+ Processing by BloomRemit::Api::V1::TxnsController#post_update as JSON
32669
+ Parameters: {"secret"=>"32df5820-114d-4d28-82e3-2d896c7bdfe5", "status"=>"paid", "id"=>"1", "txn"=>{"status"=>"paid", "secret"=>"32df5820-114d-4d28-82e3-2d896c7bdfe5"}}
32670
+ 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", "32df5820-114d-4d28-82e3-2d896c7bdfe5"]]
32671
+  (0.2ms) SAVEPOINT active_record_1
32672
+ SQL (0.3ms) UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 1], ["id", 1]]
32673
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32674
+ Completed 200 OK in 8ms (Views: 0.4ms | ActiveRecord: 1.0ms)
32675
+ BloomRemit::Txn Load (0.3ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1 [["id", 1]]
32676
+  (0.3ms) ROLLBACK
32677
+  (0.1ms) BEGIN
32678
+  (0.2ms) COMMIT
32679
+  (0.2ms) BEGIN
32680
+  (0.2ms) SAVEPOINT active_record_1
32681
+ SQL (0.4ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
32682
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32683
+  (0.2ms) SAVEPOINT active_record_1
32684
+ 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", "f1c1bceb-fcb2-4703-8c6b-68c8d1e2848f"], ["external_id", "3a4f9ad9608f6f5a6d58793e"], ["sender_id", "2"], ["sender_type", "User"]]
32685
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32686
+ Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-09-16 01:17:19 +0000
32687
+ Processing by BloomRemit::Api::V1::TxnsController#update as JSON
32688
+ Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"2", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
32689
+ 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]]
32690
+ Rendered text template (0.0ms)
32691
+ Completed 404 Not Found in 3ms (Views: 0.9ms | ActiveRecord: 0.3ms)
32692
+ Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-09-16 01:17:19 +0000
32693
+ Processing by BloomRemit::Api::V1::TxnsController#update as JSON
32694
+ Parameters: {"secret"=>"f1c1bceb-fcb2-4703-8c6b-68c8d1e2848f", "status"=>"paid", "id"=>"2", "txn"=>{"status"=>"paid", "secret"=>"f1c1bceb-fcb2-4703-8c6b-68c8d1e2848f"}}
32695
+ 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", "f1c1bceb-fcb2-4703-8c6b-68c8d1e2848f"]]
32696
+  (0.2ms) SAVEPOINT active_record_1
32697
+ SQL (0.3ms) UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 1], ["id", 2]]
32698
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32699
+ Completed 204 No Content in 47ms (ActiveRecord: 1.1ms)
32700
+ BloomRemit::Txn Load (0.4ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1 [["id", 2]]
32701
+  (0.2ms) ROLLBACK
32702
+  (0.1ms) BEGIN
32703
+  (0.2ms) COMMIT
32704
+  (0.2ms) BEGIN
32705
+  (0.2ms) SAVEPOINT active_record_1
32706
+ SQL (0.3ms) INSERT INTO "users" ("type") VALUES ($1) RETURNING "id" [["type", "SubUser"]]
32707
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32708
+  (0.2ms) SAVEPOINT active_record_1
32709
+ SQL (0.4ms) INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
32710
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32711
+  (0.2ms) SAVEPOINT active_record_1
32712
+ SQL (0.5ms) INSERT INTO "payments" ("type") VALUES ($1) RETURNING "id" [["type", "SubPayment"]]
32713
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32714
+  (0.2ms) SAVEPOINT active_record_1
32715
+ 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") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["secret", "03804180-8a23-44e9-8880-bddd0e6f0e30"], ["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", "0d4e1e8274a3a35da1b04047"]]
32716
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32717
+  (0.2ms) ROLLBACK
32718
+  (0.1ms) BEGIN
32719
+  (0.2ms) COMMIT
32720
+  (0.2ms) BEGIN
32721
+  (0.2ms) ROLLBACK
32722
+  (0.1ms) BEGIN
32723
+  (0.2ms) COMMIT
32724
+  (0.1ms) BEGIN
32725
+  (0.2ms) SAVEPOINT active_record_1
32726
+ SQL (0.6ms) INSERT INTO "payments" DEFAULT VALUES RETURNING "id"
32727
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32728
+  (0.2ms) SAVEPOINT active_record_1
32729
+ SQL (0.3ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
32730
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32731
+  (0.2ms) SAVEPOINT active_record_1
32732
+ 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", "2e38129f-3f76-443a-96a5-3af4a59419a3"], ["external_id", "28112319dc9a4b07c0d711a1"], ["owner_id", "2"], ["owner_type", "Payment"], ["sender_id", "4"], ["sender_type", "User"]]
32733
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32734
+  (0.2ms) SAVEPOINT active_record_1
32735
+ 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-09-16 01:17:20.004581"], ["updated_at", "2016-09-16 01:17:20.004581"]]
32736
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32737
+  (0.2ms) SELECT COUNT(*) FROM "bloom_remit_responses" WHERE "bloom_remit_responses"."txn_id" = $1 [["txn_id", 4]]
32738
+ 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]]
32739
+  (0.3ms) ROLLBACK
32740
+  (0.1ms) BEGIN
32741
+  (0.2ms) COMMIT
32742
+  (0.2ms) BEGIN
32743
+  (0.5ms) SAVEPOINT active_record_1
32744
+ SQL (0.4ms) INSERT INTO "payments" DEFAULT VALUES RETURNING "id"
32745
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32746
+  (0.2ms) SAVEPOINT active_record_1
32747
+ SQL (0.4ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
32748
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32749
+  (0.2ms) SAVEPOINT active_record_1
32750
+ 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", "399fc3d7-39b8-4568-8ed8-048d060e9188"], ["external_id", "35b7b2618eed778e1c5beb36"], ["owner_id", "3"], ["owner_type", "Payment"], ["sender_id", "5"], ["sender_type", "User"]]
32751
+  (0.4ms) RELEASE SAVEPOINT active_record_1
32752
+  (0.2ms) SAVEPOINT active_record_1
32753
+ SQL (0.3ms) UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 7], ["id", 5]]
32754
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32755
+  (0.3ms) SAVEPOINT active_record_1
32756
+ 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-09-16 01:17:20.040786"], ["updated_at", "2016-09-16 01:17:20.040786"]]
32757
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32758
+ BloomRemit::Txn Load (0.3ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1 [["id", 5]]
32759
+  (0.2ms) ROLLBACK
32760
+  (0.1ms) BEGIN
32761
+  (0.2ms) COMMIT
32762
+  (0.1ms) BEGIN
32763
+  (0.2ms) ROLLBACK
32764
+  (0.2ms) BEGIN
32765
+  (0.4ms) COMMIT
32766
+  (0.2ms) BEGIN
32767
+  (0.2ms) ROLLBACK
32768
+  (0.1ms) BEGIN
32769
+  (0.2ms) COMMIT
32770
+  (0.2ms) BEGIN
32771
+  (0.2ms) ROLLBACK
32772
+  (0.1ms) BEGIN
32773
+  (0.2ms) COMMIT
32774
+  (0.2ms) BEGIN
32775
+  (0.2ms) ROLLBACK
32776
+  (0.1ms) BEGIN
32777
+  (0.2ms) COMMIT
32778
+  (0.2ms) BEGIN
32779
+  (0.2ms) ROLLBACK
32780
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
32781
+  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL
32782
+  (1.2ms)  SELECT schemaname || '.' || tablename
32783
+ FROM pg_tables
32784
+ WHERE
32785
+ tablename !~ '_prt_' AND
32786
+ tablename <> 'schema_migrations' AND
32787
+ schemaname = ANY (current_schemas(false))
32788
+ 
32789
+  (1.2ms) select table_name from information_schema.views where table_schema = 'app_test'
32790
+  (25.1ms) TRUNCATE TABLE "public"."billers", "public"."users", "public"."payments", "public"."bloom_remit_responses", "public"."bloom_remit_txns" RESTART IDENTITY CASCADE;
32791
+  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL
32792
+  (0.4ms) BEGIN
32793
+  (0.3ms) COMMIT
32794
+  (0.3ms) BEGIN
32795
+  (0.2ms) ROLLBACK
32796
+  (0.4ms) BEGIN
32797
+  (0.4ms) COMMIT
32798
+  (0.3ms) BEGIN
32799
+  (0.5ms) ROLLBACK
32800
+  (0.2ms) BEGIN
32801
+  (0.2ms) COMMIT
32802
+  (0.2ms) BEGIN
32803
+  (0.3ms) ROLLBACK
32804
+  (0.3ms) BEGIN
32805
+ SQL (0.6ms) INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
32806
+  (2.2ms) COMMIT
32807
+  (0.3ms) BEGIN
32808
+ SQL (0.5ms) INSERT INTO "users" ("type") VALUES ($1) RETURNING "id" [["type", "SubUser"]]
32809
+  (1.0ms) COMMIT
32810
+  (0.4ms) BEGIN
32811
+ SQL (0.5ms) INSERT INTO "payments" ("type") VALUES ($1) RETURNING "id" [["type", "SubPayment"]]
32812
+  (0.9ms) COMMIT
32813
+  (0.3ms) BEGIN
32814
+ 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") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["secret", "eee38e58-ef0d-42ae-bef3-27a90bbd77b0"], ["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", "da4d7aea4b59efee2e19dc09"]]
32815
+  (1.0ms) COMMIT
32816
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1]]
32817
+ Payment Load (0.4ms) SELECT "payments".* FROM "payments" WHERE "payments"."id" = $1 LIMIT 1 [["id", 1]]
32818
+  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL
32819
+  (21.1ms) TRUNCATE TABLE "public"."billers", "public"."users", "public"."payments", "public"."bloom_remit_responses", "public"."bloom_remit_txns" RESTART IDENTITY CASCADE;
32820
+  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL
32821
+  (0.3ms) BEGIN
32822
+ SQL (0.9ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
32823
+  (0.8ms) COMMIT
32824
+  (0.3ms) BEGIN
32825
+ 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", "18f8fbb2-cd11-44b4-b66a-738f9aefcda9"], ["external_id", "03136ecf969d84372d67f0ae"], ["sender_id", "1"], ["sender_type", "User"]]
32826
+  (0.9ms) COMMIT
32827
+ 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", "18f8fbb2-cd11-44b4-b66a-738f9aefcda9"]]
32828
+  (0.3ms) BEGIN
32829
+ 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", "somerefno"], ["id", 1]]
32830
+  (0.8ms) COMMIT
32831
+  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL
32832
+  (30.4ms) TRUNCATE TABLE "public"."billers", "public"."users", "public"."payments", "public"."bloom_remit_responses", "public"."bloom_remit_txns" RESTART IDENTITY CASCADE;
32833
+  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL
32834
+  (0.3ms) BEGIN
32835
+  (0.3ms) COMMIT
32836
+  (0.3ms) BEGIN
32837
+  (0.3ms) ROLLBACK
32838
+  (0.2ms) BEGIN
32839
+  (0.3ms) COMMIT
32840
+  (0.3ms) BEGIN
32841
+  (0.4ms) ROLLBACK
32842
+  (0.3ms) BEGIN
32843
+  (0.4ms) COMMIT
32844
+  (0.3ms) BEGIN
32845
+  (0.3ms) ROLLBACK
32846
+  (0.2ms) BEGIN
32847
+  (0.2ms) COMMIT
32848
+  (0.2ms) BEGIN
32849
+  (0.4ms) ROLLBACK
32850
+  (0.2ms) BEGIN
32851
+  (0.2ms) COMMIT
32852
+  (0.3ms) BEGIN
32853
+  (0.3ms) ROLLBACK
32854
+  (0.3ms) BEGIN
32855
+  (0.3ms) COMMIT
32856
+  (0.3ms) BEGIN
32857
+  (0.3ms) ROLLBACK
32858
+  (0.3ms) BEGIN
32859
+  (0.3ms) COMMIT
32860
+  (0.2ms) BEGIN
32861
+  (0.3ms) ROLLBACK
32862
+  (0.2ms) BEGIN
32863
+  (0.4ms) COMMIT
32864
+  (0.3ms) BEGIN
32865
+  (0.3ms) SAVEPOINT active_record_1
32866
+ SQL (0.6ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
32867
+  (0.3ms) RELEASE SAVEPOINT active_record_1
32868
+  (0.3ms) SAVEPOINT active_record_1
32869
+ 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", "54b8c199-2855-403a-a982-d461650e27c2"], ["external_id", "f11c5617e472305efdc81a44"], ["sender_id", "1"], ["sender_type", "User"]]
32870
+  (0.3ms) RELEASE SAVEPOINT active_record_1
32871
+ Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-09-16 01:17:39 +0000
32872
+ Processing by BloomRemit::Api::V1::TxnsController#post_update as JSON
32873
+ Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"1", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
32874
+ BloomRemit::Txn Load (1.1ms) 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]]
32875
+ Rendered text template (0.0ms)
32876
+ Completed 404 Not Found in 49ms (Views: 46.5ms | ActiveRecord: 1.1ms)
32877
+ Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-09-16 01:17:39 +0000
32878
+ Processing by BloomRemit::Api::V1::TxnsController#post_update as JSON
32879
+ Parameters: {"secret"=>"54b8c199-2855-403a-a982-d461650e27c2", "status"=>"paid", "id"=>"1", "txn"=>{"status"=>"paid", "secret"=>"54b8c199-2855-403a-a982-d461650e27c2"}}
32880
+ 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", "54b8c199-2855-403a-a982-d461650e27c2"]]
32881
+  (0.4ms) SAVEPOINT active_record_1
32882
+ SQL (0.4ms) UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 1], ["id", 1]]
32883
+  (0.3ms) RELEASE SAVEPOINT active_record_1
32884
+ Completed 200 OK in 8ms (Views: 0.4ms | ActiveRecord: 1.6ms)
32885
+ BloomRemit::Txn Load (0.3ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1 [["id", 1]]
32886
+  (0.3ms) ROLLBACK
32887
+  (0.2ms) BEGIN
32888
+  (0.3ms) COMMIT
32889
+  (0.4ms) BEGIN
32890
+  (0.3ms) SAVEPOINT active_record_1
32891
+ SQL (0.4ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
32892
+  (0.3ms) RELEASE SAVEPOINT active_record_1
32893
+  (0.4ms) SAVEPOINT active_record_1
32894
+ 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", "256d34b4-f522-4a3a-a389-942d5b2e1d83"], ["external_id", "df332a98584b232328cc953e"], ["sender_id", "2"], ["sender_type", "User"]]
32895
+  (0.3ms) RELEASE SAVEPOINT active_record_1
32896
+ Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-09-16 01:17:39 +0000
32897
+ Processing by BloomRemit::Api::V1::TxnsController#update as JSON
32898
+ Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"2", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
32899
+ 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]]
32900
+ Rendered text template (0.0ms)
32901
+ Completed 404 Not Found in 3ms (Views: 1.0ms | ActiveRecord: 0.4ms)
32902
+ Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-09-16 01:17:39 +0000
32903
+ Processing by BloomRemit::Api::V1::TxnsController#update as JSON
32904
+ Parameters: {"secret"=>"256d34b4-f522-4a3a-a389-942d5b2e1d83", "status"=>"paid", "id"=>"2", "txn"=>{"status"=>"paid", "secret"=>"256d34b4-f522-4a3a-a389-942d5b2e1d83"}}
32905
+ 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", "256d34b4-f522-4a3a-a389-942d5b2e1d83"]]
32906
+  (0.4ms) SAVEPOINT active_record_1
32907
+ SQL (0.5ms) UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 1], ["id", 2]]
32908
+  (0.4ms) RELEASE SAVEPOINT active_record_1
32909
+ Completed 204 No Content in 47ms (ActiveRecord: 1.8ms)
32910
+ BloomRemit::Txn Load (0.5ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1 [["id", 2]]
32911
+  (0.4ms) ROLLBACK
32912
+  (0.4ms) BEGIN
32913
+  (0.3ms) COMMIT
32914
+  (0.3ms) BEGIN
32915
+  (0.4ms) SAVEPOINT active_record_1
32916
+ SQL (0.4ms) INSERT INTO "users" ("type") VALUES ($1) RETURNING "id" [["type", "SubUser"]]
32917
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32918
+  (0.2ms) SAVEPOINT active_record_1
32919
+ SQL (0.5ms) INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
32920
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32921
+  (0.2ms) SAVEPOINT active_record_1
32922
+ SQL (0.6ms) INSERT INTO "payments" ("type") VALUES ($1) RETURNING "id" [["type", "SubPayment"]]
32923
+  (0.3ms) RELEASE SAVEPOINT active_record_1
32924
+  (0.4ms) SAVEPOINT active_record_1
32925
+ SQL (0.8ms) INSERT INTO "bloom_remit_txns" ("secret", "sender_type", "sender_id", "amount", "account_name", "account_id", "target_slug", "owner_id", "owner_type", "external_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["secret", "a0d1ea29-0cae-47a1-9496-1763ddb34081"], ["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", "67fa177ddabd629e5126e907"]]
32926
+  (0.3ms) RELEASE SAVEPOINT active_record_1
32927
+  (0.3ms) ROLLBACK
32928
+  (0.3ms) BEGIN
32929
+  (0.3ms) COMMIT
32930
+  (0.3ms) BEGIN
32931
+  (0.4ms) ROLLBACK
32932
+  (0.4ms) BEGIN
32933
+  (0.3ms) COMMIT
32934
+  (0.3ms) BEGIN
32935
+  (0.3ms) SAVEPOINT active_record_1
32936
+ SQL (0.4ms) INSERT INTO "payments" DEFAULT VALUES RETURNING "id"
32937
+  (0.3ms) RELEASE SAVEPOINT active_record_1
32938
+  (0.3ms) SAVEPOINT active_record_1
32939
+ SQL (0.4ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
32940
+  (0.3ms) RELEASE SAVEPOINT active_record_1
32941
+  (0.2ms) SAVEPOINT active_record_1
32942
+ 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", "fd50cf5f-dbbf-4cb5-ab2f-755f1a185672"], ["external_id", "b7a4cb07a109cd779f49b986"], ["owner_id", "2"], ["owner_type", "Payment"], ["sender_id", "4"], ["sender_type", "User"]]
32943
+  (0.6ms) RELEASE SAVEPOINT active_record_1
32944
+  (0.3ms) SAVEPOINT active_record_1
32945
+ 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-09-16 01:17:39.462655"], ["updated_at", "2016-09-16 01:17:39.462655"]]
32946
+  (0.4ms) RELEASE SAVEPOINT active_record_1
32947
+  (0.6ms) SELECT COUNT(*) FROM "bloom_remit_responses" WHERE "bloom_remit_responses"."txn_id" = $1 [["txn_id", 4]]
32948
+ 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]]
32949
+  (0.4ms) ROLLBACK
32950
+  (0.3ms) BEGIN
32951
+  (0.3ms) COMMIT
32952
+  (0.4ms) BEGIN
32953
+  (0.4ms) SAVEPOINT active_record_1
32954
+ SQL (0.7ms) INSERT INTO "payments" DEFAULT VALUES RETURNING "id"
32955
+  (0.3ms) RELEASE SAVEPOINT active_record_1
32956
+  (0.3ms) SAVEPOINT active_record_1
32957
+ SQL (0.4ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
32958
+  (0.3ms) RELEASE SAVEPOINT active_record_1
32959
+  (0.2ms) SAVEPOINT active_record_1
32960
+ 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", "5925876a-7eeb-4aee-be09-29f0874f39b5"], ["external_id", "f1a5b1b9ce4776cd6b22f2ab"], ["owner_id", "3"], ["owner_type", "Payment"], ["sender_id", "5"], ["sender_type", "User"]]
32961
+  (0.3ms) RELEASE SAVEPOINT active_record_1
32962
+  (0.3ms) SAVEPOINT active_record_1
32963
+ SQL (0.4ms) UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 7], ["id", 5]]
32964
+  (0.3ms) RELEASE SAVEPOINT active_record_1
32965
+  (0.2ms) SAVEPOINT active_record_1
32966
+ 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-09-16 01:17:39.497635"], ["updated_at", "2016-09-16 01:17:39.497635"]]
32967
+  (0.5ms) RELEASE SAVEPOINT active_record_1
32968
+ BloomRemit::Txn Load (0.4ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1 [["id", 5]]
32969
+  (0.4ms) ROLLBACK
32970
+  (0.3ms) BEGIN
32971
+  (0.5ms) COMMIT
32972
+  (0.5ms) BEGIN
32973
+  (0.3ms) ROLLBACK
32974
+  (0.2ms) BEGIN
32975
+  (0.3ms) COMMIT
32976
+  (0.3ms) BEGIN
32977
+  (0.4ms) ROLLBACK
32978
+  (0.3ms) BEGIN
32979
+  (0.3ms) COMMIT
32980
+  (0.3ms) BEGIN
32981
+  (0.4ms) ROLLBACK
32982
+  (0.3ms) BEGIN
32983
+  (0.3ms) COMMIT
32984
+  (0.3ms) BEGIN
32985
+  (0.3ms) ROLLBACK
32986
+  (0.3ms) BEGIN
32987
+  (0.3ms) COMMIT
32988
+  (0.3ms) BEGIN
32989
+  (0.4ms) ROLLBACK
32990
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
32991
+  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL
32992
+  (1.3ms)  SELECT schemaname || '.' || tablename
32993
+ FROM pg_tables
32994
+ WHERE
32995
+ tablename !~ '_prt_' AND
32996
+ tablename <> 'schema_migrations' AND
32997
+ schemaname = ANY (current_schemas(false))
32998
+ 
32999
+  (1.1ms) select table_name from information_schema.views where table_schema = 'app_test'
33000
+  (30.8ms) TRUNCATE TABLE "public"."billers", "public"."users", "public"."payments", "public"."bloom_remit_responses", "public"."bloom_remit_txns" RESTART IDENTITY CASCADE;
33001
+  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL
33002
+  (0.4ms) BEGIN
33003
+  (0.3ms) COMMIT
33004
+  (0.3ms) BEGIN
33005
+  (0.3ms) ROLLBACK
33006
+  (0.2ms) BEGIN
33007
+  (0.3ms) COMMIT
33008
+  (0.3ms) BEGIN
33009
+  (0.4ms) ROLLBACK
33010
+  (0.2ms) BEGIN
33011
+  (0.2ms) COMMIT
33012
+  (0.3ms) BEGIN
33013
+  (0.4ms) ROLLBACK
33014
+  (0.3ms) BEGIN
33015
+ SQL (0.6ms) INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
33016
+  (0.8ms) COMMIT
33017
+  (0.3ms) BEGIN
33018
+ SQL (0.5ms) INSERT INTO "users" ("type") VALUES ($1) RETURNING "id" [["type", "SubUser"]]
33019
+  (0.9ms) COMMIT
33020
+  (0.3ms) BEGIN
33021
+ SQL (0.5ms) INSERT INTO "payments" ("type") VALUES ($1) RETURNING "id" [["type", "SubPayment"]]
33022
+  (0.8ms) COMMIT
33023
+  (0.3ms) BEGIN
33024
+ 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") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["secret", "a2babf09-1e27-4d60-b144-ce1c05e82ad5"], ["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", "1d27492bc9fef77e8c86f2d3"]]
33025
+  (1.6ms) COMMIT
33026
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1]]
33027
+ Payment Load (0.4ms) SELECT "payments".* FROM "payments" WHERE "payments"."id" = $1 LIMIT 1 [["id", 1]]
33028
+  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL
33029
+  (31.0ms) TRUNCATE TABLE "public"."billers", "public"."users", "public"."payments", "public"."bloom_remit_responses", "public"."bloom_remit_txns" RESTART IDENTITY CASCADE;
33030
+  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL
33031
+  (0.3ms) BEGIN
33032
+ SQL (0.7ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
33033
+  (0.9ms) COMMIT
33034
+  (0.3ms) BEGIN
33035
+ 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", "c4724497-4a7b-43b4-91ad-08c784c55dce"], ["external_id", "1bdb1aebe10cc580e2772bf7"], ["sender_id", "1"], ["sender_type", "User"]]
33036
+  (1.0ms) COMMIT
33037
+ 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", "c4724497-4a7b-43b4-91ad-08c784c55dce"]]
33038
+  (0.3ms) BEGIN
33039
+ SQL (0.6ms) UPDATE "bloom_remit_txns" SET "status" = $1, "status_description" = $2, "vendor_external_id" = $3 WHERE "bloom_remit_txns"."id" = $4 [["status", 1], ["status_description", "My status description"], ["vendor_external_id", "somerefno"], ["id", 1]]
33040
+  (0.9ms) COMMIT
33041
+  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL
33042
+  (27.0ms) TRUNCATE TABLE "public"."billers", "public"."users", "public"."payments", "public"."bloom_remit_responses", "public"."bloom_remit_txns" RESTART IDENTITY CASCADE;
33043
+  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL
33044
+  (0.1ms) BEGIN
33045
+  (0.3ms) COMMIT
33046
+  (0.3ms) BEGIN
33047
+  (0.3ms) ROLLBACK
33048
+  (0.2ms) BEGIN
33049
+  (0.2ms) COMMIT
33050
+  (0.2ms) BEGIN
33051
+  (0.4ms) ROLLBACK
33052
+  (0.3ms) BEGIN
33053
+  (0.4ms) COMMIT
33054
+  (0.3ms) BEGIN
33055
+  (0.4ms) ROLLBACK
33056
+  (0.4ms) BEGIN
33057
+  (0.4ms) COMMIT
33058
+  (0.3ms) BEGIN
33059
+  (0.3ms) ROLLBACK
33060
+  (0.3ms) BEGIN
33061
+  (0.2ms) COMMIT
33062
+  (0.2ms) BEGIN
33063
+  (0.2ms) ROLLBACK
33064
+  (0.2ms) BEGIN
33065
+  (0.2ms) COMMIT
33066
+  (0.5ms) BEGIN
33067
+  (0.3ms) ROLLBACK
33068
+  (0.2ms) BEGIN
33069
+  (0.3ms) COMMIT
33070
+  (0.2ms) BEGIN
33071
+  (0.3ms) ROLLBACK
33072
+  (0.4ms) BEGIN
33073
+  (0.3ms) COMMIT
33074
+  (0.4ms) BEGIN
33075
+  (0.3ms) SAVEPOINT active_record_1
33076
+ SQL (0.6ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
33077
+  (0.3ms) RELEASE SAVEPOINT active_record_1
33078
+  (0.3ms) SAVEPOINT active_record_1
33079
+ SQL (1.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", "9276ac90-25be-462c-9b8c-3408768a7444"], ["external_id", "1d6d6403b3ac02d456dd1fd2"], ["sender_id", "1"], ["sender_type", "User"]]
33080
+  (0.3ms) RELEASE SAVEPOINT active_record_1
33081
+ Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-09-16 01:18:07 +0000
33082
+ Processing by BloomRemit::Api::V1::TxnsController#post_update as JSON
33083
+ Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"1", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
33084
+ 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]]
33085
+ Rendered text template (0.0ms)
33086
+ Completed 404 Not Found in 52ms (Views: 50.1ms | ActiveRecord: 0.4ms)
33087
+ Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-09-16 01:18:07 +0000
33088
+ Processing by BloomRemit::Api::V1::TxnsController#post_update as JSON
33089
+ Parameters: {"secret"=>"9276ac90-25be-462c-9b8c-3408768a7444", "status"=>"paid", "id"=>"1", "txn"=>{"status"=>"paid", "secret"=>"9276ac90-25be-462c-9b8c-3408768a7444"}}
33090
+ 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", "9276ac90-25be-462c-9b8c-3408768a7444"]]
33091
+  (0.3ms) SAVEPOINT active_record_1
33092
+ SQL (0.4ms) UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 1], ["id", 1]]
33093
+  (0.3ms) RELEASE SAVEPOINT active_record_1
33094
+ Completed 200 OK in 8ms (Views: 0.5ms | ActiveRecord: 1.5ms)
33095
+ BloomRemit::Txn Load (0.4ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1 [["id", 1]]
33096
+  (0.4ms) ROLLBACK
33097
+  (0.3ms) BEGIN
33098
+  (0.5ms) COMMIT
33099
+  (0.5ms) BEGIN
33100
+  (0.3ms) SAVEPOINT active_record_1
33101
+ SQL (0.5ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
33102
+  (0.3ms) RELEASE SAVEPOINT active_record_1
33103
+  (0.3ms) SAVEPOINT active_record_1
33104
+ 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", "6f5bdb40-3ae0-4d4f-886b-93ae70582a48"], ["external_id", "47dcdb7b8dfb5faa18672071"], ["sender_id", "2"], ["sender_type", "User"]]
33105
+  (0.3ms) RELEASE SAVEPOINT active_record_1
33106
+ Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-09-16 01:18:07 +0000
33107
+ Processing by BloomRemit::Api::V1::TxnsController#update as JSON
33108
+ Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"2", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
33109
+ 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]]
33110
+ Rendered text template (0.0ms)
33111
+ Completed 404 Not Found in 3ms (Views: 0.9ms | ActiveRecord: 0.5ms)
33112
+ Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-09-16 01:18:07 +0000
33113
+ Processing by BloomRemit::Api::V1::TxnsController#update as JSON
33114
+ Parameters: {"secret"=>"6f5bdb40-3ae0-4d4f-886b-93ae70582a48", "status"=>"paid", "id"=>"2", "txn"=>{"status"=>"paid", "secret"=>"6f5bdb40-3ae0-4d4f-886b-93ae70582a48"}}
33115
+ 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", "6f5bdb40-3ae0-4d4f-886b-93ae70582a48"]]
33116
+  (0.4ms) SAVEPOINT active_record_1
33117
+ SQL (0.5ms) UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 1], ["id", 2]]
33118
+  (0.3ms) RELEASE SAVEPOINT active_record_1
33119
+ Completed 204 No Content in 45ms (ActiveRecord: 1.7ms)
33120
+ BloomRemit::Txn Load (0.4ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1 [["id", 2]]
33121
+  (0.3ms) ROLLBACK
33122
+  (0.3ms) BEGIN
33123
+  (0.4ms) COMMIT
33124
+  (0.5ms) BEGIN
33125
+  (0.5ms) SAVEPOINT active_record_1
33126
+ SQL (0.4ms) INSERT INTO "users" ("type") VALUES ($1) RETURNING "id" [["type", "SubUser"]]
33127
+  (0.3ms) RELEASE SAVEPOINT active_record_1
33128
+  (0.3ms) SAVEPOINT active_record_1
33129
+ SQL (0.6ms) INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
33130
+  (0.3ms) RELEASE SAVEPOINT active_record_1
33131
+  (0.2ms) SAVEPOINT active_record_1
33132
+ SQL (0.5ms) INSERT INTO "payments" ("type") VALUES ($1) RETURNING "id" [["type", "SubPayment"]]
33133
+  (0.3ms) RELEASE SAVEPOINT active_record_1
33134
+  (0.3ms) SAVEPOINT active_record_1
33135
+ 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") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["secret", "3c9a2992-b396-40de-a656-6ede430d59d6"], ["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", "d815f3cea605a7c74d1c55f6"]]
33136
+  (0.5ms) RELEASE SAVEPOINT active_record_1
33137
+  (0.4ms) ROLLBACK
33138
+  (0.2ms) BEGIN
33139
+  (0.2ms) COMMIT
33140
+  (0.3ms) BEGIN
33141
+  (0.3ms) ROLLBACK
33142
+  (0.2ms) BEGIN
33143
+  (0.3ms) COMMIT
33144
+  (0.2ms) BEGIN
33145
+  (0.3ms) SAVEPOINT active_record_1
33146
+ SQL (0.4ms) INSERT INTO "payments" DEFAULT VALUES RETURNING "id"
33147
+  (0.3ms) RELEASE SAVEPOINT active_record_1
33148
+  (0.2ms) SAVEPOINT active_record_1
33149
+ SQL (0.6ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
33150
+  (0.3ms) RELEASE SAVEPOINT active_record_1
33151
+  (0.3ms) SAVEPOINT active_record_1
33152
+ 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", "71a452a9-6395-4782-8ae8-680cce44e21d"], ["external_id", "354ef923a4b9c4b9450bb7c3"], ["owner_id", "2"], ["owner_type", "Payment"], ["sender_id", "4"], ["sender_type", "User"]]
33153
+  (0.3ms) RELEASE SAVEPOINT active_record_1
33154
+  (0.3ms) SAVEPOINT active_record_1
33155
+ 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-09-16 01:18:08.107838"], ["updated_at", "2016-09-16 01:18:08.107838"]]
33156
+  (0.3ms) RELEASE SAVEPOINT active_record_1
33157
+  (0.4ms) SELECT COUNT(*) FROM "bloom_remit_responses" WHERE "bloom_remit_responses"."txn_id" = $1 [["txn_id", 4]]
33158
+ 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]]
33159
+  (0.6ms) ROLLBACK
33160
+  (0.2ms) BEGIN
33161
+  (0.4ms) COMMIT
33162
+  (0.3ms) BEGIN
33163
+  (0.3ms) SAVEPOINT active_record_1
33164
+ SQL (0.4ms) INSERT INTO "payments" DEFAULT VALUES RETURNING "id"
33165
+  (0.2ms) RELEASE SAVEPOINT active_record_1
33166
+  (0.2ms) SAVEPOINT active_record_1
33167
+ SQL (0.4ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
33168
+  (0.3ms) RELEASE SAVEPOINT active_record_1
33169
+  (0.3ms) SAVEPOINT active_record_1
33170
+ 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", "5b14ea7f-f0fe-4353-a9be-b0122690644f"], ["external_id", "b9eadfa5b985dd80e84feeee"], ["owner_id", "3"], ["owner_type", "Payment"], ["sender_id", "5"], ["sender_type", "User"]]
33171
+  (0.4ms) RELEASE SAVEPOINT active_record_1
33172
+  (0.3ms) SAVEPOINT active_record_1
33173
+ SQL (0.5ms) UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 7], ["id", 5]]
33174
+  (0.4ms) RELEASE SAVEPOINT active_record_1
33175
+  (0.3ms) SAVEPOINT active_record_1
33176
+ 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-09-16 01:18:08.146710"], ["updated_at", "2016-09-16 01:18:08.146710"]]
33177
+  (0.3ms) RELEASE SAVEPOINT active_record_1
33178
+ BloomRemit::Txn Load (0.5ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1 [["id", 5]]
33179
+  (0.4ms) ROLLBACK
33180
+  (0.3ms) BEGIN
33181
+  (0.3ms) COMMIT
33182
+  (0.3ms) BEGIN
33183
+  (0.3ms) ROLLBACK
33184
+  (0.2ms) BEGIN
33185
+  (0.3ms) COMMIT
33186
+  (0.2ms) BEGIN
33187
+  (0.4ms) ROLLBACK
33188
+  (0.2ms) BEGIN
33189
+  (0.3ms) COMMIT
33190
+  (0.3ms) BEGIN
33191
+  (0.2ms) ROLLBACK
33192
+  (0.1ms) BEGIN
33193
+  (0.2ms) COMMIT
33194
+  (0.1ms) BEGIN
33195
+  (0.2ms) ROLLBACK
33196
+  (0.1ms) BEGIN
33197
+  (0.2ms) COMMIT
33198
+  (0.2ms) BEGIN
33199
+  (0.2ms) ROLLBACK
33200
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
33201
+  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL
33202
+  (1.3ms)  SELECT schemaname || '.' || tablename
33203
+ FROM pg_tables
33204
+ WHERE
33205
+ tablename !~ '_prt_' AND
33206
+ tablename <> 'schema_migrations' AND
33207
+ schemaname = ANY (current_schemas(false))
33208
+ 
33209
+  (1.2ms) select table_name from information_schema.views where table_schema = 'app_test'
33210
+  (33.0ms) TRUNCATE TABLE "public"."billers", "public"."users", "public"."payments", "public"."bloom_remit_responses", "public"."bloom_remit_txns" RESTART IDENTITY CASCADE;
33211
+  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL
33212
+  (0.4ms) BEGIN
33213
+  (0.5ms) COMMIT
33214
+  (0.3ms) BEGIN
33215
+  (0.3ms) ROLLBACK
33216
+  (0.2ms) BEGIN
33217
+  (0.2ms) COMMIT
33218
+  (0.3ms) BEGIN
33219
+  (0.3ms) ROLLBACK
33220
+  (0.2ms) BEGIN
33221
+  (0.3ms) COMMIT
33222
+  (0.3ms) BEGIN
33223
+  (0.4ms) ROLLBACK
33224
+  (0.6ms) BEGIN
33225
+ SQL (0.5ms) INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
33226
+  (1.6ms) COMMIT
33227
+  (0.4ms) BEGIN
33228
+ SQL (0.5ms) INSERT INTO "users" ("type") VALUES ($1) RETURNING "id" [["type", "SubUser"]]
33229
+  (0.9ms) COMMIT
33230
+  (0.4ms) BEGIN
33231
+ SQL (0.5ms) INSERT INTO "payments" ("type") VALUES ($1) RETURNING "id" [["type", "SubPayment"]]
33232
+  (0.8ms) COMMIT
33233
+  (0.4ms) BEGIN
33234
+ 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") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["secret", "3a62b954-7c3d-4312-b78c-6cafa7f16d77"], ["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", "410e0fbcae1eaef6dc4b1644"]]
33235
+  (0.8ms) COMMIT
33236
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1]]
33237
+ Payment Load (0.4ms) SELECT "payments".* FROM "payments" WHERE "payments"."id" = $1 LIMIT 1 [["id", 1]]
33238
+  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL
33239
+  (30.8ms) TRUNCATE TABLE "public"."billers", "public"."users", "public"."payments", "public"."bloom_remit_responses", "public"."bloom_remit_txns" RESTART IDENTITY CASCADE;
33240
+  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL
33241
+  (0.5ms) BEGIN
33242
+ SQL (1.0ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
33243
+  (0.9ms) COMMIT
33244
+  (0.3ms) BEGIN
33245
+ 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", "7cb52899-6b26-4c3a-91d5-0eeba73735c3"], ["external_id", "e31587d66ab50c9c1a8d9517"], ["sender_id", "1"], ["sender_type", "User"]]
33246
+  (0.7ms) COMMIT
33247
+ 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", "7cb52899-6b26-4c3a-91d5-0eeba73735c3"]]
33248
+  (0.3ms) BEGIN
33249
+ 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", "somerefno"], ["id", 1]]
33250
+  (0.8ms) COMMIT
33251
+  (0.6ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL
33252
+  (30.0ms) TRUNCATE TABLE "public"."billers", "public"."users", "public"."payments", "public"."bloom_remit_responses", "public"."bloom_remit_txns" RESTART IDENTITY CASCADE;
33253
+  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL
33254
+  (0.3ms) BEGIN
33255
+  (0.2ms) COMMIT
33256
+  (0.2ms) BEGIN
33257
+  (0.2ms) ROLLBACK
33258
+  (0.1ms) BEGIN
33259
+  (0.2ms) COMMIT
33260
+  (0.2ms) BEGIN
33261
+  (0.2ms) ROLLBACK
33262
+  (0.1ms) BEGIN
33263
+  (0.1ms) COMMIT
33264
+  (0.1ms) BEGIN
33265
+  (0.3ms) ROLLBACK
33266
+  (0.3ms) BEGIN
33267
+  (0.3ms) COMMIT
33268
+  (0.3ms) BEGIN
33269
+  (0.2ms) ROLLBACK
33270
+  (0.2ms) BEGIN
33271
+  (0.2ms) COMMIT
33272
+  (0.1ms) BEGIN
33273
+  (0.2ms) ROLLBACK
33274
+  (0.2ms) BEGIN
33275
+  (0.2ms) COMMIT
33276
+  (0.1ms) BEGIN
33277
+  (0.7ms) ROLLBACK
33278
+  (0.1ms) BEGIN
33279
+  (0.2ms) COMMIT
33280
+  (0.2ms) BEGIN
33281
+  (0.2ms) ROLLBACK
33282
+  (0.2ms) BEGIN
33283
+  (0.2ms) COMMIT
33284
+  (0.1ms) BEGIN
33285
+  (0.2ms) SAVEPOINT active_record_1
33286
+ SQL (0.5ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
33287
+  (0.2ms) RELEASE SAVEPOINT active_record_1
33288
+  (0.2ms) SAVEPOINT active_record_1
33289
+ 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", "56bc1cba-4f29-4c2c-9e9e-a86ae1e77abc"], ["external_id", "270a2c4498525096b2c13f1f"], ["sender_id", "1"], ["sender_type", "User"]]
33290
+  (0.2ms) RELEASE SAVEPOINT active_record_1
33291
+ Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-09-16 01:23:04 +0000
33292
+ Processing by BloomRemit::Api::V1::TxnsController#post_update as JSON
33293
+ Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"1", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
33294
+ 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]]
33295
+ Rendered text template (0.0ms)
33296
+ Completed 404 Not Found in 45ms (Views: 43.6ms | ActiveRecord: 0.4ms)
33297
+ Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-09-16 01:23:04 +0000
33298
+ Processing by BloomRemit::Api::V1::TxnsController#post_update as JSON
33299
+ Parameters: {"secret"=>"56bc1cba-4f29-4c2c-9e9e-a86ae1e77abc", "status"=>"paid", "id"=>"1", "txn"=>{"status"=>"paid", "secret"=>"56bc1cba-4f29-4c2c-9e9e-a86ae1e77abc"}}
33300
+ 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", "56bc1cba-4f29-4c2c-9e9e-a86ae1e77abc"]]
33301
+  (0.2ms) SAVEPOINT active_record_1
33302
+ SQL (0.4ms) UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 1], ["id", 1]]
33303
+  (0.2ms) RELEASE SAVEPOINT active_record_1
33304
+ Completed 200 OK in 8ms (Views: 0.4ms | ActiveRecord: 1.2ms)
33305
+ BloomRemit::Txn Load (0.3ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1 [["id", 1]]
33306
+  (0.2ms) ROLLBACK
33307
+  (0.2ms) BEGIN
33308
+  (0.2ms) COMMIT
33309
+  (0.2ms) BEGIN
33310
+  (0.2ms) SAVEPOINT active_record_1
33311
+ SQL (0.3ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
33312
+  (0.2ms) RELEASE SAVEPOINT active_record_1
33313
+  (0.2ms) SAVEPOINT active_record_1
33314
+ 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", "9595c6a8-6f9a-4fc4-9b09-50df78265f5a"], ["external_id", "d0b556051edd55fe9965ae35"], ["sender_id", "2"], ["sender_type", "User"]]
33315
+  (0.5ms) RELEASE SAVEPOINT active_record_1
33316
+ Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-09-16 01:23:04 +0000
33317
+ Processing by BloomRemit::Api::V1::TxnsController#update as JSON
33318
+ Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"2", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
33319
+ 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]]
33320
+ Rendered text template (0.0ms)
33321
+ Completed 404 Not Found in 3ms (Views: 0.9ms | ActiveRecord: 0.5ms)
33322
+ Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-09-16 01:23:04 +0000
33323
+ Processing by BloomRemit::Api::V1::TxnsController#update as JSON
33324
+ Parameters: {"secret"=>"9595c6a8-6f9a-4fc4-9b09-50df78265f5a", "status"=>"paid", "id"=>"2", "txn"=>{"status"=>"paid", "secret"=>"9595c6a8-6f9a-4fc4-9b09-50df78265f5a"}}
33325
+ 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", "9595c6a8-6f9a-4fc4-9b09-50df78265f5a"]]
33326
+  (0.2ms) SAVEPOINT active_record_1
33327
+ SQL (0.4ms) UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 1], ["id", 2]]
33328
+  (0.3ms) RELEASE SAVEPOINT active_record_1
33329
+ Completed 204 No Content in 43ms (ActiveRecord: 1.3ms)
33330
+ BloomRemit::Txn Load (0.4ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1 [["id", 2]]
33331
+  (0.2ms) ROLLBACK
33332
+  (0.1ms) BEGIN
33333
+  (0.2ms) COMMIT
33334
+  (0.1ms) BEGIN
33335
+  (0.2ms) SAVEPOINT active_record_1
33336
+ SQL (0.3ms) INSERT INTO "users" ("type") VALUES ($1) RETURNING "id" [["type", "SubUser"]]
33337
+  (0.2ms) RELEASE SAVEPOINT active_record_1
33338
+  (0.2ms) SAVEPOINT active_record_1
33339
+ SQL (0.5ms) INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
33340
+  (0.2ms) RELEASE SAVEPOINT active_record_1
33341
+  (0.2ms) SAVEPOINT active_record_1
33342
+ SQL (0.5ms) INSERT INTO "payments" ("type") VALUES ($1) RETURNING "id" [["type", "SubPayment"]]
33343
+  (0.3ms) RELEASE SAVEPOINT active_record_1
33344
+  (0.2ms) SAVEPOINT active_record_1
33345
+ 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") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["secret", "65507af4-67fe-479f-957c-90ce3a521737"], ["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", "21ab0ab4bab58951689806cc"]]
33346
+  (0.2ms) RELEASE SAVEPOINT active_record_1
33347
+  (0.2ms) ROLLBACK
33348
+  (0.1ms) BEGIN
33349
+  (0.2ms) COMMIT
33350
+  (0.2ms) BEGIN
33351
+  (0.2ms) ROLLBACK
33352
+  (0.1ms) BEGIN
33353
+  (0.2ms) COMMIT
33354
+  (0.2ms) BEGIN
33355
+  (0.2ms) SAVEPOINT active_record_1
33356
+ SQL (0.4ms) INSERT INTO "payments" DEFAULT VALUES RETURNING "id"
33357
+  (0.2ms) RELEASE SAVEPOINT active_record_1
33358
+  (0.2ms) SAVEPOINT active_record_1
33359
+ SQL (0.3ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
33360
+  (0.2ms) RELEASE SAVEPOINT active_record_1
33361
+  (0.2ms) SAVEPOINT active_record_1
33362
+ 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", "31feb9d8-74ef-4d98-8bd7-68f4a4ac465e"], ["external_id", "0e9a1e105e0a397083c2baea"], ["owner_id", "2"], ["owner_type", "Payment"], ["sender_id", "4"], ["sender_type", "User"]]
33363
+  (0.2ms) RELEASE SAVEPOINT active_record_1
33364
+  (0.2ms) SAVEPOINT active_record_1
33365
+ 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-09-16 01:23:04.889022"], ["updated_at", "2016-09-16 01:23:04.889022"]]
33366
+  (0.2ms) RELEASE SAVEPOINT active_record_1
33367
+  (0.5ms) SELECT COUNT(*) FROM "bloom_remit_responses" WHERE "bloom_remit_responses"."txn_id" = $1 [["txn_id", 4]]
33368
+ 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]]
33369
+  (0.3ms) ROLLBACK
33370
+  (0.1ms) BEGIN
33371
+  (0.2ms) COMMIT
33372
+  (0.1ms) BEGIN
33373
+  (0.4ms) SAVEPOINT active_record_1
33374
+ SQL (0.4ms) INSERT INTO "payments" DEFAULT VALUES RETURNING "id"
33375
+  (0.2ms) RELEASE SAVEPOINT active_record_1
33376
+  (0.2ms) SAVEPOINT active_record_1
33377
+ SQL (0.4ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
33378
+  (0.2ms) RELEASE SAVEPOINT active_record_1
33379
+  (0.2ms) SAVEPOINT active_record_1
33380
+ 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", "756d71fa-981a-4944-9258-eea4842107b3"], ["external_id", "57df5e567f3d9eff0ac9bf4b"], ["owner_id", "3"], ["owner_type", "Payment"], ["sender_id", "5"], ["sender_type", "User"]]
33381
+  (0.2ms) RELEASE SAVEPOINT active_record_1
33382
+  (0.2ms) SAVEPOINT active_record_1
33383
+ SQL (0.4ms) UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 7], ["id", 5]]
33384
+  (0.2ms) RELEASE SAVEPOINT active_record_1
33385
+  (0.2ms) SAVEPOINT active_record_1
33386
+ 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-09-16 01:23:04.922945"], ["updated_at", "2016-09-16 01:23:04.922945"]]
33387
+  (0.2ms) RELEASE SAVEPOINT active_record_1
33388
+ BloomRemit::Txn Load (0.4ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1 [["id", 5]]
33389
+  (0.2ms) ROLLBACK
33390
+  (0.1ms) BEGIN
33391
+  (0.2ms) COMMIT
33392
+  (0.2ms) BEGIN
33393
+  (0.2ms) ROLLBACK
33394
+  (0.1ms) BEGIN
33395
+  (0.6ms) COMMIT
33396
+  (0.2ms) BEGIN
33397
+  (0.3ms) ROLLBACK
33398
+  (0.1ms) BEGIN
33399
+  (0.2ms) COMMIT
33400
+  (0.2ms) BEGIN
33401
+  (0.2ms) ROLLBACK
33402
+  (0.2ms) BEGIN
33403
+  (0.2ms) COMMIT
33404
+  (0.2ms) BEGIN
33405
+  (0.3ms) ROLLBACK
33406
+  (0.3ms) BEGIN
33407
+  (0.3ms) COMMIT
33408
+  (0.3ms) BEGIN
33409
+  (0.4ms) ROLLBACK
33410
+ ActiveRecord::SchemaMigration Load (0.9ms) SELECT "schema_migrations".* FROM "schema_migrations"
33411
+  (0.8ms) 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;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL
33412
+  (1.7ms)  SELECT schemaname || '.' || tablename
33413
+ FROM pg_tables
33414
+ WHERE
33415
+ tablename !~ '_prt_' AND
33416
+ tablename <> 'schema_migrations' AND
33417
+ schemaname = ANY (current_schemas(false))
33418
+ 
33419
+  (1.8ms) select table_name from information_schema.views where table_schema = 'app_test'
33420
+  (394.2ms) TRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE;
33421
+  (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
33422
+  (0.5ms) BEGIN
33423
+  (0.4ms) COMMIT
33424
+  (0.5ms) BEGIN
33425
+  (1.3ms) ROLLBACK
33426
+  (0.5ms) BEGIN
33427
+  (0.4ms) COMMIT
33428
+  (0.5ms) BEGIN
33429
+  (0.4ms) ROLLBACK
33430
+  (0.4ms) BEGIN
33431
+  (0.5ms) COMMIT
33432
+  (0.5ms) BEGIN
33433
+  (0.7ms) ROLLBACK
33434
+  (0.5ms) BEGIN
33435
+ SQL (0.8ms) INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
33436
+  (10.5ms) COMMIT
33437
+  (1.7ms) BEGIN
33438
+ SQL (1.0ms) INSERT INTO "users" ("type") VALUES ($1) RETURNING "id" [["type", "SubUser"]]
33439
+  (12.9ms) COMMIT
33440
+  (0.5ms) BEGIN
33441
+ SQL (0.6ms) INSERT INTO "payments" ("type") VALUES ($1) RETURNING "id" [["type", "SubPayment"]]
33442
+  (10.2ms) COMMIT
33443
+  (1.1ms) BEGIN
33444
+ SQL (1.6ms) INSERT INTO "bloom_remit_txns" ("secret", "sender_type", "sender_id", "amount", "account_name", "account_id", "target_slug", "owner_id", "owner_type", "external_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["secret", "ac5fd411-2a46-40b5-9043-034e8819906f"], ["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", "93351e8c98153f7709a546cd"]]
33445
+  (9.9ms) COMMIT
33446
+ User Load (0.8ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1]]
33447
+ Payment Load (0.6ms) SELECT "payments".* FROM "payments" WHERE "payments"."id" = $1 LIMIT 1 [["id", 1]]
33448
+  (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
33449
+  (346.1ms) TRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE;
33450
+  (0.8ms) ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" 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
33451
+  (0.4ms) BEGIN
33452
+ SQL (0.8ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
33453
+  (11.4ms) COMMIT
33454
+  (0.7ms) BEGIN
33455
+ 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", "2a9c8a0e-0dfd-4c4e-a450-1e45524a4199"], ["external_id", "92e9976685de376fbbb1a178"], ["sender_id", "1"], ["sender_type", "User"]]
33456
+  (13.4ms) COMMIT
33457
+ BloomRemit::Txn Load (0.7ms) 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", "2a9c8a0e-0dfd-4c4e-a450-1e45524a4199"]]
33458
+  (0.5ms) BEGIN
33459
+ SQL (0.9ms) UPDATE "bloom_remit_txns" SET "status" = $1, "status_description" = $2, "vendor_external_id" = $3 WHERE "bloom_remit_txns"."id" = $4 [["status", 1], ["status_description", "My status description"], ["vendor_external_id", "somerefno"], ["id", 1]]
33460
+  (13.8ms) COMMIT
33461
+  (0.7ms) ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" 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
33462
+  (340.7ms) TRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE;
33463
+  (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
33464
+  (0.9ms) BEGIN
33465
+  (0.8ms) COMMIT
33466
+  (1.0ms) BEGIN
33467
+  (1.8ms) ROLLBACK
33468
+  (0.5ms) BEGIN
33469
+  (0.4ms) COMMIT
33470
+  (0.4ms) BEGIN
33471
+  (0.7ms) ROLLBACK
33472
+  (0.4ms) BEGIN
33473
+  (0.4ms) COMMIT
33474
+  (0.4ms) BEGIN
33475
+  (0.9ms) ROLLBACK
33476
+  (0.6ms) BEGIN
33477
+  (0.8ms) COMMIT
33478
+  (0.5ms) BEGIN
33479
+  (0.6ms) ROLLBACK
33480
+  (0.4ms) BEGIN
33481
+  (0.4ms) COMMIT
33482
+  (0.4ms) BEGIN
33483
+  (0.5ms) ROLLBACK
33484
+  (1.4ms) BEGIN
33485
+  (0.9ms) COMMIT
33486
+  (0.9ms) BEGIN
33487
+  (1.1ms) ROLLBACK
33488
+  (0.6ms) BEGIN
33489
+  (0.5ms) COMMIT
33490
+  (0.6ms) BEGIN
33491
+  (0.6ms) ROLLBACK
33492
+  (0.5ms) BEGIN
33493
+  (0.4ms) COMMIT
33494
+  (0.5ms) BEGIN
33495
+  (0.6ms) SAVEPOINT active_record_1
33496
+ SQL (0.8ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
33497
+  (0.5ms) RELEASE SAVEPOINT active_record_1
33498
+  (0.5ms) SAVEPOINT active_record_1
33499
+ 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", "c1664c06-f368-4768-aad0-02966a63203a"], ["external_id", "96d8e04e973d13ad4297f781"], ["sender_id", "1"], ["sender_type", "User"]]
33500
+  (0.5ms) RELEASE SAVEPOINT active_record_1
33501
+ Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-09-19 15:15:42 +0800
33502
+ Processing by BloomRemit::Api::V1::TxnsController#post_update as JSON
33503
+ Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"1", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
33504
+ BloomRemit::Txn Load (0.8ms) 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]]
33505
+ Rendered text template (0.0ms)
33506
+ Completed 404 Not Found in 13ms (Views: 11.7ms | ActiveRecord: 0.8ms)
33507
+ Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-09-19 15:15:43 +0800
33508
+ Processing by BloomRemit::Api::V1::TxnsController#post_update as JSON
33509
+ Parameters: {"secret"=>"c1664c06-f368-4768-aad0-02966a63203a", "status"=>"paid", "id"=>"1", "txn"=>{"status"=>"paid", "secret"=>"c1664c06-f368-4768-aad0-02966a63203a"}}
33510
+ BloomRemit::Txn Load (0.7ms) 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", "c1664c06-f368-4768-aad0-02966a63203a"]]
33511
+  (2.8ms) SAVEPOINT active_record_1
33512
+ SQL (0.7ms) UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 1], ["id", 1]]
33513
+  (0.6ms) RELEASE SAVEPOINT active_record_1
33514
+ Completed 200 OK in 10ms (Views: 0.5ms | ActiveRecord: 4.8ms)
33515
+ BloomRemit::Txn Load (0.6ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1 [["id", 1]]
33516
+  (0.5ms) ROLLBACK
33517
+  (0.5ms) BEGIN
33518
+  (0.4ms) COMMIT
33519
+  (0.4ms) BEGIN
33520
+  (0.9ms) SAVEPOINT active_record_1
33521
+ SQL (1.2ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
33522
+  (1.6ms) RELEASE SAVEPOINT active_record_1
33523
+  (0.8ms) SAVEPOINT active_record_1
33524
+ 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", "4ed895dd-79ad-4f11-b7e8-fdba3c51c816"], ["external_id", "203169d0e15c064c7f14e17f"], ["sender_id", "2"], ["sender_type", "User"]]
33525
+  (0.5ms) RELEASE SAVEPOINT active_record_1
33526
+ Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-09-19 15:15:43 +0800
33527
+ Processing by BloomRemit::Api::V1::TxnsController#update as JSON
33528
+ Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"2", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
33529
+ BloomRemit::Txn Load (0.8ms) 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]]
33530
+ Rendered text template (0.0ms)
33531
+ Completed 404 Not Found in 2ms (Views: 0.3ms | ActiveRecord: 0.8ms)
33532
+ Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-09-19 15:15:43 +0800
33533
+ Processing by BloomRemit::Api::V1::TxnsController#update as JSON
33534
+ Parameters: {"secret"=>"4ed895dd-79ad-4f11-b7e8-fdba3c51c816", "status"=>"paid", "id"=>"2", "txn"=>{"status"=>"paid", "secret"=>"4ed895dd-79ad-4f11-b7e8-fdba3c51c816"}}
33535
+ BloomRemit::Txn Load (0.9ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 2], ["secret", "4ed895dd-79ad-4f11-b7e8-fdba3c51c816"]]
33536
+  (0.8ms) SAVEPOINT active_record_1
33537
+ SQL (2.1ms) UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 1], ["id", 2]]
33538
+  (0.7ms) RELEASE SAVEPOINT active_record_1
33539
+ Completed 204 No Content in 14ms (ActiveRecord: 4.4ms)
33540
+ BloomRemit::Txn Load (0.7ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1 [["id", 2]]
33541
+  (0.4ms) ROLLBACK
33542
+  (0.4ms) BEGIN
33543
+  (0.3ms) COMMIT
33544
+  (0.3ms) BEGIN
33545
+  (1.6ms) SAVEPOINT active_record_1
33546
+ SQL (0.7ms) INSERT INTO "users" ("type") VALUES ($1) RETURNING "id" [["type", "SubUser"]]
33547
+  (0.4ms) RELEASE SAVEPOINT active_record_1
33548
+  (0.4ms) SAVEPOINT active_record_1
33549
+ SQL (0.7ms) INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
33550
+  (0.5ms) RELEASE SAVEPOINT active_record_1
33551
+  (0.5ms) SAVEPOINT active_record_1
33552
+ SQL (0.7ms) INSERT INTO "payments" ("type") VALUES ($1) RETURNING "id" [["type", "SubPayment"]]
33553
+  (0.4ms) RELEASE SAVEPOINT active_record_1
33554
+  (0.5ms) SAVEPOINT active_record_1
33555
+ SQL (0.8ms) INSERT INTO "bloom_remit_txns" ("secret", "sender_type", "sender_id", "amount", "account_name", "account_id", "target_slug", "owner_id", "owner_type", "external_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["secret", "e0df31ed-9ad8-4f05-8ea7-1797eda897e9"], ["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", "7e615dd1ffcad69c70b4cccc"]]
33556
+  (0.5ms) RELEASE SAVEPOINT active_record_1
33557
+  (0.5ms) ROLLBACK
33558
+  (0.6ms) BEGIN
33559
+  (2.4ms) COMMIT
33560
+  (0.7ms) BEGIN
33561
+  (0.5ms) ROLLBACK
33562
+  (0.4ms) BEGIN
33563
+  (0.4ms) COMMIT
33564
+  (0.4ms) BEGIN
33565
+  (0.5ms) SAVEPOINT active_record_1
33566
+ SQL (0.6ms) INSERT INTO "payments" DEFAULT VALUES RETURNING "id"
33567
+  (0.4ms) RELEASE SAVEPOINT active_record_1
33568
+  (0.4ms) SAVEPOINT active_record_1
33569
+ SQL (0.5ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
33570
+  (0.4ms) RELEASE SAVEPOINT active_record_1
33571
+  (0.4ms) SAVEPOINT active_record_1
33572
+ SQL (1.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", "ee4c26ac-fa70-45be-9a62-7c90ce19a157"], ["external_id", "b1e192dedca7ac65772051cd"], ["owner_id", "2"], ["owner_type", "Payment"], ["sender_id", "4"], ["sender_type", "User"]]
33573
+  (1.0ms) RELEASE SAVEPOINT active_record_1
33574
+  (0.5ms) SAVEPOINT active_record_1
33575
+ 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-09-19 07:15:43.146389"], ["updated_at", "2016-09-19 07:15:43.146389"]]
33576
+  (1.6ms) RELEASE SAVEPOINT active_record_1
33577
+  (0.5ms) SELECT COUNT(*) FROM "bloom_remit_responses" WHERE "bloom_remit_responses"."txn_id" = $1 [["txn_id", 4]]
33578
+ BloomRemit::Response Load (0.6ms) 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]]
33579
+  (0.5ms) ROLLBACK
33580
+  (0.4ms) BEGIN
33581
+  (0.4ms) COMMIT
33582
+  (0.4ms) BEGIN
33583
+  (0.4ms) SAVEPOINT active_record_1
33584
+ SQL (0.6ms) INSERT INTO "payments" DEFAULT VALUES RETURNING "id"
33585
+  (0.4ms) RELEASE SAVEPOINT active_record_1
33586
+  (0.4ms) SAVEPOINT active_record_1
33587
+ SQL (0.5ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
33588
+  (1.1ms) RELEASE SAVEPOINT active_record_1
33589
+  (0.7ms) SAVEPOINT active_record_1
33590
+ SQL (0.8ms) 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", "5143c377-5cd7-4a23-aab8-338fa7020764"], ["external_id", "104280e80f6d011b441ce9a1"], ["owner_id", "3"], ["owner_type", "Payment"], ["sender_id", "5"], ["sender_type", "User"]]
33591
+  (0.5ms) RELEASE SAVEPOINT active_record_1
33592
+  (0.5ms) SAVEPOINT active_record_1
33593
+ SQL (0.6ms) UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 7], ["id", 5]]
33594
+  (0.4ms) RELEASE SAVEPOINT active_record_1
33595
+  (0.4ms) SAVEPOINT active_record_1
33596
+ SQL (0.7ms) INSERT INTO "bloom_remit_responses" ("body", "txn_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["body", "{\"status\":\"500\",\"error\":\"Internal Server Error\"}"], ["txn_id", 5], ["created_at", "2016-09-19 07:15:43.178508"], ["updated_at", "2016-09-19 07:15:43.178508"]]
33597
+  (0.5ms) RELEASE SAVEPOINT active_record_1
33598
+ BloomRemit::Txn Load (0.7ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1 [["id", 5]]
33599
+  (3.2ms) ROLLBACK
33600
+  (0.4ms) BEGIN
33601
+  (0.4ms) COMMIT
33602
+  (0.4ms) BEGIN
33603
+  (0.5ms) ROLLBACK
33604
+  (0.5ms) BEGIN
33605
+  (0.5ms) COMMIT
33606
+  (0.4ms) BEGIN
33607
+  (0.5ms) ROLLBACK
33608
+  (0.6ms) BEGIN
33609
+  (0.8ms) COMMIT
33610
+  (0.9ms) BEGIN
33611
+  (0.6ms) ROLLBACK
33612
+  (0.4ms) BEGIN
33613
+  (0.4ms) COMMIT
33614
+  (0.4ms) BEGIN
33615
+  (0.5ms) ROLLBACK
33616
+  (0.4ms) BEGIN
33617
+  (0.4ms) COMMIT
33618
+  (0.4ms) BEGIN
33619
+  (0.5ms) ROLLBACK
33620
+ ActiveRecord::SchemaMigration Load (3.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
33621
+  (1.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
33622
+  (3.3ms)  SELECT schemaname || '.' || tablename
33623
+ FROM pg_tables
33624
+ WHERE
33625
+ tablename !~ '_prt_' AND
33626
+ tablename <> 'schema_migrations' AND
33627
+ schemaname = ANY (current_schemas(false))
33628
+ 
33629
+  (1.7ms) select table_name from information_schema.views where table_schema = 'app_test'
33630
+  (322.4ms) TRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE;
33631
+  (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
33632
+  (1.2ms) BEGIN
33633
+  (2.4ms) COMMIT
33634
+  (0.6ms) BEGIN
33635
+  (0.6ms) ROLLBACK
33636
+  (0.4ms) BEGIN
33637
+  (0.4ms) COMMIT
33638
+  (0.4ms) BEGIN
33639
+  (0.3ms) ROLLBACK
33640
+  (0.4ms) BEGIN
33641
+  (0.3ms) COMMIT
33642
+  (0.3ms) BEGIN
33643
+  (0.8ms) ROLLBACK
33644
+  (1.0ms) BEGIN
33645
+ SQL (0.9ms) INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
33646
+  (10.6ms) COMMIT
33647
+  (0.5ms) BEGIN
33648
+ SQL (0.7ms) INSERT INTO "users" ("type") VALUES ($1) RETURNING "id" [["type", "SubUser"]]
33649
+  (10.5ms) COMMIT
33650
+  (0.6ms) BEGIN
33651
+ SQL (0.7ms) INSERT INTO "payments" ("type") VALUES ($1) RETURNING "id" [["type", "SubPayment"]]
33652
+  (10.2ms) COMMIT
33653
+  (0.6ms) BEGIN
33654
+ 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") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["secret", "3c73a0d8-59f9-4df0-871f-efd6a5da2790"], ["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", "6cfa55a20ba0a7499cb91457"]]
33655
+  (10.6ms) COMMIT
33656
+ User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1]]
33657
+ Payment Load (0.7ms) SELECT "payments".* FROM "payments" WHERE "payments"."id" = $1 LIMIT 1 [["id", 1]]
33658
+  (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
33659
+  (392.4ms) TRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE;
33660
+  (0.9ms) 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
33661
+  (0.5ms) BEGIN
33662
+ SQL (0.9ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
33663
+  (10.1ms) COMMIT
33664
+  (0.6ms) BEGIN
33665
+ 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", "50e0b072-f725-46dd-937d-b40c1f1f2276"], ["external_id", "6b4224ad39cf4c7b3c5cf169"], ["sender_id", "1"], ["sender_type", "User"]]
33666
+  (10.0ms) COMMIT
33667
+ 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", "50e0b072-f725-46dd-937d-b40c1f1f2276"]]
33668
+  (0.5ms) BEGIN
33669
+ SQL (0.6ms) UPDATE "bloom_remit_txns" SET "status" = $1, "status_description" = $2, "vendor_external_id" = $3 WHERE "bloom_remit_txns"."id" = $4 [["status", 1], ["status_description", "My status description"], ["vendor_external_id", "somerefno"], ["id", 1]]
33670
+  (9.8ms) COMMIT
33671
+  (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
33672
+  (372.9ms) TRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE;
33673
+  (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
33674
+  (0.4ms) BEGIN
33675
+  (0.4ms) COMMIT
33676
+  (0.4ms) BEGIN
33677
+  (0.5ms) ROLLBACK
33678
+  (0.4ms) BEGIN
33679
+  (0.4ms) COMMIT
33680
+  (0.4ms) BEGIN
33681
+  (0.6ms) ROLLBACK
33682
+  (0.4ms) BEGIN
33683
+  (0.4ms) COMMIT
33684
+  (0.3ms) BEGIN
33685
+  (0.7ms) ROLLBACK
33686
+  (0.5ms) BEGIN
33687
+  (0.4ms) COMMIT
33688
+  (0.4ms) BEGIN
33689
+  (0.5ms) ROLLBACK
33690
+  (0.4ms) BEGIN
33691
+  (0.3ms) COMMIT
33692
+  (0.4ms) BEGIN
33693
+  (0.4ms) ROLLBACK
33694
+  (0.4ms) BEGIN
33695
+  (0.5ms) COMMIT
33696
+  (0.8ms) BEGIN
33697
+  (0.7ms) ROLLBACK
33698
+  (0.5ms) BEGIN
33699
+  (0.4ms) COMMIT
33700
+  (0.4ms) BEGIN
33701
+  (0.5ms) ROLLBACK
33702
+  (0.5ms) BEGIN
33703
+  (0.4ms) COMMIT
33704
+  (0.4ms) BEGIN
33705
+  (0.6ms) SAVEPOINT active_record_1
33706
+ SQL (1.7ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
33707
+  (0.9ms) RELEASE SAVEPOINT active_record_1
33708
+  (0.6ms) SAVEPOINT active_record_1
33709
+ SQL (1.0ms) INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "dedbfb2a-81bd-4e0c-a3d7-2ada9d088226"], ["external_id", "ff13aa442e2bf525c2776c6a"], ["sender_id", "1"], ["sender_type", "User"]]
33710
+  (0.5ms) RELEASE SAVEPOINT active_record_1
33711
+ Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-09-19 15:48:52 +0800
33712
+ Processing by BloomRemit::Api::V1::TxnsController#post_update as JSON
33713
+ Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"1", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
33714
+ BloomRemit::Txn Load (0.7ms) 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]]
33715
+ Rendered text template (0.0ms)
33716
+ Completed 404 Not Found in 12ms (Views: 10.1ms | ActiveRecord: 0.7ms)
33717
+ Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-09-19 15:48:52 +0800
33718
+ Processing by BloomRemit::Api::V1::TxnsController#post_update as JSON
33719
+ Parameters: {"secret"=>"dedbfb2a-81bd-4e0c-a3d7-2ada9d088226", "status"=>"paid", "id"=>"1", "txn"=>{"status"=>"paid", "secret"=>"dedbfb2a-81bd-4e0c-a3d7-2ada9d088226"}}
33720
+ BloomRemit::Txn Load (0.9ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 1], ["secret", "dedbfb2a-81bd-4e0c-a3d7-2ada9d088226"]]
33721
+  (0.5ms) SAVEPOINT active_record_1
33722
+ SQL (0.6ms) UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 1], ["id", 1]]
33723
+  (1.2ms) RELEASE SAVEPOINT active_record_1
33724
+ Completed 200 OK in 8ms (Views: 1.2ms | ActiveRecord: 3.1ms)
33725
+ BloomRemit::Txn Load (0.6ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1 [["id", 1]]
33726
+  (0.6ms) ROLLBACK
33727
+  (0.4ms) BEGIN
33728
+  (0.4ms) COMMIT
33729
+  (0.4ms) BEGIN
33730
+  (0.6ms) SAVEPOINT active_record_1
33731
+ SQL (0.6ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
33732
+  (1.0ms) RELEASE SAVEPOINT active_record_1
33733
+  (0.8ms) SAVEPOINT active_record_1
33734
+ SQL (1.2ms) 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", "ca8b650e-d509-4c45-b9a7-c56714a82294"], ["external_id", "1a8f4ba2b5d2ec8e49766c3d"], ["sender_id", "2"], ["sender_type", "User"]]
33735
+  (0.5ms) RELEASE SAVEPOINT active_record_1
33736
+ Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-09-19 15:48:52 +0800
33737
+ Processing by BloomRemit::Api::V1::TxnsController#update as JSON
33738
+ Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"2", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
33739
+ BloomRemit::Txn Load (0.8ms) 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]]
33740
+ Rendered text template (0.0ms)
33741
+ Completed 404 Not Found in 2ms (Views: 0.3ms | ActiveRecord: 0.8ms)
33742
+ Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-09-19 15:48:52 +0800
33743
+ Processing by BloomRemit::Api::V1::TxnsController#update as JSON
33744
+ Parameters: {"secret"=>"ca8b650e-d509-4c45-b9a7-c56714a82294", "status"=>"paid", "id"=>"2", "txn"=>{"status"=>"paid", "secret"=>"ca8b650e-d509-4c45-b9a7-c56714a82294"}}
33745
+ BloomRemit::Txn Load (0.9ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 2], ["secret", "ca8b650e-d509-4c45-b9a7-c56714a82294"]]
33746
+  (0.5ms) SAVEPOINT active_record_1
33747
+ SQL (0.7ms) UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 1], ["id", 2]]
33748
+  (0.4ms) RELEASE SAVEPOINT active_record_1
33749
+ Completed 204 No Content in 13ms (ActiveRecord: 2.5ms)
33750
+ BloomRemit::Txn Load (0.7ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1 [["id", 2]]
33751
+  (0.5ms) ROLLBACK
33752
+  (0.4ms) BEGIN
33753
+  (0.5ms) COMMIT
33754
+  (0.4ms) BEGIN
33755
+  (0.5ms) SAVEPOINT active_record_1
33756
+ SQL (0.6ms) INSERT INTO "users" ("type") VALUES ($1) RETURNING "id" [["type", "SubUser"]]
33757
+  (0.5ms) RELEASE SAVEPOINT active_record_1
33758
+  (0.4ms) SAVEPOINT active_record_1
33759
+ SQL (1.2ms) INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
33760
+  (0.9ms) RELEASE SAVEPOINT active_record_1
33761
+  (0.6ms) SAVEPOINT active_record_1
33762
+ SQL (0.8ms) INSERT INTO "payments" ("type") VALUES ($1) RETURNING "id" [["type", "SubPayment"]]
33763
+  (0.5ms) RELEASE SAVEPOINT active_record_1
33764
+  (0.5ms) SAVEPOINT active_record_1
33765
+ SQL (0.8ms) INSERT INTO "bloom_remit_txns" ("secret", "sender_type", "sender_id", "amount", "account_name", "account_id", "target_slug", "owner_id", "owner_type", "external_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["secret", "83b8dabb-f251-451c-8c3c-8fcdfba5a5fc"], ["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", "3a962af9a7c9ef5520071910"]]
33766
+  (0.7ms) RELEASE SAVEPOINT active_record_1
33767
+  (0.5ms) ROLLBACK
33768
+  (0.5ms) BEGIN
33769
+  (0.5ms) COMMIT
33770
+  (0.4ms) BEGIN
33771
+  (0.4ms) ROLLBACK
33772
+  (0.5ms) BEGIN
33773
+  (0.4ms) COMMIT
33774
+  (0.4ms) BEGIN
33775
+  (0.6ms) SAVEPOINT active_record_1
33776
+ SQL (1.2ms) INSERT INTO "payments" DEFAULT VALUES RETURNING "id"
33777
+  (0.5ms) RELEASE SAVEPOINT active_record_1
33778
+  (0.5ms) SAVEPOINT active_record_1
33779
+ SQL (0.6ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
33780
+  (0.5ms) RELEASE SAVEPOINT active_record_1
33781
+  (0.5ms) SAVEPOINT active_record_1
33782
+ 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", "6073cf6c-69ff-4182-87a6-cdd241ca9dfd"], ["external_id", "58c474ea76b9c99e72eac455"], ["owner_id", "2"], ["owner_type", "Payment"], ["sender_id", "4"], ["sender_type", "User"]]
33783
+  (0.5ms) RELEASE SAVEPOINT active_record_1
33784
+  (0.6ms) SAVEPOINT active_record_1
33785
+ SQL (0.8ms) INSERT INTO "bloom_remit_responses" ("body", "txn_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["body", "{\"i\":\"am body\"}"], ["txn_id", 4], ["created_at", "2016-09-19 07:48:52.995769"], ["updated_at", "2016-09-19 07:48:52.995769"]]
33786
+  (0.5ms) RELEASE SAVEPOINT active_record_1
33787
+  (0.5ms) SELECT COUNT(*) FROM "bloom_remit_responses" WHERE "bloom_remit_responses"."txn_id" = $1 [["txn_id", 4]]
33788
+ BloomRemit::Response Load (0.6ms) 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]]
33789
+  (0.4ms) ROLLBACK
33790
+  (0.4ms) BEGIN
33791
+  (1.2ms) COMMIT
33792
+  (0.8ms) BEGIN
33793
+  (0.6ms) SAVEPOINT active_record_1
33794
+ SQL (0.6ms) INSERT INTO "payments" DEFAULT VALUES RETURNING "id"
33795
+  (0.5ms) RELEASE SAVEPOINT active_record_1
33796
+  (0.4ms) SAVEPOINT active_record_1
33797
+ SQL (0.6ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
33798
+  (0.4ms) RELEASE SAVEPOINT active_record_1
33799
+  (0.4ms) SAVEPOINT active_record_1
33800
+ 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", "58a5f2f0-5655-458e-96d7-3ef6d17e6c71"], ["external_id", "fc9f62802ddf2beebd00b2e2"], ["owner_id", "3"], ["owner_type", "Payment"], ["sender_id", "5"], ["sender_type", "User"]]
33801
+  (0.5ms) RELEASE SAVEPOINT active_record_1
33802
+  (0.6ms) SAVEPOINT active_record_1
33803
+ SQL (0.8ms) UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 7], ["id", 5]]
33804
+  (1.0ms) RELEASE SAVEPOINT active_record_1
33805
+  (2.4ms) SAVEPOINT active_record_1
33806
+ SQL (0.6ms) INSERT INTO "bloom_remit_responses" ("body", "txn_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["body", "{\"status\":\"500\",\"error\":\"Internal Server Error\"}"], ["txn_id", 5], ["created_at", "2016-09-19 07:48:53.028651"], ["updated_at", "2016-09-19 07:48:53.028651"]]
33807
+  (0.4ms) RELEASE SAVEPOINT active_record_1
33808
+ BloomRemit::Txn Load (0.7ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1 [["id", 5]]
33809
+  (0.5ms) ROLLBACK
33810
+  (0.5ms) BEGIN
33811
+  (0.5ms) COMMIT
33812
+  (0.5ms) BEGIN
33813
+  (0.8ms) ROLLBACK
33814
+  (0.8ms) BEGIN
33815
+  (0.5ms) COMMIT
33816
+  (0.4ms) BEGIN
33817
+  (0.5ms) ROLLBACK
33818
+  (0.4ms) BEGIN
33819
+  (0.4ms) COMMIT
33820
+  (0.3ms) BEGIN
33821
+  (0.6ms) ROLLBACK
33822
+  (2.1ms) BEGIN
33823
+  (0.7ms) COMMIT
33824
+  (0.5ms) BEGIN
33825
+  (0.6ms) ROLLBACK
33826
+  (0.5ms) BEGIN
33827
+  (0.3ms) COMMIT
33828
+  (0.4ms) BEGIN
33829
+  (0.6ms) ROLLBACK