bloom_remit 0.11.0 → 0.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/concepts/bloom_remit/txns/contracts/create.rb +1 -0
- data/app/services/bloom_remit/create_txn.rb +12 -7
- data/db/migrate/20161005011429_add_recipient_id_to_bloom_remit_txns.rb +5 -0
- data/lib/bloom_remit/version.rb +1 -1
- data/spec/concepts/bloom_remit/txns/operations/create_spec.rb +2 -0
- data/spec/dummy/db/schema.rb +2 -1
- data/spec/dummy/log/test.log +583 -0
- data/spec/services/bloom_remit/create_txn_spec.rb +2 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4c49c1bdb5797d556ccf2fc881651846ae5950bf
|
4
|
+
data.tar.gz: ada79ee4075ec68a2a6f866cef76c99cc7a7c3d5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 805e0a344a8ee6a93d545f6df44e0a2b64429c2522ff6c96c25bfcb152e35abe6c9e72ebb69f9d7194fc0ad0a18abd3ce99831fe3d74e7e57c73e2bfacf170c7
|
7
|
+
data.tar.gz: a1638debef6f39352ac4a8a4dd6f3b996469b3575bc282472750b6d4e7500b5341db821f618cfc31707a132de3ea4364eb9a72479016dded226f5408d9173ea5
|
@@ -9,6 +9,7 @@ module BloomRemit
|
|
9
9
|
attribute :account_name, String
|
10
10
|
attribute :account_id, String
|
11
11
|
attribute :external_id, String
|
12
|
+
attribute :recipient_id, String
|
12
13
|
|
13
14
|
include ActiveModel::Validations
|
14
15
|
validates(
|
@@ -27,17 +28,21 @@ module BloomRemit
|
|
27
28
|
end
|
28
29
|
|
29
30
|
def call
|
30
|
-
|
31
|
+
txn_params = attributes.slice(*%i[
|
32
|
+
amount
|
33
|
+
account_name
|
34
|
+
account_id
|
35
|
+
target_slug
|
36
|
+
external_id
|
37
|
+
recipient_id
|
38
|
+
]).merge(
|
31
39
|
sender_id: sender.id,
|
32
40
|
sender_type: sender.class.base_class.name,
|
33
|
-
amount: amount,
|
34
|
-
account_name: account_name,
|
35
|
-
account_id: account_id,
|
36
|
-
target_slug: target_slug,
|
37
41
|
owner_id: owner.id,
|
38
42
|
owner_type: owner.class.base_class.name,
|
39
|
-
|
40
|
-
|
43
|
+
)
|
44
|
+
|
45
|
+
::BloomRemit::Txns::Operations::Create.(txn: txn_params)
|
41
46
|
end
|
42
47
|
|
43
48
|
end
|
data/lib/bloom_remit/version.rb
CHANGED
@@ -21,6 +21,7 @@ module BloomRemit
|
|
21
21
|
owner_id: payment.id,
|
22
22
|
owner_type: payment.class.base_class.name,
|
23
23
|
external_id: external_id,
|
24
|
+
recipient_id: "recipient-id",
|
24
25
|
})
|
25
26
|
txn = op.model
|
26
27
|
expect(txn.target_slug).to eq biller.slug
|
@@ -30,6 +31,7 @@ module BloomRemit
|
|
30
31
|
expect(txn.account_id).to eq "Hooli X"
|
31
32
|
expect(txn.owner).to eq payment
|
32
33
|
expect(txn.external_id).to eq external_id
|
34
|
+
expect(txn.recipient_id).to eq "recipient-id"
|
33
35
|
expect(PayoutJob).to have_enqueued_job(txn.id)
|
34
36
|
end
|
35
37
|
|
data/spec/dummy/db/schema.rb
CHANGED
@@ -11,7 +11,7 @@
|
|
11
11
|
#
|
12
12
|
# It's strongly recommended that you check this file into your version control system.
|
13
13
|
|
14
|
-
ActiveRecord::Schema.define(version:
|
14
|
+
ActiveRecord::Schema.define(version: 20161005011429) do
|
15
15
|
|
16
16
|
# These are extensions that must be enabled in order to support this database
|
17
17
|
enable_extension "plpgsql"
|
@@ -43,6 +43,7 @@ ActiveRecord::Schema.define(version: 20160930034811) do
|
|
43
43
|
t.string "external_id"
|
44
44
|
t.text "status_description"
|
45
45
|
t.string "vendor_external_id"
|
46
|
+
t.string "recipient_id"
|
46
47
|
end
|
47
48
|
|
48
49
|
add_index "bloom_remit_txns", ["external_id"], name: "index_bloom_remit_txns_on_external_id", using: :btree
|
data/spec/dummy/log/test.log
CHANGED
@@ -34739,3 +34739,586 @@ Completed 204 No Content in 53ms (ActiveRecord: 1.1ms)
|
|
34739
34739
|
[1m[35m (0.1ms)[0m COMMIT
|
34740
34740
|
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
34741
34741
|
[1m[35m (0.2ms)[0m ROLLBACK
|
34742
|
+
[1m[36mActiveRecord::SchemaMigration Load (1.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
34743
|
+
[1m[35m (1.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
|
34744
|
+
[1m[36m (2.7ms)[0m [1m SELECT schemaname || '.' || tablename
|
34745
|
+
FROM pg_tables
|
34746
|
+
WHERE
|
34747
|
+
tablename !~ '_prt_' AND
|
34748
|
+
tablename <> 'schema_migrations' AND
|
34749
|
+
schemaname = ANY (current_schemas(false))
|
34750
|
+
[0m
|
34751
|
+
[1m[35m (2.9ms)[0m select table_name from information_schema.views where table_schema = 'app_test'
|
34752
|
+
[1m[36m (411.8ms)[0m [1mTRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE;[0m
|
34753
|
+
[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
|
34754
|
+
[1m[36m (1.1ms)[0m [1mBEGIN[0m
|
34755
|
+
[1m[35m (0.5ms)[0m COMMIT
|
34756
|
+
[1m[36m (0.6ms)[0m [1mBEGIN[0m
|
34757
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
34758
|
+
[1m[36mSQL (2.3ms)[0m [1mINSERT INTO "users" ("type") VALUES ($1) RETURNING "id"[0m [["type", "SubUser"]]
|
34759
|
+
[1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1
|
34760
|
+
[1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m
|
34761
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
|
34762
|
+
[1m[36m (0.5ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
34763
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
34764
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "payments" ("type") VALUES ($1) RETURNING "id"[0m [["type", "SubPayment"]]
|
34765
|
+
[1m[35m (0.5ms)[0m RELEASE SAVEPOINT active_record_1
|
34766
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
34767
|
+
[1m[35mSQL (1.3ms)[0m INSERT INTO "bloom_remit_txns" ("secret", "sender_type", "sender_id", "amount", "account_name", "account_id", "target_slug", "owner_id", "owner_type", "external_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["secret", "dab35a86-5723-4ef1-b289-c21a36d12653"], ["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", "86f5a78f3b88ed64bb99c137"]]
|
34768
|
+
[1m[36m (0.8ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
34769
|
+
[1m[35m (0.7ms)[0m ROLLBACK
|
34770
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.9ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
34771
|
+
[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
|
34772
|
+
[1m[36m (2.3ms)[0m [1m SELECT schemaname || '.' || tablename
|
34773
|
+
FROM pg_tables
|
34774
|
+
WHERE
|
34775
|
+
tablename !~ '_prt_' AND
|
34776
|
+
tablename <> 'schema_migrations' AND
|
34777
|
+
schemaname = ANY (current_schemas(false))
|
34778
|
+
[0m
|
34779
|
+
[1m[35m (1.8ms)[0m select table_name from information_schema.views where table_schema = 'app_test'
|
34780
|
+
[1m[36m (410.4ms)[0m [1mTRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE;[0m
|
34781
|
+
[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
|
34782
|
+
[1m[36m (1.3ms)[0m [1mBEGIN[0m
|
34783
|
+
[1m[35m (0.6ms)[0m COMMIT
|
34784
|
+
[1m[36m (0.7ms)[0m [1mBEGIN[0m
|
34785
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
34786
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
34787
|
+
[1m[35m (0.7ms)[0m COMMIT
|
34788
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
34789
|
+
[1m[35m (5.2ms)[0m ROLLBACK
|
34790
|
+
[1m[36m (0.6ms)[0m [1mBEGIN[0m
|
34791
|
+
[1m[35m (0.6ms)[0m COMMIT
|
34792
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
34793
|
+
[1m[35m (1.0ms)[0m ROLLBACK
|
34794
|
+
[1m[36m (0.7ms)[0m [1mBEGIN[0m
|
34795
|
+
[1m[35m (0.6ms)[0m COMMIT
|
34796
|
+
[1m[36m (2.3ms)[0m [1mBEGIN[0m
|
34797
|
+
[1m[35m (0.5ms)[0m ROLLBACK
|
34798
|
+
[1m[36m (1.3ms)[0m [1mBEGIN[0m
|
34799
|
+
[1m[35m (0.9ms)[0m COMMIT
|
34800
|
+
[1m[36m (1.6ms)[0m [1mBEGIN[0m
|
34801
|
+
[1m[35m (0.6ms)[0m ROLLBACK
|
34802
|
+
[1m[36m (1.2ms)[0m [1mBEGIN[0m
|
34803
|
+
[1m[35m (0.5ms)[0m COMMIT
|
34804
|
+
[1m[36m (1.5ms)[0m [1mBEGIN[0m
|
34805
|
+
[1m[35m (4.4ms)[0m ROLLBACK
|
34806
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
34807
|
+
[1m[35m (0.7ms)[0m COMMIT
|
34808
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
34809
|
+
[1m[35m (0.6ms)[0m ROLLBACK
|
34810
|
+
[1m[36m (0.6ms)[0m [1mBEGIN[0m
|
34811
|
+
[1m[35m (1.0ms)[0m COMMIT
|
34812
|
+
[1m[36m (0.7ms)[0m [1mBEGIN[0m
|
34813
|
+
[1m[35m (0.6ms)[0m SAVEPOINT active_record_1
|
34814
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "users" ("type") VALUES ($1) RETURNING "id"[0m [["type", "SubUser"]]
|
34815
|
+
[1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1
|
34816
|
+
[1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m
|
34817
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
|
34818
|
+
[1m[36m (0.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
34819
|
+
[1m[35m (0.4ms)[0m SAVEPOINT active_record_1
|
34820
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "payments" ("type") VALUES ($1) RETURNING "id"[0m [["type", "SubPayment"]]
|
34821
|
+
[1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1
|
34822
|
+
[1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
|
34823
|
+
[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") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["secret", "f77de180-6221-4e71-9dcd-0777ecfa0fae"], ["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", "56006a44ca4d2d7197c41881"]]
|
34824
|
+
[1m[36m (0.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
34825
|
+
[1m[35m (0.8ms)[0m ROLLBACK
|
34826
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.9ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
34827
|
+
[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
|
34828
|
+
[1m[36m (2.4ms)[0m [1m SELECT schemaname || '.' || tablename
|
34829
|
+
FROM pg_tables
|
34830
|
+
WHERE
|
34831
|
+
tablename !~ '_prt_' AND
|
34832
|
+
tablename <> 'schema_migrations' AND
|
34833
|
+
schemaname = ANY (current_schemas(false))
|
34834
|
+
[0m
|
34835
|
+
[1m[35m (2.2ms)[0m select table_name from information_schema.views where table_schema = 'app_test'
|
34836
|
+
[1m[36m (417.8ms)[0m [1mTRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE;[0m
|
34837
|
+
[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
|
34838
|
+
[1m[36m (0.9ms)[0m [1mBEGIN[0m
|
34839
|
+
[1m[35m (0.6ms)[0m COMMIT
|
34840
|
+
[1m[36m (0.6ms)[0m [1mBEGIN[0m
|
34841
|
+
[1m[35m (0.6ms)[0m ROLLBACK
|
34842
|
+
[1m[36m (1.1ms)[0m [1mBEGIN[0m
|
34843
|
+
[1m[35m (0.9ms)[0m COMMIT
|
34844
|
+
[1m[36m (0.8ms)[0m [1mBEGIN[0m
|
34845
|
+
[1m[35m (0.8ms)[0m ROLLBACK
|
34846
|
+
[1m[36m (1.0ms)[0m [1mBEGIN[0m
|
34847
|
+
[1m[35m (1.1ms)[0m COMMIT
|
34848
|
+
[1m[36m (0.8ms)[0m [1mBEGIN[0m
|
34849
|
+
[1m[35m (0.7ms)[0m ROLLBACK
|
34850
|
+
[1m[36m (0.8ms)[0m [1mBEGIN[0m
|
34851
|
+
[1m[35m (1.0ms)[0m COMMIT
|
34852
|
+
[1m[36m (1.7ms)[0m [1mBEGIN[0m
|
34853
|
+
[1m[35m (0.9ms)[0m ROLLBACK
|
34854
|
+
[1m[36m (0.8ms)[0m [1mBEGIN[0m
|
34855
|
+
[1m[35m (0.7ms)[0m COMMIT
|
34856
|
+
[1m[36m (1.4ms)[0m [1mBEGIN[0m
|
34857
|
+
[1m[35m (5.7ms)[0m ROLLBACK
|
34858
|
+
[1m[36m (1.7ms)[0m [1mBEGIN[0m
|
34859
|
+
[1m[35m (1.6ms)[0m COMMIT
|
34860
|
+
[1m[36m (1.1ms)[0m [1mBEGIN[0m
|
34861
|
+
[1m[35m (0.5ms)[0m ROLLBACK
|
34862
|
+
[1m[36m (0.9ms)[0m [1mBEGIN[0m
|
34863
|
+
[1m[35m (0.8ms)[0m COMMIT
|
34864
|
+
[1m[36m (1.2ms)[0m [1mBEGIN[0m
|
34865
|
+
[1m[35m (0.5ms)[0m ROLLBACK
|
34866
|
+
[1m[36m (0.6ms)[0m [1mBEGIN[0m
|
34867
|
+
[1m[35m (0.7ms)[0m COMMIT
|
34868
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
34869
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
34870
|
+
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO "users" ("type") VALUES ($1) RETURNING "id"[0m [["type", "SubUser"]]
|
34871
|
+
[1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1
|
34872
|
+
[1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m
|
34873
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
|
34874
|
+
[1m[36m (0.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
34875
|
+
[1m[35m (0.4ms)[0m SAVEPOINT active_record_1
|
34876
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "payments" ("type") VALUES ($1) RETURNING "id"[0m [["type", "SubPayment"]]
|
34877
|
+
[1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1
|
34878
|
+
[1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m
|
34879
|
+
[1m[35mSQL (3.8ms)[0m INSERT INTO "bloom_remit_txns" ("secret", "sender_type", "sender_id", "amount", "account_name", "account_id", "target_slug", "owner_id", "owner_type", "external_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["secret", "331a44d6-9592-448e-aec2-cd87ac49a61f"], ["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", "b3f9a785a2f9918bef7aee06"]]
|
34880
|
+
[1m[36m (0.9ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
34881
|
+
[1m[35m (1.0ms)[0m ROLLBACK
|
34882
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
34883
|
+
[1m[35m (0.8ms)[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
|
34884
|
+
[1m[36m (2.3ms)[0m [1m SELECT schemaname || '.' || tablename
|
34885
|
+
FROM pg_tables
|
34886
|
+
WHERE
|
34887
|
+
tablename !~ '_prt_' AND
|
34888
|
+
tablename <> 'schema_migrations' AND
|
34889
|
+
schemaname = ANY (current_schemas(false))
|
34890
|
+
[0m
|
34891
|
+
[1m[35m (4.2ms)[0m select table_name from information_schema.views where table_schema = 'app_test'
|
34892
|
+
[1m[36m (402.7ms)[0m [1mTRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE;[0m
|
34893
|
+
[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
|
34894
|
+
[1m[36m (1.0ms)[0m [1mBEGIN[0m
|
34895
|
+
[1m[35m (0.6ms)[0m COMMIT
|
34896
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
34897
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
34898
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "users" ("type") VALUES ($1) RETURNING "id"[0m [["type", "SubUser"]]
|
34899
|
+
[1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1
|
34900
|
+
[1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m
|
34901
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
|
34902
|
+
[1m[36m (1.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
34903
|
+
[1m[35m (0.4ms)[0m SAVEPOINT active_record_1
|
34904
|
+
[1m[36mSQL (5.3ms)[0m [1mINSERT INTO "payments" ("type") VALUES ($1) RETURNING "id"[0m [["type", "SubPayment"]]
|
34905
|
+
[1m[35m (0.9ms)[0m RELEASE SAVEPOINT active_record_1
|
34906
|
+
[1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m
|
34907
|
+
[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") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["secret", "9c30545e-14db-4a75-87fb-454c9b2533d1"], ["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", "cf9aa6dbcb0a13e312325123"]]
|
34908
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
34909
|
+
[1m[35m (0.6ms)[0m ROLLBACK
|
34910
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
34911
|
+
Migrating to AddRecipientIdToBloomRemitTxns (20161005011429)
|
34912
|
+
[1m[35m (0.4ms)[0m BEGIN
|
34913
|
+
[1m[36m (15.9ms)[0m [1mALTER TABLE "bloom_remit_txns" ADD "recipient_id" character varying[0m
|
34914
|
+
[1m[35mSQL (2.9ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161005011429"]]
|
34915
|
+
[1m[36m (10.0ms)[0m [1mCOMMIT[0m
|
34916
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.4ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
34917
|
+
[1m[36m (6.2ms)[0m [1mSELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
34918
|
+
FROM pg_constraint c
|
34919
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
34920
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
34921
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
34922
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
34923
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
34924
|
+
WHERE c.contype = 'f'
|
34925
|
+
AND t1.relname = 'billers'
|
34926
|
+
AND t3.nspname = ANY (current_schemas(false))
|
34927
|
+
ORDER BY c.conname
|
34928
|
+
[0m
|
34929
|
+
[1m[35m (3.5ms)[0m SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
34930
|
+
FROM pg_constraint c
|
34931
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
34932
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
34933
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
34934
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
34935
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
34936
|
+
WHERE c.contype = 'f'
|
34937
|
+
AND t1.relname = 'bloom_remit_responses'
|
34938
|
+
AND t3.nspname = ANY (current_schemas(false))
|
34939
|
+
ORDER BY c.conname
|
34940
|
+
|
34941
|
+
[1m[36m (3.4ms)[0m [1mSELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
34942
|
+
FROM pg_constraint c
|
34943
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
34944
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
34945
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
34946
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
34947
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
34948
|
+
WHERE c.contype = 'f'
|
34949
|
+
AND t1.relname = 'bloom_remit_txns'
|
34950
|
+
AND t3.nspname = ANY (current_schemas(false))
|
34951
|
+
ORDER BY c.conname
|
34952
|
+
[0m
|
34953
|
+
[1m[35m (3.3ms)[0m SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
34954
|
+
FROM pg_constraint c
|
34955
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
34956
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
34957
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
34958
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
34959
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
34960
|
+
WHERE c.contype = 'f'
|
34961
|
+
AND t1.relname = 'payments'
|
34962
|
+
AND t3.nspname = ANY (current_schemas(false))
|
34963
|
+
ORDER BY c.conname
|
34964
|
+
|
34965
|
+
[1m[36m (3.7ms)[0m [1mSELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
34966
|
+
FROM pg_constraint c
|
34967
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
34968
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
34969
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
34970
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
34971
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
34972
|
+
WHERE c.contype = 'f'
|
34973
|
+
AND t1.relname = 'users'
|
34974
|
+
AND t3.nspname = ANY (current_schemas(false))
|
34975
|
+
ORDER BY c.conname
|
34976
|
+
[0m
|
34977
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.9ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
34978
|
+
[1m[35m (0.8ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
|
34979
|
+
[1m[36m (2.0ms)[0m [1m SELECT schemaname || '.' || tablename
|
34980
|
+
FROM pg_tables
|
34981
|
+
WHERE
|
34982
|
+
tablename !~ '_prt_' AND
|
34983
|
+
tablename <> 'schema_migrations' AND
|
34984
|
+
schemaname = ANY (current_schemas(false))
|
34985
|
+
[0m
|
34986
|
+
[1m[35m (1.9ms)[0m select table_name from information_schema.views where table_schema = 'app_test'
|
34987
|
+
[1m[36m (436.5ms)[0m [1mTRUNCATE TABLE "public"."bloom_remit_txns", "public"."billers", "public"."bloom_remit_responses", "public"."payments", "public"."users" RESTART IDENTITY CASCADE;[0m
|
34988
|
+
[1m[35m (1.2ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
|
34989
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
34990
|
+
[1m[35m (0.5ms)[0m COMMIT
|
34991
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
34992
|
+
[1m[35m (1.3ms)[0m SAVEPOINT active_record_1
|
34993
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "users" ("type") VALUES ($1) RETURNING "id"[0m [["type", "SubUser"]]
|
34994
|
+
[1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1
|
34995
|
+
[1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m
|
34996
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
|
34997
|
+
[1m[36m (0.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
34998
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
34999
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "payments" ("type") VALUES ($1) RETURNING "id"[0m [["type", "SubPayment"]]
|
35000
|
+
[1m[35m (0.5ms)[0m RELEASE SAVEPOINT active_record_1
|
35001
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
35002
|
+
[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") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["secret", "f80fdb42-858b-44d8-92e1-6a4238c05ac7"], ["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", "74202f3cc39be62f7f4e60b2"]]
|
35003
|
+
[1m[36m (0.5ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
35004
|
+
[1m[35m (1.0ms)[0m ROLLBACK
|
35005
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.9ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
35006
|
+
[1m[35m (0.9ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
|
35007
|
+
[1m[36m (2.1ms)[0m [1m SELECT schemaname || '.' || tablename
|
35008
|
+
FROM pg_tables
|
35009
|
+
WHERE
|
35010
|
+
tablename !~ '_prt_' AND
|
35011
|
+
tablename <> 'schema_migrations' AND
|
35012
|
+
schemaname = ANY (current_schemas(false))
|
35013
|
+
[0m
|
35014
|
+
[1m[35m (2.1ms)[0m select table_name from information_schema.views where table_schema = 'app_test'
|
35015
|
+
[1m[36m (422.1ms)[0m [1mTRUNCATE TABLE "public"."bloom_remit_txns", "public"."billers", "public"."bloom_remit_responses", "public"."payments", "public"."users" RESTART IDENTITY CASCADE;[0m
|
35016
|
+
[1m[35m (0.8ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
|
35017
|
+
[1m[36m (1.0ms)[0m [1mBEGIN[0m
|
35018
|
+
[1m[35m (0.6ms)[0m COMMIT
|
35019
|
+
[1m[36m (0.6ms)[0m [1mBEGIN[0m
|
35020
|
+
[1m[35m (0.8ms)[0m SAVEPOINT active_record_1
|
35021
|
+
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO "users" ("type") VALUES ($1) RETURNING "id"[0m [["type", "SubUser"]]
|
35022
|
+
[1m[35m (0.5ms)[0m RELEASE SAVEPOINT active_record_1
|
35023
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
35024
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
|
35025
|
+
[1m[36m (0.5ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
35026
|
+
[1m[35m (0.8ms)[0m SAVEPOINT active_record_1
|
35027
|
+
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO "payments" ("type") VALUES ($1) RETURNING "id"[0m [["type", "SubPayment"]]
|
35028
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
35029
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
35030
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "bloom_remit_txns" ("secret", "sender_type", "sender_id", "amount", "account_name", "account_id", "target_slug", "owner_id", "owner_type", "external_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["secret", "5552eda0-7500-4c09-8203-90d39ef46f44"], ["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", "a435985d1d12f2201ff57431"]]
|
35031
|
+
[1m[36m (0.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
35032
|
+
[1m[35m (1.7ms)[0m ROLLBACK
|
35033
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
35034
|
+
[1m[35m (0.9ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
|
35035
|
+
[1m[36m (2.1ms)[0m [1m SELECT schemaname || '.' || tablename
|
35036
|
+
FROM pg_tables
|
35037
|
+
WHERE
|
35038
|
+
tablename !~ '_prt_' AND
|
35039
|
+
tablename <> 'schema_migrations' AND
|
35040
|
+
schemaname = ANY (current_schemas(false))
|
35041
|
+
[0m
|
35042
|
+
[1m[35m (2.0ms)[0m select table_name from information_schema.views where table_schema = 'app_test'
|
35043
|
+
[1m[36m (430.3ms)[0m [1mTRUNCATE TABLE "public"."bloom_remit_txns", "public"."billers", "public"."bloom_remit_responses", "public"."payments", "public"."users" RESTART IDENTITY CASCADE;[0m
|
35044
|
+
[1m[35m (0.6ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
|
35045
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
35046
|
+
[1m[35mSQL (1.5ms)[0m INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
|
35047
|
+
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
|
35048
|
+
[1m[35m (0.6ms)[0m BEGIN
|
35049
|
+
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO "users" ("type") VALUES ($1) RETURNING "id"[0m [["type", "SubUser"]]
|
35050
|
+
[1m[35m (16.5ms)[0m COMMIT
|
35051
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
35052
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "payments" ("type") VALUES ($1) RETURNING "id" [["type", "SubPayment"]]
|
35053
|
+
[1m[36m (12.3ms)[0m [1mCOMMIT[0m
|
35054
|
+
[1m[35m (0.6ms)[0m BEGIN
|
35055
|
+
[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") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id"[0m [["secret", "c2991687-ba71-421a-859f-9d87591d0661"], ["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", "29bf9fd53ec6e4121042eac4"]]
|
35056
|
+
[1m[35m (10.0ms)[0m COMMIT
|
35057
|
+
[1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 1]]
|
35058
|
+
[1m[35mPayment Load (0.5ms)[0m SELECT "payments".* FROM "payments" WHERE "payments"."id" = $1 LIMIT 1 [["id", 1]]
|
35059
|
+
[1m[36m (0.4ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL[0m
|
35060
|
+
[1m[35m (424.9ms)[0m TRUNCATE TABLE "public"."bloom_remit_txns", "public"."billers", "public"."bloom_remit_responses", "public"."payments", "public"."users" RESTART IDENTITY CASCADE;
|
35061
|
+
[1m[36m (1.0ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL[0m
|
35062
|
+
[1m[36mActiveRecord::SchemaMigration Load (1.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
35063
|
+
[1m[35m (1.2ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
|
35064
|
+
[1m[36m (2.3ms)[0m [1m SELECT schemaname || '.' || tablename
|
35065
|
+
FROM pg_tables
|
35066
|
+
WHERE
|
35067
|
+
tablename !~ '_prt_' AND
|
35068
|
+
tablename <> 'schema_migrations' AND
|
35069
|
+
schemaname = ANY (current_schemas(false))
|
35070
|
+
[0m
|
35071
|
+
[1m[35m (1.9ms)[0m select table_name from information_schema.views where table_schema = 'app_test'
|
35072
|
+
[1m[36m (437.2ms)[0m [1mTRUNCATE TABLE "public"."bloom_remit_txns", "public"."billers", "public"."bloom_remit_responses", "public"."payments", "public"."users" RESTART IDENTITY CASCADE;[0m
|
35073
|
+
[1m[35m (0.8ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
|
35074
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
35075
|
+
[1m[35mSQL (1.2ms)[0m INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
|
35076
|
+
[1m[36m (17.1ms)[0m [1mCOMMIT[0m
|
35077
|
+
[1m[35m (0.6ms)[0m BEGIN
|
35078
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "users" ("type") VALUES ($1) RETURNING "id"[0m [["type", "SubUser"]]
|
35079
|
+
[1m[35m (12.5ms)[0m COMMIT
|
35080
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
35081
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "payments" ("type") VALUES ($1) RETURNING "id" [["type", "SubPayment"]]
|
35082
|
+
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
|
35083
|
+
[1m[35m (0.5ms)[0m BEGIN
|
35084
|
+
[1m[36mSQL (2.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", "1fdd5613-9d7f-4302-8692-a9f85e7298e2"], ["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", "2a4a1b13e29db02050642531"], ["recipient_id", "recipient-id"]]
|
35085
|
+
[1m[35m (13.3ms)[0m COMMIT
|
35086
|
+
[1m[36mUser Load (0.9ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 1]]
|
35087
|
+
[1m[35mPayment Load (0.5ms)[0m SELECT "payments".* FROM "payments" WHERE "payments"."id" = $1 LIMIT 1 [["id", 1]]
|
35088
|
+
[1m[36m (0.6ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL[0m
|
35089
|
+
[1m[35m (416.8ms)[0m TRUNCATE TABLE "public"."bloom_remit_txns", "public"."billers", "public"."bloom_remit_responses", "public"."payments", "public"."users" RESTART IDENTITY CASCADE;
|
35090
|
+
[1m[36m (0.8ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL[0m
|
35091
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.9ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
35092
|
+
[1m[35m (0.8ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
|
35093
|
+
[1m[36m (2.3ms)[0m [1m SELECT schemaname || '.' || tablename
|
35094
|
+
FROM pg_tables
|
35095
|
+
WHERE
|
35096
|
+
tablename !~ '_prt_' AND
|
35097
|
+
tablename <> 'schema_migrations' AND
|
35098
|
+
schemaname = ANY (current_schemas(false))
|
35099
|
+
[0m
|
35100
|
+
[1m[35m (2.3ms)[0m select table_name from information_schema.views where table_schema = 'app_test'
|
35101
|
+
[1m[36m (386.6ms)[0m [1mTRUNCATE TABLE "public"."bloom_remit_txns", "public"."billers", "public"."bloom_remit_responses", "public"."payments", "public"."users" RESTART IDENTITY CASCADE;[0m
|
35102
|
+
[1m[35m (0.9ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
|
35103
|
+
[1m[36m (0.7ms)[0m [1mBEGIN[0m
|
35104
|
+
[1m[35m (0.5ms)[0m COMMIT
|
35105
|
+
[1m[36m (0.7ms)[0m [1mBEGIN[0m
|
35106
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
35107
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "users" ("type") VALUES ($1) RETURNING "id"[0m [["type", "SubUser"]]
|
35108
|
+
[1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1
|
35109
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
35110
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
|
35111
|
+
[1m[36m (0.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
35112
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
35113
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "payments" ("type") VALUES ($1) RETURNING "id"[0m [["type", "SubPayment"]]
|
35114
|
+
[1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1
|
35115
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
35116
|
+
[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", "54f0d850-7def-4ab4-8ee0-a11d1dc55469"], ["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", "3a28a717ee85b276374647a3"], ["recipient_id", "recipient-id"]]
|
35117
|
+
[1m[36m (0.5ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
35118
|
+
[1m[35m (0.9ms)[0m ROLLBACK
|
35119
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
35120
|
+
[1m[35m (0.8ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
|
35121
|
+
[1m[36m (2.3ms)[0m [1m SELECT schemaname || '.' || tablename
|
35122
|
+
FROM pg_tables
|
35123
|
+
WHERE
|
35124
|
+
tablename !~ '_prt_' AND
|
35125
|
+
tablename <> 'schema_migrations' AND
|
35126
|
+
schemaname = ANY (current_schemas(false))
|
35127
|
+
[0m
|
35128
|
+
[1m[35m (1.9ms)[0m select table_name from information_schema.views where table_schema = 'app_test'
|
35129
|
+
[1m[36m (470.6ms)[0m [1mTRUNCATE TABLE "public"."bloom_remit_txns", "public"."billers", "public"."bloom_remit_responses", "public"."payments", "public"."users" RESTART IDENTITY CASCADE;[0m
|
35130
|
+
[1m[35m (0.7ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
|
35131
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
35132
|
+
[1m[35m (0.6ms)[0m COMMIT
|
35133
|
+
[1m[36m (0.6ms)[0m [1mBEGIN[0m
|
35134
|
+
[1m[35m (0.7ms)[0m ROLLBACK
|
35135
|
+
[1m[36m (0.6ms)[0m [1mBEGIN[0m
|
35136
|
+
[1m[35m (0.8ms)[0m COMMIT
|
35137
|
+
[1m[36m (0.6ms)[0m [1mBEGIN[0m
|
35138
|
+
[1m[35m (0.6ms)[0m ROLLBACK
|
35139
|
+
[1m[36m (2.1ms)[0m [1mBEGIN[0m
|
35140
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
|
35141
|
+
[1m[36m (15.5ms)[0m [1mCOMMIT[0m
|
35142
|
+
[1m[35m (0.4ms)[0m BEGIN
|
35143
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "users" ("type") VALUES ($1) RETURNING "id"[0m [["type", "SubUser"]]
|
35144
|
+
[1m[35m (14.9ms)[0m COMMIT
|
35145
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
35146
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "payments" ("type") VALUES ($1) RETURNING "id" [["type", "SubPayment"]]
|
35147
|
+
[1m[36m (12.8ms)[0m [1mCOMMIT[0m
|
35148
|
+
[1m[35m (0.6ms)[0m BEGIN
|
35149
|
+
[1m[36mSQL (1.0ms)[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", "c9b75ab4-234c-4d9f-9743-c54a6ac93dda"], ["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", "46fcf1a919f5cf3fbae2c04d"], ["recipient_id", "recipient-id"]]
|
35150
|
+
[1m[35m (15.3ms)[0m COMMIT
|
35151
|
+
[1m[36mUser Load (1.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 1]]
|
35152
|
+
[1m[35mPayment Load (0.6ms)[0m SELECT "payments".* FROM "payments" WHERE "payments"."id" = $1 LIMIT 1 [["id", 1]]
|
35153
|
+
[1m[36m (0.6ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL[0m
|
35154
|
+
[1m[35m (482.0ms)[0m TRUNCATE TABLE "public"."bloom_remit_txns", "public"."billers", "public"."bloom_remit_responses", "public"."payments", "public"."users" RESTART IDENTITY CASCADE;
|
35155
|
+
[1m[36m (0.7ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL[0m
|
35156
|
+
[1m[35m (0.5ms)[0m BEGIN
|
35157
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
35158
|
+
[1m[35m (12.1ms)[0m COMMIT
|
35159
|
+
[1m[36m (0.6ms)[0m [1mBEGIN[0m
|
35160
|
+
[1m[35mSQL (1.2ms)[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", "79d1508c-880f-498f-ae7c-dc518753c6c6"], ["external_id", "80a7f62b77d6a95c98586d09"], ["sender_id", "1"], ["sender_type", "User"]]
|
35161
|
+
[1m[36m (17.1ms)[0m [1mCOMMIT[0m
|
35162
|
+
[1m[35mBloomRemit::Txn Load (1.8ms)[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", "79d1508c-880f-498f-ae7c-dc518753c6c6"]]
|
35163
|
+
[1m[36m (0.6ms)[0m [1mBEGIN[0m
|
35164
|
+
[1m[35mSQL (0.8ms)[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]]
|
35165
|
+
[1m[36m (13.2ms)[0m [1mCOMMIT[0m
|
35166
|
+
[1m[35m (0.7ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
|
35167
|
+
[1m[36m (390.6ms)[0m [1mTRUNCATE TABLE "public"."bloom_remit_txns", "public"."billers", "public"."bloom_remit_responses", "public"."payments", "public"."users" RESTART IDENTITY CASCADE;[0m
|
35168
|
+
[1m[35m (0.7ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
|
35169
|
+
[1m[36m (0.8ms)[0m [1mBEGIN[0m
|
35170
|
+
[1m[35m (0.6ms)[0m COMMIT
|
35171
|
+
[1m[36m (0.6ms)[0m [1mBEGIN[0m
|
35172
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
35173
|
+
[1m[36m (0.7ms)[0m [1mBEGIN[0m
|
35174
|
+
[1m[35m (0.7ms)[0m COMMIT
|
35175
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
35176
|
+
[1m[35m (0.5ms)[0m ROLLBACK
|
35177
|
+
[1m[36m (0.8ms)[0m [1mBEGIN[0m
|
35178
|
+
[1m[35m (0.7ms)[0m COMMIT
|
35179
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
35180
|
+
[1m[35m (0.5ms)[0m ROLLBACK
|
35181
|
+
[1m[36m (0.6ms)[0m [1mBEGIN[0m
|
35182
|
+
[1m[35m (0.6ms)[0m COMMIT
|
35183
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
35184
|
+
[1m[35m (0.6ms)[0m ROLLBACK
|
35185
|
+
[1m[36m (0.6ms)[0m [1mBEGIN[0m
|
35186
|
+
[1m[35m (0.8ms)[0m COMMIT
|
35187
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
35188
|
+
[1m[35m (1.4ms)[0m ROLLBACK
|
35189
|
+
[1m[36m (0.7ms)[0m [1mBEGIN[0m
|
35190
|
+
[1m[35m (0.8ms)[0m COMMIT
|
35191
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
35192
|
+
[1m[35m (0.5ms)[0m ROLLBACK
|
35193
|
+
[1m[36m (0.6ms)[0m [1mBEGIN[0m
|
35194
|
+
[1m[35m (0.9ms)[0m COMMIT
|
35195
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
35196
|
+
[1m[35m (0.5ms)[0m ROLLBACK
|
35197
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
35198
|
+
[1m[35m (0.6ms)[0m COMMIT
|
35199
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
35200
|
+
[1m[35m (0.4ms)[0m SAVEPOINT active_record_1
|
35201
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
35202
|
+
[1m[35m (0.5ms)[0m RELEASE SAVEPOINT active_record_1
|
35203
|
+
[1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
|
35204
|
+
[1m[35mSQL (1.1ms)[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", "27d3964a-4858-4c6c-811e-7367025db871"], ["external_id", "312269638b3b3a8da5379a38"], ["sender_id", "1"], ["sender_type", "User"]]
|
35205
|
+
[1m[36m (0.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
35206
|
+
Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-10-05 01:20:49 +0000
|
35207
|
+
Processing by BloomRemit::Api::V1::TxnsController#post_update as JSON
|
35208
|
+
Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"1", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
|
35209
|
+
[1m[35mBloomRemit::Txn Load (0.6ms)[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]]
|
35210
|
+
Rendered text template (0.1ms)
|
35211
|
+
Completed 404 Not Found in 99ms (Views: 96.7ms | ActiveRecord: 0.6ms)
|
35212
|
+
Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-10-05 01:20:50 +0000
|
35213
|
+
Processing by BloomRemit::Api::V1::TxnsController#post_update as JSON
|
35214
|
+
Parameters: {"secret"=>"27d3964a-4858-4c6c-811e-7367025db871", "status"=>"paid", "id"=>"1", "txn"=>{"status"=>"paid", "secret"=>"27d3964a-4858-4c6c-811e-7367025db871"}}
|
35215
|
+
[1m[36mBloomRemit::Txn Load (0.7ms)[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", "27d3964a-4858-4c6c-811e-7367025db871"]]
|
35216
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
35217
|
+
[1m[36mSQL (0.6ms)[0m [1mUPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2[0m [["status", 1], ["id", 1]]
|
35218
|
+
[1m[35m (0.5ms)[0m RELEASE SAVEPOINT active_record_1
|
35219
|
+
Completed 200 OK in 15ms (Views: 0.6ms | ActiveRecord: 2.3ms)
|
35220
|
+
[1m[36mBloomRemit::Txn Load (0.7ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1[0m [["id", 1]]
|
35221
|
+
[1m[35m (1.7ms)[0m ROLLBACK
|
35222
|
+
[1m[36m (0.6ms)[0m [1mBEGIN[0m
|
35223
|
+
[1m[35m (0.6ms)[0m COMMIT
|
35224
|
+
[1m[36m (0.6ms)[0m [1mBEGIN[0m
|
35225
|
+
[1m[35m (0.6ms)[0m SAVEPOINT active_record_1
|
35226
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
35227
|
+
[1m[35m (0.7ms)[0m RELEASE SAVEPOINT active_record_1
|
35228
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
35229
|
+
[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", "99a42614-d172-4c5e-bf0b-202f17902137"], ["external_id", "6504faaee4605133590d1c4f"], ["sender_id", "2"], ["sender_type", "User"]]
|
35230
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
35231
|
+
Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-10-05 01:20:50 +0000
|
35232
|
+
Processing by BloomRemit::Api::V1::TxnsController#update as JSON
|
35233
|
+
Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"2", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
|
35234
|
+
[1m[35mBloomRemit::Txn Load (1.0ms)[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]]
|
35235
|
+
Rendered text template (0.0ms)
|
35236
|
+
Completed 404 Not Found in 6ms (Views: 2.6ms | ActiveRecord: 1.0ms)
|
35237
|
+
Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-10-05 01:20:50 +0000
|
35238
|
+
Processing by BloomRemit::Api::V1::TxnsController#update as JSON
|
35239
|
+
Parameters: {"secret"=>"99a42614-d172-4c5e-bf0b-202f17902137", "status"=>"paid", "id"=>"2", "txn"=>{"status"=>"paid", "secret"=>"99a42614-d172-4c5e-bf0b-202f17902137"}}
|
35240
|
+
[1m[36mBloomRemit::Txn Load (0.7ms)[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", "99a42614-d172-4c5e-bf0b-202f17902137"]]
|
35241
|
+
[1m[35m (0.6ms)[0m SAVEPOINT active_record_1
|
35242
|
+
[1m[36mSQL (0.8ms)[0m [1mUPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2[0m [["status", 1], ["id", 2]]
|
35243
|
+
[1m[35m (0.5ms)[0m RELEASE SAVEPOINT active_record_1
|
35244
|
+
Completed 204 No Content in 76ms (ActiveRecord: 2.6ms)
|
35245
|
+
[1m[36mBloomRemit::Txn Load (0.6ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1[0m [["id", 2]]
|
35246
|
+
[1m[35m (0.8ms)[0m ROLLBACK
|
35247
|
+
[1m[36m (1.2ms)[0m [1mBEGIN[0m
|
35248
|
+
[1m[35m (0.7ms)[0m COMMIT
|
35249
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
35250
|
+
[1m[35m (0.4ms)[0m SAVEPOINT active_record_1
|
35251
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "users" ("type") VALUES ($1) RETURNING "id"[0m [["type", "SubUser"]]
|
35252
|
+
[1m[35m (0.5ms)[0m RELEASE SAVEPOINT active_record_1
|
35253
|
+
[1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m
|
35254
|
+
[1m[35mSQL (1.3ms)[0m INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
|
35255
|
+
[1m[36m (0.5ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
35256
|
+
[1m[35m (1.3ms)[0m SAVEPOINT active_record_1
|
35257
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "payments" ("type") VALUES ($1) RETURNING "id"[0m [["type", "SubPayment"]]
|
35258
|
+
[1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1
|
35259
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
35260
|
+
[1m[35mSQL (0.7ms)[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", "b3925c29-3a99-4d13-8058-bc012bbc8a5a"], ["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", "61c4c5d97f7117ce63aea33d"], ["recipient_id", "recipient-id"]]
|
35261
|
+
[1m[36m (0.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
35262
|
+
[1m[35m (1.0ms)[0m ROLLBACK
|
35263
|
+
[1m[36m (0.6ms)[0m [1mBEGIN[0m
|
35264
|
+
[1m[35m (0.5ms)[0m COMMIT
|
35265
|
+
[1m[36m (0.8ms)[0m [1mBEGIN[0m
|
35266
|
+
[1m[35m (0.7ms)[0m ROLLBACK
|
35267
|
+
[1m[36m (0.8ms)[0m [1mBEGIN[0m
|
35268
|
+
[1m[35m (0.6ms)[0m COMMIT
|
35269
|
+
[1m[36m (0.6ms)[0m [1mBEGIN[0m
|
35270
|
+
[1m[35m (0.6ms)[0m SAVEPOINT active_record_1
|
35271
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "payments" DEFAULT VALUES RETURNING "id"[0m
|
35272
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
35273
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
35274
|
+
[1m[35mSQL (1.1ms)[0m INSERT INTO "users" DEFAULT VALUES RETURNING "id"
|
35275
|
+
[1m[36m (1.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
35276
|
+
[1m[35m (0.6ms)[0m SAVEPOINT active_record_1
|
35277
|
+
[1m[36mSQL (0.7ms)[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", "ebe37c57-df07-4969-af06-e447a3d537af"], ["external_id", "efda82e5a2142a4602b834d4"], ["owner_id", "2"], ["owner_type", "Payment"], ["sender_id", "4"], ["sender_type", "User"]]
|
35278
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
35279
|
+
[1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m
|
35280
|
+
[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 01:20:50.595012"], ["updated_at", "2016-10-05 01:20:50.595012"]]
|
35281
|
+
[1m[36m (0.7ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
35282
|
+
[1m[35m (4.5ms)[0m SELECT COUNT(*) FROM "bloom_remit_responses" WHERE "bloom_remit_responses"."txn_id" = $1 [["txn_id", 4]]
|
35283
|
+
[1m[36mBloomRemit::Response Load (0.6ms)[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]]
|
35284
|
+
[1m[35m (0.6ms)[0m ROLLBACK
|
35285
|
+
[1m[36m (0.7ms)[0m [1mBEGIN[0m
|
35286
|
+
[1m[35m (0.5ms)[0m COMMIT
|
35287
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
35288
|
+
[1m[35m (0.6ms)[0m SAVEPOINT active_record_1
|
35289
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "payments" DEFAULT VALUES RETURNING "id"[0m
|
35290
|
+
[1m[35m (0.5ms)[0m RELEASE SAVEPOINT active_record_1
|
35291
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
35292
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "users" DEFAULT VALUES RETURNING "id"
|
35293
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
35294
|
+
[1m[35m (0.6ms)[0m SAVEPOINT active_record_1
|
35295
|
+
[1m[36mSQL (0.8ms)[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", "e123303c-cb6b-4147-82fd-f5dbf18198db"], ["external_id", "9a2c29e007a0a9ec9612a9b7"], ["owner_id", "3"], ["owner_type", "Payment"], ["sender_id", "5"], ["sender_type", "User"]]
|
35296
|
+
[1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1
|
35297
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
35298
|
+
[1m[35mSQL (0.9ms)[0m UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 7], ["id", 5]]
|
35299
|
+
[1m[36m (0.5ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
35300
|
+
[1m[35m (0.6ms)[0m SAVEPOINT active_record_1
|
35301
|
+
[1m[36mSQL (0.7ms)[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 01:20:50.664974"], ["updated_at", "2016-10-05 01:20:50.664974"]]
|
35302
|
+
[1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1
|
35303
|
+
[1m[36mBloomRemit::Txn Load (0.7ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1[0m [["id", 5]]
|
35304
|
+
[1m[35m (0.8ms)[0m ROLLBACK
|
35305
|
+
[1m[36m (0.8ms)[0m [1mBEGIN[0m
|
35306
|
+
[1m[35m (1.1ms)[0m COMMIT
|
35307
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
35308
|
+
[1m[35m (0.8ms)[0m ROLLBACK
|
35309
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
35310
|
+
[1m[35m (0.6ms)[0m COMMIT
|
35311
|
+
[1m[36m (0.7ms)[0m [1mBEGIN[0m
|
35312
|
+
[1m[35m (0.6ms)[0m ROLLBACK
|
35313
|
+
[1m[36m (0.6ms)[0m [1mBEGIN[0m
|
35314
|
+
[1m[35m (0.6ms)[0m COMMIT
|
35315
|
+
[1m[36m (0.6ms)[0m [1mBEGIN[0m
|
35316
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
35317
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
35318
|
+
[1m[35m (0.7ms)[0m COMMIT
|
35319
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
35320
|
+
[1m[35m (0.6ms)[0m ROLLBACK
|
35321
|
+
[1m[36m (0.7ms)[0m [1mBEGIN[0m
|
35322
|
+
[1m[35m (0.6ms)[0m COMMIT
|
35323
|
+
[1m[36m (0.6ms)[0m [1mBEGIN[0m
|
35324
|
+
[1m[35m (0.5ms)[0m ROLLBACK
|
@@ -24,6 +24,7 @@ module BloomRemit
|
|
24
24
|
account_name: "028109090",
|
25
25
|
account_id: "Hooli X",
|
26
26
|
owner: payment,
|
27
|
+
recipient_id: "recipient-id",
|
27
28
|
external_id: external_id,
|
28
29
|
).model
|
29
30
|
|
@@ -34,6 +35,7 @@ module BloomRemit
|
|
34
35
|
expect(txn.owner_type).to eq "Payment"
|
35
36
|
expect(txn.owner_id).to eq payment.id.to_s
|
36
37
|
expect(txn.external_id).to eq external_id
|
38
|
+
expect(txn.recipient_id).to eq "recipient-id"
|
37
39
|
end
|
38
40
|
|
39
41
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bloom_remit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.12.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ramon Tayag
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-10-
|
11
|
+
date: 2016-10-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -414,6 +414,7 @@ files:
|
|
414
414
|
- db/migrate/20160809043433_add_status_description_to_bloom_remit_txns.rb
|
415
415
|
- db/migrate/20160817003323_add_vendor_external_id_to_bloom_remit_txns.rb
|
416
416
|
- db/migrate/20160930034811_allow_null_external_id_for_bloom_remit_txns.rb
|
417
|
+
- db/migrate/20161005011429_add_recipient_id_to_bloom_remit_txns.rb
|
417
418
|
- lib/bloom_remit.rb
|
418
419
|
- lib/bloom_remit/engine.rb
|
419
420
|
- lib/bloom_remit/factories.rb
|