bloom_remit 0.5.0 → 0.6.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 +1 -0
- data/db/migrate/20160817003323_add_vendor_external_id_to_bloom_remit_txns.rb +6 -0
- data/lib/bloom_remit/version.rb +1 -1
- data/spec/concepts/bloom_remit/txns/operations/update_spec.rb +3 -0
- data/spec/dummy/db/schema.rb +14 -1
- data/spec/dummy/log/development.log +241 -0
- data/spec/dummy/log/test.log +491 -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: b73a4e8df7a543da32563c109070df972dcde2f8
|
4
|
+
data.tar.gz: c914836f6a99b120250699b6c4cf4a922b130cc9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d4d2bcfa3bd628730c97eefc4c343c573f7ae429e5f88636b8d7ebfdcf34c8234ad0a3e2279d55421234fb5dd01e3239c9dc13f99241af68a5d88cf1ecc3603d
|
7
|
+
data.tar.gz: eeea47f87d68903932c083767edcc8966af0ff43a28f4dd98032081813380b6045026868990dcdb3c355ebb8d5609bbcdfe9d6a3414ed2864af930eb9bd4d8df
|
data/lib/bloom_remit/version.rb
CHANGED
@@ -14,13 +14,16 @@ module BloomRemit
|
|
14
14
|
secret: txn.secret,
|
15
15
|
status: "paid",
|
16
16
|
status_description: "My status description",
|
17
|
+
vendor_external_id: "somerefno",
|
17
18
|
)
|
18
19
|
txn = op.model
|
19
20
|
expect(txn.status).to eq "paid"
|
20
21
|
expect(txn.status_description).to eq "My status description"
|
22
|
+
expect(txn.vendor_external_id).to eq "somerefno"
|
21
23
|
expect(OnUpdateJob).to have_enqueued_job(txn.id, {
|
22
24
|
status: "paid",
|
23
25
|
status_description: "My status description",
|
26
|
+
vendor_external_id: "somerefno",
|
24
27
|
})
|
25
28
|
end
|
26
29
|
|
data/spec/dummy/db/schema.rb
CHANGED
@@ -11,15 +11,26 @@
|
|
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: 20160817003323) 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"
|
18
19
|
|
19
20
|
create_table "billers", force: :cascade do |t|
|
20
21
|
t.string "slug"
|
21
22
|
end
|
22
23
|
|
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
|
+
|
23
34
|
create_table "bloom_remit_responses", force: :cascade do |t|
|
24
35
|
t.integer "txn_id", null: false
|
25
36
|
t.text "body", null: false
|
@@ -42,10 +53,12 @@ ActiveRecord::Schema.define(version: 20160809043433) do
|
|
42
53
|
t.string "owner_type"
|
43
54
|
t.string "external_id", null: false
|
44
55
|
t.text "status_description"
|
56
|
+
t.string "vendor_external_id"
|
45
57
|
end
|
46
58
|
|
47
59
|
add_index "bloom_remit_txns", ["external_id"], name: "index_bloom_remit_txns_on_external_id", using: :btree
|
48
60
|
add_index "bloom_remit_txns", ["owner_id", "owner_type"], name: "index_bloom_remit_txns_on_owner_id_and_owner_type", using: :btree
|
61
|
+
add_index "bloom_remit_txns", ["vendor_external_id"], name: "index_bloom_remit_txns_on_vendor_external_id", using: :btree
|
49
62
|
|
50
63
|
create_table "payments", force: :cascade do |t|
|
51
64
|
t.string "type"
|
@@ -1951,3 +1951,244 @@ WHERE c.contype = 'f'
|
|
1951
1951
|
AND t3.nspname = ANY (current_schemas(false))
|
1952
1952
|
ORDER BY c.conname
|
1953
1953
|
|
1954
|
+
[1m[36mActiveRecord::SchemaMigration Load (1.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1955
|
+
Migrating to AddVendorExternalIdToBloomRemitTxns (20160817003323)
|
1956
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1957
|
+
[1m[36m (7.0ms)[0m [1mALTER TABLE "bloom_remit_txns" ADD "vendor_external_id" character varying NOT NULL[0m
|
1958
|
+
[1m[35m (8.4ms)[0m CREATE INDEX "index_bloom_remit_txns_on_vendor_external_id" ON "bloom_remit_txns" ("vendor_external_id")
|
1959
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20160817003323"]]
|
1960
|
+
[1m[35m (0.6ms)[0m COMMIT
|
1961
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1962
|
+
[1m[35m (3.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
|
1963
|
+
FROM pg_constraint c
|
1964
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
1965
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
1966
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
1967
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
1968
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
1969
|
+
WHERE c.contype = 'f'
|
1970
|
+
AND t1.relname = 'billers'
|
1971
|
+
AND t3.nspname = ANY (current_schemas(false))
|
1972
|
+
ORDER BY c.conname
|
1973
|
+
|
1974
|
+
[1m[36m (3.8ms)[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
|
1975
|
+
FROM pg_constraint c
|
1976
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
1977
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
1978
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
1979
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
1980
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
1981
|
+
WHERE c.contype = 'f'
|
1982
|
+
AND t1.relname = 'bloom_remit_billers'
|
1983
|
+
AND t3.nspname = ANY (current_schemas(false))
|
1984
|
+
ORDER BY c.conname
|
1985
|
+
[0m
|
1986
|
+
[1m[35m (5.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
|
1987
|
+
FROM pg_constraint c
|
1988
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
1989
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
1990
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
1991
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
1992
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
1993
|
+
WHERE c.contype = 'f'
|
1994
|
+
AND t1.relname = 'bloom_remit_responses'
|
1995
|
+
AND t3.nspname = ANY (current_schemas(false))
|
1996
|
+
ORDER BY c.conname
|
1997
|
+
|
1998
|
+
[1m[36m (5.3ms)[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
|
1999
|
+
FROM pg_constraint c
|
2000
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
2001
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
2002
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
2003
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
2004
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
2005
|
+
WHERE c.contype = 'f'
|
2006
|
+
AND t1.relname = 'bloom_remit_txns'
|
2007
|
+
AND t3.nspname = ANY (current_schemas(false))
|
2008
|
+
ORDER BY c.conname
|
2009
|
+
[0m
|
2010
|
+
[1m[35m (8.6ms)[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
|
2011
|
+
FROM pg_constraint c
|
2012
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
2013
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
2014
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
2015
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
2016
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
2017
|
+
WHERE c.contype = 'f'
|
2018
|
+
AND t1.relname = 'payments'
|
2019
|
+
AND t3.nspname = ANY (current_schemas(false))
|
2020
|
+
ORDER BY c.conname
|
2021
|
+
|
2022
|
+
[1m[36m (2.6ms)[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
|
2023
|
+
FROM pg_constraint c
|
2024
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
2025
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
2026
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
2027
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
2028
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
2029
|
+
WHERE c.contype = 'f'
|
2030
|
+
AND t1.relname = 'users'
|
2031
|
+
AND t3.nspname = ANY (current_schemas(false))
|
2032
|
+
ORDER BY c.conname
|
2033
|
+
[0m
|
2034
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2035
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.3ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
2036
|
+
Migrating to AddVendorExternalIdToBloomRemitTxns (20160817003323)
|
2037
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
2038
|
+
[1m[35m (3.0ms)[0m DROP INDEX "index_bloom_remit_txns_on_vendor_external_id"
|
2039
|
+
[1m[36m (0.4ms)[0m [1mALTER TABLE "bloom_remit_txns" DROP "vendor_external_id"[0m
|
2040
|
+
[1m[35mSQL (0.4ms)[0m DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20160817003323"]]
|
2041
|
+
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
|
2042
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.3ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
2043
|
+
[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
|
2044
|
+
FROM pg_constraint c
|
2045
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
2046
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
2047
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
2048
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
2049
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
2050
|
+
WHERE c.contype = 'f'
|
2051
|
+
AND t1.relname = 'billers'
|
2052
|
+
AND t3.nspname = ANY (current_schemas(false))
|
2053
|
+
ORDER BY c.conname
|
2054
|
+
[0m
|
2055
|
+
[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
|
2056
|
+
FROM pg_constraint c
|
2057
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
2058
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
2059
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
2060
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
2061
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
2062
|
+
WHERE c.contype = 'f'
|
2063
|
+
AND t1.relname = 'bloom_remit_billers'
|
2064
|
+
AND t3.nspname = ANY (current_schemas(false))
|
2065
|
+
ORDER BY c.conname
|
2066
|
+
|
2067
|
+
[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
|
2068
|
+
FROM pg_constraint c
|
2069
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
2070
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
2071
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
2072
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
2073
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
2074
|
+
WHERE c.contype = 'f'
|
2075
|
+
AND t1.relname = 'bloom_remit_responses'
|
2076
|
+
AND t3.nspname = ANY (current_schemas(false))
|
2077
|
+
ORDER BY c.conname
|
2078
|
+
[0m
|
2079
|
+
[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
|
2080
|
+
FROM pg_constraint c
|
2081
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
2082
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
2083
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
2084
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
2085
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
2086
|
+
WHERE c.contype = 'f'
|
2087
|
+
AND t1.relname = 'bloom_remit_txns'
|
2088
|
+
AND t3.nspname = ANY (current_schemas(false))
|
2089
|
+
ORDER BY c.conname
|
2090
|
+
|
2091
|
+
[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
|
2092
|
+
FROM pg_constraint c
|
2093
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
2094
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
2095
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
2096
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
2097
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
2098
|
+
WHERE c.contype = 'f'
|
2099
|
+
AND t1.relname = 'payments'
|
2100
|
+
AND t3.nspname = ANY (current_schemas(false))
|
2101
|
+
ORDER BY c.conname
|
2102
|
+
[0m
|
2103
|
+
[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
|
2104
|
+
FROM pg_constraint c
|
2105
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
2106
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
2107
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
2108
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
2109
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
2110
|
+
WHERE c.contype = 'f'
|
2111
|
+
AND t1.relname = 'users'
|
2112
|
+
AND t3.nspname = ANY (current_schemas(false))
|
2113
|
+
ORDER BY c.conname
|
2114
|
+
|
2115
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2116
|
+
Migrating to AddVendorExternalIdToBloomRemitTxns (20160817003323)
|
2117
|
+
[1m[35m (0.2ms)[0m BEGIN
|
2118
|
+
[1m[36m (0.7ms)[0m [1mALTER TABLE "bloom_remit_txns" ADD "vendor_external_id" character varying[0m
|
2119
|
+
[1m[35m (2.3ms)[0m CREATE INDEX "index_bloom_remit_txns_on_vendor_external_id" ON "bloom_remit_txns" ("vendor_external_id")
|
2120
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20160817003323"]]
|
2121
|
+
[1m[35m (0.8ms)[0m COMMIT
|
2122
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2123
|
+
[1m[35m (2.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
|
2124
|
+
FROM pg_constraint c
|
2125
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
2126
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
2127
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
2128
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
2129
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
2130
|
+
WHERE c.contype = 'f'
|
2131
|
+
AND t1.relname = 'billers'
|
2132
|
+
AND t3.nspname = ANY (current_schemas(false))
|
2133
|
+
ORDER BY c.conname
|
2134
|
+
|
2135
|
+
[1m[36m (1.9ms)[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
|
2136
|
+
FROM pg_constraint c
|
2137
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
2138
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
2139
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
2140
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
2141
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
2142
|
+
WHERE c.contype = 'f'
|
2143
|
+
AND t1.relname = 'bloom_remit_billers'
|
2144
|
+
AND t3.nspname = ANY (current_schemas(false))
|
2145
|
+
ORDER BY c.conname
|
2146
|
+
[0m
|
2147
|
+
[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
|
2148
|
+
FROM pg_constraint c
|
2149
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
2150
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
2151
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
2152
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
2153
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
2154
|
+
WHERE c.contype = 'f'
|
2155
|
+
AND t1.relname = 'bloom_remit_responses'
|
2156
|
+
AND t3.nspname = ANY (current_schemas(false))
|
2157
|
+
ORDER BY c.conname
|
2158
|
+
|
2159
|
+
[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
|
2160
|
+
FROM pg_constraint c
|
2161
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
2162
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
2163
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
2164
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
2165
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
2166
|
+
WHERE c.contype = 'f'
|
2167
|
+
AND t1.relname = 'bloom_remit_txns'
|
2168
|
+
AND t3.nspname = ANY (current_schemas(false))
|
2169
|
+
ORDER BY c.conname
|
2170
|
+
[0m
|
2171
|
+
[1m[35m (2.1ms)[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
|
2172
|
+
FROM pg_constraint c
|
2173
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
2174
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
2175
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
2176
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
2177
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
2178
|
+
WHERE c.contype = 'f'
|
2179
|
+
AND t1.relname = 'payments'
|
2180
|
+
AND t3.nspname = ANY (current_schemas(false))
|
2181
|
+
ORDER BY c.conname
|
2182
|
+
|
2183
|
+
[1m[36m (2.3ms)[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
|
2184
|
+
FROM pg_constraint c
|
2185
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
2186
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
2187
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
2188
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
2189
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
2190
|
+
WHERE c.contype = 'f'
|
2191
|
+
AND t1.relname = 'users'
|
2192
|
+
AND t3.nspname = ANY (current_schemas(false))
|
2193
|
+
ORDER BY c.conname
|
2194
|
+
[0m
|
data/spec/dummy/log/test.log
CHANGED
@@ -30143,3 +30143,494 @@ Completed 204 No Content in 50ms (ActiveRecord: 0.8ms)
|
|
30143
30143
|
[1m[35m (0.1ms)[0m COMMIT
|
30144
30144
|
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
30145
30145
|
[1m[35m (0.1ms)[0m ROLLBACK
|
30146
|
+
[1m[36mActiveRecord::SchemaMigration Load (1.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
30147
|
+
Migrating to AddVendorExternalIdToBloomRemitTxns (20160817003323)
|
30148
|
+
[1m[35m (0.2ms)[0m BEGIN
|
30149
|
+
[1m[36m (4.5ms)[0m [1mALTER TABLE "bloom_remit_txns" ADD "vendor_external_id" character varying NOT NULL[0m
|
30150
|
+
[1m[35m (6.4ms)[0m CREATE INDEX "index_bloom_remit_txns_on_vendor_external_id" ON "bloom_remit_txns" ("vendor_external_id")
|
30151
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20160817003323"]]
|
30152
|
+
[1m[35m (0.7ms)[0m COMMIT
|
30153
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
30154
|
+
[1m[35m (2.1ms)[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
|
30155
|
+
FROM pg_constraint c
|
30156
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
30157
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
30158
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
30159
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
30160
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
30161
|
+
WHERE c.contype = 'f'
|
30162
|
+
AND t1.relname = 'billers'
|
30163
|
+
AND t3.nspname = ANY (current_schemas(false))
|
30164
|
+
ORDER BY c.conname
|
30165
|
+
|
30166
|
+
[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
|
30167
|
+
FROM pg_constraint c
|
30168
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
30169
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
30170
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
30171
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
30172
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
30173
|
+
WHERE c.contype = 'f'
|
30174
|
+
AND t1.relname = 'bloom_remit_responses'
|
30175
|
+
AND t3.nspname = ANY (current_schemas(false))
|
30176
|
+
ORDER BY c.conname
|
30177
|
+
[0m
|
30178
|
+
[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
|
30179
|
+
FROM pg_constraint c
|
30180
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
30181
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
30182
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
30183
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
30184
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
30185
|
+
WHERE c.contype = 'f'
|
30186
|
+
AND t1.relname = 'bloom_remit_txns'
|
30187
|
+
AND t3.nspname = ANY (current_schemas(false))
|
30188
|
+
ORDER BY c.conname
|
30189
|
+
|
30190
|
+
[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
|
30191
|
+
FROM pg_constraint c
|
30192
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
30193
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
30194
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
30195
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
30196
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
30197
|
+
WHERE c.contype = 'f'
|
30198
|
+
AND t1.relname = 'payments'
|
30199
|
+
AND t3.nspname = ANY (current_schemas(false))
|
30200
|
+
ORDER BY c.conname
|
30201
|
+
[0m
|
30202
|
+
[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
|
30203
|
+
FROM pg_constraint c
|
30204
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
30205
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
30206
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
30207
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
30208
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
30209
|
+
WHERE c.contype = 'f'
|
30210
|
+
AND t1.relname = 'users'
|
30211
|
+
AND t3.nspname = ANY (current_schemas(false))
|
30212
|
+
ORDER BY c.conname
|
30213
|
+
|
30214
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
30215
|
+
[1m[35m (1.0ms)[0m ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL
|
30216
|
+
[1m[36m (1.3ms)[0m [1m SELECT schemaname || '.' || tablename
|
30217
|
+
FROM pg_tables
|
30218
|
+
WHERE
|
30219
|
+
tablename !~ '_prt_' AND
|
30220
|
+
tablename <> 'schema_migrations' AND
|
30221
|
+
schemaname = ANY (current_schemas(false))
|
30222
|
+
[0m
|
30223
|
+
[1m[35m (3.1ms)[0m select table_name from information_schema.views where table_schema = 'bloom_remit_rails_test'
|
30224
|
+
[1m[36m (13.6ms)[0m [1mTRUNCATE TABLE "public"."bloom_remit_txns", "public"."billers", "public"."users", "public"."bloom_remit_responses", "public"."payments" RESTART IDENTITY CASCADE;[0m
|
30225
|
+
[1m[35m (0.4ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL
|
30226
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
30227
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "users" DEFAULT VALUES RETURNING "id"
|
30228
|
+
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
|
30229
|
+
[1m[35m (1.5ms)[0m BEGIN
|
30230
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "2b0fb056-f9b5-4474-8091-ffbb1eb55770"], ["external_id", "1df3340b8a9f1d32e41ab7c6"], ["sender_id", "1"], ["sender_type", "User"]]
|
30231
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
30232
|
+
[1m[36m (0.3ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL[0m
|
30233
|
+
[1m[35m (10.5ms)[0m TRUNCATE TABLE "public"."bloom_remit_txns", "public"."billers", "public"."users", "public"."bloom_remit_responses", "public"."payments" RESTART IDENTITY CASCADE;
|
30234
|
+
[1m[36m (0.3ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL[0m
|
30235
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
30236
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
30237
|
+
Migrating to AddVendorExternalIdToBloomRemitTxns (20160817003323)
|
30238
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
30239
|
+
[1m[35m (2.8ms)[0m DROP INDEX "index_bloom_remit_txns_on_vendor_external_id"
|
30240
|
+
[1m[36m (0.3ms)[0m [1mALTER TABLE "bloom_remit_txns" DROP "vendor_external_id"[0m
|
30241
|
+
[1m[35mSQL (0.5ms)[0m DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20160817003323"]]
|
30242
|
+
[1m[36m (0.9ms)[0m [1mCOMMIT[0m
|
30243
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.3ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
30244
|
+
[1m[36m (1.8ms)[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
|
30245
|
+
FROM pg_constraint c
|
30246
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
30247
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
30248
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
30249
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
30250
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
30251
|
+
WHERE c.contype = 'f'
|
30252
|
+
AND t1.relname = 'billers'
|
30253
|
+
AND t3.nspname = ANY (current_schemas(false))
|
30254
|
+
ORDER BY c.conname
|
30255
|
+
[0m
|
30256
|
+
[1m[35m (1.6ms)[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
|
30257
|
+
FROM pg_constraint c
|
30258
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
30259
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
30260
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
30261
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
30262
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
30263
|
+
WHERE c.contype = 'f'
|
30264
|
+
AND t1.relname = 'bloom_remit_responses'
|
30265
|
+
AND t3.nspname = ANY (current_schemas(false))
|
30266
|
+
ORDER BY c.conname
|
30267
|
+
|
30268
|
+
[1m[36m (1.8ms)[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
|
30269
|
+
FROM pg_constraint c
|
30270
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
30271
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
30272
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
30273
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
30274
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
30275
|
+
WHERE c.contype = 'f'
|
30276
|
+
AND t1.relname = 'bloom_remit_txns'
|
30277
|
+
AND t3.nspname = ANY (current_schemas(false))
|
30278
|
+
ORDER BY c.conname
|
30279
|
+
[0m
|
30280
|
+
[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
|
30281
|
+
FROM pg_constraint c
|
30282
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
30283
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
30284
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
30285
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
30286
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
30287
|
+
WHERE c.contype = 'f'
|
30288
|
+
AND t1.relname = 'payments'
|
30289
|
+
AND t3.nspname = ANY (current_schemas(false))
|
30290
|
+
ORDER BY c.conname
|
30291
|
+
|
30292
|
+
[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
|
30293
|
+
FROM pg_constraint c
|
30294
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
30295
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
30296
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
30297
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
30298
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
30299
|
+
WHERE c.contype = 'f'
|
30300
|
+
AND t1.relname = 'users'
|
30301
|
+
AND t3.nspname = ANY (current_schemas(false))
|
30302
|
+
ORDER BY c.conname
|
30303
|
+
[0m
|
30304
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
30305
|
+
Migrating to AddVendorExternalIdToBloomRemitTxns (20160817003323)
|
30306
|
+
[1m[35m (0.2ms)[0m BEGIN
|
30307
|
+
[1m[36m (1.0ms)[0m [1mALTER TABLE "bloom_remit_txns" ADD "vendor_external_id" character varying[0m
|
30308
|
+
[1m[35m (1.1ms)[0m CREATE INDEX "index_bloom_remit_txns_on_vendor_external_id" ON "bloom_remit_txns" ("vendor_external_id")
|
30309
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20160817003323"]]
|
30310
|
+
[1m[35m (0.5ms)[0m COMMIT
|
30311
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
30312
|
+
[1m[35m (2.2ms)[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
|
30313
|
+
FROM pg_constraint c
|
30314
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
30315
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
30316
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
30317
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
30318
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
30319
|
+
WHERE c.contype = 'f'
|
30320
|
+
AND t1.relname = 'billers'
|
30321
|
+
AND t3.nspname = ANY (current_schemas(false))
|
30322
|
+
ORDER BY c.conname
|
30323
|
+
|
30324
|
+
[1m[36m (1.6ms)[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
|
30325
|
+
FROM pg_constraint c
|
30326
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
30327
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
30328
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
30329
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
30330
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
30331
|
+
WHERE c.contype = 'f'
|
30332
|
+
AND t1.relname = 'bloom_remit_responses'
|
30333
|
+
AND t3.nspname = ANY (current_schemas(false))
|
30334
|
+
ORDER BY c.conname
|
30335
|
+
[0m
|
30336
|
+
[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
|
30337
|
+
FROM pg_constraint c
|
30338
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
30339
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
30340
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
30341
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
30342
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
30343
|
+
WHERE c.contype = 'f'
|
30344
|
+
AND t1.relname = 'bloom_remit_txns'
|
30345
|
+
AND t3.nspname = ANY (current_schemas(false))
|
30346
|
+
ORDER BY c.conname
|
30347
|
+
|
30348
|
+
[1m[36m (1.8ms)[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
|
30349
|
+
FROM pg_constraint c
|
30350
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
30351
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
30352
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
30353
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
30354
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
30355
|
+
WHERE c.contype = 'f'
|
30356
|
+
AND t1.relname = 'payments'
|
30357
|
+
AND t3.nspname = ANY (current_schemas(false))
|
30358
|
+
ORDER BY c.conname
|
30359
|
+
[0m
|
30360
|
+
[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
|
30361
|
+
FROM pg_constraint c
|
30362
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
30363
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
30364
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
30365
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
30366
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
30367
|
+
WHERE c.contype = 'f'
|
30368
|
+
AND t1.relname = 'users'
|
30369
|
+
AND t3.nspname = ANY (current_schemas(false))
|
30370
|
+
ORDER BY c.conname
|
30371
|
+
|
30372
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
30373
|
+
[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
|
30374
|
+
[1m[36m (1.1ms)[0m [1m SELECT schemaname || '.' || tablename
|
30375
|
+
FROM pg_tables
|
30376
|
+
WHERE
|
30377
|
+
tablename !~ '_prt_' AND
|
30378
|
+
tablename <> 'schema_migrations' AND
|
30379
|
+
schemaname = ANY (current_schemas(false))
|
30380
|
+
[0m
|
30381
|
+
[1m[35m (0.9ms)[0m select table_name from information_schema.views where table_schema = 'bloom_remit_rails_test'
|
30382
|
+
[1m[36m (17.7ms)[0m [1mTRUNCATE TABLE "public"."billers", "public"."users", "public"."bloom_remit_txns", "public"."bloom_remit_responses", "public"."payments" RESTART IDENTITY CASCADE;[0m
|
30383
|
+
[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
|
30384
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
30385
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" DEFAULT VALUES RETURNING "id"
|
30386
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
30387
|
+
[1m[35m (0.1ms)[0m BEGIN
|
30388
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "dd381c1f-742c-402e-b563-3b5a8f990c93"], ["external_id", "630147c85c5cda161a212506"], ["sender_id", "1"], ["sender_type", "User"]]
|
30389
|
+
[1m[35m (0.5ms)[0m COMMIT
|
30390
|
+
[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", "dd381c1f-742c-402e-b563-3b5a8f990c93"]]
|
30391
|
+
[1m[35m (0.1ms)[0m BEGIN
|
30392
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "bloom_remit_txns" SET "status" = $1, "status_description" = $2 WHERE "bloom_remit_txns"."id" = $3[0m [["status", 1], ["status_description", "My status description"], ["id", 1]]
|
30393
|
+
[1m[35m (0.4ms)[0m COMMIT
|
30394
|
+
[1m[36m (0.2ms)[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
|
30395
|
+
[1m[35m (10.7ms)[0m TRUNCATE TABLE "public"."billers", "public"."users", "public"."bloom_remit_txns", "public"."bloom_remit_responses", "public"."payments" RESTART IDENTITY CASCADE;
|
30396
|
+
[1m[36m (0.2ms)[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
|
30397
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
30398
|
+
[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
|
30399
|
+
[1m[36m (1.2ms)[0m [1m SELECT schemaname || '.' || tablename
|
30400
|
+
FROM pg_tables
|
30401
|
+
WHERE
|
30402
|
+
tablename !~ '_prt_' AND
|
30403
|
+
tablename <> 'schema_migrations' AND
|
30404
|
+
schemaname = ANY (current_schemas(false))
|
30405
|
+
[0m
|
30406
|
+
[1m[35m (1.2ms)[0m select table_name from information_schema.views where table_schema = 'bloom_remit_rails_test'
|
30407
|
+
[1m[36m (14.1ms)[0m [1mTRUNCATE TABLE "public"."billers", "public"."users", "public"."bloom_remit_txns", "public"."bloom_remit_responses", "public"."payments" RESTART IDENTITY CASCADE;[0m
|
30408
|
+
[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
|
30409
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
30410
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" DEFAULT VALUES RETURNING "id"
|
30411
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
30412
|
+
[1m[35m (0.3ms)[0m BEGIN
|
30413
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "5ed3fee1-8975-4032-abc2-36de05e8f225"], ["external_id", "17845ccaaaab11d5b123e291"], ["sender_id", "1"], ["sender_type", "User"]]
|
30414
|
+
[1m[35m (0.5ms)[0m COMMIT
|
30415
|
+
[1m[36mBloomRemit::Txn Load (0.5ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1[0m [["id", 1], ["secret", "5ed3fee1-8975-4032-abc2-36de05e8f225"]]
|
30416
|
+
[1m[35m (0.2ms)[0m BEGIN
|
30417
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "bloom_remit_txns" SET "status" = $1, "status_description" = $2 WHERE "bloom_remit_txns"."id" = $3[0m [["status", 1], ["status_description", "My status description"], ["id", 1]]
|
30418
|
+
[1m[35m (0.5ms)[0m COMMIT
|
30419
|
+
[1m[36m (0.5ms)[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
|
30420
|
+
[1m[35m (13.2ms)[0m TRUNCATE TABLE "public"."billers", "public"."users", "public"."bloom_remit_txns", "public"."bloom_remit_responses", "public"."payments" RESTART IDENTITY CASCADE;
|
30421
|
+
[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
|
30422
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
30423
|
+
[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
|
30424
|
+
[1m[36m (1.2ms)[0m [1m SELECT schemaname || '.' || tablename
|
30425
|
+
FROM pg_tables
|
30426
|
+
WHERE
|
30427
|
+
tablename !~ '_prt_' AND
|
30428
|
+
tablename <> 'schema_migrations' AND
|
30429
|
+
schemaname = ANY (current_schemas(false))
|
30430
|
+
[0m
|
30431
|
+
[1m[35m (1.1ms)[0m select table_name from information_schema.views where table_schema = 'bloom_remit_rails_test'
|
30432
|
+
[1m[36m (16.5ms)[0m [1mTRUNCATE TABLE "public"."billers", "public"."users", "public"."bloom_remit_txns", "public"."bloom_remit_responses", "public"."payments" RESTART IDENTITY CASCADE;[0m
|
30433
|
+
[1m[35m (0.7ms)[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
|
30434
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
30435
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "users" DEFAULT VALUES RETURNING "id"
|
30436
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
30437
|
+
[1m[35m (0.3ms)[0m BEGIN
|
30438
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "ef181f7f-9dcf-45ce-a99d-ae02cfb31ea4"], ["external_id", "08aaf82fff2f866502d31bfa"], ["sender_id", "1"], ["sender_type", "User"]]
|
30439
|
+
[1m[35m (0.5ms)[0m COMMIT
|
30440
|
+
[1m[36mBloomRemit::Txn Load (0.5ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1[0m [["id", 1], ["secret", "ef181f7f-9dcf-45ce-a99d-ae02cfb31ea4"]]
|
30441
|
+
[1m[35m (0.2ms)[0m BEGIN
|
30442
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "bloom_remit_txns" SET "status" = $1, "status_description" = $2, "vendor_external_id" = $3 WHERE "bloom_remit_txns"."id" = $4[0m [["status", 1], ["status_description", "My status description"], ["vendor_external_id", "somerefno"], ["id", 1]]
|
30443
|
+
[1m[35m (0.4ms)[0m COMMIT
|
30444
|
+
[1m[36m (0.2ms)[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
|
30445
|
+
[1m[35m (9.3ms)[0m TRUNCATE TABLE "public"."billers", "public"."users", "public"."bloom_remit_txns", "public"."bloom_remit_responses", "public"."payments" RESTART IDENTITY CASCADE;
|
30446
|
+
[1m[36m (0.7ms)[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
|
30447
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
30448
|
+
[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
|
30449
|
+
[1m[36m (1.1ms)[0m [1m SELECT schemaname || '.' || tablename
|
30450
|
+
FROM pg_tables
|
30451
|
+
WHERE
|
30452
|
+
tablename !~ '_prt_' AND
|
30453
|
+
tablename <> 'schema_migrations' AND
|
30454
|
+
schemaname = ANY (current_schemas(false))
|
30455
|
+
[0m
|
30456
|
+
[1m[35m (1.1ms)[0m select table_name from information_schema.views where table_schema = 'bloom_remit_rails_test'
|
30457
|
+
[1m[36m (15.6ms)[0m [1mTRUNCATE TABLE "public"."billers", "public"."users", "public"."bloom_remit_txns", "public"."bloom_remit_responses", "public"."payments" RESTART IDENTITY CASCADE;[0m
|
30458
|
+
[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
|
30459
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
30460
|
+
[1m[35m (0.2ms)[0m COMMIT
|
30461
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
30462
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
30463
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
30464
|
+
[1m[35m (0.2ms)[0m COMMIT
|
30465
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
30466
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
30467
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
30468
|
+
[1m[35m (0.3ms)[0m COMMIT
|
30469
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
30470
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
30471
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
30472
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
|
30473
|
+
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
|
30474
|
+
[1m[35m (0.5ms)[0m BEGIN
|
30475
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "users" ("type") VALUES ($1) RETURNING "id"[0m [["type", "SubUser"]]
|
30476
|
+
[1m[35m (0.5ms)[0m COMMIT
|
30477
|
+
[1m[36m (4.8ms)[0m [1mBEGIN[0m
|
30478
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "payments" ("type") VALUES ($1) RETURNING "id" [["type", "SubPayment"]]
|
30479
|
+
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
|
30480
|
+
[1m[35m (0.5ms)[0m BEGIN
|
30481
|
+
[1m[36mSQL (1.1ms)[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", "2cad015b-3395-40e9-8dc1-68bbd5090c70"], ["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", "786631e8c08249666f97c2ed"]]
|
30482
|
+
[1m[35m (1.1ms)[0m COMMIT
|
30483
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 1]]
|
30484
|
+
[1m[35mPayment Load (0.3ms)[0m SELECT "payments".* FROM "payments" WHERE "payments"."id" = $1 LIMIT 1 [["id", 1]]
|
30485
|
+
[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
|
30486
|
+
[1m[35m (10.5ms)[0m TRUNCATE TABLE "public"."billers", "public"."users", "public"."bloom_remit_txns", "public"."bloom_remit_responses", "public"."payments" RESTART IDENTITY CASCADE;
|
30487
|
+
[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
|
30488
|
+
[1m[35m (0.2ms)[0m BEGIN
|
30489
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
30490
|
+
[1m[35m (0.7ms)[0m COMMIT
|
30491
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
30492
|
+
[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", "4fdd287b-5237-4c2d-bbe3-9fce4fa6ca9d"], ["external_id", "bb87b488581bb3963f1ae681"], ["sender_id", "1"], ["sender_type", "User"]]
|
30493
|
+
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
|
30494
|
+
[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", "4fdd287b-5237-4c2d-bbe3-9fce4fa6ca9d"]]
|
30495
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
30496
|
+
[1m[35mSQL (0.5ms)[0m UPDATE "bloom_remit_txns" SET "status" = $1, "status_description" = $2, "vendor_external_id" = $3 WHERE "bloom_remit_txns"."id" = $4 [["status", 1], ["status_description", "My status description"], ["vendor_external_id", "somerefno"], ["id", 1]]
|
30497
|
+
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
|
30498
|
+
[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
|
30499
|
+
[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
|
30500
|
+
[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
|
30501
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
30502
|
+
[1m[35m (0.2ms)[0m COMMIT
|
30503
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
30504
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
30505
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
30506
|
+
[1m[35m (0.2ms)[0m COMMIT
|
30507
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
30508
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
30509
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
30510
|
+
[1m[35m (0.2ms)[0m COMMIT
|
30511
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
30512
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
30513
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
30514
|
+
[1m[35m (0.2ms)[0m COMMIT
|
30515
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
30516
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
30517
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
30518
|
+
[1m[35m (0.5ms)[0m COMMIT
|
30519
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
30520
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
30521
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
30522
|
+
[1m[35m (0.2ms)[0m COMMIT
|
30523
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
30524
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
30525
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
30526
|
+
[1m[35m (0.2ms)[0m COMMIT
|
30527
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
30528
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
30529
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
30530
|
+
[1m[35m (0.2ms)[0m COMMIT
|
30531
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
30532
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
30533
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
30534
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
30535
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
30536
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "cd84855b-ba05-4e15-8c5a-84339bcd8949"], ["external_id", "c9734b05a759b19e79288cbd"], ["sender_id", "1"], ["sender_type", "User"]]
|
30537
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
30538
|
+
Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-08-17 00:41:20 +0000
|
30539
|
+
Processing by BloomRemit::Api::V1::TxnsController#post_update as JSON
|
30540
|
+
Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"1", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
|
30541
|
+
[1m[35mBloomRemit::Txn Load (0.4ms)[0m SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 1], ["secret", nil]]
|
30542
|
+
Rendered text template (0.0ms)
|
30543
|
+
Completed 404 Not Found in 40ms (Views: 38.2ms | ActiveRecord: 0.4ms)
|
30544
|
+
Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-08-17 00:41:20 +0000
|
30545
|
+
Processing by BloomRemit::Api::V1::TxnsController#post_update as JSON
|
30546
|
+
Parameters: {"secret"=>"cd84855b-ba05-4e15-8c5a-84339bcd8949", "status"=>"paid", "id"=>"1", "txn"=>{"status"=>"paid", "secret"=>"cd84855b-ba05-4e15-8c5a-84339bcd8949"}}
|
30547
|
+
[1m[36mBloomRemit::Txn Load (0.4ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1[0m [["id", 1], ["secret", "cd84855b-ba05-4e15-8c5a-84339bcd8949"]]
|
30548
|
+
[1m[35m (0.4ms)[0m SAVEPOINT active_record_1
|
30549
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2[0m [["status", 1], ["id", 1]]
|
30550
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
30551
|
+
Completed 200 OK in 7ms (Views: 0.4ms | ActiveRecord: 1.4ms)
|
30552
|
+
[1m[36mBloomRemit::Txn Load (0.3ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1[0m [["id", 1]]
|
30553
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
30554
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
30555
|
+
[1m[35m (0.2ms)[0m COMMIT
|
30556
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
30557
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
30558
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
30559
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
30560
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
30561
|
+
[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", "5c753e87-9c88-48df-9db8-84ae83c9bb68"], ["external_id", "79a121e4b804673472668ca0"], ["sender_id", "2"], ["sender_type", "User"]]
|
30562
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
30563
|
+
Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-08-17 00:41:20 +0000
|
30564
|
+
Processing by BloomRemit::Api::V1::TxnsController#update as JSON
|
30565
|
+
Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"2", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
|
30566
|
+
[1m[35mBloomRemit::Txn Load (0.4ms)[0m SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 2], ["secret", nil]]
|
30567
|
+
Rendered text template (0.0ms)
|
30568
|
+
Completed 404 Not Found in 2ms (Views: 0.5ms | ActiveRecord: 0.4ms)
|
30569
|
+
Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-08-17 00:41:20 +0000
|
30570
|
+
Processing by BloomRemit::Api::V1::TxnsController#update as JSON
|
30571
|
+
Parameters: {"secret"=>"5c753e87-9c88-48df-9db8-84ae83c9bb68", "status"=>"paid", "id"=>"2", "txn"=>{"status"=>"paid", "secret"=>"5c753e87-9c88-48df-9db8-84ae83c9bb68"}}
|
30572
|
+
[1m[36mBloomRemit::Txn Load (0.4ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1[0m [["id", 2], ["secret", "5c753e87-9c88-48df-9db8-84ae83c9bb68"]]
|
30573
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
30574
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2[0m [["status", 1], ["id", 2]]
|
30575
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
30576
|
+
Completed 204 No Content in 37ms (ActiveRecord: 1.4ms)
|
30577
|
+
[1m[36mBloomRemit::Txn Load (0.5ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1[0m [["id", 2]]
|
30578
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
30579
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
30580
|
+
[1m[35m (0.2ms)[0m COMMIT
|
30581
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
30582
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
30583
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("type") VALUES ($1) RETURNING "id"[0m [["type", "SubUser"]]
|
30584
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
30585
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
30586
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
|
30587
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
30588
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
30589
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "payments" ("type") VALUES ($1) RETURNING "id"[0m [["type", "SubPayment"]]
|
30590
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
30591
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
30592
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "bloom_remit_txns" ("secret", "sender_type", "sender_id", "amount", "account_name", "account_id", "target_slug", "owner_id", "owner_type", "external_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["secret", "0528a802-e2b8-4201-b5b6-397b8898d272"], ["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", "1e2e391c01bfb3f1ad43143f"]]
|
30593
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
30594
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
30595
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
30596
|
+
[1m[35m (0.2ms)[0m COMMIT
|
30597
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
30598
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
30599
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
30600
|
+
[1m[35m (0.2ms)[0m COMMIT
|
30601
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
30602
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
30603
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "payments" DEFAULT VALUES RETURNING "id"[0m
|
30604
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
30605
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
30606
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" DEFAULT VALUES RETURNING "id"
|
30607
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
30608
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
30609
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "owner_id", "owner_type", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "bbd98f05-7eb6-49dd-b122-269770e20a0a"], ["external_id", "2221cac99e93d66b6517eccd"], ["owner_id", "2"], ["owner_type", "Payment"], ["sender_id", "4"], ["sender_type", "User"]]
|
30610
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
30611
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
30612
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "bloom_remit_responses" ("body", "txn_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["body", "{\"i\":\"am body\"}"], ["txn_id", 4], ["created_at", "2016-08-17 00:41:20.598918"], ["updated_at", "2016-08-17 00:41:20.598918"]]
|
30613
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
30614
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "bloom_remit_responses" WHERE "bloom_remit_responses"."txn_id" = $1 [["txn_id", 4]]
|
30615
|
+
[1m[36mBloomRemit::Response Load (0.3ms)[0m [1mSELECT "bloom_remit_responses".* FROM "bloom_remit_responses" WHERE "bloom_remit_responses"."txn_id" = $1 ORDER BY "bloom_remit_responses"."id" ASC LIMIT 1[0m [["txn_id", 4]]
|
30616
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
30617
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
30618
|
+
[1m[35m (0.2ms)[0m COMMIT
|
30619
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
30620
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
30621
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
30622
|
+
[1m[35m (0.2ms)[0m COMMIT
|
30623
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
30624
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
30625
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
30626
|
+
[1m[35m (0.4ms)[0m COMMIT
|
30627
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
30628
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
30629
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
30630
|
+
[1m[35m (0.2ms)[0m COMMIT
|
30631
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
30632
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
30633
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
30634
|
+
[1m[35m (0.2ms)[0m COMMIT
|
30635
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
30636
|
+
[1m[35m (0.2ms)[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.6.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-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -384,6 +384,7 @@ files:
|
|
384
384
|
- db/migrate/20160806054012_create_bloom_remit_responses.rb
|
385
385
|
- db/migrate/20160808081300_add_external_id_to_bloom_remit_txns.rb
|
386
386
|
- db/migrate/20160809043433_add_status_description_to_bloom_remit_txns.rb
|
387
|
+
- db/migrate/20160817003323_add_vendor_external_id_to_bloom_remit_txns.rb
|
387
388
|
- lib/bloom_remit.rb
|
388
389
|
- lib/bloom_remit/engine.rb
|
389
390
|
- lib/bloom_remit/factories.rb
|