bloom_remit 0.12.1 → 0.13.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: d172da9d1f522ec820c15851f28e0c6009ea8cab
4
- data.tar.gz: e2fab57e8438c27185cbae34b54f7cb968635dcf
3
+ metadata.gz: c2e985b3a393e137ce532e408804864505dcd25b
4
+ data.tar.gz: e30bc50d70ee95a5ad4b35d201192c7d5723e81d
5
5
  SHA512:
6
- metadata.gz: f6273cdaabbe79286cffbce3d97f1180bb5362cd144a18a9358e003bb2c2287d5f6239e6864ce9577e16fcb7af96c2ba8f1fe88ff78295b69c5fb0bc1d4f091a
7
- data.tar.gz: 690aa92172c6ce0126c53110a77cc50166a52402bf843692a7d2624eb258221be8d221af6b7963436656b8b3195e468e0a9dbf2bb85b0ba4f198dbec100c599e
6
+ metadata.gz: 457fbc94f51b882b22aedc00e5d315e2037225bf7bfa01f64396265bd08c7ac839aadf7e77e909955f91d58c91e4892bacfe4f56b6cc5e89bc2b82bc09416a97
7
+ data.tar.gz: 23928d6b9e9b30d623bd3c9ee2fad9129bac08d5369b055211f23aa3cdeb4dfa7cc30262dd1b54006d479cc0a71c77eee0ce348bf83a7741ef83e4558465f453
@@ -24,12 +24,9 @@ module BloomRemit
24
24
  private
25
25
 
26
26
  def setup_params!(params)
27
+ txn_params = params.dup
27
28
  params[:txn] ||= {}
28
- params[:txn].merge!(params.slice(*%i[
29
- status
30
- status_description
31
- tracking_number
32
- ]))
29
+ params[:txn].merge!(txn_params)
33
30
  end
34
31
 
35
32
  def model!(params)
@@ -1,3 +1,3 @@
1
1
  module BloomRemit
2
- VERSION = "0.12.1"
2
+ VERSION = "0.13.0"
3
3
  end
@@ -14,15 +14,21 @@ module BloomRemit
14
14
  secret: txn.secret,
15
15
  status: "paid",
16
16
  status_description: "My status description",
17
+ vendor_external_id: "vextid",
17
18
  tracking_number: "tracking-number",
19
+ fake_id: "fake_id",
18
20
  )
19
21
  txn = op.model
20
22
  expect(txn.status).to eq "paid"
21
23
  expect(txn.status_description).to eq "My status description"
22
24
  expect(OnUpdateJob).to have_enqueued_job(txn.id, {
25
+ id: txn.id,
26
+ secret: txn.secret,
23
27
  status: "paid",
24
28
  status_description: "My status description",
29
+ vendor_external_id: "vextid",
25
30
  tracking_number: "tracking-number",
31
+ fake_id: "fake_id",
26
32
  })
27
33
  end
28
34
 
@@ -35641,3 +35641,1985 @@ Completed 204 No Content in 43ms (ActiveRecord: 1.2ms)
35641
35641
   (0.2ms) COMMIT
35642
35642
   (0.2ms) BEGIN
35643
35643
   (0.2ms) ROLLBACK
