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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c2e985b3a393e137ce532e408804864505dcd25b
|
4
|
+
data.tar.gz: e30bc50d70ee95a5ad4b35d201192c7d5723e81d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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!(
|
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)
|
data/lib/bloom_remit/version.rb
CHANGED
@@ -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
|
|
data/spec/dummy/log/test.log
CHANGED
@@ -35641,3 +35641,1985 @@ Completed 204 No Content in 43ms (ActiveRecord: 1.2ms)
|
|
35641
35641
|
[1m[35m (0.2ms)[0m COMMIT
|
35642
35642
|
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
35643
35643
|
[1m[35m (0.2ms)[0m ROLLBACK
|
35644
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
35645
|
+
[1m[35m (0.5ms)[0m 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
|
+
[1m[36m (1.6ms)[0m [1m 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
|
+
[0m
|
35653
|
+
[1m[35m (1.3ms)[0m select table_name from information_schema.views where table_schema = 'app_test'
|
35654
|
+
[1m[36m (404.7ms)[0m [1mTRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE;[0m
|
35655
|
+
[1m[35m (0.7ms)[0m 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
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
35657
|
+
[1m[35m (0.4ms)[0m COMMIT
|
35658
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
35659
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
35660
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
35661
|
+
[1m[35m (0.3ms)[0m COMMIT
|
35662
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
35663
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
35664
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
35665
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
|
35666
|
+
[1m[36m (10.3ms)[0m [1mCOMMIT[0m
|
35667
|
+
[1m[35m (0.2ms)[0m BEGIN
|
35668
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("type") VALUES ($1) RETURNING "id"[0m [["type", "SubUser"]]
|
35669
|
+
[1m[35m (12.5ms)[0m COMMIT
|
35670
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
35671
|
+
[1m[35mSQL (1.1ms)[0m INSERT INTO "payments" ("type") VALUES ($1) RETURNING "id" [["type", "SubPayment"]]
|
35672
|
+
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
|
35673
|
+
[1m[35m (0.2ms)[0m BEGIN
|
35674
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT 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"[0m [["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
|
+
[1m[35m (11.8ms)[0m COMMIT
|
35676
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 1]]
|
35677
|
+
[1m[35mPayment Load (0.3ms)[0m SELECT "payments".* FROM "payments" WHERE "payments"."id" = $1 LIMIT 1 [["id", 1]]
|
35678
|
+
[1m[36m (0.2ms)[0m [1mALTER 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[0m
|
35679
|
+
[1m[35m (462.8ms)[0m TRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE;
|
35680
|
+
[1m[36m (0.3ms)[0m [1mALTER 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[0m
|
35681
|
+
[1m[35m (0.2ms)[0m BEGIN
|
35682
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
35683
|
+
[1m[35m (12.7ms)[0m COMMIT
|
35684
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
35685
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (12.1ms)[0m [1mCOMMIT[0m
|
35687
|
+
[1m[35mBloomRemit::Txn Load (0.4ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
35689
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (12.8ms)[0m [1mCOMMIT[0m
|
35691
|
+
[1m[35m (0.3ms)[0m 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
|
+
[1m[36m (366.9ms)[0m [1mTRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE;[0m
|
35693
|
+
[1m[35m (0.3ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
35695
|
+
[1m[35m (0.2ms)[0m COMMIT
|
35696
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
35697
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
35698
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
35699
|
+
[1m[35m (0.2ms)[0m COMMIT
|
35700
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
35701
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
35702
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
35703
|
+
[1m[35m (0.2ms)[0m COMMIT
|
35704
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
35705
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
35706
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
35707
|
+
[1m[35m (0.3ms)[0m COMMIT
|
35708
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
35709
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
35710
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
35711
|
+
[1m[35m (0.2ms)[0m COMMIT
|
35712
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
35713
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
35714
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
35715
|
+
[1m[35m (0.2ms)[0m COMMIT
|
35716
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
35717
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
35718
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
35719
|
+
[1m[35m (0.2ms)[0m COMMIT
|
35720
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
35721
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
35722
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
35723
|
+
[1m[35m (0.3ms)[0m COMMIT
|
35724
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
35725
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
35726
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
35727
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
35728
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
35729
|
+
[1m[35mSQL (0.6ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
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
|
+
[1m[35mBloomRemit::Txn Load (0.4ms)[0m 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
|
+
[1m[36mBloomRemit::Txn Load (0.4ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1[0m [["id", 1], ["secret", "3d56d91a-b5c5-45bc-8c94-883e9c24a29d"]]
|
35741
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
35742
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2[0m [["status", 1], ["id", 1]]
|
35743
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
35744
|
+
Completed 200 OK in 8ms (Views: 0.4ms | ActiveRecord: 1.2ms)
|
35745
|
+
[1m[36mBloomRemit::Txn Load (0.3ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1[0m [["id", 1]]
|
35746
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
35747
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
35748
|
+
[1m[35m (0.2ms)[0m COMMIT
|
35749
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
35750
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
35751
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
35752
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
35753
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
35754
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
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
|
+
[1m[35mBloomRemit::Txn Load (0.5ms)[0m 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
|
+
[1m[36mBloomRemit::Txn Load (0.4ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1[0m [["id", 2], ["secret", "cd4ca939-be25-4d67-8549-14c662de6249"]]
|
35766
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
35767
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2[0m [["status", 1], ["id", 2]]
|
35768
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
35769
|
+
Completed 204 No Content in 46ms (ActiveRecord: 1.2ms)
|
35770
|
+
[1m[36mBloomRemit::Txn Load (0.4ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1[0m [["id", 2]]
|
35771
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
35772
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
35773
|
+
[1m[35m (0.2ms)[0m COMMIT
|
35774
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
35775
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
35776
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("type") VALUES ($1) RETURNING "id"[0m [["type", "SubUser"]]
|
35777
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
35778
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
35779
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
|
35780
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
35781
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
35782
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "payments" ("type") VALUES ($1) RETURNING "id"[0m [["type", "SubPayment"]]
|
35783
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
35784
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
35785
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
35787
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
35788
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
35789
|
+
[1m[35m (0.2ms)[0m COMMIT
|
35790
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
35791
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
35792
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
35793
|
+
[1m[35m (0.2ms)[0m COMMIT
|
35794
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
35795
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
35796
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "payments" DEFAULT VALUES RETURNING "id"[0m
|
35797
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
35798
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
35799
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" DEFAULT VALUES RETURNING "id"
|
35800
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
35801
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
35802
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT 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"[0m [["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
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
35804
|
+
[1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m
|
35805
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
35807
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "bloom_remit_responses" WHERE "bloom_remit_responses"."txn_id" = $1 [["txn_id", 4]]
|
35808
|
+
[1m[36mBloomRemit::Response Load (0.4ms)[0m [1mSELECT "bloom_remit_responses".* FROM "bloom_remit_responses" WHERE "bloom_remit_responses"."txn_id" = $1 ORDER BY "bloom_remit_responses"."id" ASC LIMIT 1[0m [["txn_id", 4]]
|
35809
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
35810
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
35811
|
+
[1m[35m (0.2ms)[0m COMMIT
|
35812
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
35813
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
35814
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "payments" DEFAULT VALUES RETURNING "id"[0m
|
35815
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
35816
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
35817
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" DEFAULT VALUES RETURNING "id"
|
35818
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
35819
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
35820
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT 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"[0m [["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
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
35822
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
35823
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 7], ["id", 5]]
|
35824
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
35825
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
35826
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "bloom_remit_responses" ("body", "txn_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
35828
|
+
[1m[36mBloomRemit::Txn Load (0.3ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1[0m [["id", 5]]
|
35829
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
35830
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
35831
|
+
[1m[35m (0.2ms)[0m COMMIT
|
35832
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
35833
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
35834
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
35835
|
+
[1m[35m (0.2ms)[0m COMMIT
|
35836
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
35837
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
35838
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
35839
|
+
[1m[35m (0.2ms)[0m COMMIT
|
35840
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
35841
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
35842
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
35843
|
+
[1m[35m (0.2ms)[0m COMMIT
|
35844
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
35845
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
35846
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
35847
|
+
[1m[35m (0.2ms)[0m COMMIT
|
35848
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
35849
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
35850
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
35851
|
+
[1m[35m (0.7ms)[0m 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
|
+
[1m[36m (1.4ms)[0m [1m 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
|
+
[0m
|
35859
|
+
[1m[35m (2.3ms)[0m select table_name from information_schema.views where table_schema = 'app_test'
|
35860
|
+
[1m[36m (390.4ms)[0m [1mTRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE;[0m
|
35861
|
+
[1m[35m (0.5ms)[0m 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
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
35863
|
+
[1m[35m (0.8ms)[0m COMMIT
|
35864
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
35865
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
35866
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
35867
|
+
[1m[35m (0.4ms)[0m COMMIT
|
35868
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
35869
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
35870
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
35871
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
|
35872
|
+
[1m[36m (12.0ms)[0m [1mCOMMIT[0m
|
35873
|
+
[1m[35m (0.3ms)[0m BEGIN
|
35874
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "users" ("type") VALUES ($1) RETURNING "id"[0m [["type", "SubUser"]]
|
35875
|
+
[1m[35m (13.5ms)[0m COMMIT
|
35876
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
35877
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "payments" ("type") VALUES ($1) RETURNING "id" [["type", "SubPayment"]]
|
35878
|
+
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
|
35879
|
+
[1m[35m (0.3ms)[0m BEGIN
|
35880
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT 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"[0m [["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
|
+
[1m[35m (12.3ms)[0m COMMIT
|
35882
|
+
[1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 1]]
|
35883
|
+
[1m[35mPayment Load (0.4ms)[0m SELECT "payments".* FROM "payments" WHERE "payments"."id" = $1 LIMIT 1 [["id", 1]]
|
35884
|
+
[1m[36m (0.4ms)[0m [1mALTER 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[0m
|
35885
|
+
[1m[35m (439.4ms)[0m TRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE;
|
35886
|
+
[1m[36m (0.5ms)[0m [1mALTER 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[0m
|
35887
|
+
[1m[35m (0.4ms)[0m BEGIN
|
35888
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
35889
|
+
[1m[35m (14.4ms)[0m COMMIT
|
35890
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
35891
|
+
[1m[35mSQL (0.8ms)[0m 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
|
+
[1m[36m (13.0ms)[0m [1mCOMMIT[0m
|
35893
|
+
[1m[35mBloomRemit::Txn Load (0.5ms)[0m 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
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
35895
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (13.2ms)[0m [1mCOMMIT[0m
|
35897
|
+
[1m[35m (0.4ms)[0m 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
|
+
[1m[36m (385.2ms)[0m [1mTRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE;[0m
|
35899
|
+
[1m[35m (0.5ms)[0m 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
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
35901
|
+
[1m[35m (0.4ms)[0m COMMIT
|
35902
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
35903
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
35904
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
35905
|
+
[1m[35m (0.3ms)[0m COMMIT
|
35906
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
35907
|
+
[1m[35m (0.5ms)[0m ROLLBACK
|
35908
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
35909
|
+
[1m[35m (0.5ms)[0m COMMIT
|
35910
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
35911
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
35912
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
35913
|
+
[1m[35m (0.4ms)[0m COMMIT
|
35914
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
35915
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
35916
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
35917
|
+
[1m[35m (0.4ms)[0m COMMIT
|
35918
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
35919
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
35920
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
35921
|
+
[1m[35m (0.3ms)[0m COMMIT
|
35922
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
35923
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
35924
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
35925
|
+
[1m[35m (0.3ms)[0m COMMIT
|
35926
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
35927
|
+
[1m[35m (0.5ms)[0m ROLLBACK
|
35928
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
35929
|
+
[1m[35m (0.3ms)[0m COMMIT
|
35930
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
35931
|
+
[1m[35m (0.4ms)[0m SAVEPOINT active_record_1
|
35932
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
35933
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
35934
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
35935
|
+
[1m[35mSQL (0.8ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
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
|
+
[1m[35mBloomRemit::Txn Load (0.5ms)[0m 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
|
+
[1m[36mBloomRemit::Txn Load (0.5ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1[0m [["id", 1], ["secret", "f925a204-dcc4-4b6a-bc03-ee340d655618"]]
|
35947
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
35948
|
+
[1m[36mSQL (0.5ms)[0m [1mUPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2[0m [["status", 1], ["id", 1]]
|
35949
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
35950
|
+
Completed 200 OK in 8ms (Views: 0.4ms | ActiveRecord: 1.6ms)
|
35951
|
+
[1m[36mBloomRemit::Txn Load (0.4ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1[0m [["id", 1]]
|
35952
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
35953
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
35954
|
+
[1m[35m (0.5ms)[0m COMMIT
|
35955
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
35956
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
35957
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
35958
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
35959
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
35960
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
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
|
+
[1m[35mBloomRemit::Txn Load (0.5ms)[0m 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
|
+
[1m[36mBloomRemit::Txn Load (0.6ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1[0m [["id", 2], ["secret", "49c744b6-5fb5-4722-9f6c-cf2a3d517689"]]
|
35972
|
+
[1m[35m (0.4ms)[0m SAVEPOINT active_record_1
|
35973
|
+
[1m[36mSQL (0.5ms)[0m [1mUPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2[0m [["status", 1], ["id", 2]]
|
35974
|
+
[1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1
|
35975
|
+
Completed 204 No Content in 48ms (ActiveRecord: 1.9ms)
|
35976
|
+
[1m[36mBloomRemit::Txn Load (0.9ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1[0m [["id", 2]]
|
35977
|
+
[1m[35m (0.5ms)[0m ROLLBACK
|
35978
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
35979
|
+
[1m[35m (0.5ms)[0m COMMIT
|
35980
|
+
[1m[36m (0.7ms)[0m [1mBEGIN[0m
|
35981
|
+
[1m[35m (0.4ms)[0m SAVEPOINT active_record_1
|
35982
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("type") VALUES ($1) RETURNING "id"[0m [["type", "SubUser"]]
|
35983
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
35984
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
35985
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
|
35986
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
35987
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
35988
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "payments" ("type") VALUES ($1) RETURNING "id"[0m [["type", "SubPayment"]]
|
35989
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
35990
|
+
[1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
|
35991
|
+
[1m[35mSQL (0.9ms)[0m 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
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
35993
|
+
[1m[35m (1.6ms)[0m ROLLBACK
|
35994
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
35995
|
+
[1m[35m (0.4ms)[0m COMMIT
|
35996
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
35997
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
35998
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
35999
|
+
[1m[35m (0.3ms)[0m COMMIT
|
36000
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
36001
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
36002
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "payments" DEFAULT VALUES RETURNING "id"[0m
|
36003
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
36004
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
36005
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" DEFAULT VALUES RETURNING "id"
|
36006
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
36007
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
36008
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT 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"[0m [["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
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
36010
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
36011
|
+
[1m[35mSQL (0.6ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
36013
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "bloom_remit_responses" WHERE "bloom_remit_responses"."txn_id" = $1 [["txn_id", 4]]
|
36014
|
+
[1m[36mBloomRemit::Response Load (0.4ms)[0m [1mSELECT "bloom_remit_responses".* FROM "bloom_remit_responses" WHERE "bloom_remit_responses"."txn_id" = $1 ORDER BY "bloom_remit_responses"."id" ASC LIMIT 1[0m [["txn_id", 4]]
|
36015
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
36016
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
36017
|
+
[1m[35m (0.4ms)[0m COMMIT
|
36018
|
+
[1m[36m (0.9ms)[0m [1mBEGIN[0m
|
36019
|
+
[1m[35m (0.4ms)[0m SAVEPOINT active_record_1
|
36020
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "payments" DEFAULT VALUES RETURNING "id"[0m
|
36021
|
+
[1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1
|
36022
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
36023
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" DEFAULT VALUES RETURNING "id"
|
36024
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
36025
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
36026
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT 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"[0m [["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
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
36028
|
+
[1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m
|
36029
|
+
[1m[35mSQL (0.6ms)[0m UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 7], ["id", 5]]
|
36030
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
36031
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
36032
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "bloom_remit_responses" ("body", "txn_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
36034
|
+
[1m[36mBloomRemit::Txn Load (0.5ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1[0m [["id", 5]]
|
36035
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
36036
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
36037
|
+
[1m[35m (0.6ms)[0m COMMIT
|
36038
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
36039
|
+
[1m[35m (0.5ms)[0m ROLLBACK
|
36040
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
36041
|
+
[1m[35m (0.5ms)[0m COMMIT
|
36042
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
36043
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
36044
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
36045
|
+
[1m[35m (0.5ms)[0m COMMIT
|
36046
|
+
[1m[36m (0.8ms)[0m [1mBEGIN[0m
|
36047
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
36048
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
36049
|
+
[1m[35m (0.4ms)[0m COMMIT
|
36050
|
+
[1m[36m (0.6ms)[0m [1mBEGIN[0m
|
36051
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
36052
|
+
[1m[36m (1.1ms)[0m [1mBEGIN[0m
|
36053
|
+
[1m[35m (0.3ms)[0m COMMIT
|
36054
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
36055
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
36056
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
36057
|
+
[1m[35m (0.6ms)[0m 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
|
+
[1m[36m (1.6ms)[0m [1m 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
|
+
[0m
|
36065
|
+
[1m[35m (1.2ms)[0m select table_name from information_schema.views where table_schema = 'app_test'
|
36066
|
+
[1m[36m (440.8ms)[0m [1mTRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE;[0m
|
36067
|
+
[1m[35m (0.6ms)[0m 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
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
36069
|
+
[1m[35m (0.3ms)[0m COMMIT
|
36070
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
36071
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
36072
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
36073
|
+
[1m[35m (0.2ms)[0m COMMIT
|
36074
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
36075
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
36076
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
36077
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
|
36078
|
+
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
|
36079
|
+
[1m[35m (0.3ms)[0m BEGIN
|
36080
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("type") VALUES ($1) RETURNING "id"[0m [["type", "SubUser"]]
|
36081
|
+
[1m[35m (15.7ms)[0m COMMIT
|
36082
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
36083
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "payments" ("type") VALUES ($1) RETURNING "id" [["type", "SubPayment"]]
|
36084
|
+
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
|
36085
|
+
[1m[35m (0.3ms)[0m BEGIN
|
36086
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT 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"[0m [["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
|
+
[1m[35m (14.2ms)[0m COMMIT
|
36088
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 1]]
|
36089
|
+
[1m[35mPayment Load (0.2ms)[0m SELECT "payments".* FROM "payments" WHERE "payments"."id" = $1 LIMIT 1 [["id", 1]]
|
36090
|
+
[1m[36m (0.3ms)[0m [1mALTER 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[0m
|
36091
|
+
[1m[35m (433.1ms)[0m TRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE;
|
36092
|
+
[1m[36m (0.5ms)[0m [1mALTER 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[0m
|
36093
|
+
[1m[35m (0.4ms)[0m BEGIN
|
36094
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
36095
|
+
[1m[35m (11.4ms)[0m COMMIT
|
36096
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
36097
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
|
36099
|
+
[1m[35mBloomRemit::Txn Load (0.3ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
36101
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (12.3ms)[0m [1mCOMMIT[0m
|
36103
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36m (423.3ms)[0m [1mTRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE;[0m
|
36105
|
+
[1m[35m (0.3ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
36107
|
+
[1m[35m (0.4ms)[0m COMMIT
|
36108
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
36109
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
36110
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
36111
|
+
[1m[35m (0.2ms)[0m COMMIT
|
36112
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
36113
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
36114
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
36115
|
+
[1m[35m (0.4ms)[0m COMMIT
|
36116
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
36117
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
36118
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
36119
|
+
[1m[35m (0.3ms)[0m COMMIT
|
36120
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
36121
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
36122
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
36123
|
+
[1m[35m (0.4ms)[0m COMMIT
|
36124
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
36125
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
36126
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
36127
|
+
[1m[35m (0.1ms)[0m COMMIT
|
36128
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
36129
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
36130
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
36131
|
+
[1m[35m (0.2ms)[0m COMMIT
|
36132
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
36133
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
36134
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
36135
|
+
[1m[35m (0.3ms)[0m COMMIT
|
36136
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
36137
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
36138
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
36139
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
36140
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
36141
|
+
[1m[35mSQL (0.6ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
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
|
+
[1m[35mBloomRemit::Txn Load (0.4ms)[0m 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
|
+
[1m[36mBloomRemit::Txn Load (0.4ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1[0m [["id", 1], ["secret", "1e9491a3-7a02-4587-ac14-4620ebf5d767"]]
|
36153
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
36154
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2[0m [["status", 1], ["id", 1]]
|
36155
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
36156
|
+
Completed 200 OK in 8ms (Views: 0.5ms | ActiveRecord: 1.1ms)
|
36157
|
+
[1m[36mBloomRemit::Txn Load (0.3ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1[0m [["id", 1]]
|
36158
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
36159
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
36160
|
+
[1m[35m (0.3ms)[0m COMMIT
|
36161
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
36162
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
36163
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
36164
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
36165
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
36166
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
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
|
+
[1m[35mBloomRemit::Txn Load (0.3ms)[0m 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
|
+
[1m[36mBloomRemit::Txn Load (0.3ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1[0m [["id", 2], ["secret", "cda186ec-cfc6-46ff-bc26-2d72c5629223"]]
|
36178
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
36179
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2[0m [["status", 1], ["id", 2]]
|
36180
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
36181
|
+
Completed 204 No Content in 42ms (ActiveRecord: 1.2ms)
|
36182
|
+
[1m[36mBloomRemit::Txn Load (0.4ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1[0m [["id", 2]]
|
36183
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
36184
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
36185
|
+
[1m[35m (0.4ms)[0m COMMIT
|
36186
|
+
[1m[36m (0.6ms)[0m [1mBEGIN[0m
|
36187
|
+
[1m[35m (0.4ms)[0m SAVEPOINT active_record_1
|
36188
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("type") VALUES ($1) RETURNING "id"[0m [["type", "SubUser"]]
|
36189
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
36190
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
36191
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
|
36192
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
36193
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
36194
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "payments" ("type") VALUES ($1) RETURNING "id"[0m [["type", "SubPayment"]]
|
36195
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
36196
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
36197
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
36199
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
36200
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
36201
|
+
[1m[35m (0.3ms)[0m COMMIT
|
36202
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
36203
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
36204
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
36205
|
+
[1m[35m (0.2ms)[0m COMMIT
|
36206
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
36207
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
36208
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "payments" DEFAULT VALUES RETURNING "id"[0m
|
36209
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
36210
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
36211
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" DEFAULT VALUES RETURNING "id"
|
36212
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
36213
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
36214
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT 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"[0m [["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
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
36216
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
36217
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
36219
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "bloom_remit_responses" WHERE "bloom_remit_responses"."txn_id" = $1 [["txn_id", 4]]
|
36220
|
+
[1m[36mBloomRemit::Response Load (0.3ms)[0m [1mSELECT "bloom_remit_responses".* FROM "bloom_remit_responses" WHERE "bloom_remit_responses"."txn_id" = $1 ORDER BY "bloom_remit_responses"."id" ASC LIMIT 1[0m [["txn_id", 4]]
|
36221
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
36222
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
36223
|
+
[1m[35m (0.3ms)[0m COMMIT
|
36224
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
36225
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
36226
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "payments" DEFAULT VALUES RETURNING "id"[0m
|
36227
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
36228
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
36229
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" DEFAULT VALUES RETURNING "id"
|
36230
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
36231
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
36232
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT 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"[0m [["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
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
36234
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
36235
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 7], ["id", 5]]
|
36236
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
36237
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
36238
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "bloom_remit_responses" ("body", "txn_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
36240
|
+
[1m[36mBloomRemit::Txn Load (0.4ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1[0m [["id", 5]]
|
36241
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
36242
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
36243
|
+
[1m[35m (0.3ms)[0m COMMIT
|
36244
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
36245
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
36246
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
36247
|
+
[1m[35m (0.2ms)[0m COMMIT
|
36248
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
36249
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
36250
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
36251
|
+
[1m[35m (0.2ms)[0m COMMIT
|
36252
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
36253
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
36254
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
36255
|
+
[1m[35m (0.2ms)[0m COMMIT
|
36256
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
36257
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
36258
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
36259
|
+
[1m[35m (0.3ms)[0m COMMIT
|
36260
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
36261
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
36262
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
36263
|
+
[1m[35m (0.4ms)[0m 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
|
+
[1m[36m (1.2ms)[0m [1m 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
|
+
[0m
|
36271
|
+
[1m[35m (1.0ms)[0m select table_name from information_schema.views where table_schema = 'app_test'
|
36272
|
+
[1m[36m (417.9ms)[0m [1mTRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE;[0m
|
36273
|
+
[1m[35m (0.6ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
36275
|
+
[1m[35m (0.2ms)[0m COMMIT
|
36276
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
36277
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
36278
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
36279
|
+
[1m[35m (0.2ms)[0m COMMIT
|
36280
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
36281
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
36282
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
36283
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
|
36284
|
+
[1m[36m (13.1ms)[0m [1mCOMMIT[0m
|
36285
|
+
[1m[35m (0.2ms)[0m BEGIN
|
36286
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("type") VALUES ($1) RETURNING "id"[0m [["type", "SubUser"]]
|
36287
|
+
[1m[35m (11.5ms)[0m COMMIT
|
36288
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
36289
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "payments" ("type") VALUES ($1) RETURNING "id" [["type", "SubPayment"]]
|
36290
|
+
[1m[36m (9.8ms)[0m [1mCOMMIT[0m
|
36291
|
+
[1m[35m (0.2ms)[0m BEGIN
|
36292
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT 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"[0m [["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
|
+
[1m[35m (10.9ms)[0m COMMIT
|
36294
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 1]]
|
36295
|
+
[1m[35mPayment Load (0.3ms)[0m SELECT "payments".* FROM "payments" WHERE "payments"."id" = $1 LIMIT 1 [["id", 1]]
|
36296
|
+
[1m[36m (0.2ms)[0m [1mALTER 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[0m
|
36297
|
+
[1m[35m (376.4ms)[0m TRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE;
|
36298
|
+
[1m[36m (0.3ms)[0m [1mALTER 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[0m
|
36299
|
+
[1m[35m (0.2ms)[0m BEGIN
|
36300
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
36301
|
+
[1m[35m (8.4ms)[0m COMMIT
|
36302
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
36303
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (13.2ms)[0m [1mCOMMIT[0m
|
36305
|
+
[1m[35mBloomRemit::Txn Load (0.3ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
36307
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (11.5ms)[0m [1mCOMMIT[0m
|
36309
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36m (424.0ms)[0m [1mTRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE;[0m
|
36311
|
+
[1m[35m (0.3ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
36313
|
+
[1m[35m (0.3ms)[0m COMMIT
|
36314
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
36315
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
36316
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
36317
|
+
[1m[35m (0.2ms)[0m COMMIT
|
36318
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
36319
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
36320
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
36321
|
+
[1m[35m (0.3ms)[0m COMMIT
|
36322
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
36323
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
36324
|
+
[1m[36m (0.6ms)[0m [1mBEGIN[0m
|
36325
|
+
[1m[35m (0.3ms)[0m COMMIT
|
36326
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
36327
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
36328
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
36329
|
+
[1m[35m (0.2ms)[0m COMMIT
|
36330
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
36331
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
36332
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
36333
|
+
[1m[35m (0.2ms)[0m COMMIT
|
36334
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
36335
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
36336
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
36337
|
+
[1m[35m (0.2ms)[0m COMMIT
|
36338
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
36339
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
36340
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
36341
|
+
[1m[35m (0.3ms)[0m COMMIT
|
36342
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
36343
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
36344
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
36345
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
36346
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
36347
|
+
[1m[35mSQL (0.6ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
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
|
+
[1m[35mBloomRemit::Txn Load (0.4ms)[0m 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
|
+
[1m[36mBloomRemit::Txn Load (0.4ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1[0m [["id", 1], ["secret", "e927b3ee-c48f-478a-96fc-cf9db28dec16"]]
|
36359
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
36360
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2[0m [["status", 1], ["id", 1]]
|
36361
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
36362
|
+
Completed 200 OK in 7ms (Views: 0.4ms | ActiveRecord: 1.1ms)
|
36363
|
+
[1m[36mBloomRemit::Txn Load (0.2ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1[0m [["id", 1]]
|
36364
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
36365
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
36366
|
+
[1m[35m (0.3ms)[0m COMMIT
|
36367
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
36368
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
36369
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
36370
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
36371
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
36372
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
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
|
+
[1m[35mBloomRemit::Txn Load (0.4ms)[0m 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
|
+
[1m[36mBloomRemit::Txn Load (0.4ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1[0m [["id", 2], ["secret", "bdfdd8a9-b1cd-4cb5-ab5f-bf22c5ea3ef5"]]
|
36384
|
+
[1m[35m (0.6ms)[0m SAVEPOINT active_record_1
|
36385
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2[0m [["status", 1], ["id", 2]]
|
36386
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
36387
|
+
Completed 204 No Content in 46ms (ActiveRecord: 1.6ms)
|
36388
|
+
[1m[36mBloomRemit::Txn Load (0.4ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1[0m [["id", 2]]
|
36389
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
36390
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
36391
|
+
[1m[35m (0.3ms)[0m COMMIT
|
36392
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
36393
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
36394
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("type") VALUES ($1) RETURNING "id"[0m [["type", "SubUser"]]
|
36395
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
36396
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
36397
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
|
36398
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
36399
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
36400
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "payments" ("type") VALUES ($1) RETURNING "id"[0m [["type", "SubPayment"]]
|
36401
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
36402
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
36403
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
36405
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
36406
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
36407
|
+
[1m[35m (0.2ms)[0m COMMIT
|
36408
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
36409
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
36410
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
36411
|
+
[1m[35m (0.2ms)[0m COMMIT
|
36412
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
36413
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
36414
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "payments" DEFAULT VALUES RETURNING "id"[0m
|
36415
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
36416
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
36417
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" DEFAULT VALUES RETURNING "id"
|
36418
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
36419
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
36420
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT 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"[0m [["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
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
36422
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
36423
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
36425
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "bloom_remit_responses" WHERE "bloom_remit_responses"."txn_id" = $1 [["txn_id", 4]]
|
36426
|
+
[1m[36mBloomRemit::Response Load (0.3ms)[0m [1mSELECT "bloom_remit_responses".* FROM "bloom_remit_responses" WHERE "bloom_remit_responses"."txn_id" = $1 ORDER BY "bloom_remit_responses"."id" ASC LIMIT 1[0m [["txn_id", 4]]
|
36427
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
36428
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
36429
|
+
[1m[35m (0.3ms)[0m COMMIT
|
36430
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
36431
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
36432
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "payments" DEFAULT VALUES RETURNING "id"[0m
|
36433
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
36434
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
36435
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" DEFAULT VALUES RETURNING "id"
|
36436
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
36437
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
36438
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT 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"[0m [["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
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
36440
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
36441
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 7], ["id", 5]]
|
36442
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
36443
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
36444
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "bloom_remit_responses" ("body", "txn_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
36446
|
+
[1m[36mBloomRemit::Txn Load (0.4ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1[0m [["id", 5]]
|
36447
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
36448
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
36449
|
+
[1m[35m (0.3ms)[0m COMMIT
|
36450
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
36451
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
36452
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
36453
|
+
[1m[35m (0.2ms)[0m COMMIT
|
36454
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
36455
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
36456
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
36457
|
+
[1m[35m (0.2ms)[0m COMMIT
|
36458
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
36459
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
36460
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
36461
|
+
[1m[35m (0.1ms)[0m COMMIT
|
36462
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
36463
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
36464
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
36465
|
+
[1m[35m (0.2ms)[0m COMMIT
|
36466
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
36467
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
36468
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
36469
|
+
[1m[35m (0.4ms)[0m 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
|
+
[1m[36m (1.3ms)[0m [1m 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
|
+
[0m
|
36477
|
+
[1m[35m (1.1ms)[0m select table_name from information_schema.views where table_schema = 'app_test'
|
36478
|
+
[1m[36m (462.0ms)[0m [1mTRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE;[0m
|
36479
|
+
[1m[35m (0.5ms)[0m 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
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
36481
|
+
[1m[35m (0.4ms)[0m COMMIT
|
36482
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
36483
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
36484
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
36485
|
+
[1m[35m (0.3ms)[0m COMMIT
|
36486
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
36487
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
36488
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
36489
|
+
[1m[35mSQL (1.9ms)[0m INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
|
36490
|
+
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
|
36491
|
+
[1m[35m (0.3ms)[0m BEGIN
|
36492
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("type") VALUES ($1) RETURNING "id"[0m [["type", "SubUser"]]
|
36493
|
+
[1m[35m (11.3ms)[0m COMMIT
|
36494
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
36495
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "payments" ("type") VALUES ($1) RETURNING "id" [["type", "SubPayment"]]
|
36496
|
+
[1m[36m (15.3ms)[0m [1mCOMMIT[0m
|
36497
|
+
[1m[35m (0.3ms)[0m BEGIN
|
36498
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT 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"[0m [["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
|
+
[1m[35m (11.9ms)[0m COMMIT
|
36500
|
+
[1m[36mUser Load (0.6ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 1]]
|
36501
|
+
[1m[35mPayment Load (0.5ms)[0m SELECT "payments".* FROM "payments" WHERE "payments"."id" = $1 LIMIT 1 [["id", 1]]
|
36502
|
+
[1m[36m (0.5ms)[0m [1mALTER 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[0m
|
36503
|
+
[1m[35m (437.4ms)[0m TRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE;
|
36504
|
+
[1m[36m (0.5ms)[0m [1mALTER 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[0m
|
36505
|
+
[1m[35m (0.3ms)[0m BEGIN
|
36506
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
36507
|
+
[1m[35m (14.9ms)[0m COMMIT
|
36508
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
36509
|
+
[1m[35mSQL (0.6ms)[0m 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
|
+
[1m[36m (12.6ms)[0m [1mCOMMIT[0m
|
36511
|
+
[1m[35mBloomRemit::Txn Load (0.5ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
36513
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (11.9ms)[0m [1mCOMMIT[0m
|
36515
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36m (430.6ms)[0m [1mTRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE;[0m
|
36517
|
+
[1m[35m (0.3ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
36519
|
+
[1m[35m (0.2ms)[0m COMMIT
|
36520
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
36521
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
36522
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
36523
|
+
[1m[35m (0.2ms)[0m COMMIT
|
36524
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
36525
|
+
[1m[35m (0.5ms)[0m ROLLBACK
|
36526
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
36527
|
+
[1m[35m (0.2ms)[0m COMMIT
|
36528
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
36529
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
36530
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
36531
|
+
[1m[35m (0.4ms)[0m COMMIT
|
36532
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
36533
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
36534
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
36535
|
+
[1m[35m (0.3ms)[0m COMMIT
|
36536
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
36537
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
36538
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
36539
|
+
[1m[35m (0.2ms)[0m COMMIT
|
36540
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
36541
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
36542
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
36543
|
+
[1m[35m (0.2ms)[0m COMMIT
|
36544
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
36545
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
36546
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
36547
|
+
[1m[35m (0.2ms)[0m COMMIT
|
36548
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
36549
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
36550
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
36551
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
36552
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
36553
|
+
[1m[35mSQL (0.8ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
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
|
+
[1m[35mBloomRemit::Txn Load (0.5ms)[0m 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
|
+
[1m[36mBloomRemit::Txn Load (0.4ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1[0m [["id", 1], ["secret", "2ec64dde-e293-43fa-9810-48d8a1da765f"]]
|
36565
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
36566
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2[0m [["status", 1], ["id", 1]]
|
36567
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
36568
|
+
Completed 200 OK in 8ms (Views: 0.5ms | ActiveRecord: 1.1ms)
|
36569
|
+
[1m[36mBloomRemit::Txn Load (0.3ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1[0m [["id", 1]]
|
36570
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
36571
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
36572
|
+
[1m[35m (0.2ms)[0m COMMIT
|
36573
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
36574
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
36575
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
36576
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
36577
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
36578
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
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
|
+
[1m[35mBloomRemit::Txn Load (0.3ms)[0m 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
|
+
[1m[36mBloomRemit::Txn Load (0.4ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1[0m [["id", 2], ["secret", "5cbb6c6b-a13f-4375-906b-90eb1fe24680"]]
|
36590
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
36591
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2[0m [["status", 1], ["id", 2]]
|
36592
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
36593
|
+
Completed 204 No Content in 47ms (ActiveRecord: 1.2ms)
|
36594
|
+
[1m[36mBloomRemit::Txn Load (0.4ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1[0m [["id", 2]]
|
36595
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
36596
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
36597
|
+
[1m[35m (0.2ms)[0m COMMIT
|
36598
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
36599
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
36600
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("type") VALUES ($1) RETURNING "id"[0m [["type", "SubUser"]]
|
36601
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
36602
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
36603
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
|
36604
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
36605
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
36606
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "payments" ("type") VALUES ($1) RETURNING "id"[0m [["type", "SubPayment"]]
|
36607
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
36608
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
36609
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
36611
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
36612
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
36613
|
+
[1m[35m (0.2ms)[0m COMMIT
|
36614
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
36615
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
36616
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
36617
|
+
[1m[35m (0.2ms)[0m COMMIT
|
36618
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
36619
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
36620
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "payments" DEFAULT VALUES RETURNING "id"[0m
|
36621
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
36622
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
36623
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" DEFAULT VALUES RETURNING "id"
|
36624
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
36625
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
36626
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT 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"[0m [["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
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
36628
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
36629
|
+
[1m[35mSQL (0.7ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
36631
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "bloom_remit_responses" WHERE "bloom_remit_responses"."txn_id" = $1 [["txn_id", 4]]
|
36632
|
+
[1m[36mBloomRemit::Response Load (0.4ms)[0m [1mSELECT "bloom_remit_responses".* FROM "bloom_remit_responses" WHERE "bloom_remit_responses"."txn_id" = $1 ORDER BY "bloom_remit_responses"."id" ASC LIMIT 1[0m [["txn_id", 4]]
|
36633
|
+
[1m[35m (0.5ms)[0m ROLLBACK
|
36634
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
36635
|
+
[1m[35m (0.2ms)[0m COMMIT
|
36636
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
36637
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
36638
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "payments" DEFAULT VALUES RETURNING "id"[0m
|
36639
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
36640
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
36641
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" DEFAULT VALUES RETURNING "id"
|
36642
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
36643
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
36644
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT 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"[0m [["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
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
36646
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
36647
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 7], ["id", 5]]
|
36648
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
36649
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
36650
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "bloom_remit_responses" ("body", "txn_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
36652
|
+
[1m[36mBloomRemit::Txn Load (0.3ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1[0m [["id", 5]]
|
36653
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
36654
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
36655
|
+
[1m[35m (0.2ms)[0m COMMIT
|
36656
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
36657
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
36658
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
36659
|
+
[1m[35m (0.3ms)[0m COMMIT
|
36660
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
36661
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
36662
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
36663
|
+
[1m[35m (0.2ms)[0m COMMIT
|
36664
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
36665
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
36666
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
36667
|
+
[1m[35m (0.2ms)[0m COMMIT
|
36668
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
36669
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
36670
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
36671
|
+
[1m[35m (0.2ms)[0m COMMIT
|
36672
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
36673
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
36674
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
36675
|
+
[1m[35m (0.5ms)[0m 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
|
+
[1m[36m (1.3ms)[0m [1m 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
|
+
[0m
|
36683
|
+
[1m[35m (1.1ms)[0m select table_name from information_schema.views where table_schema = 'app_test'
|
36684
|
+
[1m[36m (461.7ms)[0m [1mTRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE;[0m
|
36685
|
+
[1m[35m (0.8ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
36687
|
+
[1m[35m (0.3ms)[0m COMMIT
|
36688
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
36689
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
36690
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
36691
|
+
[1m[35m (0.3ms)[0m COMMIT
|
36692
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
36693
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
36694
|
+
[1m[36m (0.7ms)[0m [1mBEGIN[0m
|
36695
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
|
36696
|
+
[1m[36m (12.7ms)[0m [1mCOMMIT[0m
|
36697
|
+
[1m[35m (0.3ms)[0m BEGIN
|
36698
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("type") VALUES ($1) RETURNING "id"[0m [["type", "SubUser"]]
|
36699
|
+
[1m[35m (12.4ms)[0m COMMIT
|
36700
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
36701
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "payments" ("type") VALUES ($1) RETURNING "id" [["type", "SubPayment"]]
|
36702
|
+
[1m[36m (15.8ms)[0m [1mCOMMIT[0m
|
36703
|
+
[1m[35m (0.3ms)[0m BEGIN
|
36704
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT 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"[0m [["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
|
+
[1m[35m (15.5ms)[0m COMMIT
|
36706
|
+
[1m[36mUser Load (0.5ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 1]]
|
36707
|
+
[1m[35mPayment Load (0.4ms)[0m SELECT "payments".* FROM "payments" WHERE "payments"."id" = $1 LIMIT 1 [["id", 1]]
|
36708
|
+
[1m[36m (0.4ms)[0m [1mALTER 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[0m
|
36709
|
+
[1m[35m (374.5ms)[0m TRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE;
|
36710
|
+
[1m[36m (0.5ms)[0m [1mALTER 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[0m
|
36711
|
+
[1m[35m (0.4ms)[0m BEGIN
|
36712
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
36713
|
+
[1m[35m (15.3ms)[0m COMMIT
|
36714
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
36715
|
+
[1m[35mSQL (0.6ms)[0m 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
|
+
[1m[36m (12.9ms)[0m [1mCOMMIT[0m
|
36717
|
+
[1m[35mBloomRemit::Txn Load (0.4ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
36719
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
|
36721
|
+
[1m[35m (0.5ms)[0m 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
|
+
[1m[36m (437.4ms)[0m [1mTRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE;[0m
|
36723
|
+
[1m[35m (0.5ms)[0m 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
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
36725
|
+
[1m[35m (0.4ms)[0m COMMIT
|
36726
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
36727
|
+
[1m[35m (0.5ms)[0m ROLLBACK
|
36728
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
36729
|
+
[1m[35m (0.3ms)[0m COMMIT
|
36730
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
36731
|
+
[1m[35m (0.8ms)[0m ROLLBACK
|
36732
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
36733
|
+
[1m[35m (0.3ms)[0m COMMIT
|
36734
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
36735
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
36736
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
36737
|
+
[1m[35m (0.4ms)[0m COMMIT
|
36738
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
36739
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
36740
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
36741
|
+
[1m[35m (0.3ms)[0m COMMIT
|
36742
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
36743
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
36744
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
36745
|
+
[1m[35m (0.2ms)[0m COMMIT
|
36746
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
36747
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
36748
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
36749
|
+
[1m[35m (0.2ms)[0m COMMIT
|
36750
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
36751
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
36752
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
36753
|
+
[1m[35m (0.4ms)[0m COMMIT
|
36754
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
36755
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
36756
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
36757
|
+
[1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1
|
36758
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
36759
|
+
[1m[35mSQL (0.7ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
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
|
+
[1m[35mBloomRemit::Txn Load (0.4ms)[0m 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
|
+
[1m[36mBloomRemit::Txn Load (0.6ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1[0m [["id", 1], ["secret", "5d81f5d3-9411-4631-a1fc-fb6b2e8a33dd"]]
|
36771
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
36772
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2[0m [["status", 1], ["id", 1]]
|
36773
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
36774
|
+
Completed 200 OK in 8ms (Views: 0.5ms | ActiveRecord: 1.6ms)
|
36775
|
+
[1m[36mBloomRemit::Txn Load (0.4ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1[0m [["id", 1]]
|
36776
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
36777
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
36778
|
+
[1m[35m (0.3ms)[0m COMMIT
|
36779
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
36780
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
36781
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
36782
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
36783
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
36784
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
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
|
+
[1m[35mBloomRemit::Txn Load (0.5ms)[0m 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
|
+
[1m[36mBloomRemit::Txn Load (0.5ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1[0m [["id", 2], ["secret", "99b82051-33c3-4a89-be71-911564b40fe9"]]
|
36796
|
+
[1m[35m (0.4ms)[0m SAVEPOINT active_record_1
|
36797
|
+
[1m[36mSQL (0.6ms)[0m [1mUPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2[0m [["status", 1], ["id", 2]]
|
36798
|
+
[1m[35m (0.5ms)[0m RELEASE SAVEPOINT active_record_1
|
36799
|
+
Completed 204 No Content in 46ms (ActiveRecord: 2.1ms)
|
36800
|
+
[1m[36mBloomRemit::Txn Load (0.4ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1[0m [["id", 2]]
|
36801
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
36802
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
36803
|
+
[1m[35m (0.3ms)[0m COMMIT
|
36804
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
36805
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
36806
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("type") VALUES ($1) RETURNING "id"[0m [["type", "SubUser"]]
|
36807
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
36808
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
36809
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
|
36810
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
36811
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
36812
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "payments" ("type") VALUES ($1) RETURNING "id"[0m [["type", "SubPayment"]]
|
36813
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
36814
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
36815
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
36817
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
36818
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
36819
|
+
[1m[35m (0.4ms)[0m COMMIT
|
36820
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
36821
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
36822
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
36823
|
+
[1m[35m (0.3ms)[0m COMMIT
|
36824
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
36825
|
+
[1m[35m (0.4ms)[0m SAVEPOINT active_record_1
|
36826
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "payments" DEFAULT VALUES RETURNING "id"[0m
|
36827
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
36828
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
36829
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" DEFAULT VALUES RETURNING "id"
|
36830
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
36831
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
36832
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT 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"[0m [["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
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
36834
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
36835
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
36837
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "bloom_remit_responses" WHERE "bloom_remit_responses"."txn_id" = $1 [["txn_id", 4]]
|
36838
|
+
[1m[36mBloomRemit::Response Load (0.4ms)[0m [1mSELECT "bloom_remit_responses".* FROM "bloom_remit_responses" WHERE "bloom_remit_responses"."txn_id" = $1 ORDER BY "bloom_remit_responses"."id" ASC LIMIT 1[0m [["txn_id", 4]]
|
36839
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
36840
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
36841
|
+
[1m[35m (0.3ms)[0m COMMIT
|
36842
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
36843
|
+
[1m[35m (0.4ms)[0m SAVEPOINT active_record_1
|
36844
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "payments" DEFAULT VALUES RETURNING "id"[0m
|
36845
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
36846
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
36847
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" DEFAULT VALUES RETURNING "id"
|
36848
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
36849
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
36850
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT 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"[0m [["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
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
36852
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
36853
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 7], ["id", 5]]
|
36854
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
36855
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
36856
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "bloom_remit_responses" ("body", "txn_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
36858
|
+
[1m[36mBloomRemit::Txn Load (0.4ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1[0m [["id", 5]]
|
36859
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
36860
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
36861
|
+
[1m[35m (0.4ms)[0m COMMIT
|
36862
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
36863
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
36864
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
36865
|
+
[1m[35m (0.2ms)[0m COMMIT
|
36866
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
36867
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
36868
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
36869
|
+
[1m[35m (0.3ms)[0m COMMIT
|
36870
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
36871
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
36872
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
36873
|
+
[1m[35m (0.2ms)[0m COMMIT
|
36874
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
36875
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
36876
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
36877
|
+
[1m[35m (0.4ms)[0m COMMIT
|
36878
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
36879
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
36880
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
36881
|
+
[1m[35m (0.6ms)[0m 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
|
+
[1m[36m (1.7ms)[0m [1m 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
|
+
[0m
|
36889
|
+
[1m[35m (1.1ms)[0m select table_name from information_schema.views where table_schema = 'app_test'
|
36890
|
+
[1m[36m (393.4ms)[0m [1mTRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE;[0m
|
36891
|
+
[1m[35m (0.7ms)[0m 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
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
36893
|
+
[1m[35m (0.3ms)[0m COMMIT
|
36894
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
36895
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
36896
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
36897
|
+
[1m[35m (0.3ms)[0m COMMIT
|
36898
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
36899
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
36900
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
36901
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
|
36902
|
+
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
|
36903
|
+
[1m[35m (0.3ms)[0m BEGIN
|
36904
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("type") VALUES ($1) RETURNING "id"[0m [["type", "SubUser"]]
|
36905
|
+
[1m[35m (13.0ms)[0m COMMIT
|
36906
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
36907
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "payments" ("type") VALUES ($1) RETURNING "id" [["type", "SubPayment"]]
|
36908
|
+
[1m[36m (12.9ms)[0m [1mCOMMIT[0m
|
36909
|
+
[1m[35m (0.3ms)[0m BEGIN
|
36910
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT 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"[0m [["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
|
+
[1m[35m (11.8ms)[0m COMMIT
|
36912
|
+
[1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 1]]
|
36913
|
+
[1m[35mPayment Load (0.4ms)[0m SELECT "payments".* FROM "payments" WHERE "payments"."id" = $1 LIMIT 1 [["id", 1]]
|
36914
|
+
[1m[36m (0.3ms)[0m [1mALTER 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[0m
|
36915
|
+
[1m[35m (432.0ms)[0m TRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE;
|
36916
|
+
[1m[36m (0.5ms)[0m [1mALTER 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[0m
|
36917
|
+
[1m[35m (0.4ms)[0m BEGIN
|
36918
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
36919
|
+
[1m[35m (12.9ms)[0m COMMIT
|
36920
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
36921
|
+
[1m[35mSQL (0.8ms)[0m 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
|
+
[1m[36m (12.6ms)[0m [1mCOMMIT[0m
|
36923
|
+
[1m[35m (0.6ms)[0m 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
|
+
[1m[36m (425.5ms)[0m [1mTRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE;[0m
|
36925
|
+
[1m[35m (0.6ms)[0m 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
|
+
[1m[36m (1.0ms)[0m [1mBEGIN[0m
|
36927
|
+
[1m[35m (0.6ms)[0m COMMIT
|
36928
|
+
[1m[36m (0.6ms)[0m [1mBEGIN[0m
|
36929
|
+
[1m[35m (0.5ms)[0m ROLLBACK
|
36930
|
+
[1m[36m (0.6ms)[0m [1mBEGIN[0m
|
36931
|
+
[1m[35m (0.5ms)[0m COMMIT
|
36932
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
36933
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
36934
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
36935
|
+
[1m[35m (0.4ms)[0m COMMIT
|
36936
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
36937
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
36938
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
36939
|
+
[1m[35m (0.3ms)[0m COMMIT
|
36940
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
36941
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
36942
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
36943
|
+
[1m[35m (0.7ms)[0m COMMIT
|
36944
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
36945
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
36946
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
36947
|
+
[1m[35m (0.3ms)[0m COMMIT
|
36948
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
36949
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
36950
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
36951
|
+
[1m[35m (0.2ms)[0m COMMIT
|
36952
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
36953
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
36954
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
36955
|
+
[1m[35m (0.3ms)[0m COMMIT
|
36956
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
36957
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
36958
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
36959
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
36960
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
36961
|
+
[1m[35mSQL (0.9ms)[0m 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
|
+
[1m[36m (0.7ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
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
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
36968
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
36969
|
+
[1m[35m (0.3ms)[0m COMMIT
|
36970
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
36971
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
36972
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
36973
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
36974
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
36975
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (0.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
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
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
36982
|
+
[1m[36m (0.9ms)[0m [1mBEGIN[0m
|
36983
|
+
[1m[35m (0.3ms)[0m COMMIT
|
36984
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
36985
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
36986
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("type") VALUES ($1) RETURNING "id"[0m [["type", "SubUser"]]
|
36987
|
+
[1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1
|
36988
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
36989
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
|
36990
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
36991
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
36992
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "payments" ("type") VALUES ($1) RETURNING "id"[0m [["type", "SubPayment"]]
|
36993
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
36994
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
36995
|
+
[1m[35mSQL (0.6ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
36997
|
+
[1m[35m (0.6ms)[0m ROLLBACK
|
36998
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
36999
|
+
[1m[35m (0.3ms)[0m COMMIT
|
37000
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
37001
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
37002
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
37003
|
+
[1m[35m (0.3ms)[0m COMMIT
|
37004
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
37005
|
+
[1m[35m (0.4ms)[0m SAVEPOINT active_record_1
|
37006
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "payments" DEFAULT VALUES RETURNING "id"[0m
|
37007
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
37008
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
37009
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" DEFAULT VALUES RETURNING "id"
|
37010
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
37011
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
37012
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT 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"[0m [["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
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
37014
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
37015
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
37017
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "bloom_remit_responses" WHERE "bloom_remit_responses"."txn_id" = $1 [["txn_id", 4]]
|
37018
|
+
[1m[36mBloomRemit::Response Load (0.4ms)[0m [1mSELECT "bloom_remit_responses".* FROM "bloom_remit_responses" WHERE "bloom_remit_responses"."txn_id" = $1 ORDER BY "bloom_remit_responses"."id" ASC LIMIT 1[0m [["txn_id", 4]]
|
37019
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
37020
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
37021
|
+
[1m[35m (0.3ms)[0m COMMIT
|
37022
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
37023
|
+
[1m[35m (0.4ms)[0m SAVEPOINT active_record_1
|
37024
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "payments" DEFAULT VALUES RETURNING "id"[0m
|
37025
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
37026
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
37027
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" DEFAULT VALUES RETURNING "id"
|
37028
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
37029
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
37030
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT 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"[0m [["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
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
37032
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
37033
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 7], ["id", 5]]
|
37034
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
37035
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
37036
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "bloom_remit_responses" ("body", "txn_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
37038
|
+
[1m[36mBloomRemit::Txn Load (0.4ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1[0m [["id", 5]]
|
37039
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
37040
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
37041
|
+
[1m[35m (0.4ms)[0m COMMIT
|
37042
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
37043
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
37044
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
37045
|
+
[1m[35m (0.2ms)[0m COMMIT
|
37046
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
37047
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
37048
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
37049
|
+
[1m[35m (0.4ms)[0m COMMIT
|
37050
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
37051
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
37052
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
37053
|
+
[1m[35m (0.3ms)[0m COMMIT
|
37054
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
37055
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
37056
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
37057
|
+
[1m[35m (0.3ms)[0m COMMIT
|
37058
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
37059
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
37060
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
37061
|
+
[1m[35m (0.6ms)[0m 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
|
+
[1m[36m (1.3ms)[0m [1m 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
|
+
[0m
|
37069
|
+
[1m[35m (1.1ms)[0m select table_name from information_schema.views where table_schema = 'app_test'
|
37070
|
+
[1m[36m (387.8ms)[0m [1mTRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE;[0m
|
37071
|
+
[1m[35m (0.5ms)[0m 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
|
+
[1m[36m (0.8ms)[0m [1mBEGIN[0m
|
37073
|
+
[1m[35m (0.4ms)[0m COMMIT
|
37074
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
37075
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
37076
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
37077
|
+
[1m[35m (0.3ms)[0m COMMIT
|
37078
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
37079
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
37080
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
37081
|
+
[1m[35mSQL (1.5ms)[0m INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
|
37082
|
+
[1m[36m (11.5ms)[0m [1mCOMMIT[0m
|
37083
|
+
[1m[35m (0.4ms)[0m BEGIN
|
37084
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("type") VALUES ($1) RETURNING "id"[0m [["type", "SubUser"]]
|
37085
|
+
[1m[35m (18.2ms)[0m COMMIT
|
37086
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
37087
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "payments" ("type") VALUES ($1) RETURNING "id" [["type", "SubPayment"]]
|
37088
|
+
[1m[36m (16.1ms)[0m [1mCOMMIT[0m
|
37089
|
+
[1m[35m (0.3ms)[0m BEGIN
|
37090
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT 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"[0m [["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
|
+
[1m[35m (12.9ms)[0m COMMIT
|
37092
|
+
[1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 1]]
|
37093
|
+
[1m[35mPayment Load (0.4ms)[0m SELECT "payments".* FROM "payments" WHERE "payments"."id" = $1 LIMIT 1 [["id", 1]]
|
37094
|
+
[1m[36m (0.5ms)[0m [1mALTER 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[0m
|
37095
|
+
[1m[35m (416.9ms)[0m TRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE;
|
37096
|
+
[1m[36m (0.5ms)[0m [1mALTER 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[0m
|
37097
|
+
[1m[35m (0.3ms)[0m BEGIN
|
37098
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
37099
|
+
[1m[35m (12.8ms)[0m COMMIT
|
37100
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
37101
|
+
[1m[35mSQL (0.6ms)[0m 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
|
+
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
|
37103
|
+
[1m[35m (0.6ms)[0m 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
|
+
[1m[36m (397.9ms)[0m [1mTRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE;[0m
|
37105
|
+
[1m[35m (0.5ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
37107
|
+
[1m[35m (0.5ms)[0m COMMIT
|
37108
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
37109
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
37110
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
37111
|
+
[1m[35m (0.2ms)[0m COMMIT
|
37112
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
37113
|
+
[1m[35m (0.5ms)[0m ROLLBACK
|
37114
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
37115
|
+
[1m[35m (0.5ms)[0m COMMIT
|
37116
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
37117
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
37118
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
37119
|
+
[1m[35m (0.4ms)[0m COMMIT
|
37120
|
+
[1m[36m (0.9ms)[0m [1mBEGIN[0m
|
37121
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
37122
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
37123
|
+
[1m[35m (0.3ms)[0m COMMIT
|
37124
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
37125
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
37126
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
37127
|
+
[1m[35m (0.3ms)[0m COMMIT
|
37128
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
37129
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
37130
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
37131
|
+
[1m[35m (0.2ms)[0m COMMIT
|
37132
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
37133
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
37134
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
37135
|
+
[1m[35m (0.5ms)[0m COMMIT
|
37136
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
37137
|
+
[1m[35m (0.4ms)[0m SAVEPOINT active_record_1
|
37138
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
37139
|
+
[1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1
|
37140
|
+
[1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m
|
37141
|
+
[1m[35mSQL (0.8ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
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
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
37148
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
37149
|
+
[1m[35m (0.3ms)[0m COMMIT
|
37150
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
37151
|
+
[1m[35m (0.4ms)[0m SAVEPOINT active_record_1
|
37152
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
37153
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
37154
|
+
[1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m
|
37155
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (0.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
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
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
37162
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
37163
|
+
[1m[35m (0.5ms)[0m COMMIT
|
37164
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
37165
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
37166
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("type") VALUES ($1) RETURNING "id"[0m [["type", "SubUser"]]
|
37167
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
37168
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
37169
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
|
37170
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
37171
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
37172
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "payments" ("type") VALUES ($1) RETURNING "id"[0m [["type", "SubPayment"]]
|
37173
|
+
[1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1
|
37174
|
+
[1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m
|
37175
|
+
[1m[35mSQL (0.6ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
37177
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
37178
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
37179
|
+
[1m[35m (0.3ms)[0m COMMIT
|
37180
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
37181
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
37182
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
37183
|
+
[1m[35m (0.3ms)[0m COMMIT
|
37184
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
37185
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
37186
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "payments" DEFAULT VALUES RETURNING "id"[0m
|
37187
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
37188
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
37189
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" DEFAULT VALUES RETURNING "id"
|
37190
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
37191
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
37192
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT 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"[0m [["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
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
37194
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
37195
|
+
[1m[35mSQL (0.6ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
37197
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "bloom_remit_responses" WHERE "bloom_remit_responses"."txn_id" = $1 [["txn_id", 4]]
|
37198
|
+
[1m[36mBloomRemit::Response Load (0.4ms)[0m [1mSELECT "bloom_remit_responses".* FROM "bloom_remit_responses" WHERE "bloom_remit_responses"."txn_id" = $1 ORDER BY "bloom_remit_responses"."id" ASC LIMIT 1[0m [["txn_id", 4]]
|
37199
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
37200
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
37201
|
+
[1m[35m (0.3ms)[0m COMMIT
|
37202
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
37203
|
+
[1m[35m (0.4ms)[0m SAVEPOINT active_record_1
|
37204
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "payments" DEFAULT VALUES RETURNING "id"[0m
|
37205
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
37206
|
+
[1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m
|
37207
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "users" DEFAULT VALUES RETURNING "id"
|
37208
|
+
[1m[36m (0.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
37209
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
37210
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT 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"[0m [["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
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
37212
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
37213
|
+
[1m[35mSQL (0.5ms)[0m UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 7], ["id", 5]]
|
37214
|
+
[1m[36m (0.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
37215
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
37216
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "bloom_remit_responses" ("body", "txn_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
37218
|
+
[1m[36mBloomRemit::Txn Load (0.4ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1[0m [["id", 5]]
|
37219
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
37220
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
37221
|
+
[1m[35m (0.4ms)[0m COMMIT
|
37222
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
37223
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
37224
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
37225
|
+
[1m[35m (0.3ms)[0m COMMIT
|
37226
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
37227
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
37228
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
37229
|
+
[1m[35m (0.5ms)[0m COMMIT
|
37230
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
37231
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
37232
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
37233
|
+
[1m[35m (0.3ms)[0m COMMIT
|
37234
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
37235
|
+
[1m[35m (0.5ms)[0m ROLLBACK
|
37236
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
37237
|
+
[1m[35m (0.4ms)[0m COMMIT
|
37238
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
37239
|
+
[1m[35m (0.5ms)[0m ROLLBACK
|
37240
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
37241
|
+
[1m[35m (0.4ms)[0m 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
|
+
[1m[36m (1.7ms)[0m [1m 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
|
+
[0m
|
37249
|
+
[1m[35m (1.5ms)[0m select table_name from information_schema.views where table_schema = 'app_test'
|
37250
|
+
[1m[36m (393.6ms)[0m [1mTRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE;[0m
|
37251
|
+
[1m[35m (0.5ms)[0m 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
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
37253
|
+
[1m[35m (0.4ms)[0m COMMIT
|
37254
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
37255
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
37256
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
37257
|
+
[1m[35m (0.4ms)[0m COMMIT
|
37258
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
37259
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
37260
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
37261
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
|
37262
|
+
[1m[36m (11.0ms)[0m [1mCOMMIT[0m
|
37263
|
+
[1m[35m (0.4ms)[0m BEGIN
|
37264
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("type") VALUES ($1) RETURNING "id"[0m [["type", "SubUser"]]
|
37265
|
+
[1m[35m (9.4ms)[0m COMMIT
|
37266
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
37267
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "payments" ("type") VALUES ($1) RETURNING "id" [["type", "SubPayment"]]
|
37268
|
+
[1m[36m (11.5ms)[0m [1mCOMMIT[0m
|
37269
|
+
[1m[35m (0.3ms)[0m BEGIN
|
37270
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT 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"[0m [["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
|
+
[1m[35m (16.7ms)[0m COMMIT
|
37272
|
+
[1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 1]]
|
37273
|
+
[1m[35mPayment Load (0.4ms)[0m SELECT "payments".* FROM "payments" WHERE "payments"."id" = $1 LIMIT 1 [["id", 1]]
|
37274
|
+
[1m[36m (0.3ms)[0m [1mALTER 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[0m
|
37275
|
+
[1m[35m (431.9ms)[0m TRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE;
|
37276
|
+
[1m[36m (0.5ms)[0m [1mALTER 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[0m
|
37277
|
+
[1m[35m (0.3ms)[0m BEGIN
|
37278
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
37279
|
+
[1m[35m (9.5ms)[0m COMMIT
|
37280
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
37281
|
+
[1m[35mSQL (0.6ms)[0m 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
|
+
[1m[36m (9.6ms)[0m [1mCOMMIT[0m
|
37283
|
+
[1m[35m (0.4ms)[0m 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
|
+
[1m[36m (398.1ms)[0m [1mTRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE;[0m
|
37285
|
+
[1m[35m (0.8ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
37287
|
+
[1m[35m (0.2ms)[0m COMMIT
|
37288
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
37289
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
37290
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
37291
|
+
[1m[35m (0.2ms)[0m COMMIT
|
37292
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
37293
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
37294
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
37295
|
+
[1m[35m (0.2ms)[0m COMMIT
|
37296
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
37297
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
37298
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
37299
|
+
[1m[35m (0.2ms)[0m COMMIT
|
37300
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
37301
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
37302
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
37303
|
+
[1m[35m (0.2ms)[0m COMMIT
|
37304
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
37305
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
37306
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
37307
|
+
[1m[35m (0.2ms)[0m COMMIT
|
37308
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
37309
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
37310
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
37311
|
+
[1m[35m (0.2ms)[0m COMMIT
|
37312
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
37313
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
37314
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
37315
|
+
[1m[35m (0.2ms)[0m COMMIT
|
37316
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
37317
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
37318
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
37319
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
37320
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
37321
|
+
[1m[35mSQL (0.7ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
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
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
37328
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
37329
|
+
[1m[35m (0.2ms)[0m COMMIT
|
37330
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
37331
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
37332
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
37333
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
37334
|
+
[1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m
|
37335
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
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
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
37342
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
37343
|
+
[1m[35m (0.2ms)[0m COMMIT
|
37344
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
37345
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
37346
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("type") VALUES ($1) RETURNING "id"[0m [["type", "SubUser"]]
|
37347
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
37348
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
37349
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
|
37350
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
37351
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
37352
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "payments" ("type") VALUES ($1) RETURNING "id"[0m [["type", "SubPayment"]]
|
37353
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
37354
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
37355
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
37357
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
37358
|
+
[1m[36m (0.6ms)[0m [1mBEGIN[0m
|
37359
|
+
[1m[35m (0.2ms)[0m COMMIT
|
37360
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
37361
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
37362
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
37363
|
+
[1m[35m (0.2ms)[0m COMMIT
|
37364
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
37365
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
37366
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "payments" DEFAULT VALUES RETURNING "id"[0m
|
37367
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
37368
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
37369
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" DEFAULT VALUES RETURNING "id"
|
37370
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
37371
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
37372
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT 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"[0m [["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
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
37374
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
37375
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
37377
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "bloom_remit_responses" WHERE "bloom_remit_responses"."txn_id" = $1 [["txn_id", 4]]
|
37378
|
+
[1m[36mBloomRemit::Response Load (0.2ms)[0m [1mSELECT "bloom_remit_responses".* FROM "bloom_remit_responses" WHERE "bloom_remit_responses"."txn_id" = $1 ORDER BY "bloom_remit_responses"."id" ASC LIMIT 1[0m [["txn_id", 4]]
|
37379
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
37380
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
37381
|
+
[1m[35m (0.2ms)[0m COMMIT
|
37382
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
37383
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
37384
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "payments" DEFAULT VALUES RETURNING "id"[0m
|
37385
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
37386
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
37387
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" DEFAULT VALUES RETURNING "id"
|
37388
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
37389
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
37390
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT 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"[0m [["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
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
37392
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
37393
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 7], ["id", 5]]
|
37394
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
37395
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
37396
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "bloom_remit_responses" ("body", "txn_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
37398
|
+
[1m[36mBloomRemit::Txn Load (0.3ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1[0m [["id", 5]]
|
37399
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
37400
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
37401
|
+
[1m[35m (0.2ms)[0m COMMIT
|
37402
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
37403
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
37404
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
37405
|
+
[1m[35m (0.2ms)[0m COMMIT
|
37406
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
37407
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
37408
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
37409
|
+
[1m[35m (0.2ms)[0m COMMIT
|
37410
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
37411
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
37412
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
37413
|
+
[1m[35m (0.1ms)[0m COMMIT
|
37414
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
37415
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
37416
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
37417
|
+
[1m[35m (0.3ms)[0m COMMIT
|
37418
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
37419
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
37420
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
37421
|
+
[1m[35m (0.9ms)[0m 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
|
+
[1m[36m (2.2ms)[0m [1m 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
|
+
[0m
|
37429
|
+
[1m[35m (1.9ms)[0m select table_name from information_schema.views where table_schema = 'app_test'
|
37430
|
+
[1m[36m (432.4ms)[0m [1mTRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE;[0m
|
37431
|
+
[1m[35m (0.6ms)[0m 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
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
37433
|
+
[1m[35m (0.4ms)[0m COMMIT
|
37434
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
37435
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
37436
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
37437
|
+
[1m[35m (0.6ms)[0m COMMIT
|
37438
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
37439
|
+
[1m[35m (0.6ms)[0m ROLLBACK
|
37440
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
37441
|
+
[1m[35mSQL (1.3ms)[0m INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
|
37442
|
+
[1m[36m (15.4ms)[0m [1mCOMMIT[0m
|
37443
|
+
[1m[35m (0.3ms)[0m BEGIN
|
37444
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "users" ("type") VALUES ($1) RETURNING "id"[0m [["type", "SubUser"]]
|
37445
|
+
[1m[35m (13.6ms)[0m COMMIT
|
37446
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
37447
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "payments" ("type") VALUES ($1) RETURNING "id" [["type", "SubPayment"]]
|
37448
|
+
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
|
37449
|
+
[1m[35m (0.4ms)[0m BEGIN
|
37450
|
+
[1m[36mSQL (1.3ms)[0m [1mINSERT 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"[0m [["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
|
+
[1m[35m (13.8ms)[0m COMMIT
|
37452
|
+
[1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 1]]
|
37453
|
+
[1m[35mPayment Load (0.4ms)[0m SELECT "payments".* FROM "payments" WHERE "payments"."id" = $1 LIMIT 1 [["id", 1]]
|
37454
|
+
[1m[36m (0.5ms)[0m [1mALTER 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[0m
|
37455
|
+
[1m[35m (409.7ms)[0m TRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE;
|
37456
|
+
[1m[36m (0.4ms)[0m [1mALTER 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[0m
|
37457
|
+
[1m[35m (0.3ms)[0m BEGIN
|
37458
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
37459
|
+
[1m[35m (13.1ms)[0m COMMIT
|
37460
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
37461
|
+
[1m[35mSQL (0.6ms)[0m 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
|
+
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
|
37463
|
+
[1m[35mBloomRemit::Txn Load (0.5ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
37465
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (15.2ms)[0m [1mCOMMIT[0m
|
37467
|
+
[1m[35m (0.3ms)[0m 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
|
+
[1m[36m (451.0ms)[0m [1mTRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE;[0m
|
37469
|
+
[1m[35m (0.6ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
37471
|
+
[1m[35m (0.3ms)[0m COMMIT
|
37472
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
37473
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
37474
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
37475
|
+
[1m[35m (0.2ms)[0m COMMIT
|
37476
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
37477
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
37478
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
37479
|
+
[1m[35m (0.3ms)[0m COMMIT
|
37480
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
37481
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
37482
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
37483
|
+
[1m[35m (0.3ms)[0m COMMIT
|
37484
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
37485
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
37486
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
37487
|
+
[1m[35m (0.3ms)[0m COMMIT
|
37488
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
37489
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
37490
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
37491
|
+
[1m[35m (0.3ms)[0m COMMIT
|
37492
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
37493
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
37494
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
37495
|
+
[1m[35m (0.3ms)[0m COMMIT
|
37496
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
37497
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
37498
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
37499
|
+
[1m[35m (0.2ms)[0m COMMIT
|
37500
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
37501
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
37502
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
37503
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
37504
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
37505
|
+
[1m[35mSQL (0.8ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
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
|
+
[1m[35mBloomRemit::Txn Load (0.4ms)[0m 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
|
+
[1m[36mBloomRemit::Txn Load (0.4ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1[0m [["id", 1], ["secret", "3abb7585-226f-4dbe-add2-c392581868fc"]]
|
37517
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
37518
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2[0m [["status", 1], ["id", 1]]
|
37519
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
37520
|
+
Completed 200 OK in 7ms (Views: 0.5ms | ActiveRecord: 1.1ms)
|
37521
|
+
[1m[36mBloomRemit::Txn Load (0.3ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1[0m [["id", 1]]
|
37522
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
37523
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
37524
|
+
[1m[35m (0.2ms)[0m COMMIT
|
37525
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
37526
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
37527
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
37528
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
37529
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
37530
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
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
|
+
[1m[35mBloomRemit::Txn Load (0.3ms)[0m 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
|
+
[1m[36mBloomRemit::Txn Load (0.4ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1[0m [["id", 2], ["secret", "85f5c90f-637a-4d39-8aa6-e1a5281f72af"]]
|
37542
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
37543
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2[0m [["status", 1], ["id", 2]]
|
37544
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
37545
|
+
Completed 204 No Content in 43ms (ActiveRecord: 1.3ms)
|
37546
|
+
[1m[36mBloomRemit::Txn Load (0.4ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1[0m [["id", 2]]
|
37547
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
37548
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
37549
|
+
[1m[35m (0.2ms)[0m COMMIT
|
37550
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
37551
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
37552
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("type") VALUES ($1) RETURNING "id"[0m [["type", "SubUser"]]
|
37553
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
37554
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
37555
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
|
37556
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
37557
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
37558
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "payments" ("type") VALUES ($1) RETURNING "id"[0m [["type", "SubPayment"]]
|
37559
|
+
[1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1
|
37560
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
37561
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
37563
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
37564
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
37565
|
+
[1m[35m (0.2ms)[0m COMMIT
|
37566
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
37567
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
37568
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
37569
|
+
[1m[35m (0.3ms)[0m COMMIT
|
37570
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
37571
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
37572
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "payments" DEFAULT VALUES RETURNING "id"[0m
|
37573
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
37574
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
37575
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" DEFAULT VALUES RETURNING "id"
|
37576
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
37577
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
37578
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT 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"[0m [["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
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
37580
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
37581
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
37583
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "bloom_remit_responses" WHERE "bloom_remit_responses"."txn_id" = $1 [["txn_id", 4]]
|
37584
|
+
[1m[36mBloomRemit::Response Load (0.3ms)[0m [1mSELECT "bloom_remit_responses".* FROM "bloom_remit_responses" WHERE "bloom_remit_responses"."txn_id" = $1 ORDER BY "bloom_remit_responses"."id" ASC LIMIT 1[0m [["txn_id", 4]]
|
37585
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
37586
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
37587
|
+
[1m[35m (0.2ms)[0m COMMIT
|
37588
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
37589
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
37590
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "payments" DEFAULT VALUES RETURNING "id"[0m
|
37591
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
37592
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
37593
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" DEFAULT VALUES RETURNING "id"
|
37594
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
37595
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
37596
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT 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"[0m [["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
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
37598
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
37599
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 7], ["id", 5]]
|
37600
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
37601
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
37602
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "bloom_remit_responses" ("body", "txn_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
37604
|
+
[1m[36mBloomRemit::Txn Load (0.4ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1[0m [["id", 5]]
|
37605
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
37606
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
37607
|
+
[1m[35m (0.2ms)[0m COMMIT
|
37608
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
37609
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
37610
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
37611
|
+
[1m[35m (0.2ms)[0m COMMIT
|
37612
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
37613
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
37614
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
37615
|
+
[1m[35m (0.3ms)[0m COMMIT
|
37616
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
37617
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
37618
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
37619
|
+
[1m[35m (0.2ms)[0m COMMIT
|
37620
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
37621
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
37622
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
37623
|
+
[1m[35m (0.2ms)[0m COMMIT
|
37624
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
37625
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|