bloom_remit 0.4.1 → 0.5.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/update.rb +1 -0
- data/app/concepts/bloom_remit/txns/operations/update.rb +4 -4
- data/db/migrate/20160809043433_add_status_description_to_bloom_remit_txns.rb +5 -0
- data/lib/bloom_remit/version.rb +1 -1
- data/spec/concepts/bloom_remit/txns/operations/update_spec.rb +8 -3
- data/spec/dummy/db/schema.rb +9 -19
- data/spec/dummy/log/development.log +79 -0
- data/spec/dummy/log/test.log +487 -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: a2470fac46f66988ef9b6d16681f2400da69e10c
|
4
|
+
data.tar.gz: 0db3d851093de50a175f1d6ad43327d577810439
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 35edffe3ad020b13f091b6c4b775062a3a4df778db5b07633b80a1327c505b706b725e97496c1ef01711204f516f15f16b7c4c370aeb3f3756983e9972bdcb95
|
7
|
+
data.tar.gz: aefcd0e63f34ffa72a0e6c127ef334672f41c66fbe2d7d38172981e46e56eb7dfdab653c3c99b07ea85cf85547ef134d71c4ac105726ea5f20798f6fafd6148c
|
@@ -25,10 +25,10 @@ module BloomRemit
|
|
25
25
|
|
26
26
|
def setup_params!(params)
|
27
27
|
params[:txn] ||= {}
|
28
|
-
params[:txn].merge!(
|
29
|
-
status
|
30
|
-
|
31
|
-
)
|
28
|
+
params[:txn].merge!(params.slice(*%i[
|
29
|
+
status
|
30
|
+
status_description
|
31
|
+
]))
|
32
32
|
end
|
33
33
|
|
34
34
|
def model!(params)
|
data/lib/bloom_remit/version.rb
CHANGED
@@ -9,13 +9,18 @@ module BloomRemit
|
|
9
9
|
let(:txn) { create(:bloom_remit_txn, sender: user) }
|
10
10
|
|
11
11
|
it "creates the txn, and triggers BloomRemit.on_txn_update" do
|
12
|
-
op = described_class.
|
13
|
-
|
12
|
+
op = described_class.(
|
13
|
+
id: txn.id,
|
14
|
+
secret: txn.secret,
|
15
|
+
status: "paid",
|
16
|
+
status_description: "My status description",
|
17
|
+
)
|
14
18
|
txn = op.model
|
15
19
|
expect(txn.status).to eq "paid"
|
20
|
+
expect(txn.status_description).to eq "My status description"
|
16
21
|
expect(OnUpdateJob).to have_enqueued_job(txn.id, {
|
17
22
|
status: "paid",
|
18
|
-
|
23
|
+
status_description: "My status description",
|
19
24
|
})
|
20
25
|
end
|
21
26
|
|
data/spec/dummy/db/schema.rb
CHANGED
@@ -11,26 +11,15 @@
|
|
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: 20160809043433) do
|
15
15
|
|
16
16
|
# These are extensions that must be enabled in order to support this database
|
17
17
|
enable_extension "plpgsql"
|
18
|
-
enable_extension "hstore"
|
19
18
|
|
20
19
|
create_table "billers", force: :cascade do |t|
|
21
20
|
t.string "slug"
|
22
21
|
end
|
23
22
|
|
24
|
-
create_table "bloom_remit_billers", force: :cascade do |t|
|
25
|
-
t.string "slug", null: false
|
26
|
-
t.text "description"
|
27
|
-
t.hstore "fields"
|
28
|
-
t.decimal "service_charge", default: 0.0, null: false
|
29
|
-
t.datetime "deactivated_at"
|
30
|
-
t.datetime "created_at", null: false
|
31
|
-
t.datetime "updated_at", null: false
|
32
|
-
end
|
33
|
-
|
34
23
|
create_table "bloom_remit_responses", force: :cascade do |t|
|
35
24
|
t.integer "txn_id", null: false
|
36
25
|
t.text "body", null: false
|
@@ -41,17 +30,18 @@ ActiveRecord::Schema.define(version: 20160808081300) do
|
|
41
30
|
add_index "bloom_remit_responses", ["txn_id"], name: "index_bloom_remit_responses_on_txn_id", using: :btree
|
42
31
|
|
43
32
|
create_table "bloom_remit_txns", force: :cascade do |t|
|
44
|
-
t.integer "status",
|
45
|
-
t.string "sender_id",
|
46
|
-
t.string "sender_type",
|
47
|
-
t.decimal "amount",
|
33
|
+
t.integer "status", default: 0, null: false
|
34
|
+
t.string "sender_id", null: false
|
35
|
+
t.string "sender_type", null: false
|
36
|
+
t.decimal "amount", null: false
|
48
37
|
t.string "account_name"
|
49
38
|
t.string "account_id"
|
50
|
-
t.uuid "secret",
|
51
|
-
t.string "target_slug",
|
39
|
+
t.uuid "secret", null: false
|
40
|
+
t.string "target_slug", null: false
|
52
41
|
t.string "owner_id"
|
53
42
|
t.string "owner_type"
|
54
|
-
t.string "external_id",
|
43
|
+
t.string "external_id", null: false
|
44
|
+
t.text "status_description"
|
55
45
|
end
|
56
46
|
|
57
47
|
add_index "bloom_remit_txns", ["external_id"], name: "index_bloom_remit_txns_on_external_id", using: :btree
|
@@ -1872,3 +1872,82 @@ WHERE c.contype = 'f'
|
|
1872
1872
|
AND t3.nspname = ANY (current_schemas(false))
|
1873
1873
|
ORDER BY c.conname
|
1874
1874
|
[0m
|
1875
|
+
[1m[36mActiveRecord::SchemaMigration Load (1.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1876
|
+
Migrating to AddStatusDescriptionToBloomRemitTxns (20160809043433)
|
1877
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1878
|
+
[1m[36m (4.7ms)[0m [1mALTER TABLE "bloom_remit_txns" ADD "status_description" text[0m
|
1879
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160809043433"]]
|
1880
|
+
[1m[36m (1.3ms)[0m [1mCOMMIT[0m
|
1881
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.9ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
1882
|
+
[1m[36m (2.1ms)[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
|
1883
|
+
FROM pg_constraint c
|
1884
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
1885
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
1886
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
1887
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
1888
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
1889
|
+
WHERE c.contype = 'f'
|
1890
|
+
AND t1.relname = 'billers'
|
1891
|
+
AND t3.nspname = ANY (current_schemas(false))
|
1892
|
+
ORDER BY c.conname
|
1893
|
+
[0m
|
1894
|
+
[1m[35m (1.9ms)[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
|
1895
|
+
FROM pg_constraint c
|
1896
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
1897
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
1898
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
1899
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
1900
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
1901
|
+
WHERE c.contype = 'f'
|
1902
|
+
AND t1.relname = 'bloom_remit_billers'
|
1903
|
+
AND t3.nspname = ANY (current_schemas(false))
|
1904
|
+
ORDER BY c.conname
|
1905
|
+
|
1906
|
+
[1m[36m (2.1ms)[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
|
1907
|
+
FROM pg_constraint c
|
1908
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
1909
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
1910
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
1911
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
1912
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
1913
|
+
WHERE c.contype = 'f'
|
1914
|
+
AND t1.relname = 'bloom_remit_responses'
|
1915
|
+
AND t3.nspname = ANY (current_schemas(false))
|
1916
|
+
ORDER BY c.conname
|
1917
|
+
[0m
|
1918
|
+
[1m[35m (2.0ms)[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
|
1919
|
+
FROM pg_constraint c
|
1920
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
1921
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
1922
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
1923
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
1924
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
1925
|
+
WHERE c.contype = 'f'
|
1926
|
+
AND t1.relname = 'bloom_remit_txns'
|
1927
|
+
AND t3.nspname = ANY (current_schemas(false))
|
1928
|
+
ORDER BY c.conname
|
1929
|
+
|
1930
|
+
[1m[36m (2.0ms)[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
|
1931
|
+
FROM pg_constraint c
|
1932
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
1933
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
1934
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
1935
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
1936
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
1937
|
+
WHERE c.contype = 'f'
|
1938
|
+
AND t1.relname = 'payments'
|
1939
|
+
AND t3.nspname = ANY (current_schemas(false))
|
1940
|
+
ORDER BY c.conname
|
1941
|
+
[0m
|
1942
|
+
[1m[35m (2.0ms)[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
|
1943
|
+
FROM pg_constraint c
|
1944
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
1945
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
1946
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
1947
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
1948
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
1949
|
+
WHERE c.contype = 'f'
|
1950
|
+
AND t1.relname = 'users'
|
1951
|
+
AND t3.nspname = ANY (current_schemas(false))
|
1952
|
+
ORDER BY c.conname
|
1953
|
+
|
data/spec/dummy/log/test.log
CHANGED
@@ -29656,3 +29656,490 @@ Completed 204 No Content in 52ms (ActiveRecord: 1.4ms)
|
|
29656
29656
|
[1m[35m (0.2ms)[0m COMMIT
|
29657
29657
|
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
29658
29658
|
[1m[35m (0.3ms)[0m ROLLBACK
|
29659
|
+
[1m[36mActiveRecord::SchemaMigration Load (1.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
29660
|
+
Migrating to AddStatusDescriptionToBloomRemitTxns (20160809043433)
|
29661
|
+
[1m[35m (0.2ms)[0m BEGIN
|
29662
|
+
[1m[36m (3.9ms)[0m [1mALTER TABLE "bloom_remit_txns" ADD "status_description" text[0m
|
29663
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160809043433"]]
|
29664
|
+
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
|
29665
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.3ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
29666
|
+
[1m[36m (2.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
|
29667
|
+
FROM pg_constraint c
|
29668
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
29669
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
29670
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
29671
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
29672
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
29673
|
+
WHERE c.contype = 'f'
|
29674
|
+
AND t1.relname = 'billers'
|
29675
|
+
AND t3.nspname = ANY (current_schemas(false))
|
29676
|
+
ORDER BY c.conname
|
29677
|
+
[0m
|
29678
|
+
[1m[35m (2.0ms)[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
|
29679
|
+
FROM pg_constraint c
|
29680
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
29681
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
29682
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
29683
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
29684
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
29685
|
+
WHERE c.contype = 'f'
|
29686
|
+
AND t1.relname = 'bloom_remit_responses'
|
29687
|
+
AND t3.nspname = ANY (current_schemas(false))
|
29688
|
+
ORDER BY c.conname
|
29689
|
+
|
29690
|
+
[1m[36m (2.0ms)[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
|
29691
|
+
FROM pg_constraint c
|
29692
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
29693
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
29694
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
29695
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
29696
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
29697
|
+
WHERE c.contype = 'f'
|
29698
|
+
AND t1.relname = 'bloom_remit_txns'
|
29699
|
+
AND t3.nspname = ANY (current_schemas(false))
|
29700
|
+
ORDER BY c.conname
|
29701
|
+
[0m
|
29702
|
+
[1m[35m (2.0ms)[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
|
29703
|
+
FROM pg_constraint c
|
29704
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
29705
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
29706
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
29707
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
29708
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
29709
|
+
WHERE c.contype = 'f'
|
29710
|
+
AND t1.relname = 'payments'
|
29711
|
+
AND t3.nspname = ANY (current_schemas(false))
|
29712
|
+
ORDER BY c.conname
|
29713
|
+
|
29714
|
+
[1m[36m (2.1ms)[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
|
29715
|
+
FROM pg_constraint c
|
29716
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
29717
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
29718
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
29719
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
29720
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
29721
|
+
WHERE c.contype = 'f'
|
29722
|
+
AND t1.relname = 'users'
|
29723
|
+
AND t3.nspname = ANY (current_schemas(false))
|
29724
|
+
ORDER BY c.conname
|
29725
|
+
[0m
|
29726
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
29727
|
+
[1m[35m (1.0ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL
|
29728
|
+
[1m[36m (1.3ms)[0m [1m SELECT schemaname || '.' || tablename
|
29729
|
+
FROM pg_tables
|
29730
|
+
WHERE
|
29731
|
+
tablename !~ '_prt_' AND
|
29732
|
+
tablename <> 'schema_migrations' AND
|
29733
|
+
schemaname = ANY (current_schemas(false))
|
29734
|
+
[0m
|
29735
|
+
[1m[35m (3.4ms)[0m select table_name from information_schema.views where table_schema = 'bloom_remit_rails_test'
|
29736
|
+
[1m[36m (29.0ms)[0m [1mTRUNCATE TABLE "public"."billers", "public"."users", "public"."bloom_remit_txns", "public"."bloom_remit_responses", "public"."payments" RESTART IDENTITY CASCADE;[0m
|
29737
|
+
[1m[35m (0.4ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL
|
29738
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
29739
|
+
[1m[35m (0.2ms)[0m COMMIT
|
29740
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
29741
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
29742
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
29743
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
|
29744
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
29745
|
+
[1m[35m (0.3ms)[0m BEGIN
|
29746
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("type") VALUES ($1) RETURNING "id"[0m [["type", "SubUser"]]
|
29747
|
+
[1m[35m (0.5ms)[0m COMMIT
|
29748
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
29749
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "payments" ("type") VALUES ($1) RETURNING "id" [["type", "SubPayment"]]
|
29750
|
+
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
|
29751
|
+
[1m[35m (0.3ms)[0m BEGIN
|
29752
|
+
[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") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id"[0m [["secret", "c02bcbb3-0a9f-44cb-8dcc-2b3d951ee526"], ["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", "b01c255708b9ca58508fd57d"]]
|
29753
|
+
[1m[35m (0.5ms)[0m COMMIT
|
29754
|
+
[1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 1]]
|
29755
|
+
[1m[35mPayment Load (0.3ms)[0m SELECT "payments".* FROM "payments" WHERE "payments"."id" = $1 LIMIT 1 [["id", 1]]
|
29756
|
+
[1m[36m (0.4ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL[0m
|
29757
|
+
[1m[35m (19.2ms)[0m TRUNCATE TABLE "public"."billers", "public"."users", "public"."bloom_remit_txns", "public"."bloom_remit_responses", "public"."payments" RESTART IDENTITY CASCADE;
|
29758
|
+
[1m[36m (0.4ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL[0m
|
29759
|
+
[1m[35m (0.2ms)[0m BEGIN
|
29760
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
29761
|
+
[1m[35m (0.5ms)[0m COMMIT
|
29762
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
29763
|
+
[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", "b6695252-42ac-4728-b7c6-83a13f16c176"], ["external_id", "75be0fe90ae690b466aac2a2"], ["sender_id", "1"], ["sender_type", "User"]]
|
29764
|
+
[1m[36m (1.0ms)[0m [1mCOMMIT[0m
|
29765
|
+
[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", "b6695252-42ac-4728-b7c6-83a13f16c176"]]
|
29766
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
29767
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 1], ["id", 1]]
|
29768
|
+
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
|
29769
|
+
[1m[35m (0.3ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL
|
29770
|
+
[1m[36m (18.2ms)[0m [1mTRUNCATE TABLE "public"."billers", "public"."users", "public"."bloom_remit_txns", "public"."bloom_remit_responses", "public"."payments" RESTART IDENTITY CASCADE;[0m
|
29771
|
+
[1m[35m (0.4ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL
|
29772
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
29773
|
+
[1m[35m (0.4ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL
|
29774
|
+
[1m[36m (1.2ms)[0m [1m SELECT schemaname || '.' || tablename
|
29775
|
+
FROM pg_tables
|
29776
|
+
WHERE
|
29777
|
+
tablename !~ '_prt_' AND
|
29778
|
+
tablename <> 'schema_migrations' AND
|
29779
|
+
schemaname = ANY (current_schemas(false))
|
29780
|
+
[0m
|
29781
|
+
[1m[35m (1.1ms)[0m select table_name from information_schema.views where table_schema = 'bloom_remit_rails_test'
|
29782
|
+
[1m[36m (13.5ms)[0m [1mTRUNCATE TABLE "public"."billers", "public"."users", "public"."bloom_remit_txns", "public"."bloom_remit_responses", "public"."payments" RESTART IDENTITY CASCADE;[0m
|
29783
|
+
[1m[35m (0.5ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL
|
29784
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
29785
|
+
[1m[35m (0.2ms)[0m COMMIT
|
29786
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
29787
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
29788
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
29789
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
|
29790
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
29791
|
+
[1m[35m (0.3ms)[0m BEGIN
|
29792
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("type") VALUES ($1) RETURNING "id"[0m [["type", "SubUser"]]
|
29793
|
+
[1m[35m (0.5ms)[0m COMMIT
|
29794
|
+
[1m[36m (0.7ms)[0m [1mBEGIN[0m
|
29795
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "payments" ("type") VALUES ($1) RETURNING "id" [["type", "SubPayment"]]
|
29796
|
+
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
|
29797
|
+
[1m[35m (0.3ms)[0m BEGIN
|
29798
|
+
[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") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id"[0m [["secret", "fdbf89a5-56ce-44db-b030-67fba130d498"], ["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", "f055cb277cf1bcd7c0e7a9d2"]]
|
29799
|
+
[1m[35m (0.5ms)[0m COMMIT
|
29800
|
+
[1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 1]]
|
29801
|
+
[1m[35mPayment Load (0.3ms)[0m SELECT "payments".* FROM "payments" WHERE "payments"."id" = $1 LIMIT 1 [["id", 1]]
|
29802
|
+
[1m[36m (0.3ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL[0m
|
29803
|
+
[1m[35m (16.4ms)[0m TRUNCATE TABLE "public"."billers", "public"."users", "public"."bloom_remit_txns", "public"."bloom_remit_responses", "public"."payments" RESTART IDENTITY CASCADE;
|
29804
|
+
[1m[36m (0.3ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL[0m
|
29805
|
+
[1m[35m (0.2ms)[0m BEGIN
|
29806
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
29807
|
+
[1m[35m (0.5ms)[0m COMMIT
|
29808
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
29809
|
+
[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", "bf10e586-8919-4761-a989-52142d4e3ea0"], ["external_id", "5998298abae9db4fbffc374e"], ["sender_id", "1"], ["sender_type", "User"]]
|
29810
|
+
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
|
29811
|
+
[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", "bf10e586-8919-4761-a989-52142d4e3ea0"]]
|
29812
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
29813
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 1], ["id", 1]]
|
29814
|
+
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
|
29815
|
+
[1m[35m (0.3ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL
|
29816
|
+
[1m[36m (17.1ms)[0m [1mTRUNCATE TABLE "public"."billers", "public"."users", "public"."bloom_remit_txns", "public"."bloom_remit_responses", "public"."payments" RESTART IDENTITY CASCADE;[0m
|
29817
|
+
[1m[35m (0.4ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL
|
29818
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
29819
|
+
[1m[35m (0.4ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL
|
29820
|
+
[1m[36m (1.1ms)[0m [1m SELECT schemaname || '.' || tablename
|
29821
|
+
FROM pg_tables
|
29822
|
+
WHERE
|
29823
|
+
tablename !~ '_prt_' AND
|
29824
|
+
tablename <> 'schema_migrations' AND
|
29825
|
+
schemaname = ANY (current_schemas(false))
|
29826
|
+
[0m
|
29827
|
+
[1m[35m (0.9ms)[0m select table_name from information_schema.views where table_schema = 'bloom_remit_rails_test'
|
29828
|
+
[1m[36m (16.4ms)[0m [1mTRUNCATE TABLE "public"."billers", "public"."users", "public"."bloom_remit_txns", "public"."bloom_remit_responses", "public"."payments" RESTART IDENTITY CASCADE;[0m
|
29829
|
+
[1m[35m (0.5ms)[0m ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL
|
29830
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
29831
|
+
[1m[35m (0.1ms)[0m COMMIT
|
29832
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
29833
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
29834
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
29835
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
|
29836
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
29837
|
+
[1m[35m (0.1ms)[0m BEGIN
|
29838
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("type") VALUES ($1) RETURNING "id"[0m [["type", "SubUser"]]
|
29839
|
+
[1m[35m (0.4ms)[0m COMMIT
|
29840
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
29841
|
+
[1m[35mSQL (2.6ms)[0m INSERT INTO "payments" ("type") VALUES ($1) RETURNING "id" [["type", "SubPayment"]]
|
29842
|
+
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
|
29843
|
+
[1m[35m (0.3ms)[0m BEGIN
|
29844
|
+
[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") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id"[0m [["secret", "0757d278-3353-4b60-82cf-159638f1e6c3"], ["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", "4a2aa2b414a5b36db7efd83d"]]
|
29845
|
+
[1m[35m (0.5ms)[0m COMMIT
|
29846
|
+
[1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 1]]
|
29847
|
+
[1m[35mPayment Load (0.4ms)[0m SELECT "payments".* FROM "payments" WHERE "payments"."id" = $1 LIMIT 1 [["id", 1]]
|
29848
|
+
[1m[36m (0.3ms)[0m [1mALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL[0m
|
29849
|
+
[1m[35m (9.7ms)[0m TRUNCATE TABLE "public"."billers", "public"."users", "public"."bloom_remit_txns", "public"."bloom_remit_responses", "public"."payments" RESTART IDENTITY CASCADE;
|
29850
|
+
[1m[36m (0.4ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL[0m
|
29851
|
+
[1m[35m (0.2ms)[0m BEGIN
|
29852
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
29853
|
+
[1m[35m (0.5ms)[0m COMMIT
|
29854
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
29855
|
+
[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", "0fb10c4c-b263-40fd-9aab-1ea75ab02961"], ["external_id", "49e89ad18441b75f3b9f7802"], ["sender_id", "1"], ["sender_type", "User"]]
|
29856
|
+
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
|
29857
|
+
[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", "0fb10c4c-b263-40fd-9aab-1ea75ab02961"]]
|
29858
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
29859
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 1], ["id", 1]]
|
29860
|
+
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
|
29861
|
+
[1m[35m (0.3ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL
|
29862
|
+
[1m[36m (19.1ms)[0m [1mTRUNCATE TABLE "public"."billers", "public"."users", "public"."bloom_remit_txns", "public"."bloom_remit_responses", "public"."payments" RESTART IDENTITY CASCADE;[0m
|
29863
|
+
[1m[35m (0.4ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL
|
29864
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
29865
|
+
[1m[35m (0.4ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL
|
29866
|
+
[1m[36m (1.1ms)[0m [1m SELECT schemaname || '.' || tablename
|
29867
|
+
FROM pg_tables
|
29868
|
+
WHERE
|
29869
|
+
tablename !~ '_prt_' AND
|
29870
|
+
tablename <> 'schema_migrations' AND
|
29871
|
+
schemaname = ANY (current_schemas(false))
|
29872
|
+
[0m
|
29873
|
+
[1m[35m (1.1ms)[0m select table_name from information_schema.views where table_schema = 'bloom_remit_rails_test'
|
29874
|
+
[1m[36m (10.1ms)[0m [1mTRUNCATE TABLE "public"."billers", "public"."users", "public"."bloom_remit_txns", "public"."bloom_remit_responses", "public"."payments" RESTART IDENTITY CASCADE;[0m
|
29875
|
+
[1m[35m (0.4ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL
|
29876
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
29877
|
+
[1m[35m (0.2ms)[0m COMMIT
|
29878
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
29879
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
29880
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
29881
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
|
29882
|
+
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
|
29883
|
+
[1m[35m (0.3ms)[0m BEGIN
|
29884
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("type") VALUES ($1) RETURNING "id"[0m [["type", "SubUser"]]
|
29885
|
+
[1m[35m (0.5ms)[0m COMMIT
|
29886
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
29887
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "payments" ("type") VALUES ($1) RETURNING "id" [["type", "SubPayment"]]
|
29888
|
+
[1m[36m (0.9ms)[0m [1mCOMMIT[0m
|
29889
|
+
[1m[35m (0.3ms)[0m BEGIN
|
29890
|
+
[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") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id"[0m [["secret", "b8adc87d-230c-4bcb-935f-eafab38f225e"], ["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", "573bd6ea81c8095cea333c8f"]]
|
29891
|
+
[1m[35m (0.6ms)[0m COMMIT
|
29892
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 1]]
|
29893
|
+
[1m[35mPayment Load (0.4ms)[0m SELECT "payments".* FROM "payments" WHERE "payments"."id" = $1 LIMIT 1 [["id", 1]]
|
29894
|
+
[1m[36m (0.3ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL[0m
|
29895
|
+
[1m[35m (10.5ms)[0m TRUNCATE TABLE "public"."billers", "public"."users", "public"."bloom_remit_txns", "public"."bloom_remit_responses", "public"."payments" RESTART IDENTITY CASCADE;
|
29896
|
+
[1m[36m (0.4ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL[0m
|
29897
|
+
[1m[35m (0.2ms)[0m BEGIN
|
29898
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
29899
|
+
[1m[35m (0.6ms)[0m COMMIT
|
29900
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
29901
|
+
[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", "bc743859-2a49-4219-b131-d4b82fcdbfeb"], ["external_id", "f783f1d07ef6ea05a9aad2cd"], ["sender_id", "1"], ["sender_type", "User"]]
|
29902
|
+
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
|
29903
|
+
[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", "bc743859-2a49-4219-b131-d4b82fcdbfeb"]]
|
29904
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
29905
|
+
[1m[35mSQL (0.4ms)[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]]
|
29906
|
+
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
|
29907
|
+
[1m[35m (0.5ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL
|
29908
|
+
[1m[36m (11.2ms)[0m [1mTRUNCATE TABLE "public"."billers", "public"."users", "public"."bloom_remit_txns", "public"."bloom_remit_responses", "public"."payments" RESTART IDENTITY CASCADE;[0m
|
29909
|
+
[1m[35m (0.4ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL
|
29910
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
29911
|
+
[1m[35m (0.3ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL
|
29912
|
+
[1m[36m (1.0ms)[0m [1m SELECT schemaname || '.' || tablename
|
29913
|
+
FROM pg_tables
|
29914
|
+
WHERE
|
29915
|
+
tablename !~ '_prt_' AND
|
29916
|
+
tablename <> 'schema_migrations' AND
|
29917
|
+
schemaname = ANY (current_schemas(false))
|
29918
|
+
[0m
|
29919
|
+
[1m[35m (0.9ms)[0m select table_name from information_schema.views where table_schema = 'bloom_remit_rails_test'
|
29920
|
+
[1m[36m (14.9ms)[0m [1mTRUNCATE TABLE "public"."billers", "public"."users", "public"."bloom_remit_txns", "public"."bloom_remit_responses", "public"."payments" RESTART IDENTITY CASCADE;[0m
|
29921
|
+
[1m[35m (0.3ms)[0m ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL
|
29922
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
29923
|
+
[1m[35m (0.1ms)[0m COMMIT
|
29924
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
29925
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
29926
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
29927
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
|
29928
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
29929
|
+
[1m[35m (0.1ms)[0m BEGIN
|
29930
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("type") VALUES ($1) RETURNING "id"[0m [["type", "SubUser"]]
|
29931
|
+
[1m[35m (0.3ms)[0m COMMIT
|
29932
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
29933
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "payments" ("type") VALUES ($1) RETURNING "id" [["type", "SubPayment"]]
|
29934
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
29935
|
+
[1m[35m (0.1ms)[0m BEGIN
|
29936
|
+
[1m[36mSQL (0.4ms)[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", "a591a4fb-27f3-429a-8bd3-c6942c95dcec"], ["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", "08ab3e2020d7d80373da4e29"]]
|
29937
|
+
[1m[35m (0.3ms)[0m COMMIT
|
29938
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 1]]
|
29939
|
+
[1m[35mPayment Load (0.2ms)[0m SELECT "payments".* FROM "payments" WHERE "payments"."id" = $1 LIMIT 1 [["id", 1]]
|
29940
|
+
[1m[36m (0.2ms)[0m [1mALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL[0m
|
29941
|
+
[1m[35m (13.6ms)[0m TRUNCATE TABLE "public"."billers", "public"."users", "public"."bloom_remit_txns", "public"."bloom_remit_responses", "public"."payments" RESTART IDENTITY CASCADE;
|
29942
|
+
[1m[36m (0.3ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL[0m
|
29943
|
+
[1m[35m (0.2ms)[0m BEGIN
|
29944
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
29945
|
+
[1m[35m (0.6ms)[0m COMMIT
|
29946
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
29947
|
+
[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", "5e5807b3-ac19-4a0c-bc5f-12ea8ff269ae"], ["external_id", "f1aeb5d8f72e08329ad4b3ba"], ["sender_id", "1"], ["sender_type", "User"]]
|
29948
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
29949
|
+
[1m[35mBloomRemit::Txn Load (0.2ms)[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", "5e5807b3-ac19-4a0c-bc5f-12ea8ff269ae"]]
|
29950
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
29951
|
+
[1m[35mSQL (0.5ms)[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]]
|
29952
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
29953
|
+
[1m[35m (0.2ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL
|
29954
|
+
[1m[36m (11.8ms)[0m [1mTRUNCATE TABLE "public"."billers", "public"."users", "public"."bloom_remit_txns", "public"."bloom_remit_responses", "public"."payments" RESTART IDENTITY CASCADE;[0m
|
29955
|
+
[1m[35m (0.4ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL
|
29956
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
29957
|
+
[1m[35m (0.5ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL
|
29958
|
+
[1m[36m (1.2ms)[0m [1m SELECT schemaname || '.' || tablename
|
29959
|
+
FROM pg_tables
|
29960
|
+
WHERE
|
29961
|
+
tablename !~ '_prt_' AND
|
29962
|
+
tablename <> 'schema_migrations' AND
|
29963
|
+
schemaname = ANY (current_schemas(false))
|
29964
|
+
[0m
|
29965
|
+
[1m[35m (1.1ms)[0m select table_name from information_schema.views where table_schema = 'bloom_remit_rails_test'
|
29966
|
+
[1m[36m (12.8ms)[0m [1mTRUNCATE TABLE "public"."billers", "public"."users", "public"."bloom_remit_txns", "public"."bloom_remit_responses", "public"."payments" RESTART IDENTITY CASCADE;[0m
|
29967
|
+
[1m[35m (0.4ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL
|
29968
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
29969
|
+
[1m[35m (0.2ms)[0m COMMIT
|
29970
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
29971
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
29972
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
29973
|
+
[1m[35m (0.2ms)[0m COMMIT
|
29974
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
29975
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
29976
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
29977
|
+
[1m[35m (0.2ms)[0m COMMIT
|
29978
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
29979
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
29980
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
29981
|
+
[1m[35mSQL (2.4ms)[0m INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
|
29982
|
+
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
|
29983
|
+
[1m[35m (0.3ms)[0m BEGIN
|
29984
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("type") VALUES ($1) RETURNING "id"[0m [["type", "SubUser"]]
|
29985
|
+
[1m[35m (0.6ms)[0m COMMIT
|
29986
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
29987
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "payments" ("type") VALUES ($1) RETURNING "id" [["type", "SubPayment"]]
|
29988
|
+
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
|
29989
|
+
[1m[35m (0.3ms)[0m BEGIN
|
29990
|
+
[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") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id"[0m [["secret", "899385a4-6b40-4f61-aba6-f54b7545d690"], ["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", "5f550beca5c53cddc85d234a"]]
|
29991
|
+
[1m[35m (0.5ms)[0m COMMIT
|
29992
|
+
[1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 1]]
|
29993
|
+
[1m[35mPayment Load (0.4ms)[0m SELECT "payments".* FROM "payments" WHERE "payments"."id" = $1 LIMIT 1 [["id", 1]]
|
29994
|
+
[1m[36m (0.6ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL[0m
|
29995
|
+
[1m[35m (20.4ms)[0m TRUNCATE TABLE "public"."billers", "public"."users", "public"."bloom_remit_txns", "public"."bloom_remit_responses", "public"."payments" RESTART IDENTITY CASCADE;
|
29996
|
+
[1m[36m (0.8ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL[0m
|
29997
|
+
[1m[35m (0.3ms)[0m BEGIN
|
29998
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
29999
|
+
[1m[35m (0.2ms)[0m COMMIT
|
30000
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
30001
|
+
[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", "7995c271-419e-466e-8abb-13b27b28d167"], ["external_id", "134f50d8815165507b8a78a9"], ["sender_id", "1"], ["sender_type", "User"]]
|
30002
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
30003
|
+
[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", "7995c271-419e-466e-8abb-13b27b28d167"]]
|
30004
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
30005
|
+
[1m[35mSQL (0.2ms)[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]]
|
30006
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
30007
|
+
[1m[35m (0.2ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL
|
30008
|
+
[1m[36m (11.1ms)[0m [1mTRUNCATE TABLE "public"."billers", "public"."users", "public"."bloom_remit_txns", "public"."bloom_remit_responses", "public"."payments" RESTART IDENTITY CASCADE;[0m
|
30009
|
+
[1m[35m (0.3ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL
|
30010
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
30011
|
+
[1m[35m (0.1ms)[0m COMMIT
|
30012
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
30013
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
30014
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
30015
|
+
[1m[35m (0.1ms)[0m COMMIT
|
30016
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
30017
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
30018
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
30019
|
+
[1m[35m (0.1ms)[0m COMMIT
|
30020
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
30021
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
30022
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
30023
|
+
[1m[35m (0.1ms)[0m COMMIT
|
30024
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
30025
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
30026
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
30027
|
+
[1m[35m (0.1ms)[0m COMMIT
|
30028
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
30029
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
30030
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
30031
|
+
[1m[35m (0.1ms)[0m COMMIT
|
30032
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
30033
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
30034
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
30035
|
+
[1m[35m (0.1ms)[0m COMMIT
|
30036
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
30037
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
30038
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
30039
|
+
[1m[35m (0.1ms)[0m COMMIT
|
30040
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
30041
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
30042
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
30043
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
30044
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
30045
|
+
[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", "f3471204-7e7c-42e4-a585-3357d2ee9842"], ["external_id", "a9bc29543b64e3a4501c4f8b"], ["sender_id", "1"], ["sender_type", "User"]]
|
30046
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
30047
|
+
Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-08-09 04:40:13 +0000
|
30048
|
+
Processing by BloomRemit::Api::V1::TxnsController#post_update as JSON
|
30049
|
+
Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"1", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
|
30050
|
+
[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", nil]]
|
30051
|
+
Rendered text template (0.0ms)
|
30052
|
+
Completed 404 Not Found in 41ms (Views: 39.5ms | ActiveRecord: 0.3ms)
|
30053
|
+
Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-08-09 04:40:13 +0000
|
30054
|
+
Processing by BloomRemit::Api::V1::TxnsController#post_update as JSON
|
30055
|
+
Parameters: {"secret"=>"f3471204-7e7c-42e4-a585-3357d2ee9842", "status"=>"paid", "id"=>"1", "txn"=>{"status"=>"paid", "secret"=>"f3471204-7e7c-42e4-a585-3357d2ee9842"}}
|
30056
|
+
[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", 1], ["secret", "f3471204-7e7c-42e4-a585-3357d2ee9842"]]
|
30057
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
30058
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2[0m [["status", 1], ["id", 1]]
|
30059
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
30060
|
+
Completed 200 OK in 5ms (Views: 0.4ms | ActiveRecord: 0.7ms)
|
30061
|
+
[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]]
|
30062
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
30063
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
30064
|
+
[1m[35m (0.1ms)[0m COMMIT
|
30065
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
30066
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
30067
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
30068
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
30069
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
30070
|
+
[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", "2cd76032-3512-427f-a54d-fc22149bfb4d"], ["external_id", "282acf38a5ce7b9a658fda97"], ["sender_id", "2"], ["sender_type", "User"]]
|
30071
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
30072
|
+
Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-08-09 04:40:13 +0000
|
30073
|
+
Processing by BloomRemit::Api::V1::TxnsController#update as JSON
|
30074
|
+
Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"2", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
|
30075
|
+
[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]]
|
30076
|
+
Rendered text template (0.0ms)
|
30077
|
+
Completed 404 Not Found in 2ms (Views: 0.5ms | ActiveRecord: 0.3ms)
|
30078
|
+
Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-08-09 04:40:13 +0000
|
30079
|
+
Processing by BloomRemit::Api::V1::TxnsController#update as JSON
|
30080
|
+
Parameters: {"secret"=>"2cd76032-3512-427f-a54d-fc22149bfb4d", "status"=>"paid", "id"=>"2", "txn"=>{"status"=>"paid", "secret"=>"2cd76032-3512-427f-a54d-fc22149bfb4d"}}
|
30081
|
+
[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", "2cd76032-3512-427f-a54d-fc22149bfb4d"]]
|
30082
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
30083
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2[0m [["status", 1], ["id", 2]]
|
30084
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
30085
|
+
Completed 204 No Content in 50ms (ActiveRecord: 0.8ms)
|
30086
|
+
[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", 2]]
|
30087
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
30088
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
30089
|
+
[1m[35m (0.1ms)[0m COMMIT
|
30090
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
30091
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
30092
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("type") VALUES ($1) RETURNING "id"[0m [["type", "SubUser"]]
|
30093
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
30094
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
30095
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
|
30096
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
30097
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
30098
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "payments" ("type") VALUES ($1) RETURNING "id"[0m [["type", "SubPayment"]]
|
30099
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
30100
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
30101
|
+
[1m[35mSQL (0.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", "5286fa46-8e7a-4cf8-bd6b-6c5e9f132e87"], ["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", "7420b1a022dac898cc2e688d"]]
|
30102
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
30103
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
30104
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
30105
|
+
[1m[35m (0.1ms)[0m COMMIT
|
30106
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
30107
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
30108
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
30109
|
+
[1m[35m (0.1ms)[0m COMMIT
|
30110
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
30111
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
30112
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "payments" DEFAULT VALUES RETURNING "id"[0m
|
30113
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
30114
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
30115
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" DEFAULT VALUES RETURNING "id"
|
30116
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
30117
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
30118
|
+
[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", "0a2d59b6-df5e-419b-aa7f-1aca924c67c4"], ["external_id", "872394c691b07b206be34881"], ["owner_id", "2"], ["owner_type", "Payment"], ["sender_id", "4"], ["sender_type", "User"]]
|
30119
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
30120
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
30121
|
+
[1m[35mSQL (0.3ms)[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-08-09 04:40:13.881725"], ["updated_at", "2016-08-09 04:40:13.881725"]]
|
30122
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
30123
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "bloom_remit_responses" WHERE "bloom_remit_responses"."txn_id" = $1 [["txn_id", 4]]
|
30124
|
+
[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]]
|
30125
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
30126
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
30127
|
+
[1m[35m (0.1ms)[0m COMMIT
|
30128
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
30129
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
30130
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
30131
|
+
[1m[35m (0.1ms)[0m COMMIT
|
30132
|
+
[1m[36m (0.7ms)[0m [1mBEGIN[0m
|
30133
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
30134
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
30135
|
+
[1m[35m (0.1ms)[0m COMMIT
|
30136
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
30137
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
30138
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
30139
|
+
[1m[35m (0.1ms)[0m COMMIT
|
30140
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
30141
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
30142
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
30143
|
+
[1m[35m (0.1ms)[0m COMMIT
|
30144
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
30145
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
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.5.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-08-
|
11
|
+
date: 2016-08-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -383,6 +383,7 @@ files:
|
|
383
383
|
- db/migrate/20160805095308_change_txns_sender_id_to_string.rb
|
384
384
|
- db/migrate/20160806054012_create_bloom_remit_responses.rb
|
385
385
|
- db/migrate/20160808081300_add_external_id_to_bloom_remit_txns.rb
|
386
|
+
- db/migrate/20160809043433_add_status_description_to_bloom_remit_txns.rb
|
386
387
|
- lib/bloom_remit.rb
|
387
388
|
- lib/bloom_remit/engine.rb
|
388
389
|
- lib/bloom_remit/factories.rb
|