35644
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
35645
+  (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
35646
+  (1.6ms)  SELECT schemaname || '.' || tablename
35647
+ FROM pg_tables
35648
+ WHERE
35649
+ tablename !~ '_prt_' AND
35650
+ tablename <> 'schema_migrations' AND
35651
+ schemaname = ANY (current_schemas(false))
35652
+ 
35653
+  (1.3ms) select table_name from information_schema.views where table_schema = 'app_test'
35654
+  (404.7ms) TRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE;
35655
+  (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
35656
+  (0.4ms) BEGIN
35657
+  (0.4ms) COMMIT
35658
+  (0.3ms) BEGIN
35659
+  (0.3ms) ROLLBACK
35660
+  (0.2ms) BEGIN
35661
+  (0.3ms) COMMIT
35662
+  (0.3ms) BEGIN
35663
+  (0.3ms) ROLLBACK
35664
+  (0.3ms) BEGIN
35665
+ SQL (0.6ms) INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
35666
+  (10.3ms) COMMIT
35667
+  (0.2ms) BEGIN
35668
+ SQL (0.3ms) INSERT INTO "users" ("type") VALUES ($1) RETURNING "id" [["type", "SubUser"]]
35669
+  (12.5ms) COMMIT
35670
+  (0.3ms) BEGIN
35671
+ SQL (1.1ms) INSERT INTO "payments" ("type") VALUES ($1) RETURNING "id" [["type", "SubPayment"]]
35672
+  (14.5ms) COMMIT
35673
+  (0.2ms) BEGIN
35674
+ SQL (0.5ms) INSERT INTO "bloom_remit_txns" ("secret", "sender_type", "sender_id", "amount", "account_name", "account_id", "target_slug", "owner_id", "owner_type", "external_id", "recipient_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11) RETURNING "id" [["secret", "05de8b1b-345a-43df-bc6c-d1c1afcc30b8"], ["sender_type", "User"], ["sender_id", "1"], ["amount", "800.0"], ["account_name", "028109090"], ["account_id", "Hooli X"], ["target_slug", "PLDT"], ["owner_id", "1"], ["owner_type", "Payment"], ["external_id", "37bd176a279acb709d158df8"], ["recipient_id", "recipient-id"]]
35675
+  (11.8ms) COMMIT
35676
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1]]
35677
+ Payment Load (0.3ms) SELECT "payments".* FROM "payments" WHERE "payments"."id" = $1 LIMIT 1 [["id", 1]]
35678
+  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
35679
+  (462.8ms) TRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE;
35680
+  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
35681
+  (0.2ms) BEGIN
35682
+ SQL (0.7ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
35683
+  (12.7ms) COMMIT
35684
+  (0.2ms) BEGIN
35685
+ SQL (0.5ms) INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "a5010696-1c6c-4561-9f5e-4f1946a3941e"], ["external_id", "581845b8fdaca43b606a7d15"], ["sender_id", "1"], ["sender_type", "User"]]
35686
+  (12.1ms) COMMIT
35687
+ BloomRemit::Txn Load (0.4ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 1], ["secret", "a5010696-1c6c-4561-9f5e-4f1946a3941e"]]
35688
+  (0.2ms) BEGIN
35689
+ SQL (0.3ms) UPDATE "bloom_remit_txns" SET "status" = $1, "status_description" = $2 WHERE "bloom_remit_txns"."id" = $3 [["status", 1], ["status_description", "My status description"], ["id", 1]]
35690
+  (12.8ms) COMMIT
35691
+  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
35692
+  (366.9ms) TRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE;
35693
+  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
35694
+  (0.2ms) BEGIN
35695
+  (0.2ms) COMMIT
35696
+  (0.2ms) BEGIN
35697
+  (0.2ms) ROLLBACK
35698
+  (0.2ms) BEGIN
35699
+  (0.2ms) COMMIT
35700
+  (0.2ms) BEGIN
35701
+  (0.2ms) ROLLBACK
35702
+  (0.2ms) BEGIN
35703
+  (0.2ms) COMMIT
35704
+  (0.2ms) BEGIN
35705
+  (0.3ms) ROLLBACK
35706
+  (0.2ms) BEGIN
35707
+  (0.3ms) COMMIT
35708
+  (0.3ms) BEGIN
35709
+  (0.2ms) ROLLBACK
35710
+  (0.2ms) BEGIN
35711
+  (0.2ms) COMMIT
35712
+  (0.2ms) BEGIN
35713
+  (0.2ms) ROLLBACK
35714
+  (0.1ms) BEGIN
35715
+  (0.2ms) COMMIT
35716
+  (0.2ms) BEGIN
35717
+  (0.2ms) ROLLBACK
35718
+  (0.5ms) BEGIN
35719
+  (0.2ms) COMMIT
35720
+  (0.2ms) BEGIN
35721
+  (0.3ms) ROLLBACK
35722
+  (0.2ms) BEGIN
35723
+  (0.3ms) COMMIT
35724
+  (0.3ms) BEGIN
35725
+  (0.2ms) SAVEPOINT active_record_1
35726
+ SQL (0.6ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
35727
+  (0.3ms) RELEASE SAVEPOINT active_record_1
35728
+  (0.2ms) SAVEPOINT active_record_1
35729
+ SQL (0.6ms) INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "3d56d91a-b5c5-45bc-8c94-883e9c24a29d"], ["external_id", "b01ead171174a28dcb93f059"], ["sender_id", "1"], ["sender_type", "User"]]
35730
+  (0.2ms) RELEASE SAVEPOINT active_record_1
35731
+ Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-10-05 07:33:51 +0000
35732
+ Processing by BloomRemit::Api::V1::TxnsController#post_update as JSON
35733
+ Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"1", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
35734
+ 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]]
35735
+ Rendered text template (0.0ms)
35736
+ Completed 404 Not Found in 51ms (Views: 49.5ms | ActiveRecord: 0.4ms)
35737
+ Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-10-05 07:33:51 +0000
35738
+ Processing by BloomRemit::Api::V1::TxnsController#post_update as JSON
35739
+ Parameters: {"secret"=>"3d56d91a-b5c5-45bc-8c94-883e9c24a29d", "status"=>"paid", "id"=>"1", "txn"=>{"status"=>"paid", "secret"=>"3d56d91a-b5c5-45bc-8c94-883e9c24a29d"}}
35740
+ BloomRemit::Txn Load (0.4ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 1], ["secret", "3d56d91a-b5c5-45bc-8c94-883e9c24a29d"]]
35741
+  (0.3ms) SAVEPOINT active_record_1
35742
+ SQL (0.3ms) UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 1], ["id", 1]]
35743
+  (0.2ms) RELEASE SAVEPOINT active_record_1
35744
+ Completed 200 OK in 8ms (Views: 0.4ms | ActiveRecord: 1.2ms)
35745
+ BloomRemit::Txn Load (0.3ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1 [["id", 1]]
35746
+  (0.3ms) ROLLBACK
35747
+  (0.1ms) BEGIN
35748
+  (0.2ms) COMMIT
35749
+  (0.1ms) BEGIN
35750
+  (0.2ms) SAVEPOINT active_record_1
35751
+ SQL (0.4ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
35752
+  (0.2ms) RELEASE SAVEPOINT active_record_1
35753
+  (0.2ms) SAVEPOINT active_record_1
35754
+ SQL (0.3ms) INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "cd4ca939-be25-4d67-8549-14c662de6249"], ["external_id", "00a85e67646fee3cefb6a5f1"], ["sender_id", "2"], ["sender_type", "User"]]
35755
+  (0.2ms) RELEASE SAVEPOINT active_record_1
35756
+ Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-10-05 07:33:51 +0000
35757
+ Processing by BloomRemit::Api::V1::TxnsController#update as JSON
35758
+ Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"2", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
35759
+ 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]]
35760
+ Rendered text template (0.0ms)
35761
+ Completed 404 Not Found in 3ms (Views: 1.1ms | ActiveRecord: 0.5ms)
35762
+ Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-10-05 07:33:51 +0000
35763
+ Processing by BloomRemit::Api::V1::TxnsController#update as JSON
35764
+ Parameters: {"secret"=>"cd4ca939-be25-4d67-8549-14c662de6249", "status"=>"paid", "id"=>"2", "txn"=>{"status"=>"paid", "secret"=>"cd4ca939-be25-4d67-8549-14c662de6249"}}
35765
+ BloomRemit::Txn Load (0.4ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 2], ["secret", "cd4ca939-be25-4d67-8549-14c662de6249"]]
35766
+  (0.2ms) SAVEPOINT active_record_1
35767
+ SQL (0.4ms) UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 1], ["id", 2]]
35768
+  (0.2ms) RELEASE SAVEPOINT active_record_1
35769
+ Completed 204 No Content in 46ms (ActiveRecord: 1.2ms)
35770
+ BloomRemit::Txn Load (0.4ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1 [["id", 2]]
35771
+  (0.2ms) ROLLBACK
35772
+  (0.2ms) BEGIN
35773
+  (0.2ms) COMMIT
35774
+  (0.2ms) BEGIN
35775
+  (0.2ms) SAVEPOINT active_record_1
35776
+ SQL (0.4ms) INSERT INTO "users" ("type") VALUES ($1) RETURNING "id" [["type", "SubUser"]]
35777
+  (0.2ms) RELEASE SAVEPOINT active_record_1
35778
+  (0.2ms) SAVEPOINT active_record_1
35779
+ SQL (0.5ms) INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
35780
+  (0.2ms) RELEASE SAVEPOINT active_record_1
35781
+  (0.2ms) SAVEPOINT active_record_1
35782
+ SQL (0.5ms) INSERT INTO "payments" ("type") VALUES ($1) RETURNING "id" [["type", "SubPayment"]]
35783
+  (0.2ms) RELEASE SAVEPOINT active_record_1
35784
+  (0.2ms) SAVEPOINT active_record_1
35785
+ SQL (0.4ms) INSERT INTO "bloom_remit_txns" ("secret", "sender_type", "sender_id", "amount", "account_name", "account_id", "target_slug", "owner_id", "owner_type", "external_id", "recipient_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11) RETURNING "id" [["secret", "ca8d5712-933d-480d-8412-dc281f510ce7"], ["sender_type", "User"], ["sender_id", "3"], ["amount", "800.0"], ["account_name", "028109090"], ["account_id", "Hooli X"], ["target_slug", "PLDT"], ["owner_id", "1"], ["owner_type", "Payment"], ["external_id", "e2bbb88776e3a4b51032e978"], ["recipient_id", "recipient-id"]]
35786
+  (0.2ms) RELEASE SAVEPOINT active_record_1
35787
+  (0.3ms) ROLLBACK
35788
+  (0.1ms) BEGIN
35789
+  (0.2ms) COMMIT
35790
+  (0.2ms) BEGIN
35791
+  (0.2ms) ROLLBACK
35792
+  (0.1ms) BEGIN
35793
+  (0.2ms) COMMIT
35794
+  (0.2ms) BEGIN
35795
+  (0.2ms) SAVEPOINT active_record_1
35796
+ SQL (0.3ms) INSERT INTO "payments" DEFAULT VALUES RETURNING "id"
35797
+  (0.2ms) RELEASE SAVEPOINT active_record_1
35798
+  (0.2ms) SAVEPOINT active_record_1
35799
+ SQL (0.4ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
35800
+  (0.2ms) RELEASE SAVEPOINT active_record_1
35801
+  (0.2ms) SAVEPOINT active_record_1
35802
+ SQL (0.3ms) INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "owner_id", "owner_type", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "204adcd2-5f5e-4955-ac17-6329b528b22c"], ["external_id", "bd71b3d39fb01212c6852b3d"], ["owner_id", "2"], ["owner_type", "Payment"], ["sender_id", "4"], ["sender_type", "User"]]
35803
+  (0.2ms) RELEASE SAVEPOINT active_record_1
35804
+  (0.4ms) SAVEPOINT active_record_1
35805
+ SQL (0.5ms) INSERT INTO "bloom_remit_responses" ("body", "txn_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["body", "{\"i\":\"am body\"}"], ["txn_id", 4], ["created_at", "2016-10-05 07:33:51.736008"], ["updated_at", "2016-10-05 07:33:51.736008"]]
35806
+  (0.2ms) RELEASE SAVEPOINT active_record_1
35807
+  (0.4ms) SELECT COUNT(*) FROM "bloom_remit_responses" WHERE "bloom_remit_responses"."txn_id" = $1 [["txn_id", 4]]
35808
+ 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]]
35809
+  (0.4ms) ROLLBACK
35810
+  (0.2ms) BEGIN
35811
+  (0.2ms) COMMIT
35812
+  (0.2ms) BEGIN
35813
+  (0.2ms) SAVEPOINT active_record_1
35814
+ SQL (0.4ms) INSERT INTO "payments" DEFAULT VALUES RETURNING "id"
35815
+  (0.2ms) RELEASE SAVEPOINT active_record_1
35816
+  (0.2ms) SAVEPOINT active_record_1
35817
+ SQL (0.3ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
35818
+  (0.2ms) RELEASE SAVEPOINT active_record_1
35819
+  (0.2ms) SAVEPOINT active_record_1
35820
+ SQL (0.3ms) INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "owner_id", "owner_type", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "235cfe1b-1112-440c-9aff-d29c906b55f8"], ["external_id", "2f7f410197faba0d27f95ce1"], ["owner_id", "3"], ["owner_type", "Payment"], ["sender_id", "5"], ["sender_type", "User"]]
35821
+  (0.2ms) RELEASE SAVEPOINT active_record_1
35822
+  (0.2ms) SAVEPOINT active_record_1
35823
+ SQL (0.4ms) UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 7], ["id", 5]]
35824
+  (0.2ms) RELEASE SAVEPOINT active_record_1
35825
+  (0.3ms) SAVEPOINT active_record_1
35826
+ SQL (0.3ms) INSERT INTO "bloom_remit_responses" ("body", "txn_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["body", "{\"status\":\"500\",\"error\":\"Internal Server Error\"}"], ["txn_id", 5], ["created_at", "2016-10-05 07:33:51.771326"], ["updated_at", "2016-10-05 07:33:51.771326"]]
35827
+  (0.2ms) RELEASE SAVEPOINT active_record_1
35828
+ BloomRemit::Txn Load (0.3ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1 [["id", 5]]
35829
+  (0.2ms) ROLLBACK
35830
+  (0.2ms) BEGIN
35831
+  (0.2ms) COMMIT
35832
+  (0.2ms) BEGIN
35833
+  (0.4ms) ROLLBACK
35834
+  (0.2ms) BEGIN
35835
+  (0.2ms) COMMIT
35836
+  (0.2ms) BEGIN
35837
+  (0.2ms) ROLLBACK
35838
+  (0.2ms) BEGIN
35839
+  (0.2ms) COMMIT
35840
+  (0.2ms) BEGIN
35841
+  (0.2ms) ROLLBACK
35842
+  (0.2ms) BEGIN
35843
+  (0.2ms) COMMIT
35844
+  (0.1ms) BEGIN
35845
+  (0.2ms) ROLLBACK
35846
+  (0.2ms) BEGIN
35847
+  (0.2ms) COMMIT
35848
+  (0.3ms) BEGIN
35849
+  (0.2ms) ROLLBACK
35850
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
35851
+  (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
35852
+  (1.4ms)  SELECT schemaname || '.' || tablename
35853
+ FROM pg_tables
35854
+ WHERE
35855
+ tablename !~ '_prt_' AND
35856
+ tablename <> 'schema_migrations' AND
35857
+ schemaname = ANY (current_schemas(false))
35858
+ 
35859
+  (2.3ms) select table_name from information_schema.views where table_schema = 'app_test'
35860
+  (390.4ms) TRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE;
35861
+  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
35862
+  (0.4ms) BEGIN
35863
+  (0.8ms) COMMIT
35864
+  (0.4ms) BEGIN
35865
+  (0.3ms) ROLLBACK
35866
+  (0.3ms) BEGIN
35867
+  (0.4ms) COMMIT
35868
+  (0.4ms) BEGIN
35869
+  (0.3ms) ROLLBACK
35870
+  (0.4ms) BEGIN
35871
+ SQL (0.6ms) INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
35872
+  (12.0ms) COMMIT
35873
+  (0.3ms) BEGIN
35874
+ SQL (0.7ms) INSERT INTO "users" ("type") VALUES ($1) RETURNING "id" [["type", "SubUser"]]
35875
+  (13.5ms) COMMIT
35876
+  (0.3ms) BEGIN
35877
+ SQL (0.5ms) INSERT INTO "payments" ("type") VALUES ($1) RETURNING "id" [["type", "SubPayment"]]
35878
+  (13.9ms) COMMIT
35879
+  (0.3ms) BEGIN
35880
+ SQL (0.7ms) INSERT INTO "bloom_remit_txns" ("secret", "sender_type", "sender_id", "amount", "account_name", "account_id", "target_slug", "owner_id", "owner_type", "external_id", "recipient_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11) RETURNING "id" [["secret", "6db44e38-6e16-4403-b7c7-55c0a403f14e"], ["sender_type", "User"], ["sender_id", "1"], ["amount", "800.0"], ["account_name", "028109090"], ["account_id", "Hooli X"], ["target_slug", "PLDT"], ["owner_id", "1"], ["owner_type", "Payment"], ["external_id", "143713a066c4c4f3f348cc33"], ["recipient_id", "recipient-id"]]
35881
+  (12.3ms) COMMIT
35882
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1]]
35883
+ Payment Load (0.4ms) SELECT "payments".* FROM "payments" WHERE "payments"."id" = $1 LIMIT 1 [["id", 1]]
35884
+  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
35885
+  (439.4ms) TRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE;
35886
+  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
35887
+  (0.4ms) BEGIN
35888
+ SQL (0.9ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
35889
+  (14.4ms) COMMIT
35890
+  (0.3ms) BEGIN
35891
+ SQL (0.8ms) INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "8c3c8937-c7be-42e5-9bc5-f82c5f97c477"], ["external_id", "8d787287c899e510fa975c14"], ["sender_id", "1"], ["sender_type", "User"]]
35892
+  (13.0ms) COMMIT
35893
+ BloomRemit::Txn Load (0.5ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 1], ["secret", "8c3c8937-c7be-42e5-9bc5-f82c5f97c477"]]
35894
+  (0.4ms) BEGIN
35895
+ SQL (0.5ms) UPDATE "bloom_remit_txns" SET "status" = $1, "status_description" = $2, "vendor_external_id" = $3 WHERE "bloom_remit_txns"."id" = $4 [["status", 1], ["status_description", "My status description"], ["vendor_external_id", "vextid"], ["id", 1]]
35896
+  (13.2ms) COMMIT
35897
+  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
35898
+  (385.2ms) TRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE;
35899
+  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
35900
+  (0.4ms) BEGIN
35901
+  (0.4ms) COMMIT
35902
+  (0.3ms) BEGIN
35903
+  (0.4ms) ROLLBACK
35904
+  (0.3ms) BEGIN
35905
+  (0.3ms) COMMIT
35906
+  (0.3ms) BEGIN
35907
+  (0.5ms) ROLLBACK
35908
+  (0.5ms) BEGIN
35909
+  (0.5ms) COMMIT
35910
+  (0.4ms) BEGIN
35911
+  (0.3ms) ROLLBACK
35912
+  (0.3ms) BEGIN
35913
+  (0.4ms) COMMIT
35914
+  (0.3ms) BEGIN
35915
+  (0.3ms) ROLLBACK
35916
+  (0.3ms) BEGIN
35917
+  (0.4ms) COMMIT
35918
+  (0.4ms) BEGIN
35919
+  (0.4ms) ROLLBACK
35920
+  (0.3ms) BEGIN
35921
+  (0.3ms) COMMIT
35922
+  (0.3ms) BEGIN
35923
+  (0.3ms) ROLLBACK
35924
+  (0.3ms) BEGIN
35925
+  (0.3ms) COMMIT
35926
+  (0.3ms) BEGIN
35927
+  (0.5ms) ROLLBACK
35928
+  (0.4ms) BEGIN
35929
+  (0.3ms) COMMIT
35930
+  (0.3ms) BEGIN
35931
+  (0.4ms) SAVEPOINT active_record_1
35932
+ SQL (0.6ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
35933
+  (0.3ms) RELEASE SAVEPOINT active_record_1
35934
+  (0.5ms) SAVEPOINT active_record_1
35935
+ SQL (0.8ms) INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "f925a204-dcc4-4b6a-bc03-ee340d655618"], ["external_id", "4cfb292a3acbaed11cf4b6f1"], ["sender_id", "1"], ["sender_type", "User"]]
35936
+  (0.3ms) RELEASE SAVEPOINT active_record_1
35937
+ Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-10-05 07:34:30 +0000
35938
+ Processing by BloomRemit::Api::V1::TxnsController#post_update as JSON
35939
+ Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"1", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
35940
+ 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]]
35941
+ Rendered text template (0.0ms)
35942
+ Completed 404 Not Found in 69ms (Views: 66.9ms | ActiveRecord: 0.5ms)
35943
+ Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-10-05 07:34:30 +0000
35944
+ Processing by BloomRemit::Api::V1::TxnsController#post_update as JSON
35945
+ Parameters: {"secret"=>"f925a204-dcc4-4b6a-bc03-ee340d655618", "status"=>"paid", "id"=>"1", "txn"=>{"status"=>"paid", "secret"=>"f925a204-dcc4-4b6a-bc03-ee340d655618"}}
35946
+ BloomRemit::Txn Load (0.5ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 1], ["secret", "f925a204-dcc4-4b6a-bc03-ee340d655618"]]
35947
+  (0.3ms) SAVEPOINT active_record_1
35948
+ SQL (0.5ms) UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 1], ["id", 1]]
35949
+  (0.3ms) RELEASE SAVEPOINT active_record_1
35950
+ Completed 200 OK in 8ms (Views: 0.4ms | ActiveRecord: 1.6ms)
35951
+ BloomRemit::Txn Load (0.4ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1 [["id", 1]]
35952
+  (0.4ms) ROLLBACK
35953
+  (0.4ms) BEGIN
35954
+  (0.5ms) COMMIT
35955
+  (0.3ms) BEGIN
35956
+  (0.3ms) SAVEPOINT active_record_1
35957
+ SQL (0.4ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
35958
+  (0.3ms) RELEASE SAVEPOINT active_record_1
35959
+  (0.3ms) SAVEPOINT active_record_1
35960
+ SQL (0.5ms) INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "49c744b6-5fb5-4722-9f6c-cf2a3d517689"], ["external_id", "b8d2ee1c0ce70a93a9226a94"], ["sender_id", "2"], ["sender_type", "User"]]
35961
+  (0.3ms) RELEASE SAVEPOINT active_record_1
35962
+ Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-10-05 07:34:30 +0000
35963
+ Processing by BloomRemit::Api::V1::TxnsController#update as JSON
35964
+ Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"2", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
35965
+ 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]]
35966
+ Rendered text template (0.0ms)
35967
+ Completed 404 Not Found in 3ms (Views: 0.8ms | ActiveRecord: 0.5ms)
35968
+ Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-10-05 07:34:30 +0000
35969
+ Processing by BloomRemit::Api::V1::TxnsController#update as JSON
35970
+ Parameters: {"secret"=>"49c744b6-5fb5-4722-9f6c-cf2a3d517689", "status"=>"paid", "id"=>"2", "txn"=>{"status"=>"paid", "secret"=>"49c744b6-5fb5-4722-9f6c-cf2a3d517689"}}
35971
+ BloomRemit::Txn Load (0.6ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 2], ["secret", "49c744b6-5fb5-4722-9f6c-cf2a3d517689"]]
35972
+  (0.4ms) SAVEPOINT active_record_1
35973
+ SQL (0.5ms) UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 1], ["id", 2]]
35974
+  (0.4ms) RELEASE SAVEPOINT active_record_1
35975
+ Completed 204 No Content in 48ms (ActiveRecord: 1.9ms)
35976
+ BloomRemit::Txn Load (0.9ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1 [["id", 2]]
35977
+  (0.5ms) ROLLBACK
35978
+  (0.5ms) BEGIN
35979
+  (0.5ms) COMMIT
35980
+  (0.7ms) BEGIN
35981
+  (0.4ms) SAVEPOINT active_record_1
35982
+ SQL (0.5ms) INSERT INTO "users" ("type") VALUES ($1) RETURNING "id" [["type", "SubUser"]]
35983
+  (0.3ms) RELEASE SAVEPOINT active_record_1
35984
+  (0.3ms) SAVEPOINT active_record_1
35985
+ SQL (0.5ms) INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
35986
+  (0.3ms) RELEASE SAVEPOINT active_record_1
35987
+  (0.2ms) SAVEPOINT active_record_1
35988
+ SQL (0.7ms) INSERT INTO "payments" ("type") VALUES ($1) RETURNING "id" [["type", "SubPayment"]]
35989
+  (0.3ms) RELEASE SAVEPOINT active_record_1
35990
+  (0.6ms) SAVEPOINT active_record_1
35991
+ SQL (0.9ms) INSERT INTO "bloom_remit_txns" ("secret", "sender_type", "sender_id", "amount", "account_name", "account_id", "target_slug", "owner_id", "owner_type", "external_id", "recipient_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11) RETURNING "id" [["secret", "be8744bb-6f1c-4658-95e9-4d5b0bc591a2"], ["sender_type", "User"], ["sender_id", "3"], ["amount", "800.0"], ["account_name", "028109090"], ["account_id", "Hooli X"], ["target_slug", "PLDT"], ["owner_id", "1"], ["owner_type", "Payment"], ["external_id", "f8c45e4bbd408f3842704594"], ["recipient_id", "recipient-id"]]
35992
+  (0.6ms) RELEASE SAVEPOINT active_record_1
35993
+  (1.6ms) ROLLBACK
35994
+  (0.4ms) BEGIN
35995
+  (0.4ms) COMMIT
35996
+  (0.5ms) BEGIN
35997
+  (0.4ms) ROLLBACK
35998
+  (0.3ms) BEGIN
35999
+  (0.3ms) COMMIT
36000
+  (0.4ms) BEGIN
36001
+  (0.3ms) SAVEPOINT active_record_1
36002
+ SQL (0.5ms) INSERT INTO "payments" DEFAULT VALUES RETURNING "id"
36003
+  (0.3ms) RELEASE SAVEPOINT active_record_1
36004
+  (0.3ms) SAVEPOINT active_record_1
36005
+ SQL (0.5ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
36006
+  (0.3ms) RELEASE SAVEPOINT active_record_1
36007
+  (0.3ms) SAVEPOINT active_record_1
36008
+ SQL (0.4ms) INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "owner_id", "owner_type", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "4a03405d-1152-477c-b5b9-9b9cf0304304"], ["external_id", "b3db1b94fe5d710d76dd3247"], ["owner_id", "2"], ["owner_type", "Payment"], ["sender_id", "4"], ["sender_type", "User"]]
36009
+  (0.3ms) RELEASE SAVEPOINT active_record_1
36010
+  (0.3ms) SAVEPOINT active_record_1
36011
+ SQL (0.6ms) INSERT INTO "bloom_remit_responses" ("body", "txn_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["body", "{\"i\":\"am body\"}"], ["txn_id", 4], ["created_at", "2016-10-05 07:34:30.544261"], ["updated_at", "2016-10-05 07:34:30.544261"]]
36012
+  (0.3ms) RELEASE SAVEPOINT active_record_1
36013
+  (0.4ms) SELECT COUNT(*) FROM "bloom_remit_responses" WHERE "bloom_remit_responses"."txn_id" = $1 [["txn_id", 4]]
36014
+ 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]]
36015
+  (0.3ms) ROLLBACK
36016
+  (0.3ms) BEGIN
36017
+  (0.4ms) COMMIT
36018
+  (0.9ms) BEGIN
36019
+  (0.4ms) SAVEPOINT active_record_1
36020
+ SQL (0.7ms) INSERT INTO "payments" DEFAULT VALUES RETURNING "id"
36021
+  (0.4ms) RELEASE SAVEPOINT active_record_1
36022
+  (0.3ms) SAVEPOINT active_record_1
36023
+ SQL (0.5ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
36024
+  (0.3ms) RELEASE SAVEPOINT active_record_1
36025
+  (0.3ms) SAVEPOINT active_record_1
36026
+ SQL (0.5ms) INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "owner_id", "owner_type", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "bd3581e8-474d-4ee9-a969-15151eb23032"], ["external_id", "2dfcbb3d85eb717e996304d4"], ["owner_id", "3"], ["owner_type", "Payment"], ["sender_id", "5"], ["sender_type", "User"]]
36027
+  (0.3ms) RELEASE SAVEPOINT active_record_1
36028
+  (0.4ms) SAVEPOINT active_record_1
36029
+ SQL (0.6ms) UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 7], ["id", 5]]
36030
+  (0.3ms) RELEASE SAVEPOINT active_record_1
36031
+  (0.3ms) SAVEPOINT active_record_1
36032
+ SQL (0.4ms) INSERT INTO "bloom_remit_responses" ("body", "txn_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["body", "{\"status\":\"500\",\"error\":\"Internal Server Error\"}"], ["txn_id", 5], ["created_at", "2016-10-05 07:34:30.587551"], ["updated_at", "2016-10-05 07:34:30.587551"]]
36033
+  (0.3ms) RELEASE SAVEPOINT active_record_1
36034
+ BloomRemit::Txn Load (0.5ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1 [["id", 5]]
36035
+  (0.4ms) ROLLBACK
36036
+  (0.4ms) BEGIN
36037
+  (0.6ms) COMMIT
36038
+  (0.4ms) BEGIN
36039
+  (0.5ms) ROLLBACK
36040
+  (0.3ms) BEGIN
36041
+  (0.5ms) COMMIT
36042
+  (0.2ms) BEGIN
36043
+  (0.3ms) ROLLBACK
36044
+  (0.4ms) BEGIN
36045
+  (0.5ms) COMMIT
36046
+  (0.8ms) BEGIN
36047
+  (0.3ms) ROLLBACK
36048
+  (0.3ms) BEGIN
36049
+  (0.4ms) COMMIT
36050
+  (0.6ms) BEGIN
36051
+  (0.4ms) ROLLBACK
36052
+  (1.1ms) BEGIN
36053
+  (0.3ms) COMMIT
36054
+  (0.4ms) BEGIN
36055
+  (0.2ms) ROLLBACK
36056
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
36057
+  (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
36058
+  (1.6ms)  SELECT schemaname || '.' || tablename
36059
+ FROM pg_tables
36060
+ WHERE
36061
+ tablename !~ '_prt_' AND
36062
+ tablename <> 'schema_migrations' AND
36063
+ schemaname = ANY (current_schemas(false))
36064
+ 
36065
+  (1.2ms) select table_name from information_schema.views where table_schema = 'app_test'
36066
+  (440.8ms) TRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE;
36067
+  (0.6ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
36068
+  (0.4ms) BEGIN
36069
+  (0.3ms) COMMIT
36070
+  (0.4ms) BEGIN
36071
+  (0.3ms) ROLLBACK
36072
+  (0.2ms) BEGIN
36073
+  (0.2ms) COMMIT
36074
+  (0.3ms) BEGIN
36075
+  (0.3ms) ROLLBACK
36076
+  (0.4ms) BEGIN
36077
+ SQL (0.7ms) INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
36078
+  (14.2ms) COMMIT
36079
+  (0.3ms) BEGIN
36080
+ SQL (0.4ms) INSERT INTO "users" ("type") VALUES ($1) RETURNING "id" [["type", "SubUser"]]
36081
+  (15.7ms) COMMIT
36082
+  (0.3ms) BEGIN
36083
+ SQL (0.5ms) INSERT INTO "payments" ("type") VALUES ($1) RETURNING "id" [["type", "SubPayment"]]
36084
+  (14.5ms) COMMIT
36085
+  (0.3ms) BEGIN
36086
+ SQL (0.7ms) INSERT INTO "bloom_remit_txns" ("secret", "sender_type", "sender_id", "amount", "account_name", "account_id", "target_slug", "owner_id", "owner_type", "external_id", "recipient_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11) RETURNING "id" [["secret", "4f0672bd-87fb-47f7-b69f-733120dd4778"], ["sender_type", "User"], ["sender_id", "1"], ["amount", "800.0"], ["account_name", "028109090"], ["account_id", "Hooli X"], ["target_slug", "PLDT"], ["owner_id", "1"], ["owner_type", "Payment"], ["external_id", "92ee615295cdcdfed3da73fd"], ["recipient_id", "recipient-id"]]
36087
+  (14.2ms) COMMIT
36088
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1]]
36089
+ Payment Load (0.2ms) SELECT "payments".* FROM "payments" WHERE "payments"."id" = $1 LIMIT 1 [["id", 1]]
36090
+  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
36091
+  (433.1ms) TRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE;
36092
+  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
36093
+  (0.4ms) BEGIN
36094
+ SQL (1.0ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
36095
+  (11.4ms) COMMIT
36096
+  (0.2ms) BEGIN
36097
+ SQL (0.5ms) INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "56372880-bf1b-442a-b258-bfeaf5b532ba"], ["external_id", "cfb82a2d162cc9c0fd280f97"], ["sender_id", "1"], ["sender_type", "User"]]
36098
+  (14.3ms) COMMIT
36099
+ BloomRemit::Txn Load (0.3ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 1], ["secret", "56372880-bf1b-442a-b258-bfeaf5b532ba"]]
36100
+  (0.2ms) BEGIN
36101
+ SQL (0.3ms) UPDATE "bloom_remit_txns" SET "status" = $1, "status_description" = $2, "vendor_external_id" = $3 WHERE "bloom_remit_txns"."id" = $4 [["status", 1], ["status_description", "My status description"], ["vendor_external_id", "vextid"], ["id", 1]]
36102
+  (12.3ms) COMMIT
36103
+  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
36104
+  (423.3ms) TRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE;
36105
+  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
36106
+  (0.3ms) BEGIN
36107
+  (0.4ms) COMMIT
36108
+  (0.3ms) BEGIN
36109
+  (0.3ms) ROLLBACK
36110
+  (0.2ms) BEGIN
36111
+  (0.2ms) COMMIT
36112
+  (0.2ms) BEGIN
36113
+  (0.2ms) ROLLBACK
36114
+  (0.2ms) BEGIN
36115
+  (0.4ms) COMMIT
36116
+  (0.3ms) BEGIN
36117
+  (0.2ms) ROLLBACK
36118
+  (0.4ms) BEGIN
36119
+  (0.3ms) COMMIT
36120
+  (0.4ms) BEGIN
36121
+  (0.2ms) ROLLBACK
36122
+  (0.2ms) BEGIN
36123
+  (0.4ms) COMMIT
36124
+  (0.4ms) BEGIN
36125
+  (0.4ms) ROLLBACK
36126
+  (0.1ms) BEGIN
36127
+  (0.1ms) COMMIT
36128
+  (0.2ms) BEGIN
36129
+  (0.2ms) ROLLBACK
36130
+  (0.2ms) BEGIN
36131
+  (0.2ms) COMMIT
36132
+  (0.1ms) BEGIN
36133
+  (0.2ms) ROLLBACK
36134
+  (0.2ms) BEGIN
36135
+  (0.3ms) COMMIT
36136
+  (0.3ms) BEGIN
36137
+  (0.2ms) SAVEPOINT active_record_1
36138
+ SQL (0.5ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
36139
+  (0.2ms) RELEASE SAVEPOINT active_record_1
36140
+  (0.2ms) SAVEPOINT active_record_1
36141
+ SQL (0.6ms) INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "1e9491a3-7a02-4587-ac14-4620ebf5d767"], ["external_id", "fae7670cb447fd515351e1b6"], ["sender_id", "1"], ["sender_type", "User"]]
36142
+  (0.2ms) RELEASE SAVEPOINT active_record_1
36143
+ Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-10-05 07:35:00 +0000
36144
+ Processing by BloomRemit::Api::V1::TxnsController#post_update as JSON
36145
+ Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"1", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
36146
+ 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]]
36147
+ Rendered text template (0.0ms)
36148
+ Completed 404 Not Found in 54ms (Views: 51.7ms | ActiveRecord: 0.4ms)
36149
+ Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-10-05 07:35:00 +0000
36150
+ Processing by BloomRemit::Api::V1::TxnsController#post_update as JSON
36151
+ Parameters: {"secret"=>"1e9491a3-7a02-4587-ac14-4620ebf5d767", "status"=>"paid", "id"=>"1", "txn"=>{"status"=>"paid", "secret"=>"1e9491a3-7a02-4587-ac14-4620ebf5d767"}}
36152
+ BloomRemit::Txn Load (0.4ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 1], ["secret", "1e9491a3-7a02-4587-ac14-4620ebf5d767"]]
36153
+  (0.2ms) SAVEPOINT active_record_1
36154
+ SQL (0.3ms) UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 1], ["id", 1]]
36155
+  (0.2ms) RELEASE SAVEPOINT active_record_1
36156
+ Completed 200 OK in 8ms (Views: 0.5ms | ActiveRecord: 1.1ms)
36157
+ BloomRemit::Txn Load (0.3ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1 [["id", 1]]
36158
+  (0.2ms) ROLLBACK
36159
+  (0.3ms) BEGIN
36160
+  (0.3ms) COMMIT
36161
+  (0.3ms) BEGIN
36162
+  (0.2ms) SAVEPOINT active_record_1
36163
+ SQL (0.4ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
36164
+  (0.3ms) RELEASE SAVEPOINT active_record_1
36165
+  (0.2ms) SAVEPOINT active_record_1
36166
+ SQL (0.4ms) INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "cda186ec-cfc6-46ff-bc26-2d72c5629223"], ["external_id", "4f7e91da3af3c9a36f4eaf39"], ["sender_id", "2"], ["sender_type", "User"]]
36167
+  (0.2ms) RELEASE SAVEPOINT active_record_1
36168
+ Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-10-05 07:35:00 +0000
36169
+ Processing by BloomRemit::Api::V1::TxnsController#update as JSON
36170
+ Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"2", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
36171
+ 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]]
36172
+ Rendered text template (0.0ms)
36173
+ Completed 404 Not Found in 2ms (Views: 0.8ms | ActiveRecord: 0.3ms)
36174
+ Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-10-05 07:35:00 +0000
36175
+ Processing by BloomRemit::Api::V1::TxnsController#update as JSON
36176
+ Parameters: {"secret"=>"cda186ec-cfc6-46ff-bc26-2d72c5629223", "status"=>"paid", "id"=>"2", "txn"=>{"status"=>"paid", "secret"=>"cda186ec-cfc6-46ff-bc26-2d72c5629223"}}
36177
+ BloomRemit::Txn Load (0.3ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 2], ["secret", "cda186ec-cfc6-46ff-bc26-2d72c5629223"]]
36178
+  (0.3ms) SAVEPOINT active_record_1
36179
+ SQL (0.3ms) UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 1], ["id", 2]]
36180
+  (0.2ms) RELEASE SAVEPOINT active_record_1
36181
+ Completed 204 No Content in 42ms (ActiveRecord: 1.2ms)
36182
+ BloomRemit::Txn Load (0.4ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1 [["id", 2]]
36183
+  (0.4ms) ROLLBACK
36184
+  (0.2ms) BEGIN
36185
+  (0.4ms) COMMIT
36186
+  (0.6ms) BEGIN
36187
+  (0.4ms) SAVEPOINT active_record_1
36188
+ SQL (0.3ms) INSERT INTO "users" ("type") VALUES ($1) RETURNING "id" [["type", "SubUser"]]
36189
+  (0.2ms) RELEASE SAVEPOINT active_record_1
36190
+  (0.2ms) SAVEPOINT active_record_1
36191
+ SQL (0.5ms) INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
36192
+  (0.2ms) RELEASE SAVEPOINT active_record_1
36193
+  (0.2ms) SAVEPOINT active_record_1
36194
+ SQL (0.4ms) INSERT INTO "payments" ("type") VALUES ($1) RETURNING "id" [["type", "SubPayment"]]
36195
+  (0.2ms) RELEASE SAVEPOINT active_record_1
36196
+  (0.2ms) SAVEPOINT active_record_1
36197
+ SQL (0.4ms) INSERT INTO "bloom_remit_txns" ("secret", "sender_type", "sender_id", "amount", "account_name", "account_id", "target_slug", "owner_id", "owner_type", "external_id", "recipient_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11) RETURNING "id" [["secret", "7aba3cb9-9c6a-4d89-b72b-02805cdaa404"], ["sender_type", "User"], ["sender_id", "3"], ["amount", "800.0"], ["account_name", "028109090"], ["account_id", "Hooli X"], ["target_slug", "PLDT"], ["owner_id", "1"], ["owner_type", "Payment"], ["external_id", "63316585f056a189299147d4"], ["recipient_id", "recipient-id"]]
36198
+  (0.3ms) RELEASE SAVEPOINT active_record_1
36199
+  (0.2ms) ROLLBACK
36200
+  (0.2ms) BEGIN
36201
+  (0.3ms) COMMIT
36202
+  (0.3ms) BEGIN
36203
+  (0.4ms) ROLLBACK
36204
+  (0.1ms) BEGIN
36205
+  (0.2ms) COMMIT
36206
+  (0.1ms) BEGIN
36207
+  (0.2ms) SAVEPOINT active_record_1
36208
+ SQL (0.5ms) INSERT INTO "payments" DEFAULT VALUES RETURNING "id"
36209
+  (0.2ms) RELEASE SAVEPOINT active_record_1
36210
+  (0.2ms) SAVEPOINT active_record_1
36211
+ SQL (0.3ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
36212
+  (0.2ms) RELEASE SAVEPOINT active_record_1
36213
+  (0.1ms) SAVEPOINT active_record_1
36214
+ SQL (0.2ms) INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "owner_id", "owner_type", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "b8dfb8c3-b44f-4485-9d00-3355129f5eee"], ["external_id", "1750d1ace759e5a589e8a6cb"], ["owner_id", "2"], ["owner_type", "Payment"], ["sender_id", "4"], ["sender_type", "User"]]
36215
+  (0.2ms) RELEASE SAVEPOINT active_record_1
36216
+  (0.2ms) SAVEPOINT active_record_1
36217
+ SQL (0.4ms) INSERT INTO "bloom_remit_responses" ("body", "txn_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["body", "{\"i\":\"am body\"}"], ["txn_id", 4], ["created_at", "2016-10-05 07:35:01.041154"], ["updated_at", "2016-10-05 07:35:01.041154"]]
36218
+  (0.2ms) RELEASE SAVEPOINT active_record_1
36219
+  (0.2ms) SELECT COUNT(*) FROM "bloom_remit_responses" WHERE "bloom_remit_responses"."txn_id" = $1 [["txn_id", 4]]
36220
+ 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]]
36221
+  (0.2ms) ROLLBACK
36222
+  (0.3ms) BEGIN
36223
+  (0.3ms) COMMIT
36224
+  (0.3ms) BEGIN
36225
+  (0.3ms) SAVEPOINT active_record_1
36226
+ SQL (0.4ms) INSERT INTO "payments" DEFAULT VALUES RETURNING "id"
36227
+  (0.2ms) RELEASE SAVEPOINT active_record_1
36228
+  (0.1ms) SAVEPOINT active_record_1
36229
+ SQL (0.3ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
36230
+  (0.2ms) RELEASE SAVEPOINT active_record_1
36231
+  (0.2ms) SAVEPOINT active_record_1
36232
+ SQL (0.3ms) INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "owner_id", "owner_type", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "9f6247ec-6448-4146-b28d-0d19de7ae099"], ["external_id", "d11ac26fe7085e003070704b"], ["owner_id", "3"], ["owner_type", "Payment"], ["sender_id", "5"], ["sender_type", "User"]]
36233
+  (0.2ms) RELEASE SAVEPOINT active_record_1
36234
+  (0.2ms) SAVEPOINT active_record_1
36235
+ SQL (0.3ms) UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 7], ["id", 5]]
36236
+  (0.2ms) RELEASE SAVEPOINT active_record_1
36237
+  (0.2ms) SAVEPOINT active_record_1
36238
+ SQL (0.3ms) INSERT INTO "bloom_remit_responses" ("body", "txn_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["body", "{\"status\":\"500\",\"error\":\"Internal Server Error\"}"], ["txn_id", 5], ["created_at", "2016-10-05 07:35:01.073774"], ["updated_at", "2016-10-05 07:35:01.073774"]]
36239
+  (0.2ms) RELEASE SAVEPOINT active_record_1
36240
+ BloomRemit::Txn Load (0.4ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1 [["id", 5]]
36241
+  (0.2ms) ROLLBACK
36242
+  (0.3ms) BEGIN
36243
+  (0.3ms) COMMIT
36244
+  (0.3ms) BEGIN
36245
+  (0.3ms) ROLLBACK
36246
+  (0.1ms) BEGIN
36247
+  (0.2ms) COMMIT
36248
+  (0.1ms) BEGIN
36249
+  (0.2ms) ROLLBACK
36250
+  (0.1ms) BEGIN
36251
+  (0.2ms) COMMIT
36252
+  (0.1ms) BEGIN
36253
+  (0.2ms) ROLLBACK
36254
+  (0.2ms) BEGIN
36255
+  (0.2ms) COMMIT
36256
+  (0.1ms) BEGIN
36257
+  (0.2ms) ROLLBACK
36258
+  (0.3ms) BEGIN
36259
+  (0.3ms) COMMIT
36260
+  (0.3ms) BEGIN
36261
+  (0.2ms) ROLLBACK
36262
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
36263
+  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
36264
+  (1.2ms)  SELECT schemaname || '.' || tablename
36265
+ FROM pg_tables
36266
+ WHERE
36267
+ tablename !~ '_prt_' AND
36268
+ tablename <> 'schema_migrations' AND
36269
+ schemaname = ANY (current_schemas(false))
36270
+ 
36271
+  (1.0ms) select table_name from information_schema.views where table_schema = 'app_test'
36272
+  (417.9ms) TRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE;
36273
+  (0.6ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
36274
+  (0.2ms) BEGIN
36275
+  (0.2ms) COMMIT
36276
+  (0.2ms) BEGIN
36277
+  (0.2ms) ROLLBACK
36278
+  (0.3ms) BEGIN
36279
+  (0.2ms) COMMIT
36280
+  (0.1ms) BEGIN
36281
+  (0.2ms) ROLLBACK
36282
+  (0.2ms) BEGIN
36283
+ SQL (0.5ms) INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
36284
+  (13.1ms) COMMIT
36285
+  (0.2ms) BEGIN
36286
+ SQL (0.3ms) INSERT INTO "users" ("type") VALUES ($1) RETURNING "id" [["type", "SubUser"]]
36287
+  (11.5ms) COMMIT
36288
+  (0.5ms) BEGIN
36289
+ SQL (0.5ms) INSERT INTO "payments" ("type") VALUES ($1) RETURNING "id" [["type", "SubPayment"]]
36290
+  (9.8ms) COMMIT
36291
+  (0.2ms) BEGIN
36292
+ SQL (0.5ms) INSERT INTO "bloom_remit_txns" ("secret", "sender_type", "sender_id", "amount", "account_name", "account_id", "target_slug", "owner_id", "owner_type", "external_id", "recipient_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11) RETURNING "id" [["secret", "ef608782-4eb8-4d90-9487-4963551717b8"], ["sender_type", "User"], ["sender_id", "1"], ["amount", "800.0"], ["account_name", "028109090"], ["account_id", "Hooli X"], ["target_slug", "PLDT"], ["owner_id", "1"], ["owner_type", "Payment"], ["external_id", "41ac0f0d7e9497a77317dca4"], ["recipient_id", "recipient-id"]]
36293
+  (10.9ms) COMMIT
36294
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1]]
36295
+ Payment Load (0.3ms) SELECT "payments".* FROM "payments" WHERE "payments"."id" = $1 LIMIT 1 [["id", 1]]
36296
+  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
36297
+  (376.4ms) TRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE;
36298
+  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
36299
+  (0.2ms) BEGIN
36300
+ SQL (0.5ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
36301
+  (8.4ms) COMMIT
36302
+  (0.2ms) BEGIN
36303
+ SQL (0.5ms) INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "ceb184a5-5c35-48b2-b160-4a10ca2c6e1c"], ["external_id", "2f8b88ffe8be2ecb4437d849"], ["sender_id", "1"], ["sender_type", "User"]]
36304
+  (13.2ms) COMMIT
36305
+ BloomRemit::Txn Load (0.3ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 1], ["secret", "ceb184a5-5c35-48b2-b160-4a10ca2c6e1c"]]
36306
+  (0.2ms) BEGIN
36307
+ SQL (0.3ms) UPDATE "bloom_remit_txns" SET "status" = $1, "status_description" = $2, "vendor_external_id" = $3 WHERE "bloom_remit_txns"."id" = $4 [["status", 1], ["status_description", "My status description"], ["vendor_external_id", "vextid"], ["id", 1]]
36308
+  (11.5ms) COMMIT
36309
+  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
36310
+  (424.0ms) TRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE;
36311
+  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
36312
+  (0.2ms) BEGIN
36313
+  (0.3ms) COMMIT
36314
+  (0.3ms) BEGIN
36315
+  (0.3ms) ROLLBACK
36316
+  (0.2ms) BEGIN
36317
+  (0.2ms) COMMIT
36318
+  (0.2ms) BEGIN
36319
+  (0.2ms) ROLLBACK
36320
+  (0.4ms) BEGIN
36321
+  (0.3ms) COMMIT
36322
+  (0.2ms) BEGIN
36323
+  (0.3ms) ROLLBACK
36324
+  (0.6ms) BEGIN
36325
+  (0.3ms) COMMIT
36326
+  (0.3ms) BEGIN
36327
+  (0.2ms) ROLLBACK
36328
+  (0.2ms) BEGIN
36329
+  (0.2ms) COMMIT
36330
+  (0.2ms) BEGIN
36331
+  (0.4ms) ROLLBACK
36332
+  (0.1ms) BEGIN
36333
+  (0.2ms) COMMIT
36334
+  (0.2ms) BEGIN
36335
+  (0.2ms) ROLLBACK
36336
+  (0.2ms) BEGIN
36337
+  (0.2ms) COMMIT
36338
+  (0.2ms) BEGIN
36339
+  (0.3ms) ROLLBACK
36340
+  (0.2ms) BEGIN
36341
+  (0.3ms) COMMIT
36342
+  (0.3ms) BEGIN
36343
+  (0.2ms) SAVEPOINT active_record_1
36344
+ SQL (0.5ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
36345
+  (0.2ms) RELEASE SAVEPOINT active_record_1
36346
+  (0.2ms) SAVEPOINT active_record_1
36347
+ SQL (0.6ms) INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "e927b3ee-c48f-478a-96fc-cf9db28dec16"], ["external_id", "03e69e682bbeea2587891f4d"], ["sender_id", "1"], ["sender_type", "User"]]
36348
+  (0.2ms) RELEASE SAVEPOINT active_record_1
36349
+ Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-10-05 07:36:22 +0000
36350
+ Processing by BloomRemit::Api::V1::TxnsController#post_update as JSON
36351
+ Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"1", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
36352
+ 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]]
36353
+ Rendered text template (0.0ms)
36354
+ Completed 404 Not Found in 56ms (Views: 54.6ms | ActiveRecord: 0.4ms)
36355
+ Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-10-05 07:36:22 +0000
36356
+ Processing by BloomRemit::Api::V1::TxnsController#post_update as JSON
36357
+ Parameters: {"secret"=>"e927b3ee-c48f-478a-96fc-cf9db28dec16", "status"=>"paid", "id"=>"1", "txn"=>{"status"=>"paid", "secret"=>"e927b3ee-c48f-478a-96fc-cf9db28dec16"}}
36358
+ BloomRemit::Txn Load (0.4ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 1], ["secret", "e927b3ee-c48f-478a-96fc-cf9db28dec16"]]
36359
+  (0.3ms) SAVEPOINT active_record_1
36360
+ SQL (0.2ms) UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 1], ["id", 1]]
36361
+  (0.2ms) RELEASE SAVEPOINT active_record_1
36362
+ Completed 200 OK in 7ms (Views: 0.4ms | ActiveRecord: 1.1ms)
36363
+ BloomRemit::Txn Load (0.2ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1 [["id", 1]]
36364
+  (0.3ms) ROLLBACK
36365
+  (0.3ms) BEGIN
36366
+  (0.3ms) COMMIT
36367
+  (0.2ms) BEGIN
36368
+  (0.2ms) SAVEPOINT active_record_1
36369
+ SQL (0.3ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
36370
+  (0.2ms) RELEASE SAVEPOINT active_record_1
36371
+  (0.2ms) SAVEPOINT active_record_1
36372
+ SQL (0.3ms) INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "bdfdd8a9-b1cd-4cb5-ab5f-bf22c5ea3ef5"], ["external_id", "6499273164d90fc7fcccb72f"], ["sender_id", "2"], ["sender_type", "User"]]
36373
+  (0.2ms) RELEASE SAVEPOINT active_record_1
36374
+ Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-10-05 07:36:22 +0000
36375
+ Processing by BloomRemit::Api::V1::TxnsController#update as JSON
36376
+ Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"2", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
36377
+ 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]]
36378
+ Rendered text template (0.0ms)
36379
+ Completed 404 Not Found in 3ms (Views: 0.9ms | ActiveRecord: 0.4ms)
36380
+ Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-10-05 07:36:22 +0000
36381
+ Processing by BloomRemit::Api::V1::TxnsController#update as JSON
36382
+ Parameters: {"secret"=>"bdfdd8a9-b1cd-4cb5-ab5f-bf22c5ea3ef5", "status"=>"paid", "id"=>"2", "txn"=>{"status"=>"paid", "secret"=>"bdfdd8a9-b1cd-4cb5-ab5f-bf22c5ea3ef5"}}
36383
+ BloomRemit::Txn Load (0.4ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 2], ["secret", "bdfdd8a9-b1cd-4cb5-ab5f-bf22c5ea3ef5"]]
36384
+  (0.6ms) SAVEPOINT active_record_1
36385
+ SQL (0.4ms) UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 1], ["id", 2]]
36386
+  (0.2ms) RELEASE SAVEPOINT active_record_1
36387
+ Completed 204 No Content in 46ms (ActiveRecord: 1.6ms)
36388
+ BloomRemit::Txn Load (0.4ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1 [["id", 2]]
36389
+  (0.2ms) ROLLBACK
36390
+  (0.2ms) BEGIN
36391
+  (0.3ms) COMMIT
36392
+  (0.3ms) BEGIN
36393
+  (0.3ms) SAVEPOINT active_record_1
36394
+ SQL (0.4ms) INSERT INTO "users" ("type") VALUES ($1) RETURNING "id" [["type", "SubUser"]]
36395
+  (0.3ms) RELEASE SAVEPOINT active_record_1
36396
+  (0.2ms) SAVEPOINT active_record_1
36397
+ SQL (0.7ms) INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
36398
+  (0.2ms) RELEASE SAVEPOINT active_record_1
36399
+  (0.2ms) SAVEPOINT active_record_1
36400
+ SQL (0.4ms) INSERT INTO "payments" ("type") VALUES ($1) RETURNING "id" [["type", "SubPayment"]]
36401
+  (0.2ms) RELEASE SAVEPOINT active_record_1
36402
+  (0.2ms) SAVEPOINT active_record_1
36403
+ SQL (0.5ms) INSERT INTO "bloom_remit_txns" ("secret", "sender_type", "sender_id", "amount", "account_name", "account_id", "target_slug", "owner_id", "owner_type", "external_id", "recipient_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11) RETURNING "id" [["secret", "63138db0-a6ef-4fa1-93b4-28439efd3cf1"], ["sender_type", "User"], ["sender_id", "3"], ["amount", "800.0"], ["account_name", "028109090"], ["account_id", "Hooli X"], ["target_slug", "PLDT"], ["owner_id", "1"], ["owner_type", "Payment"], ["external_id", "6204e7561a823698bb68b087"], ["recipient_id", "recipient-id"]]
36404
+  (0.3ms) RELEASE SAVEPOINT active_record_1
36405
+  (0.2ms) ROLLBACK
36406
+  (0.2ms) BEGIN
36407
+  (0.2ms) COMMIT
36408
+  (0.2ms) BEGIN
36409
+  (0.4ms) ROLLBACK
36410
+  (0.2ms) BEGIN
36411
+  (0.2ms) COMMIT
36412
+  (0.2ms) BEGIN
36413
+  (0.2ms) SAVEPOINT active_record_1
36414
+ SQL (0.3ms) INSERT INTO "payments" DEFAULT VALUES RETURNING "id"
36415
+  (0.2ms) RELEASE SAVEPOINT active_record_1
36416
+  (0.2ms) SAVEPOINT active_record_1
36417
+ SQL (0.4ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
36418
+  (0.2ms) RELEASE SAVEPOINT active_record_1
36419
+  (0.2ms) SAVEPOINT active_record_1
36420
+ SQL (0.2ms) INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "owner_id", "owner_type", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "37fd79a5-609f-49cb-89a3-3b98aceb7a95"], ["external_id", "a3cc22c6073f6279286197cd"], ["owner_id", "2"], ["owner_type", "Payment"], ["sender_id", "4"], ["sender_type", "User"]]
36421
+  (0.2ms) RELEASE SAVEPOINT active_record_1
36422
+  (0.2ms) SAVEPOINT active_record_1
36423
+ SQL (0.5ms) INSERT INTO "bloom_remit_responses" ("body", "txn_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["body", "{\"i\":\"am body\"}"], ["txn_id", 4], ["created_at", "2016-10-05 07:36:22.702281"], ["updated_at", "2016-10-05 07:36:22.702281"]]
36424
+  (0.2ms) RELEASE SAVEPOINT active_record_1
36425
+  (0.3ms) SELECT COUNT(*) FROM "bloom_remit_responses" WHERE "bloom_remit_responses"."txn_id" = $1 [["txn_id", 4]]
36426
+ 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]]
36427
+  (0.2ms) ROLLBACK
36428
+  (0.2ms) BEGIN
36429
+  (0.3ms) COMMIT
36430
+  (0.3ms) BEGIN
36431
+  (0.2ms) SAVEPOINT active_record_1
36432
+ SQL (0.9ms) INSERT INTO "payments" DEFAULT VALUES RETURNING "id"
36433
+  (0.2ms) RELEASE SAVEPOINT active_record_1
36434
+  (0.2ms) SAVEPOINT active_record_1
36435
+ SQL (0.4ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
36436
+  (0.2ms) RELEASE SAVEPOINT active_record_1
36437
+  (0.2ms) SAVEPOINT active_record_1
36438
+ SQL (0.3ms) INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "owner_id", "owner_type", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "55b2b983-5d9f-44a2-ba9b-93bb7004993b"], ["external_id", "00390bda3063b74946c1d904"], ["owner_id", "3"], ["owner_type", "Payment"], ["sender_id", "5"], ["sender_type", "User"]]
36439
+  (0.2ms) RELEASE SAVEPOINT active_record_1
36440
+  (0.3ms) SAVEPOINT active_record_1
36441
+ SQL (0.4ms) UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 7], ["id", 5]]
36442
+  (0.2ms) RELEASE SAVEPOINT active_record_1
36443
+  (0.2ms) SAVEPOINT active_record_1
36444
+ SQL (0.4ms) INSERT INTO "bloom_remit_responses" ("body", "txn_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["body", "{\"status\":\"500\",\"error\":\"Internal Server Error\"}"], ["txn_id", 5], ["created_at", "2016-10-05 07:36:22.736446"], ["updated_at", "2016-10-05 07:36:22.736446"]]
36445
+  (0.2ms) RELEASE SAVEPOINT active_record_1
36446
+ BloomRemit::Txn Load (0.4ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1 [["id", 5]]
36447
+  (0.2ms) ROLLBACK
36448
+  (0.3ms) BEGIN
36449
+  (0.3ms) COMMIT
36450
+  (0.3ms) BEGIN
36451
+  (0.3ms) ROLLBACK
36452
+  (0.4ms) BEGIN
36453
+  (0.2ms) COMMIT
36454
+  (0.1ms) BEGIN
36455
+  (0.2ms) ROLLBACK
36456
+  (0.1ms) BEGIN
36457
+  (0.2ms) COMMIT
36458
+  (0.2ms) BEGIN
36459
+  (0.2ms) ROLLBACK
36460
+  (0.1ms) BEGIN
36461
+  (0.1ms) COMMIT
36462
+  (0.2ms) BEGIN
36463
+  (0.2ms) ROLLBACK
36464
+  (0.2ms) BEGIN
36465
+  (0.2ms) COMMIT
36466
+  (0.2ms) BEGIN
36467
+  (0.2ms) ROLLBACK
36468
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
36469
+  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
36470
+  (1.3ms)  SELECT schemaname || '.' || tablename
36471
+ FROM pg_tables
36472
+ WHERE
36473
+ tablename !~ '_prt_' AND
36474
+ tablename <> 'schema_migrations' AND
36475
+ schemaname = ANY (current_schemas(false))
36476
+ 
36477
+  (1.1ms) select table_name from information_schema.views where table_schema = 'app_test'
36478
+  (462.0ms) TRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE;
36479
+  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
36480
+  (0.4ms) BEGIN
36481
+  (0.4ms) COMMIT
36482
+  (0.3ms) BEGIN
36483
+  (0.3ms) ROLLBACK
36484
+  (0.3ms) BEGIN
36485
+  (0.3ms) COMMIT
36486
+  (0.3ms) BEGIN
36487
+  (0.3ms) ROLLBACK
36488
+  (0.3ms) BEGIN
36489
+ SQL (1.9ms) INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
36490
+  (14.4ms) COMMIT
36491
+  (0.3ms) BEGIN
36492
+ SQL (0.5ms) INSERT INTO "users" ("type") VALUES ($1) RETURNING "id" [["type", "SubUser"]]
36493
+  (11.3ms) COMMIT
36494
+  (0.3ms) BEGIN
36495
+ SQL (0.6ms) INSERT INTO "payments" ("type") VALUES ($1) RETURNING "id" [["type", "SubPayment"]]
36496
+  (15.3ms) COMMIT
36497
+  (0.3ms) BEGIN
36498
+ SQL (0.7ms) INSERT INTO "bloom_remit_txns" ("secret", "sender_type", "sender_id", "amount", "account_name", "account_id", "target_slug", "owner_id", "owner_type", "external_id", "recipient_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11) RETURNING "id" [["secret", "24230b91-2df7-4505-ac77-89181e5bc2ae"], ["sender_type", "User"], ["sender_id", "1"], ["amount", "800.0"], ["account_name", "028109090"], ["account_id", "Hooli X"], ["target_slug", "PLDT"], ["owner_id", "1"], ["owner_type", "Payment"], ["external_id", "e92823aabc312cafb077491c"], ["recipient_id", "recipient-id"]]
36499
+  (11.9ms) COMMIT
36500
+ User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1]]
36501
+ Payment Load (0.5ms) SELECT "payments".* FROM "payments" WHERE "payments"."id" = $1 LIMIT 1 [["id", 1]]
36502
+  (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
36503
+  (437.4ms) TRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE;
36504
+  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
36505
+  (0.3ms) BEGIN
36506
+ SQL (1.0ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
36507
+  (14.9ms) COMMIT
36508
+  (0.3ms) BEGIN
36509
+ SQL (0.6ms) INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "0267da3a-e722-41e6-bcae-768a82e54608"], ["external_id", "c4ee991f61f2b4559b1f02d6"], ["sender_id", "1"], ["sender_type", "User"]]
36510
+  (12.6ms) COMMIT
36511
+ BloomRemit::Txn Load (0.5ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 1], ["secret", "0267da3a-e722-41e6-bcae-768a82e54608"]]
36512
+  (0.3ms) BEGIN
36513
+ SQL (0.4ms) UPDATE "bloom_remit_txns" SET "status" = $1, "status_description" = $2, "vendor_external_id" = $3 WHERE "bloom_remit_txns"."id" = $4 [["status", 1], ["status_description", "My status description"], ["vendor_external_id", "vextid"], ["id", 1]]
36514
+  (11.9ms) COMMIT
36515
+  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
36516
+  (430.6ms) TRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE;
36517
+  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
36518
+  (0.2ms) BEGIN
36519
+  (0.2ms) COMMIT
36520
+  (0.3ms) BEGIN
36521
+  (0.3ms) ROLLBACK
36522
+  (0.2ms) BEGIN
36523
+  (0.2ms) COMMIT
36524
+  (0.2ms) BEGIN
36525
+  (0.5ms) ROLLBACK
36526
+  (0.1ms) BEGIN
36527
+  (0.2ms) COMMIT
36528
+  (0.2ms) BEGIN
36529
+  (0.4ms) ROLLBACK
36530
+  (0.1ms) BEGIN
36531
+  (0.4ms) COMMIT
36532
+  (0.2ms) BEGIN
36533
+  (0.2ms) ROLLBACK
36534
+  (0.1ms) BEGIN
36535
+  (0.3ms) COMMIT
36536
+  (0.2ms) BEGIN
36537
+  (0.2ms) ROLLBACK
36538
+  (0.2ms) BEGIN
36539
+  (0.2ms) COMMIT
36540
+  (0.2ms) BEGIN
36541
+  (0.2ms) ROLLBACK
36542
+  (0.2ms) BEGIN
36543
+  (0.2ms) COMMIT
36544
+  (0.2ms) BEGIN
36545
+  (0.2ms) ROLLBACK
36546
+  (0.2ms) BEGIN
36547
+  (0.2ms) COMMIT
36548
+  (0.2ms) BEGIN
36549
+  (0.2ms) SAVEPOINT active_record_1
36550
+ SQL (0.5ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
36551
+  (0.2ms) RELEASE SAVEPOINT active_record_1
36552
+  (0.2ms) SAVEPOINT active_record_1
36553
+ SQL (0.8ms) INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "2ec64dde-e293-43fa-9810-48d8a1da765f"], ["external_id", "918f1fc489e9f3c57fa89ab0"], ["sender_id", "1"], ["sender_type", "User"]]
36554
+  (0.2ms) RELEASE SAVEPOINT active_record_1
36555
+ Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-10-05 07:37:12 +0000
36556
+ Processing by BloomRemit::Api::V1::TxnsController#post_update as JSON
36557
+ Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"1", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
36558
+ 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]]
36559
+ Rendered text template (0.0ms)
36560
+ Completed 404 Not Found in 47ms (Views: 45.3ms | ActiveRecord: 0.5ms)
36561
+ Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-10-05 07:37:12 +0000
36562
+ Processing by BloomRemit::Api::V1::TxnsController#post_update as JSON
36563
+ Parameters: {"secret"=>"2ec64dde-e293-43fa-9810-48d8a1da765f", "status"=>"paid", "id"=>"1", "txn"=>{"status"=>"paid", "secret"=>"2ec64dde-e293-43fa-9810-48d8a1da765f"}}
36564
+ BloomRemit::Txn Load (0.4ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 1], ["secret", "2ec64dde-e293-43fa-9810-48d8a1da765f"]]
36565
+  (0.2ms) SAVEPOINT active_record_1
36566
+ SQL (0.3ms) UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 1], ["id", 1]]
36567
+  (0.2ms) RELEASE SAVEPOINT active_record_1
36568
+ Completed 200 OK in 8ms (Views: 0.5ms | ActiveRecord: 1.1ms)
36569
+ BloomRemit::Txn Load (0.3ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1 [["id", 1]]
36570
+  (0.2ms) ROLLBACK
36571
+  (0.1ms) BEGIN
36572
+  (0.2ms) COMMIT
36573
+  (0.1ms) BEGIN
36574
+  (0.3ms) SAVEPOINT active_record_1
36575
+ SQL (0.5ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
36576
+  (0.2ms) RELEASE SAVEPOINT active_record_1
36577
+  (0.2ms) SAVEPOINT active_record_1
36578
+ SQL (0.3ms) INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "5cbb6c6b-a13f-4375-906b-90eb1fe24680"], ["external_id", "53199492ddea375625eaad09"], ["sender_id", "2"], ["sender_type", "User"]]
36579
+  (0.2ms) RELEASE SAVEPOINT active_record_1
36580
+ Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-10-05 07:37:12 +0000
36581
+ Processing by BloomRemit::Api::V1::TxnsController#update as JSON
36582
+ Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"2", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
36583
+ 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]]
36584
+ Rendered text template (0.0ms)
36585
+ Completed 404 Not Found in 2ms (Views: 0.8ms | ActiveRecord: 0.3ms)
36586
+ Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-10-05 07:37:12 +0000
36587
+ Processing by BloomRemit::Api::V1::TxnsController#update as JSON
36588
+ Parameters: {"secret"=>"5cbb6c6b-a13f-4375-906b-90eb1fe24680", "status"=>"paid", "id"=>"2", "txn"=>{"status"=>"paid", "secret"=>"5cbb6c6b-a13f-4375-906b-90eb1fe24680"}}
36589
+ BloomRemit::Txn Load (0.4ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 2], ["secret", "5cbb6c6b-a13f-4375-906b-90eb1fe24680"]]
36590
+  (0.2ms) SAVEPOINT active_record_1
36591
+ SQL (0.3ms) UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 1], ["id", 2]]
36592
+  (0.2ms) RELEASE SAVEPOINT active_record_1
36593
+ Completed 204 No Content in 47ms (ActiveRecord: 1.2ms)
36594
+ BloomRemit::Txn Load (0.4ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1 [["id", 2]]
36595
+  (0.3ms) ROLLBACK
36596
+  (0.2ms) BEGIN
36597
+  (0.2ms) COMMIT
36598
+  (0.2ms) BEGIN
36599
+  (0.2ms) SAVEPOINT active_record_1
36600
+ SQL (0.3ms) INSERT INTO "users" ("type") VALUES ($1) RETURNING "id" [["type", "SubUser"]]
36601
+  (0.2ms) RELEASE SAVEPOINT active_record_1
36602
+  (0.2ms) SAVEPOINT active_record_1
36603
+ SQL (0.5ms) INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
36604
+  (0.2ms) RELEASE SAVEPOINT active_record_1
36605
+  (0.2ms) SAVEPOINT active_record_1
36606
+ SQL (0.4ms) INSERT INTO "payments" ("type") VALUES ($1) RETURNING "id" [["type", "SubPayment"]]
36607
+  (0.3ms) RELEASE SAVEPOINT active_record_1
36608
+  (0.3ms) SAVEPOINT active_record_1
36609
+ SQL (0.4ms) INSERT INTO "bloom_remit_txns" ("secret", "sender_type", "sender_id", "amount", "account_name", "account_id", "target_slug", "owner_id", "owner_type", "external_id", "recipient_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11) RETURNING "id" [["secret", "feb9ca6f-eff2-4f01-b9b5-2bd62332278e"], ["sender_type", "User"], ["sender_id", "3"], ["amount", "800.0"], ["account_name", "028109090"], ["account_id", "Hooli X"], ["target_slug", "PLDT"], ["owner_id", "1"], ["owner_type", "Payment"], ["external_id", "bce1abb8af441b187c8ef58b"], ["recipient_id", "recipient-id"]]
36610
+  (0.2ms) RELEASE SAVEPOINT active_record_1
36611
+  (0.2ms) ROLLBACK
36612
+  (0.1ms) BEGIN
36613
+  (0.2ms) COMMIT
36614
+  (0.2ms) BEGIN
36615
+  (0.2ms) ROLLBACK
36616
+  (0.2ms) BEGIN
36617
+  (0.2ms) COMMIT
36618
+  (0.2ms) BEGIN
36619
+  (0.3ms) SAVEPOINT active_record_1
36620
+ SQL (0.7ms) INSERT INTO "payments" DEFAULT VALUES RETURNING "id"
36621
+  (0.2ms) RELEASE SAVEPOINT active_record_1
36622
+  (0.2ms) SAVEPOINT active_record_1
36623
+ SQL (0.4ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
36624
+  (0.2ms) RELEASE SAVEPOINT active_record_1
36625
+  (0.2ms) SAVEPOINT active_record_1
36626
+ SQL (0.3ms) INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "owner_id", "owner_type", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "dffdf059-64b8-4a2c-a3db-fd5c67529ebd"], ["external_id", "5b0901c7415aa01beebe537c"], ["owner_id", "2"], ["owner_type", "Payment"], ["sender_id", "4"], ["sender_type", "User"]]
36627
+  (0.2ms) RELEASE SAVEPOINT active_record_1
36628
+  (0.2ms) SAVEPOINT active_record_1
36629
+ SQL (0.7ms) INSERT INTO "bloom_remit_responses" ("body", "txn_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["body", "{\"i\":\"am body\"}"], ["txn_id", 4], ["created_at", "2016-10-05 07:37:13.087708"], ["updated_at", "2016-10-05 07:37:13.087708"]]
36630
+  (0.2ms) RELEASE SAVEPOINT active_record_1
36631
+  (0.3ms) SELECT COUNT(*) FROM "bloom_remit_responses" WHERE "bloom_remit_responses"."txn_id" = $1 [["txn_id", 4]]
36632
+ 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]]
36633
+  (0.5ms) ROLLBACK
36634
+  (0.2ms) BEGIN
36635
+  (0.2ms) COMMIT
36636
+  (0.2ms) BEGIN
36637
+  (0.2ms) SAVEPOINT active_record_1
36638
+ SQL (0.7ms) INSERT INTO "payments" DEFAULT VALUES RETURNING "id"
36639
+  (0.2ms) RELEASE SAVEPOINT active_record_1
36640
+  (0.2ms) SAVEPOINT active_record_1
36641
+ SQL (0.4ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
36642
+  (0.2ms) RELEASE SAVEPOINT active_record_1
36643
+  (0.2ms) SAVEPOINT active_record_1
36644
+ SQL (0.3ms) INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "owner_id", "owner_type", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "e46dc2c7-4998-4607-883d-d7744b4edc20"], ["external_id", "3768deb71b720094278fa2f6"], ["owner_id", "3"], ["owner_type", "Payment"], ["sender_id", "5"], ["sender_type", "User"]]
36645
+  (0.2ms) RELEASE SAVEPOINT active_record_1
36646
+  (0.2ms) SAVEPOINT active_record_1
36647
+ SQL (0.4ms) UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 7], ["id", 5]]
36648
+  (0.2ms) RELEASE SAVEPOINT active_record_1
36649
+  (0.2ms) SAVEPOINT active_record_1
36650
+ SQL (0.3ms) INSERT INTO "bloom_remit_responses" ("body", "txn_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["body", "{\"status\":\"500\",\"error\":\"Internal Server Error\"}"], ["txn_id", 5], ["created_at", "2016-10-05 07:37:13.125764"], ["updated_at", "2016-10-05 07:37:13.125764"]]
36651
+  (0.2ms) RELEASE SAVEPOINT active_record_1
36652
+ BloomRemit::Txn Load (0.3ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1 [["id", 5]]
36653
+  (0.2ms) ROLLBACK
36654
+  (0.2ms) BEGIN
36655
+  (0.2ms) COMMIT
36656
+  (0.2ms) BEGIN
36657
+  (0.2ms) ROLLBACK
36658
+  (0.1ms) BEGIN
36659
+  (0.3ms) COMMIT
36660
+  (0.2ms) BEGIN
36661
+  (0.2ms) ROLLBACK
36662
+  (0.2ms) BEGIN
36663
+  (0.2ms) COMMIT
36664
+  (0.2ms) BEGIN
36665
+  (0.2ms) ROLLBACK
36666
+  (0.2ms) BEGIN
36667
+  (0.2ms) COMMIT
36668
+  (0.2ms) BEGIN
36669
+  (0.2ms) ROLLBACK
36670
+  (0.1ms) BEGIN
36671
+  (0.2ms) COMMIT
36672
+  (0.2ms) BEGIN
36673
+  (0.2ms) ROLLBACK
36674
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
36675
+  (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
36676
+  (1.3ms)  SELECT schemaname || '.' || tablename
36677
+ FROM pg_tables
36678
+ WHERE
36679
+ tablename !~ '_prt_' AND
36680
+ tablename <> 'schema_migrations' AND
36681
+ schemaname = ANY (current_schemas(false))
36682
+ 
36683
+  (1.1ms) select table_name from information_schema.views where table_schema = 'app_test'
36684
+  (461.7ms) TRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE;
36685
+  (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
36686
+  (0.3ms) BEGIN
36687
+  (0.3ms) COMMIT
36688
+  (0.3ms) BEGIN
36689
+  (0.3ms) ROLLBACK
36690
+  (0.3ms) BEGIN
36691
+  (0.3ms) COMMIT
36692
+  (0.3ms) BEGIN
36693
+  (0.3ms) ROLLBACK
36694
+  (0.7ms) BEGIN
36695
+ SQL (0.6ms) INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
36696
+  (12.7ms) COMMIT
36697
+  (0.3ms) BEGIN
36698
+ SQL (0.4ms) INSERT INTO "users" ("type") VALUES ($1) RETURNING "id" [["type", "SubUser"]]
36699
+  (12.4ms) COMMIT
36700
+  (0.4ms) BEGIN
36701
+ SQL (0.4ms) INSERT INTO "payments" ("type") VALUES ($1) RETURNING "id" [["type", "SubPayment"]]
36702
+  (15.8ms) COMMIT
36703
+  (0.3ms) BEGIN
36704
+ SQL (0.7ms) INSERT INTO "bloom_remit_txns" ("secret", "sender_type", "sender_id", "amount", "account_name", "account_id", "target_slug", "owner_id", "owner_type", "external_id", "recipient_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11) RETURNING "id" [["secret", "6e00a66a-6484-42b5-9acc-8e0c74f1ed33"], ["sender_type", "User"], ["sender_id", "1"], ["amount", "800.0"], ["account_name", "028109090"], ["account_id", "Hooli X"], ["target_slug", "PLDT"], ["owner_id", "1"], ["owner_type", "Payment"], ["external_id", "105847b12835617c1b94c1fa"], ["recipient_id", "recipient-id"]]
36705
+  (15.5ms) COMMIT
36706
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1]]
36707
+ Payment Load (0.4ms) SELECT "payments".* FROM "payments" WHERE "payments"."id" = $1 LIMIT 1 [["id", 1]]
36708
+  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
36709
+  (374.5ms) TRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE;
36710
+  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
36711
+  (0.4ms) BEGIN
36712
+ SQL (1.0ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
36713
+  (15.3ms) COMMIT
36714
+  (0.4ms) BEGIN
36715
+ SQL (0.6ms) INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "1ed3c458-e3aa-444e-bfaa-268cf69f91b4"], ["external_id", "cfd93b0fedc282d9792e23a1"], ["sender_id", "1"], ["sender_type", "User"]]
36716
+  (12.9ms) COMMIT
36717
+ BloomRemit::Txn Load (0.4ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 1], ["secret", "1ed3c458-e3aa-444e-bfaa-268cf69f91b4"]]
36718
+  (0.3ms) BEGIN
36719
+ SQL (0.4ms) UPDATE "bloom_remit_txns" SET "status" = $1, "status_description" = $2, "vendor_external_id" = $3 WHERE "bloom_remit_txns"."id" = $4 [["status", 1], ["status_description", "My status description"], ["vendor_external_id", "vextid"], ["id", 1]]
36720
+  (14.6ms) COMMIT
36721
+  (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
36722
+  (437.4ms) TRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE;
36723
+  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
36724
+  (0.5ms) BEGIN
36725
+  (0.4ms) COMMIT
36726
+  (0.5ms) BEGIN
36727
+  (0.5ms) ROLLBACK
36728
+  (0.3ms) BEGIN
36729
+  (0.3ms) COMMIT
36730
+  (0.3ms) BEGIN
36731
+  (0.8ms) ROLLBACK
36732
+  (0.3ms) BEGIN
36733
+  (0.3ms) COMMIT
36734
+  (0.3ms) BEGIN
36735
+  (0.4ms) ROLLBACK
36736
+  (0.2ms) BEGIN
36737
+  (0.4ms) COMMIT
36738
+  (0.4ms) BEGIN
36739
+  (0.3ms) ROLLBACK
36740
+  (0.2ms) BEGIN
36741
+  (0.3ms) COMMIT
36742
+  (0.4ms) BEGIN
36743
+  (0.4ms) ROLLBACK
36744
+  (0.2ms) BEGIN
36745
+  (0.2ms) COMMIT
36746
+  (0.2ms) BEGIN
36747
+  (0.3ms) ROLLBACK
36748
+  (0.2ms) BEGIN
36749
+  (0.2ms) COMMIT
36750
+  (0.2ms) BEGIN
36751
+  (0.4ms) ROLLBACK
36752
+  (0.3ms) BEGIN
36753
+  (0.4ms) COMMIT
36754
+  (0.3ms) BEGIN
36755
+  (0.3ms) SAVEPOINT active_record_1
36756
+ SQL (0.6ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
36757
+  (0.4ms) RELEASE SAVEPOINT active_record_1
36758
+  (0.3ms) SAVEPOINT active_record_1
36759
+ SQL (0.7ms) INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "5d81f5d3-9411-4631-a1fc-fb6b2e8a33dd"], ["external_id", "f68e8e3e63b1efc7be12674c"], ["sender_id", "1"], ["sender_type", "User"]]
36760
+  (0.3ms) RELEASE SAVEPOINT active_record_1
36761
+ Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-10-05 07:38:01 +0000
36762
+ Processing by BloomRemit::Api::V1::TxnsController#post_update as JSON
36763
+ Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"1", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
36764
+ 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]]
36765
+ Rendered text template (0.0ms)
36766
+ Completed 404 Not Found in 52ms (Views: 50.0ms | ActiveRecord: 0.4ms)
36767
+ Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-10-05 07:38:01 +0000
36768
+ Processing by BloomRemit::Api::V1::TxnsController#post_update as JSON
36769
+ Parameters: {"secret"=>"5d81f5d3-9411-4631-a1fc-fb6b2e8a33dd", "status"=>"paid", "id"=>"1", "txn"=>{"status"=>"paid", "secret"=>"5d81f5d3-9411-4631-a1fc-fb6b2e8a33dd"}}
36770
+ BloomRemit::Txn Load (0.6ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 1], ["secret", "5d81f5d3-9411-4631-a1fc-fb6b2e8a33dd"]]
36771
+  (0.3ms) SAVEPOINT active_record_1
36772
+ SQL (0.4ms) UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 1], ["id", 1]]
36773
+  (0.3ms) RELEASE SAVEPOINT active_record_1
36774
+ Completed 200 OK in 8ms (Views: 0.5ms | ActiveRecord: 1.6ms)
36775
+ BloomRemit::Txn Load (0.4ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1 [["id", 1]]
36776
+  (0.3ms) ROLLBACK
36777
+  (0.3ms) BEGIN
36778
+  (0.3ms) COMMIT
36779
+  (0.3ms) BEGIN
36780
+  (0.3ms) SAVEPOINT active_record_1
36781
+ SQL (0.6ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
36782
+  (0.3ms) RELEASE SAVEPOINT active_record_1
36783
+  (0.3ms) SAVEPOINT active_record_1
36784
+ SQL (0.4ms) INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "99b82051-33c3-4a89-be71-911564b40fe9"], ["external_id", "eb229b90cd83496aad68f86d"], ["sender_id", "2"], ["sender_type", "User"]]
36785
+  (0.3ms) RELEASE SAVEPOINT active_record_1
36786
+ Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-10-05 07:38:02 +0000
36787
+ Processing by BloomRemit::Api::V1::TxnsController#update as JSON
36788
+ Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"2", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
36789
+ 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]]
36790
+ Rendered text template (0.0ms)
36791
+ Completed 404 Not Found in 3ms (Views: 1.1ms | ActiveRecord: 0.5ms)
36792
+ Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-10-05 07:38:02 +0000
36793
+ Processing by BloomRemit::Api::V1::TxnsController#update as JSON
36794
+ Parameters: {"secret"=>"99b82051-33c3-4a89-be71-911564b40fe9", "status"=>"paid", "id"=>"2", "txn"=>{"status"=>"paid", "secret"=>"99b82051-33c3-4a89-be71-911564b40fe9"}}
36795
+ BloomRemit::Txn Load (0.5ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 2], ["secret", "99b82051-33c3-4a89-be71-911564b40fe9"]]
36796
+  (0.4ms) SAVEPOINT active_record_1
36797
+ SQL (0.6ms) UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 1], ["id", 2]]
36798
+  (0.5ms) RELEASE SAVEPOINT active_record_1
36799
+ Completed 204 No Content in 46ms (ActiveRecord: 2.1ms)
36800
+ BloomRemit::Txn Load (0.4ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1 [["id", 2]]
36801
+  (0.3ms) ROLLBACK
36802
+  (0.3ms) BEGIN
36803
+  (0.3ms) COMMIT
36804
+  (0.3ms) BEGIN
36805
+  (0.3ms) SAVEPOINT active_record_1
36806
+ SQL (0.5ms) INSERT INTO "users" ("type") VALUES ($1) RETURNING "id" [["type", "SubUser"]]
36807
+  (0.2ms) RELEASE SAVEPOINT active_record_1
36808
+  (0.2ms) SAVEPOINT active_record_1
36809
+ SQL (0.6ms) INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
36810
+  (0.3ms) RELEASE SAVEPOINT active_record_1
36811
+  (0.2ms) SAVEPOINT active_record_1
36812
+ SQL (0.5ms) INSERT INTO "payments" ("type") VALUES ($1) RETURNING "id" [["type", "SubPayment"]]
36813
+  (0.3ms) RELEASE SAVEPOINT active_record_1
36814
+  (0.3ms) SAVEPOINT active_record_1
36815
+ SQL (0.5ms) INSERT INTO "bloom_remit_txns" ("secret", "sender_type", "sender_id", "amount", "account_name", "account_id", "target_slug", "owner_id", "owner_type", "external_id", "recipient_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11) RETURNING "id" [["secret", "8651ffc4-6c1c-4020-b789-2bd5dd5ce8a8"], ["sender_type", "User"], ["sender_id", "3"], ["amount", "800.0"], ["account_name", "028109090"], ["account_id", "Hooli X"], ["target_slug", "PLDT"], ["owner_id", "1"], ["owner_type", "Payment"], ["external_id", "b3861689fe5eeaaf58fb6c8c"], ["recipient_id", "recipient-id"]]
36816
+  (0.3ms) RELEASE SAVEPOINT active_record_1
36817
+  (0.3ms) ROLLBACK
36818
+  (0.3ms) BEGIN
36819
+  (0.4ms) COMMIT
36820
+  (0.3ms) BEGIN
36821
+  (0.3ms) ROLLBACK
36822
+  (0.3ms) BEGIN
36823
+  (0.3ms) COMMIT
36824
+  (0.3ms) BEGIN
36825
+  (0.4ms) SAVEPOINT active_record_1
36826
+ SQL (0.4ms) INSERT INTO "payments" DEFAULT VALUES RETURNING "id"
36827
+  (0.3ms) RELEASE SAVEPOINT active_record_1
36828
+  (0.3ms) SAVEPOINT active_record_1
36829
+ SQL (0.4ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
36830
+  (0.3ms) RELEASE SAVEPOINT active_record_1
36831
+  (0.3ms) SAVEPOINT active_record_1
36832
+ SQL (0.4ms) INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "owner_id", "owner_type", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "2f42987b-d2c9-4e09-b9da-967c458645d3"], ["external_id", "5d27f4e78db99546cd463bf1"], ["owner_id", "2"], ["owner_type", "Payment"], ["sender_id", "4"], ["sender_type", "User"]]
36833
+  (0.3ms) RELEASE SAVEPOINT active_record_1
36834
+  (0.3ms) SAVEPOINT active_record_1
36835
+ SQL (0.5ms) INSERT INTO "bloom_remit_responses" ("body", "txn_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["body", "{\"i\":\"am body\"}"], ["txn_id", 4], ["created_at", "2016-10-05 07:38:02.180592"], ["updated_at", "2016-10-05 07:38:02.180592"]]
36836
+  (0.3ms) RELEASE SAVEPOINT active_record_1
36837
+  (0.4ms) SELECT COUNT(*) FROM "bloom_remit_responses" WHERE "bloom_remit_responses"."txn_id" = $1 [["txn_id", 4]]
36838
+ 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]]
36839
+  (0.3ms) ROLLBACK
36840
+  (0.2ms) BEGIN
36841
+  (0.3ms) COMMIT
36842
+  (0.3ms) BEGIN
36843
+  (0.4ms) SAVEPOINT active_record_1
36844
+ SQL (0.5ms) INSERT INTO "payments" DEFAULT VALUES RETURNING "id"
36845
+  (0.3ms) RELEASE SAVEPOINT active_record_1
36846
+  (0.3ms) SAVEPOINT active_record_1
36847
+ SQL (0.4ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
36848
+  (0.3ms) RELEASE SAVEPOINT active_record_1
36849
+  (0.2ms) SAVEPOINT active_record_1
36850
+ SQL (0.4ms) INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "owner_id", "owner_type", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "36f03528-3f48-49f4-8fd0-159d5c92dde8"], ["external_id", "9189d4fb99ad08a5363819ce"], ["owner_id", "3"], ["owner_type", "Payment"], ["sender_id", "5"], ["sender_type", "User"]]
36851
+  (0.3ms) RELEASE SAVEPOINT active_record_1
36852
+  (0.3ms) SAVEPOINT active_record_1
36853
+ SQL (0.4ms) UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 7], ["id", 5]]
36854
+  (0.3ms) RELEASE SAVEPOINT active_record_1
36855
+  (0.3ms) SAVEPOINT active_record_1
36856
+ SQL (0.4ms) INSERT INTO "bloom_remit_responses" ("body", "txn_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["body", "{\"status\":\"500\",\"error\":\"Internal Server Error\"}"], ["txn_id", 5], ["created_at", "2016-10-05 07:38:02.214241"], ["updated_at", "2016-10-05 07:38:02.214241"]]
36857
+  (0.3ms) RELEASE SAVEPOINT active_record_1
36858
+ BloomRemit::Txn Load (0.4ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1 [["id", 5]]
36859
+  (0.3ms) ROLLBACK
36860
+  (0.3ms) BEGIN
36861
+  (0.4ms) COMMIT
36862
+  (0.3ms) BEGIN
36863
+  (0.4ms) ROLLBACK
36864
+  (0.2ms) BEGIN
36865
+  (0.2ms) COMMIT
36866
+  (0.2ms) BEGIN
36867
+  (0.3ms) ROLLBACK
36868
+  (0.2ms) BEGIN
36869
+  (0.3ms) COMMIT
36870
+  (0.2ms) BEGIN
36871
+  (0.3ms) ROLLBACK
36872
+  (0.2ms) BEGIN
36873
+  (0.2ms) COMMIT
36874
+  (0.2ms) BEGIN
36875
+  (0.3ms) ROLLBACK
36876
+  (0.4ms) BEGIN
36877
+  (0.4ms) COMMIT
36878
+  (0.4ms) BEGIN
36879
+  (0.4ms) ROLLBACK
36880
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
36881
+  (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
36882
+  (1.7ms)  SELECT schemaname || '.' || tablename
36883
+ FROM pg_tables
36884
+ WHERE
36885
+ tablename !~ '_prt_' AND
36886
+ tablename <> 'schema_migrations' AND
36887
+ schemaname = ANY (current_schemas(false))
36888
+ 
36889
+  (1.1ms) select table_name from information_schema.views where table_schema = 'app_test'
36890
+  (393.4ms) TRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE;
36891
+  (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
36892
+  (0.4ms) BEGIN
36893
+  (0.3ms) COMMIT
36894
+  (0.5ms) BEGIN
36895
+  (0.3ms) ROLLBACK
36896
+  (0.3ms) BEGIN
36897
+  (0.3ms) COMMIT
36898
+  (0.5ms) BEGIN
36899
+  (0.4ms) ROLLBACK
36900
+  (0.3ms) BEGIN
36901
+ SQL (0.9ms) INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
36902
+  (13.9ms) COMMIT
36903
+  (0.3ms) BEGIN
36904
+ SQL (0.5ms) INSERT INTO "users" ("type") VALUES ($1) RETURNING "id" [["type", "SubUser"]]
36905
+  (13.0ms) COMMIT
36906
+  (0.4ms) BEGIN
36907
+ SQL (0.5ms) INSERT INTO "payments" ("type") VALUES ($1) RETURNING "id" [["type", "SubPayment"]]
36908
+  (12.9ms) COMMIT
36909
+  (0.3ms) BEGIN
36910
+ SQL (0.9ms) INSERT INTO "bloom_remit_txns" ("secret", "sender_type", "sender_id", "amount", "account_name", "account_id", "target_slug", "owner_id", "owner_type", "external_id", "recipient_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11) RETURNING "id" [["secret", "f343730d-3888-4dc2-9956-7a5bcc9e3f92"], ["sender_type", "User"], ["sender_id", "1"], ["amount", "800.0"], ["account_name", "028109090"], ["account_id", "Hooli X"], ["target_slug", "PLDT"], ["owner_id", "1"], ["owner_type", "Payment"], ["external_id", "6fd3ee728f044e3698058312"], ["recipient_id", "recipient-id"]]
36911
+  (11.8ms) COMMIT
36912
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1]]
36913
+ Payment Load (0.4ms) SELECT "payments".* FROM "payments" WHERE "payments"."id" = $1 LIMIT 1 [["id", 1]]
36914
+  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
36915
+  (432.0ms) TRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE;
36916
+  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
36917
+  (0.4ms) BEGIN
36918
+ SQL (0.9ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
36919
+  (12.9ms) COMMIT
36920
+  (0.4ms) BEGIN
36921
+ SQL (0.8ms) INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "c24ecf75-b89a-46c2-854f-7fe662d60fee"], ["external_id", "7b9318af4a2f9a94b73235af"], ["sender_id", "1"], ["sender_type", "User"]]
36922
+  (12.6ms) COMMIT
36923
+  (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
36924
+  (425.5ms) TRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE;
36925
+  (0.6ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
36926
+  (1.0ms) BEGIN
36927
+  (0.6ms) COMMIT
36928
+  (0.6ms) BEGIN
36929
+  (0.5ms) ROLLBACK
36930
+  (0.6ms) BEGIN
36931
+  (0.5ms) COMMIT
36932
+  (0.5ms) BEGIN
36933
+  (0.3ms) ROLLBACK
36934
+  (0.4ms) BEGIN
36935
+  (0.4ms) COMMIT
36936
+  (0.3ms) BEGIN
36937
+  (0.4ms) ROLLBACK
36938
+  (0.4ms) BEGIN
36939
+  (0.3ms) COMMIT
36940
+  (0.3ms) BEGIN
36941
+  (0.4ms) ROLLBACK
36942
+  (0.5ms) BEGIN
36943
+  (0.7ms) COMMIT
36944
+  (0.5ms) BEGIN
36945
+  (0.4ms) ROLLBACK
36946
+  (0.3ms) BEGIN
36947
+  (0.3ms) COMMIT
36948
+  (0.3ms) BEGIN
36949
+  (0.2ms) ROLLBACK
36950
+  (0.3ms) BEGIN
36951
+  (0.2ms) COMMIT
36952
+  (0.3ms) BEGIN
36953
+  (0.3ms) ROLLBACK
36954
+  (0.4ms) BEGIN
36955
+  (0.3ms) COMMIT
36956
+  (0.3ms) BEGIN
36957
+  (0.5ms) SAVEPOINT active_record_1
36958
+ SQL (0.6ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
36959
+  (0.3ms) RELEASE SAVEPOINT active_record_1
36960
+  (0.3ms) SAVEPOINT active_record_1
36961
+ SQL (0.9ms) INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "394ca95a-3159-429f-9467-15b5404669a3"], ["external_id", "9df6ee70cc63be5647451afd"], ["sender_id", "1"], ["sender_type", "User"]]
36962
+  (0.7ms) RELEASE SAVEPOINT active_record_1
36963
+ Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-10-05 07:39:06 +0000
36964
+ Processing by BloomRemit::Api::V1::TxnsController#post_update as JSON
36965
+ Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"1", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
36966
+ Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)
36967
+  (0.3ms) ROLLBACK
36968
+  (0.2ms) BEGIN
36969
+  (0.3ms) COMMIT
36970
+  (0.3ms) BEGIN
36971
+  (0.3ms) SAVEPOINT active_record_1
36972
+ SQL (0.5ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
36973
+  (0.3ms) RELEASE SAVEPOINT active_record_1
36974
+  (0.3ms) SAVEPOINT active_record_1
36975
+ SQL (0.5ms) INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "fc310364-4556-4546-8a30-2ebb5f3a7ad5"], ["external_id", "d889544c304a9be4d1411aa0"], ["sender_id", "2"], ["sender_type", "User"]]
36976
+  (0.4ms) RELEASE SAVEPOINT active_record_1
36977
+ Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-10-05 07:39:06 +0000
36978
+ Processing by BloomRemit::Api::V1::TxnsController#update as JSON
36979
+ Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"2", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
36980
+ Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)
36981
+  (0.3ms) ROLLBACK
36982
+  (0.9ms) BEGIN
36983
+  (0.3ms) COMMIT
36984
+  (0.3ms) BEGIN
36985
+  (0.3ms) SAVEPOINT active_record_1
36986
+ SQL (0.5ms) INSERT INTO "users" ("type") VALUES ($1) RETURNING "id" [["type", "SubUser"]]
36987
+  (0.4ms) RELEASE SAVEPOINT active_record_1
36988
+  (0.5ms) SAVEPOINT active_record_1
36989
+ SQL (0.6ms) INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
36990
+  (0.3ms) RELEASE SAVEPOINT active_record_1
36991
+  (0.3ms) SAVEPOINT active_record_1
36992
+ SQL (0.5ms) INSERT INTO "payments" ("type") VALUES ($1) RETURNING "id" [["type", "SubPayment"]]
36993
+  (0.3ms) RELEASE SAVEPOINT active_record_1
36994
+  (0.5ms) SAVEPOINT active_record_1
36995
+ SQL (0.6ms) INSERT INTO "bloom_remit_txns" ("secret", "sender_type", "sender_id", "amount", "account_name", "account_id", "target_slug", "owner_id", "owner_type", "external_id", "recipient_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11) RETURNING "id" [["secret", "96b1ab96-27e8-4765-bbcd-bb5e355f433f"], ["sender_type", "User"], ["sender_id", "3"], ["amount", "800.0"], ["account_name", "028109090"], ["account_id", "Hooli X"], ["target_slug", "PLDT"], ["owner_id", "1"], ["owner_type", "Payment"], ["external_id", "96233b0b709c630265c4755f"], ["recipient_id", "recipient-id"]]
36996
+  (0.3ms) RELEASE SAVEPOINT active_record_1
36997
+  (0.6ms) ROLLBACK
36998
+  (0.3ms) BEGIN
36999
+  (0.3ms) COMMIT
37000
+  (0.5ms) BEGIN
37001
+  (0.4ms) ROLLBACK
37002
+  (0.2ms) BEGIN
37003
+  (0.3ms) COMMIT
37004
+  (0.3ms) BEGIN
37005
+  (0.4ms) SAVEPOINT active_record_1
37006
+ SQL (0.5ms) INSERT INTO "payments" DEFAULT VALUES RETURNING "id"
37007
+  (0.3ms) RELEASE SAVEPOINT active_record_1
37008
+  (0.2ms) SAVEPOINT active_record_1
37009
+ SQL (0.4ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
37010
+  (0.2ms) RELEASE SAVEPOINT active_record_1
37011
+  (0.2ms) SAVEPOINT active_record_1
37012
+ SQL (0.4ms) INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "owner_id", "owner_type", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "70a6e130-6bce-4ef8-b9cb-501e990527e9"], ["external_id", "f3ae2417d16c35e1956d5c4b"], ["owner_id", "2"], ["owner_type", "Payment"], ["sender_id", "4"], ["sender_type", "User"]]
37013
+  (0.3ms) RELEASE SAVEPOINT active_record_1
37014
+  (0.3ms) SAVEPOINT active_record_1
37015
+ SQL (0.5ms) INSERT INTO "bloom_remit_responses" ("body", "txn_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["body", "{\"i\":\"am body\"}"], ["txn_id", 4], ["created_at", "2016-10-05 07:39:07.088310"], ["updated_at", "2016-10-05 07:39:07.088310"]]
37016
+  (0.3ms) RELEASE SAVEPOINT active_record_1
37017
+  (0.4ms) SELECT COUNT(*) FROM "bloom_remit_responses" WHERE "bloom_remit_responses"."txn_id" = $1 [["txn_id", 4]]
37018
+ 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]]
37019
+  (0.3ms) ROLLBACK
37020
+  (0.4ms) BEGIN
37021
+  (0.3ms) COMMIT
37022
+  (0.4ms) BEGIN
37023
+  (0.4ms) SAVEPOINT active_record_1
37024
+ SQL (0.5ms) INSERT INTO "payments" DEFAULT VALUES RETURNING "id"
37025
+  (0.6ms) RELEASE SAVEPOINT active_record_1
37026
+  (0.3ms) SAVEPOINT active_record_1
37027
+ SQL (0.5ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
37028
+  (0.3ms) RELEASE SAVEPOINT active_record_1
37029
+  (0.3ms) SAVEPOINT active_record_1
37030
+ SQL (0.4ms) INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "owner_id", "owner_type", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "da31cd32-171a-4c43-995a-fc3c51b1b158"], ["external_id", "af8e2be098120c08c40df511"], ["owner_id", "3"], ["owner_type", "Payment"], ["sender_id", "5"], ["sender_type", "User"]]
37031
+  (0.3ms) RELEASE SAVEPOINT active_record_1
37032
+  (0.2ms) SAVEPOINT active_record_1
37033
+ SQL (0.4ms) UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 7], ["id", 5]]
37034
+  (0.3ms) RELEASE SAVEPOINT active_record_1
37035
+  (0.2ms) SAVEPOINT active_record_1
37036
+ SQL (0.5ms) INSERT INTO "bloom_remit_responses" ("body", "txn_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["body", "{\"status\":\"500\",\"error\":\"Internal Server Error\"}"], ["txn_id", 5], ["created_at", "2016-10-05 07:39:07.169374"], ["updated_at", "2016-10-05 07:39:07.169374"]]
37037
+  (0.3ms) RELEASE SAVEPOINT active_record_1
37038
+ BloomRemit::Txn Load (0.4ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1 [["id", 5]]
37039
+  (0.3ms) ROLLBACK
37040
+  (0.3ms) BEGIN
37041
+  (0.4ms) COMMIT
37042
+  (0.3ms) BEGIN
37043
+  (0.4ms) ROLLBACK
37044
+  (0.3ms) BEGIN
37045
+  (0.2ms) COMMIT
37046
+  (0.2ms) BEGIN
37047
+  (0.4ms) ROLLBACK
37048
+  (0.3ms) BEGIN
37049
+  (0.4ms) COMMIT
37050
+  (0.3ms) BEGIN
37051
+  (0.4ms) ROLLBACK
37052
+  (0.3ms) BEGIN
37053
+  (0.3ms) COMMIT
37054
+  (0.3ms) BEGIN
37055
+  (0.4ms) ROLLBACK
37056
+  (0.3ms) BEGIN
37057
+  (0.3ms) COMMIT
37058
+  (0.3ms) BEGIN
37059
+  (0.4ms) ROLLBACK
37060
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
37061
+  (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
37062
+  (1.3ms)  SELECT schemaname || '.' || tablename
37063
+ FROM pg_tables
37064
+ WHERE
37065
+ tablename !~ '_prt_' AND
37066
+ tablename <> 'schema_migrations' AND
37067
+ schemaname = ANY (current_schemas(false))
37068
+ 
37069
+  (1.1ms) select table_name from information_schema.views where table_schema = 'app_test'
37070
+  (387.8ms) TRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE;
37071
+  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
37072
+  (0.8ms) BEGIN
37073
+  (0.4ms) COMMIT
37074
+  (0.3ms) BEGIN
37075
+  (0.3ms) ROLLBACK
37076
+  (0.1ms) BEGIN
37077
+  (0.3ms) COMMIT
37078
+  (0.3ms) BEGIN
37079
+  (0.3ms) ROLLBACK
37080
+  (0.4ms) BEGIN
37081
+ SQL (1.5ms) INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
37082
+  (11.5ms) COMMIT
37083
+  (0.4ms) BEGIN
37084
+ SQL (0.6ms) INSERT INTO "users" ("type") VALUES ($1) RETURNING "id" [["type", "SubUser"]]
37085
+  (18.2ms) COMMIT
37086
+  (0.3ms) BEGIN
37087
+ SQL (0.6ms) INSERT INTO "payments" ("type") VALUES ($1) RETURNING "id" [["type", "SubPayment"]]
37088
+  (16.1ms) COMMIT
37089
+  (0.3ms) BEGIN
37090
+ SQL (0.7ms) INSERT INTO "bloom_remit_txns" ("secret", "sender_type", "sender_id", "amount", "account_name", "account_id", "target_slug", "owner_id", "owner_type", "external_id", "recipient_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11) RETURNING "id" [["secret", "2afb06f1-4556-43d9-8b7a-51d9ef4f46c6"], ["sender_type", "User"], ["sender_id", "1"], ["amount", "800.0"], ["account_name", "028109090"], ["account_id", "Hooli X"], ["target_slug", "PLDT"], ["owner_id", "1"], ["owner_type", "Payment"], ["external_id", "7b1be3778e76c76b1a5a6152"], ["recipient_id", "recipient-id"]]
37091
+  (12.9ms) COMMIT
37092
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1]]
37093
+ Payment Load (0.4ms) SELECT "payments".* FROM "payments" WHERE "payments"."id" = $1 LIMIT 1 [["id", 1]]
37094
+  (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
37095
+  (416.9ms) TRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE;
37096
+  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
37097
+  (0.3ms) BEGIN
37098
+ SQL (0.7ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
37099
+  (12.8ms) COMMIT
37100
+  (0.4ms) BEGIN
37101
+ SQL (0.6ms) INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "608093b4-517d-4b86-a98a-042939846319"], ["external_id", "aca01705bda38ef1a7fc23bb"], ["sender_id", "1"], ["sender_type", "User"]]
37102
+  (14.3ms) COMMIT
37103
+  (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
37104
+  (397.9ms) TRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE;
37105
+  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
37106
+  (0.3ms) BEGIN
37107
+  (0.5ms) COMMIT
37108
+  (0.5ms) BEGIN
37109
+  (0.4ms) ROLLBACK
37110
+  (0.2ms) BEGIN
37111
+  (0.2ms) COMMIT
37112
+  (0.2ms) BEGIN
37113
+  (0.5ms) ROLLBACK
37114
+  (0.5ms) BEGIN
37115
+  (0.5ms) COMMIT
37116
+  (0.5ms) BEGIN
37117
+  (0.4ms) ROLLBACK
37118
+  (0.4ms) BEGIN
37119
+  (0.4ms) COMMIT
37120
+  (0.9ms) BEGIN
37121
+  (0.3ms) ROLLBACK
37122
+  (0.1ms) BEGIN
37123
+  (0.3ms) COMMIT
37124
+  (0.4ms) BEGIN
37125
+  (0.3ms) ROLLBACK
37126
+  (0.2ms) BEGIN
37127
+  (0.3ms) COMMIT
37128
+  (0.3ms) BEGIN
37129
+  (0.3ms) ROLLBACK
37130
+  (0.2ms) BEGIN
37131
+  (0.2ms) COMMIT
37132
+  (0.2ms) BEGIN
37133
+  (0.3ms) ROLLBACK
37134
+  (0.3ms) BEGIN
37135
+  (0.5ms) COMMIT
37136
+  (0.4ms) BEGIN
37137
+  (0.4ms) SAVEPOINT active_record_1
37138
+ SQL (0.8ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
37139
+  (0.4ms) RELEASE SAVEPOINT active_record_1
37140
+  (0.4ms) SAVEPOINT active_record_1
37141
+ SQL (0.8ms) INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "c8fe226e-3d4d-4a2f-8f25-b9a0b98fce7e"], ["external_id", "49a86fd34a351a107f84712b"], ["sender_id", "1"], ["sender_type", "User"]]
37142
+  (0.3ms) RELEASE SAVEPOINT active_record_1
37143
+ Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-10-05 07:39:25 +0000
37144
+ Processing by BloomRemit::Api::V1::TxnsController#post_update as JSON
37145
+ Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"1", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
37146
+ Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.0ms)
37147
+  (0.4ms) ROLLBACK
37148
+  (0.3ms) BEGIN
37149
+  (0.3ms) COMMIT
37150
+  (0.3ms) BEGIN
37151
+  (0.4ms) SAVEPOINT active_record_1
37152
+ SQL (0.5ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
37153
+  (0.3ms) RELEASE SAVEPOINT active_record_1
37154
+  (0.4ms) SAVEPOINT active_record_1
37155
+ SQL (0.5ms) INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "7d69d1b9-5a25-4a36-a8cb-982252c529f7"], ["external_id", "94a77deadb6fc296f29b6d87"], ["sender_id", "2"], ["sender_type", "User"]]
37156
+  (0.4ms) RELEASE SAVEPOINT active_record_1
37157
+ Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-10-05 07:39:25 +0000
37158
+ Processing by BloomRemit::Api::V1::TxnsController#update as JSON
37159
+ Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"2", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
37160
+ Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.0ms)
37161
+  (0.4ms) ROLLBACK
37162
+  (0.4ms) BEGIN
37163
+  (0.5ms) COMMIT
37164
+  (0.4ms) BEGIN
37165
+  (0.3ms) SAVEPOINT active_record_1
37166
+ SQL (0.5ms) INSERT INTO "users" ("type") VALUES ($1) RETURNING "id" [["type", "SubUser"]]
37167
+  (0.3ms) RELEASE SAVEPOINT active_record_1
37168
+  (0.3ms) SAVEPOINT active_record_1
37169
+ SQL (0.6ms) INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
37170
+  (0.3ms) RELEASE SAVEPOINT active_record_1
37171
+  (0.3ms) SAVEPOINT active_record_1
37172
+ SQL (0.6ms) INSERT INTO "payments" ("type") VALUES ($1) RETURNING "id" [["type", "SubPayment"]]
37173
+  (0.4ms) RELEASE SAVEPOINT active_record_1
37174
+  (0.4ms) SAVEPOINT active_record_1
37175
+ SQL (0.6ms) INSERT INTO "bloom_remit_txns" ("secret", "sender_type", "sender_id", "amount", "account_name", "account_id", "target_slug", "owner_id", "owner_type", "external_id", "recipient_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11) RETURNING "id" [["secret", "c0bd1475-d62b-4479-a6ef-8ceeb2cc3317"], ["sender_type", "User"], ["sender_id", "3"], ["amount", "800.0"], ["account_name", "028109090"], ["account_id", "Hooli X"], ["target_slug", "PLDT"], ["owner_id", "1"], ["owner_type", "Payment"], ["external_id", "916f5707cd81c3488fd39d24"], ["recipient_id", "recipient-id"]]
37176
+  (0.3ms) RELEASE SAVEPOINT active_record_1
37177
+  (0.3ms) ROLLBACK
37178
+  (0.3ms) BEGIN
37179
+  (0.3ms) COMMIT
37180
+  (0.2ms) BEGIN
37181
+  (0.3ms) ROLLBACK
37182
+  (0.2ms) BEGIN
37183
+  (0.3ms) COMMIT
37184
+  (0.2ms) BEGIN
37185
+  (0.3ms) SAVEPOINT active_record_1
37186
+ SQL (0.5ms) INSERT INTO "payments" DEFAULT VALUES RETURNING "id"
37187
+  (0.3ms) RELEASE SAVEPOINT active_record_1
37188
+  (0.3ms) SAVEPOINT active_record_1
37189
+ SQL (0.5ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
37190
+  (0.3ms) RELEASE SAVEPOINT active_record_1
37191
+  (0.3ms) SAVEPOINT active_record_1
37192
+ SQL (0.4ms) INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "owner_id", "owner_type", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "b3b92919-c484-4239-a0bd-57fd6bd2f025"], ["external_id", "f3243765c4c81e23292624bd"], ["owner_id", "2"], ["owner_type", "Payment"], ["sender_id", "4"], ["sender_type", "User"]]
37193
+  (0.3ms) RELEASE SAVEPOINT active_record_1
37194
+  (0.3ms) SAVEPOINT active_record_1
37195
+ SQL (0.6ms) INSERT INTO "bloom_remit_responses" ("body", "txn_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["body", "{\"i\":\"am body\"}"], ["txn_id", 4], ["created_at", "2016-10-05 07:39:25.674147"], ["updated_at", "2016-10-05 07:39:25.674147"]]
37196
+  (0.3ms) RELEASE SAVEPOINT active_record_1
37197
+  (0.5ms) SELECT COUNT(*) FROM "bloom_remit_responses" WHERE "bloom_remit_responses"."txn_id" = $1 [["txn_id", 4]]
37198
+ 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]]
37199
+  (0.4ms) ROLLBACK
37200
+  (0.3ms) BEGIN
37201
+  (0.3ms) COMMIT
37202
+  (0.5ms) BEGIN
37203
+  (0.4ms) SAVEPOINT active_record_1
37204
+ SQL (0.6ms) INSERT INTO "payments" DEFAULT VALUES RETURNING "id"
37205
+  (0.3ms) RELEASE SAVEPOINT active_record_1
37206
+  (0.4ms) SAVEPOINT active_record_1
37207
+ SQL (0.7ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
37208
+  (0.4ms) RELEASE SAVEPOINT active_record_1
37209
+  (0.3ms) SAVEPOINT active_record_1
37210
+ SQL (0.5ms) INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "owner_id", "owner_type", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "69e57455-9603-459f-8075-b4688c2f8a03"], ["external_id", "745d0c5e38d95dbae5f619ec"], ["owner_id", "3"], ["owner_type", "Payment"], ["sender_id", "5"], ["sender_type", "User"]]
37211
+  (0.3ms) RELEASE SAVEPOINT active_record_1
37212
+  (0.3ms) SAVEPOINT active_record_1
37213
+ SQL (0.5ms) UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 7], ["id", 5]]
37214
+  (0.4ms) RELEASE SAVEPOINT active_record_1
37215
+  (0.3ms) SAVEPOINT active_record_1
37216
+ SQL (0.4ms) INSERT INTO "bloom_remit_responses" ("body", "txn_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["body", "{\"status\":\"500\",\"error\":\"Internal Server Error\"}"], ["txn_id", 5], ["created_at", "2016-10-05 07:39:25.747362"], ["updated_at", "2016-10-05 07:39:25.747362"]]
37217
+  (0.3ms) RELEASE SAVEPOINT active_record_1
37218
+ BloomRemit::Txn Load (0.4ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1 [["id", 5]]
37219
+  (0.4ms) ROLLBACK
37220
+  (0.3ms) BEGIN
37221
+  (0.4ms) COMMIT
37222
+  (0.4ms) BEGIN
37223
+  (0.3ms) ROLLBACK
37224
+  (0.4ms) BEGIN
37225
+  (0.3ms) COMMIT
37226
+  (0.2ms) BEGIN
37227
+  (0.3ms) ROLLBACK
37228
+  (0.4ms) BEGIN
37229
+  (0.5ms) COMMIT
37230
+  (0.4ms) BEGIN
37231
+  (0.3ms) ROLLBACK
37232
+  (0.3ms) BEGIN
37233
+  (0.3ms) COMMIT
37234
+  (0.3ms) BEGIN
37235
+  (0.5ms) ROLLBACK
37236
+  (0.3ms) BEGIN
37237
+  (0.4ms) COMMIT
37238
+  (0.2ms) BEGIN
37239
+  (0.5ms) ROLLBACK
37240
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
37241
+  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
37242
+  (1.7ms)  SELECT schemaname || '.' || tablename
37243
+ FROM pg_tables
37244
+ WHERE
37245
+ tablename !~ '_prt_' AND
37246
+ tablename <> 'schema_migrations' AND
37247
+ schemaname = ANY (current_schemas(false))
37248
+ 
37249
+  (1.5ms) select table_name from information_schema.views where table_schema = 'app_test'
37250
+  (393.6ms) TRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE;
37251
+  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
37252
+  (0.5ms) BEGIN
37253
+  (0.4ms) COMMIT
37254
+  (0.4ms) BEGIN
37255
+  (0.3ms) ROLLBACK
37256
+  (0.3ms) BEGIN
37257
+  (0.4ms) COMMIT
37258
+  (0.3ms) BEGIN
37259
+  (0.3ms) ROLLBACK
37260
+  (0.5ms) BEGIN
37261
+ SQL (0.7ms) INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
37262
+  (11.0ms) COMMIT
37263
+  (0.4ms) BEGIN
37264
+ SQL (0.5ms) INSERT INTO "users" ("type") VALUES ($1) RETURNING "id" [["type", "SubUser"]]
37265
+  (9.4ms) COMMIT
37266
+  (0.3ms) BEGIN
37267
+ SQL (0.5ms) INSERT INTO "payments" ("type") VALUES ($1) RETURNING "id" [["type", "SubPayment"]]
37268
+  (11.5ms) COMMIT
37269
+  (0.3ms) BEGIN
37270
+ SQL (0.6ms) INSERT INTO "bloom_remit_txns" ("secret", "sender_type", "sender_id", "amount", "account_name", "account_id", "target_slug", "owner_id", "owner_type", "external_id", "recipient_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11) RETURNING "id" [["secret", "a30a9b78-04dc-4151-b4b0-e5082b25f463"], ["sender_type", "User"], ["sender_id", "1"], ["amount", "800.0"], ["account_name", "028109090"], ["account_id", "Hooli X"], ["target_slug", "PLDT"], ["owner_id", "1"], ["owner_type", "Payment"], ["external_id", "eed0f1fd10fd1eb37a3cdc2b"], ["recipient_id", "recipient-id"]]
37271
+  (16.7ms) COMMIT
37272
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1]]
37273
+ Payment Load (0.4ms) SELECT "payments".* FROM "payments" WHERE "payments"."id" = $1 LIMIT 1 [["id", 1]]
37274
+  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
37275
+  (431.9ms) TRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE;
37276
+  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
37277
+  (0.3ms) BEGIN
37278
+ SQL (0.9ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
37279
+  (9.5ms) COMMIT
37280
+  (0.4ms) BEGIN
37281
+ SQL (0.6ms) INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "508a8eed-2bfa-4beb-bb2b-d8cf954b4988"], ["external_id", "cc3cdd6509e69f62f97d7414"], ["sender_id", "1"], ["sender_type", "User"]]
37282
+  (9.6ms) COMMIT
37283
+  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
37284
+  (398.1ms) TRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE;
37285
+  (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
37286
+  (0.1ms) BEGIN
37287
+  (0.2ms) COMMIT
37288
+  (0.2ms) BEGIN
37289
+  (0.2ms) ROLLBACK
37290
+  (0.2ms) BEGIN
37291
+  (0.2ms) COMMIT
37292
+  (0.2ms) BEGIN
37293
+  (0.2ms) ROLLBACK
37294
+  (0.1ms) BEGIN
37295
+  (0.2ms) COMMIT
37296
+  (0.2ms) BEGIN
37297
+  (0.3ms) ROLLBACK
37298
+  (0.3ms) BEGIN
37299
+  (0.2ms) COMMIT
37300
+  (0.1ms) BEGIN
37301
+  (0.4ms) ROLLBACK
37302
+  (0.2ms) BEGIN
37303
+  (0.2ms) COMMIT
37304
+  (0.2ms) BEGIN
37305
+  (0.2ms) ROLLBACK
37306
+  (0.2ms) BEGIN
37307
+  (0.2ms) COMMIT
37308
+  (0.2ms) BEGIN
37309
+  (0.2ms) ROLLBACK
37310
+  (0.1ms) BEGIN
37311
+  (0.2ms) COMMIT
37312
+  (0.1ms) BEGIN
37313
+  (0.2ms) ROLLBACK
37314
+  (0.1ms) BEGIN
37315
+  (0.2ms) COMMIT
37316
+  (0.2ms) BEGIN
37317
+  (0.2ms) SAVEPOINT active_record_1
37318
+ SQL (0.5ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
37319
+  (0.2ms) RELEASE SAVEPOINT active_record_1
37320
+  (0.2ms) SAVEPOINT active_record_1
37321
+ SQL (0.7ms) INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "294bf5e8-c294-444a-a225-77f69864ef87"], ["external_id", "366a57a370c8f1d064bc2e14"], ["sender_id", "1"], ["sender_type", "User"]]
37322
+  (0.2ms) RELEASE SAVEPOINT active_record_1
37323
+ Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-10-05 07:39:43 +0000
37324
+ Processing by BloomRemit::Api::V1::TxnsController#post_update as JSON
37325
+ Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"1", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
37326
+ Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.0ms)
37327
+  (0.2ms) ROLLBACK
37328
+  (0.2ms) BEGIN
37329
+  (0.2ms) COMMIT
37330
+  (0.2ms) BEGIN
37331
+  (0.3ms) SAVEPOINT active_record_1
37332
+ SQL (0.3ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
37333
+  (0.2ms) RELEASE SAVEPOINT active_record_1
37334
+  (0.4ms) SAVEPOINT active_record_1
37335
+ SQL (0.3ms) INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "48de973e-e4fe-4643-8ae4-8c6c9a994f23"], ["external_id", "6a23bb8a9037e5b6403a4d3d"], ["sender_id", "2"], ["sender_type", "User"]]
37336
+  (0.2ms) RELEASE SAVEPOINT active_record_1
37337
+ Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-10-05 07:39:43 +0000
37338
+ Processing by BloomRemit::Api::V1::TxnsController#update as JSON
37339
+ Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"2", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
37340
+ Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.0ms)
37341
+  (0.2ms) ROLLBACK
37342
+  (0.1ms) BEGIN
37343
+  (0.2ms) COMMIT
37344
+  (0.2ms) BEGIN
37345
+  (0.2ms) SAVEPOINT active_record_1
37346
+ SQL (0.3ms) INSERT INTO "users" ("type") VALUES ($1) RETURNING "id" [["type", "SubUser"]]
37347
+  (0.2ms) RELEASE SAVEPOINT active_record_1
37348
+  (0.2ms) SAVEPOINT active_record_1
37349
+ SQL (0.5ms) INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
37350
+  (0.2ms) RELEASE SAVEPOINT active_record_1
37351
+  (0.2ms) SAVEPOINT active_record_1
37352
+ SQL (0.4ms) INSERT INTO "payments" ("type") VALUES ($1) RETURNING "id" [["type", "SubPayment"]]
37353
+  (0.2ms) RELEASE SAVEPOINT active_record_1
37354
+  (0.2ms) SAVEPOINT active_record_1
37355
+ SQL (0.4ms) INSERT INTO "bloom_remit_txns" ("secret", "sender_type", "sender_id", "amount", "account_name", "account_id", "target_slug", "owner_id", "owner_type", "external_id", "recipient_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11) RETURNING "id" [["secret", "ebe36d45-40bf-4f74-b3ff-c25440f29dca"], ["sender_type", "User"], ["sender_id", "3"], ["amount", "800.0"], ["account_name", "028109090"], ["account_id", "Hooli X"], ["target_slug", "PLDT"], ["owner_id", "1"], ["owner_type", "Payment"], ["external_id", "19187930f8a96ae21c870b91"], ["recipient_id", "recipient-id"]]
37356
+  (0.2ms) RELEASE SAVEPOINT active_record_1
37357
+  (0.3ms) ROLLBACK
37358
+  (0.6ms) BEGIN
37359
+  (0.2ms) COMMIT
37360
+  (0.3ms) BEGIN
37361
+  (0.2ms) ROLLBACK
37362
+  (0.3ms) BEGIN
37363
+  (0.2ms) COMMIT
37364
+  (0.2ms) BEGIN
37365
+  (0.2ms) SAVEPOINT active_record_1
37366
+ SQL (0.3ms) INSERT INTO "payments" DEFAULT VALUES RETURNING "id"
37367
+  (0.2ms) RELEASE SAVEPOINT active_record_1
37368
+  (0.2ms) SAVEPOINT active_record_1
37369
+ SQL (0.3ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
37370
+  (0.2ms) RELEASE SAVEPOINT active_record_1
37371
+  (0.2ms) SAVEPOINT active_record_1
37372
+ SQL (0.2ms) INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "owner_id", "owner_type", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "cf13aa96-1809-4563-8ace-d71a2f145e2d"], ["external_id", "869e930ecf790b7ba6de6a27"], ["owner_id", "2"], ["owner_type", "Payment"], ["sender_id", "4"], ["sender_type", "User"]]
37373
+  (0.3ms) RELEASE SAVEPOINT active_record_1
37374
+  (0.2ms) SAVEPOINT active_record_1
37375
+ SQL (0.5ms) INSERT INTO "bloom_remit_responses" ("body", "txn_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["body", "{\"i\":\"am body\"}"], ["txn_id", 4], ["created_at", "2016-10-05 07:39:43.451661"], ["updated_at", "2016-10-05 07:39:43.451661"]]
37376
+  (0.2ms) RELEASE SAVEPOINT active_record_1
37377
+  (0.2ms) SELECT COUNT(*) FROM "bloom_remit_responses" WHERE "bloom_remit_responses"."txn_id" = $1 [["txn_id", 4]]
37378
+ BloomRemit::Response Load (0.2ms) SELECT "bloom_remit_responses".* FROM "bloom_remit_responses" WHERE "bloom_remit_responses"."txn_id" = $1 ORDER BY "bloom_remit_responses"."id" ASC LIMIT 1 [["txn_id", 4]]
37379
+  (0.2ms) ROLLBACK
37380
+  (0.2ms) BEGIN
37381
+  (0.2ms) COMMIT
37382
+  (0.1ms) BEGIN
37383
+  (0.2ms) SAVEPOINT active_record_1
37384
+ SQL (0.3ms) INSERT INTO "payments" DEFAULT VALUES RETURNING "id"
37385
+  (0.2ms) RELEASE SAVEPOINT active_record_1
37386
+  (0.2ms) SAVEPOINT active_record_1
37387
+ SQL (0.5ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
37388
+  (0.2ms) RELEASE SAVEPOINT active_record_1
37389
+  (0.2ms) SAVEPOINT active_record_1
37390
+ SQL (0.4ms) INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "owner_id", "owner_type", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "add67c06-9893-47cb-a320-f520b558e790"], ["external_id", "bc0790a52c9d9e892862cfc8"], ["owner_id", "3"], ["owner_type", "Payment"], ["sender_id", "5"], ["sender_type", "User"]]
37391
+  (0.2ms) RELEASE SAVEPOINT active_record_1
37392
+  (0.2ms) SAVEPOINT active_record_1
37393
+ SQL (0.4ms) UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 7], ["id", 5]]
37394
+  (0.2ms) RELEASE SAVEPOINT active_record_1
37395
+  (0.2ms) SAVEPOINT active_record_1
37396
+ SQL (0.4ms) INSERT INTO "bloom_remit_responses" ("body", "txn_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["body", "{\"status\":\"500\",\"error\":\"Internal Server Error\"}"], ["txn_id", 5], ["created_at", "2016-10-05 07:39:43.517418"], ["updated_at", "2016-10-05 07:39:43.517418"]]
37397
+  (0.2ms) RELEASE SAVEPOINT active_record_1
37398
+ BloomRemit::Txn Load (0.3ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1 [["id", 5]]
37399
+  (0.2ms) ROLLBACK
37400
+  (0.2ms) BEGIN
37401
+  (0.2ms) COMMIT
37402
+  (0.2ms) BEGIN
37403
+  (0.2ms) ROLLBACK
37404
+  (0.2ms) BEGIN
37405
+  (0.2ms) COMMIT
37406
+  (0.2ms) BEGIN
37407
+  (0.2ms) ROLLBACK
37408
+  (0.1ms) BEGIN
37409
+  (0.2ms) COMMIT
37410
+  (0.2ms) BEGIN
37411
+  (0.2ms) ROLLBACK
37412
+  (0.1ms) BEGIN
37413
+  (0.1ms) COMMIT
37414
+  (0.1ms) BEGIN
37415
+  (0.2ms) ROLLBACK
37416
+  (0.3ms) BEGIN
37417
+  (0.3ms) COMMIT
37418
+  (0.2ms) BEGIN
37419
+  (0.2ms) ROLLBACK
37420
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
37421
+  (0.9ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
37422
+  (2.2ms)  SELECT schemaname || '.' || tablename
37423
+ FROM pg_tables
37424
+ WHERE
37425
+ tablename !~ '_prt_' AND
37426
+ tablename <> 'schema_migrations' AND
37427
+ schemaname = ANY (current_schemas(false))
37428
+ 
37429
+  (1.9ms) select table_name from information_schema.views where table_schema = 'app_test'
37430
+  (432.4ms) TRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE;
37431
+  (0.6ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
37432
+  (0.4ms) BEGIN
37433
+  (0.4ms) COMMIT
37434
+  (0.4ms) BEGIN
37435
+  (0.4ms) ROLLBACK
37436
+  (0.5ms) BEGIN
37437
+  (0.6ms) COMMIT
37438
+  (0.4ms) BEGIN
37439
+  (0.6ms) ROLLBACK
37440
+  (0.4ms) BEGIN
37441
+ SQL (1.3ms) INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
37442
+  (15.4ms) COMMIT
37443
+  (0.3ms) BEGIN
37444
+ SQL (0.7ms) INSERT INTO "users" ("type") VALUES ($1) RETURNING "id" [["type", "SubUser"]]
37445
+  (13.6ms) COMMIT
37446
+  (0.3ms) BEGIN
37447
+ SQL (0.5ms) INSERT INTO "payments" ("type") VALUES ($1) RETURNING "id" [["type", "SubPayment"]]
37448
+  (14.9ms) COMMIT
37449
+  (0.4ms) BEGIN
37450
+ SQL (1.3ms) INSERT INTO "bloom_remit_txns" ("secret", "sender_type", "sender_id", "amount", "account_name", "account_id", "target_slug", "owner_id", "owner_type", "external_id", "recipient_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11) RETURNING "id" [["secret", "84974ff4-e3dd-4ef2-b243-9d5912ca235d"], ["sender_type", "User"], ["sender_id", "1"], ["amount", "800.0"], ["account_name", "028109090"], ["account_id", "Hooli X"], ["target_slug", "PLDT"], ["owner_id", "1"], ["owner_type", "Payment"], ["external_id", "acdf0fc379bdd3f3609d3152"], ["recipient_id", "recipient-id"]]
37451
+  (13.8ms) COMMIT
37452
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1]]
37453
+ Payment Load (0.4ms) SELECT "payments".* FROM "payments" WHERE "payments"."id" = $1 LIMIT 1 [["id", 1]]
37454
+  (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
37455
+  (409.7ms) TRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE;
37456
+  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
37457
+  (0.3ms) BEGIN
37458
+ SQL (0.9ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
37459
+  (13.1ms) COMMIT
37460
+  (0.3ms) BEGIN
37461
+ SQL (0.6ms) INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "5ddfb805-e620-4e52-9ed4-027fa0276ee1"], ["external_id", "eb5cbc2f2b9d5cbf1552bef7"], ["sender_id", "1"], ["sender_type", "User"]]
37462
+  (15.0ms) COMMIT
37463
+ BloomRemit::Txn Load (0.5ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 1], ["secret", "5ddfb805-e620-4e52-9ed4-027fa0276ee1"]]
37464
+  (0.3ms) BEGIN
37465
+ SQL (0.4ms) UPDATE "bloom_remit_txns" SET "status" = $1, "status_description" = $2, "vendor_external_id" = $3 WHERE "bloom_remit_txns"."id" = $4 [["status", 1], ["status_description", "My status description"], ["vendor_external_id", "vextid"], ["id", 1]]
37466
+  (15.2ms) COMMIT
37467
+  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
37468
+  (451.0ms) TRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE;
37469
+  (0.6ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
37470
+  (0.2ms) BEGIN
37471
+  (0.3ms) COMMIT
37472
+  (0.2ms) BEGIN
37473
+  (0.3ms) ROLLBACK
37474
+  (0.2ms) BEGIN
37475
+  (0.2ms) COMMIT
37476
+  (0.3ms) BEGIN
37477
+  (0.3ms) ROLLBACK
37478
+  (0.2ms) BEGIN
37479
+  (0.3ms) COMMIT
37480
+  (0.3ms) BEGIN
37481
+  (0.3ms) ROLLBACK
37482
+  (0.2ms) BEGIN
37483
+  (0.3ms) COMMIT
37484
+  (0.2ms) BEGIN
37485
+  (0.3ms) ROLLBACK
37486
+  (0.2ms) BEGIN
37487
+  (0.3ms) COMMIT
37488
+  (0.3ms) BEGIN
37489
+  (0.3ms) ROLLBACK
37490
+  (0.3ms) BEGIN
37491
+  (0.3ms) COMMIT
37492
+  (0.2ms) BEGIN
37493
+  (0.2ms) ROLLBACK
37494
+  (0.2ms) BEGIN
37495
+  (0.3ms) COMMIT
37496
+  (0.2ms) BEGIN
37497
+  (0.4ms) ROLLBACK
37498
+  (0.2ms) BEGIN
37499
+  (0.2ms) COMMIT
37500
+  (0.2ms) BEGIN
37501
+  (0.3ms) SAVEPOINT active_record_1
37502
+ SQL (0.6ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
37503
+  (0.2ms) RELEASE SAVEPOINT active_record_1
37504
+  (0.2ms) SAVEPOINT active_record_1
37505
+ SQL (0.8ms) INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "3abb7585-226f-4dbe-add2-c392581868fc"], ["external_id", "d7ef623c558ede10ea7e1110"], ["sender_id", "1"], ["sender_type", "User"]]
37506
+  (0.2ms) RELEASE SAVEPOINT active_record_1
37507
+ Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-10-05 07:40:33 +0000
37508
+ Processing by BloomRemit::Api::V1::TxnsController#post_update as JSON
37509
+ Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"1", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
37510
+ 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]]
37511
+ Rendered text template (0.0ms)
37512
+ Completed 404 Not Found in 49ms (Views: 47.5ms | ActiveRecord: 0.4ms)
37513
+ Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-10-05 07:40:33 +0000
37514
+ Processing by BloomRemit::Api::V1::TxnsController#post_update as JSON
37515
+ Parameters: {"secret"=>"3abb7585-226f-4dbe-add2-c392581868fc", "status"=>"paid", "id"=>"1", "txn"=>{"status"=>"paid", "secret"=>"3abb7585-226f-4dbe-add2-c392581868fc"}}
37516
+ BloomRemit::Txn Load (0.4ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 1], ["secret", "3abb7585-226f-4dbe-add2-c392581868fc"]]
37517
+  (0.2ms) SAVEPOINT active_record_1
37518
+ SQL (0.3ms) UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 1], ["id", 1]]
37519
+  (0.2ms) RELEASE SAVEPOINT active_record_1
37520
+ Completed 200 OK in 7ms (Views: 0.5ms | ActiveRecord: 1.1ms)
37521
+ BloomRemit::Txn Load (0.3ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1 [["id", 1]]
37522
+  (0.3ms) ROLLBACK
37523
+  (0.1ms) BEGIN
37524
+  (0.2ms) COMMIT
37525
+  (0.2ms) BEGIN
37526
+  (0.2ms) SAVEPOINT active_record_1
37527
+ SQL (0.3ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
37528
+  (0.2ms) RELEASE SAVEPOINT active_record_1
37529
+  (0.2ms) SAVEPOINT active_record_1
37530
+ SQL (0.3ms) INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "85f5c90f-637a-4d39-8aa6-e1a5281f72af"], ["external_id", "e3c75af669f165fe2c90841b"], ["sender_id", "2"], ["sender_type", "User"]]
37531
+  (0.2ms) RELEASE SAVEPOINT active_record_1
37532
+ Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-10-05 07:40:33 +0000
37533
+ Processing by BloomRemit::Api::V1::TxnsController#update as JSON
37534
+ Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"2", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
37535
+ 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]]
37536
+ Rendered text template (0.0ms)
37537
+ Completed 404 Not Found in 4ms (Views: 1.5ms | ActiveRecord: 0.3ms)
37538
+ Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-10-05 07:40:33 +0000
37539
+ Processing by BloomRemit::Api::V1::TxnsController#update as JSON
37540
+ Parameters: {"secret"=>"85f5c90f-637a-4d39-8aa6-e1a5281f72af", "status"=>"paid", "id"=>"2", "txn"=>{"status"=>"paid", "secret"=>"85f5c90f-637a-4d39-8aa6-e1a5281f72af"}}
37541
+ BloomRemit::Txn Load (0.4ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 2], ["secret", "85f5c90f-637a-4d39-8aa6-e1a5281f72af"]]
37542
+  (0.2ms) SAVEPOINT active_record_1
37543
+ SQL (0.4ms) UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 1], ["id", 2]]
37544
+  (0.2ms) RELEASE SAVEPOINT active_record_1
37545
+ Completed 204 No Content in 43ms (ActiveRecord: 1.3ms)
37546
+ BloomRemit::Txn Load (0.4ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1 [["id", 2]]
37547
+  (0.3ms) ROLLBACK
37548
+  (0.2ms) BEGIN
37549
+  (0.2ms) COMMIT
37550
+  (0.2ms) BEGIN
37551
+  (0.2ms) SAVEPOINT active_record_1
37552
+ SQL (0.3ms) INSERT INTO "users" ("type") VALUES ($1) RETURNING "id" [["type", "SubUser"]]
37553
+  (0.2ms) RELEASE SAVEPOINT active_record_1
37554
+  (0.2ms) SAVEPOINT active_record_1
37555
+ SQL (0.5ms) INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
37556
+  (0.2ms) RELEASE SAVEPOINT active_record_1
37557
+  (0.2ms) SAVEPOINT active_record_1
37558
+ SQL (0.5ms) INSERT INTO "payments" ("type") VALUES ($1) RETURNING "id" [["type", "SubPayment"]]
37559
+  (0.4ms) RELEASE SAVEPOINT active_record_1
37560
+  (0.2ms) SAVEPOINT active_record_1
37561
+ SQL (0.4ms) INSERT INTO "bloom_remit_txns" ("secret", "sender_type", "sender_id", "amount", "account_name", "account_id", "target_slug", "owner_id", "owner_type", "external_id", "recipient_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11) RETURNING "id" [["secret", "d2abbcdd-a024-4368-8d65-1be4d76fe7ad"], ["sender_type", "User"], ["sender_id", "3"], ["amount", "800.0"], ["account_name", "028109090"], ["account_id", "Hooli X"], ["target_slug", "PLDT"], ["owner_id", "1"], ["owner_type", "Payment"], ["external_id", "a0946df411b868e2fd9a599b"], ["recipient_id", "recipient-id"]]
37562
+  (0.3ms) RELEASE SAVEPOINT active_record_1
37563
+  (0.3ms) ROLLBACK
37564
+  (0.3ms) BEGIN
37565
+  (0.2ms) COMMIT
37566
+  (0.2ms) BEGIN
37567
+  (0.2ms) ROLLBACK
37568
+  (0.1ms) BEGIN
37569
+  (0.3ms) COMMIT
37570
+  (0.2ms) BEGIN
37571
+  (0.2ms) SAVEPOINT active_record_1
37572
+ SQL (0.4ms) INSERT INTO "payments" DEFAULT VALUES RETURNING "id"
37573
+  (0.2ms) RELEASE SAVEPOINT active_record_1
37574
+  (0.2ms) SAVEPOINT active_record_1
37575
+ SQL (0.4ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
37576
+  (0.2ms) RELEASE SAVEPOINT active_record_1
37577
+  (0.1ms) SAVEPOINT active_record_1
37578
+ SQL (0.3ms) INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "owner_id", "owner_type", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "d9ca8cbf-d6a6-4939-953e-8e8715abe122"], ["external_id", "95fe85d7003f503d6b24c370"], ["owner_id", "2"], ["owner_type", "Payment"], ["sender_id", "4"], ["sender_type", "User"]]
37579
+  (0.2ms) RELEASE SAVEPOINT active_record_1
37580
+  (0.2ms) SAVEPOINT active_record_1
37581
+ SQL (0.5ms) INSERT INTO "bloom_remit_responses" ("body", "txn_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["body", "{\"i\":\"am body\"}"], ["txn_id", 4], ["created_at", "2016-10-05 07:40:33.650695"], ["updated_at", "2016-10-05 07:40:33.650695"]]
37582
+  (0.2ms) RELEASE SAVEPOINT active_record_1
37583
+  (0.2ms) SELECT COUNT(*) FROM "bloom_remit_responses" WHERE "bloom_remit_responses"."txn_id" = $1 [["txn_id", 4]]
37584
+ 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]]
37585
+  (0.2ms) ROLLBACK
37586
+  (0.2ms) BEGIN
37587
+  (0.2ms) COMMIT
37588
+  (0.2ms) BEGIN
37589
+  (0.2ms) SAVEPOINT active_record_1
37590
+ SQL (0.4ms) INSERT INTO "payments" DEFAULT VALUES RETURNING "id"
37591
+  (0.2ms) RELEASE SAVEPOINT active_record_1
37592
+  (0.2ms) SAVEPOINT active_record_1
37593
+ SQL (0.5ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
37594
+  (0.2ms) RELEASE SAVEPOINT active_record_1
37595
+  (0.2ms) SAVEPOINT active_record_1
37596
+ SQL (0.4ms) INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "owner_id", "owner_type", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "1d509f01-0609-4f71-abb2-dc232476a4db"], ["external_id", "254effa44eb09d4f63295313"], ["owner_id", "3"], ["owner_type", "Payment"], ["sender_id", "5"], ["sender_type", "User"]]
37597
+  (0.2ms) RELEASE SAVEPOINT active_record_1
37598
+  (0.2ms) SAVEPOINT active_record_1
37599
+ SQL (0.3ms) UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 7], ["id", 5]]
37600
+  (0.2ms) RELEASE SAVEPOINT active_record_1
37601
+  (0.2ms) SAVEPOINT active_record_1
37602
+ SQL (0.4ms) INSERT INTO "bloom_remit_responses" ("body", "txn_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["body", "{\"status\":\"500\",\"error\":\"Internal Server Error\"}"], ["txn_id", 5], ["created_at", "2016-10-05 07:40:33.684094"], ["updated_at", "2016-10-05 07:40:33.684094"]]
37603
+  (0.2ms) RELEASE SAVEPOINT active_record_1
37604
+ BloomRemit::Txn Load (0.4ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1 [["id", 5]]
37605
+  (0.4ms) ROLLBACK
37606
+  (0.1ms) BEGIN
37607
+  (0.2ms) COMMIT
37608
+  (0.2ms) BEGIN
37609
+  (0.2ms) ROLLBACK
37610
+  (0.1ms) BEGIN
37611
+  (0.2ms) COMMIT
37612
+  (0.2ms) BEGIN
37613
+  (0.2ms) ROLLBACK
37614
+  (0.2ms) BEGIN
37615
+  (0.3ms) COMMIT
37616
+  (0.3ms) BEGIN
37617
+  (0.3ms) ROLLBACK
37618
+  (0.2ms) BEGIN
37619
+  (0.2ms) COMMIT
37620
+  (0.2ms) BEGIN
37621
+  (0.2ms) ROLLBACK
37622
+  (0.2ms) BEGIN
37623
+  (0.2ms) COMMIT
37624
+  (0.2ms) BEGIN
37625
+  (0.2ms) ROLLBACK