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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a2470fac46f66988ef9b6d16681f2400da69e10c
4
- data.tar.gz: 0db3d851093de50a175f1d6ad43327d577810439
3
+ metadata.gz: b73a4e8df7a543da32563c109070df972dcde2f8
4
+ data.tar.gz: c914836f6a99b120250699b6c4cf4a922b130cc9
5
5
  SHA512:
6
- metadata.gz: 35edffe3ad020b13f091b6c4b775062a3a4df778db5b07633b80a1327c505b706b725e97496c1ef01711204f516f15f16b7c4c370aeb3f3756983e9972bdcb95
7
- data.tar.gz: aefcd0e63f34ffa72a0e6c127ef334672f41c66fbe2d7d38172981e46e56eb7dfdab653c3c99b07ea85cf85547ef134d71c4ac105726ea5f20798f6fafd6148c
6
+ metadata.gz: d4d2bcfa3bd628730c97eefc4c343c573f7ae429e5f88636b8d7ebfdcf34c8234ad0a3e2279d55421234fb5dd01e3239c9dc13f99241af68a5d88cf1ecc3603d
7
+ data.tar.gz: eeea47f87d68903932c083767edcc8966af0ff43a28f4dd98032081813380b6045026868990dcdb3c355ebb8d5609bbcdfe9d6a3414ed2864af930eb9bd4d8df
@@ -6,6 +6,7 @@ module BloomRemit
6
6
  model ::BloomRemit::Txn
7
7
  property :status
8
8
  property :status_description
9
+ property :vendor_external_id
9
10
 
10
11
  end
11
12
  end
@@ -28,6 +28,7 @@ module BloomRemit
28
28
  params[:txn].merge!(params.slice(*%i[
29
29
  status
30
30
  status_description
31
+ vendor_external_id
31
32
  ]))
32
33
  end
33
34
 
@@ -0,0 +1,6 @@
1
+ class AddVendorExternalIdToBloomRemitTxns < ActiveRecord::Migration
2
+ def change
3
+ add_column :bloom_remit_txns, :vendor_external_id, :string
4
+ add_index :bloom_remit_txns, :vendor_external_id
5
+ end
6
+ end
@@ -1,3 +1,3 @@
1
1
  module BloomRemit
2
- VERSION = "0.5.0"
2
+ VERSION = "0.6.0"
3
3
  end
@@ -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
 
@@ -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: 20160809043433) do
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
+ ActiveRecord::SchemaMigration Load (1.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
1955
+ Migrating to AddVendorExternalIdToBloomRemitTxns (20160817003323)
1956
+  (0.2ms) BEGIN
1957
+  (7.0ms) ALTER TABLE "bloom_remit_txns" ADD "vendor_external_id" character varying NOT NULL
1958
+  (8.4ms) CREATE INDEX "index_bloom_remit_txns_on_vendor_external_id" ON "bloom_remit_txns" ("vendor_external_id")
1959
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160817003323"]]
1960
+  (0.6ms) COMMIT
1961
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
1962
+  (3.9ms) 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
+  (3.8ms) 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
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
+ 
1986
+  (5.0ms) 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
+  (5.3ms) 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
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
+ 
2010
+  (8.6ms) 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
+  (2.6ms) 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
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
+ 
2034
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
2035
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
2036
+ Migrating to AddVendorExternalIdToBloomRemitTxns (20160817003323)
2037
+  (0.3ms) BEGIN
2038
+  (3.0ms) DROP INDEX "index_bloom_remit_txns_on_vendor_external_id"
2039
+  (0.4ms) ALTER TABLE "bloom_remit_txns" DROP "vendor_external_id"
2040
+ SQL (0.4ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20160817003323"]]
2041
+  (0.7ms) COMMIT
2042
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
2043
+  (2.1ms) 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
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
+ 
2055
+  (2.0ms) 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
+  (2.1ms) 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
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
+ 
2079
+  (1.9ms) 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
+  (2.0ms) 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
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
+ 
2103
+  (1.9ms) 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
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
2116
+ Migrating to AddVendorExternalIdToBloomRemitTxns (20160817003323)
2117
+  (0.2ms) BEGIN
2118
+  (0.7ms) ALTER TABLE "bloom_remit_txns" ADD "vendor_external_id" character varying
2119
+  (2.3ms) CREATE INDEX "index_bloom_remit_txns_on_vendor_external_id" ON "bloom_remit_txns" ("vendor_external_id")
2120
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160817003323"]]
2121
+  (0.8ms) COMMIT
2122
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
2123
+  (2.3ms) 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
+  (1.9ms) 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
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
+ 
2147
+  (2.0ms) 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
+  (2.0ms) 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
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
+ 
2171
+  (2.1ms) 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
+  (2.3ms) 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
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
+ 
@@ -30143,3 +30143,494 @@ Completed 204 No Content in 50ms (ActiveRecord: 0.8ms)
30143
30143
   (0.1ms) COMMIT
30144
30144
   (0.1ms) BEGIN
30145
30145
   (0.1ms) ROLLBACK
30146
+ ActiveRecord::SchemaMigration Load (1.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
30147
+ Migrating to AddVendorExternalIdToBloomRemitTxns (20160817003323)
30148
+  (0.2ms) BEGIN
30149
+  (4.5ms) ALTER TABLE "bloom_remit_txns" ADD "vendor_external_id" character varying NOT NULL
30150
+  (6.4ms) CREATE INDEX "index_bloom_remit_txns_on_vendor_external_id" ON "bloom_remit_txns" ("vendor_external_id")
30151
+ SQL (0.7ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160817003323"]]
30152
+  (0.7ms) COMMIT
30153
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
30154
+  (2.1ms) 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
+  (2.2ms) 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
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
+ 
30178
+  (2.0ms) 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
+  (2.0ms) 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
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
+ 
30202
+  (1.9ms) 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
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
30215
+  (1.0ms) 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
+  (1.3ms)  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
+ 
30223
+  (3.1ms) select table_name from information_schema.views where table_schema = 'bloom_remit_rails_test'
30224
+  (13.6ms) TRUNCATE TABLE "public"."bloom_remit_txns", "public"."billers", "public"."users", "public"."bloom_remit_responses", "public"."payments" RESTART IDENTITY CASCADE;
30225
+  (0.4ms) 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
+  (0.3ms) BEGIN
30227
+ SQL (0.6ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
30228
+  (0.6ms) COMMIT
30229
+  (1.5ms) BEGIN
30230
+ SQL (0.9ms) INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "2b0fb056-f9b5-4474-8091-ffbb1eb55770"], ["external_id", "1df3340b8a9f1d32e41ab7c6"], ["sender_id", "1"], ["sender_type", "User"]]
30231
+  (0.2ms) ROLLBACK
30232
+  (0.3ms) ALTER 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
30233
+  (10.5ms) TRUNCATE TABLE "public"."bloom_remit_txns", "public"."billers", "public"."users", "public"."bloom_remit_responses", "public"."payments" RESTART IDENTITY CASCADE;
30234
+  (0.3ms) 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
30235
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
30236
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
30237
+ Migrating to AddVendorExternalIdToBloomRemitTxns (20160817003323)
30238
+  (0.1ms) BEGIN
30239
+  (2.8ms) DROP INDEX "index_bloom_remit_txns_on_vendor_external_id"
30240
+  (0.3ms) ALTER TABLE "bloom_remit_txns" DROP "vendor_external_id"
30241
+ SQL (0.5ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20160817003323"]]
30242
+  (0.9ms) COMMIT
30243
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
30244
+  (1.8ms) 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
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
+ 
30256
+  (1.6ms) 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
+  (1.8ms) 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
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
+ 
30280
+  (2.0ms) 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
+  (2.0ms) 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
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
+ 
30304
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
30305
+ Migrating to AddVendorExternalIdToBloomRemitTxns (20160817003323)
30306
+  (0.2ms) BEGIN
30307
+  (1.0ms) ALTER TABLE "bloom_remit_txns" ADD "vendor_external_id" character varying
30308
+  (1.1ms) CREATE INDEX "index_bloom_remit_txns_on_vendor_external_id" ON "bloom_remit_txns" ("vendor_external_id")
30309
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160817003323"]]
30310
+  (0.5ms) COMMIT
30311
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
30312
+  (2.2ms) 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
+  (1.6ms) 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
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
+ 
30336
+  (1.9ms) 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
+  (1.8ms) 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
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
+ 
30360
+  (1.9ms) 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
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
30373
+  (0.3ms) 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
+  (1.1ms)  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
+ 
30381
+  (0.9ms) select table_name from information_schema.views where table_schema = 'bloom_remit_rails_test'
30382
+  (17.7ms) TRUNCATE TABLE "public"."billers", "public"."users", "public"."bloom_remit_txns", "public"."bloom_remit_responses", "public"."payments" RESTART IDENTITY CASCADE;
30383
+  (0.3ms) 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
+  (0.1ms) BEGIN
30385
+ SQL (0.4ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
30386
+  (0.4ms) COMMIT
30387
+  (0.1ms) BEGIN
30388
+ SQL (0.7ms) INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "dd381c1f-742c-402e-b563-3b5a8f990c93"], ["external_id", "630147c85c5cda161a212506"], ["sender_id", "1"], ["sender_type", "User"]]
30389
+  (0.5ms) COMMIT
30390
+ BloomRemit::Txn Load (0.3ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 1], ["secret", "dd381c1f-742c-402e-b563-3b5a8f990c93"]]
30391
+  (0.1ms) BEGIN
30392
+ SQL (0.2ms) 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]]
30393
+  (0.4ms) COMMIT
30394
+  (0.2ms) 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
30395
+  (10.7ms) TRUNCATE TABLE "public"."billers", "public"."users", "public"."bloom_remit_txns", "public"."bloom_remit_responses", "public"."payments" RESTART IDENTITY CASCADE;
30396
+  (0.2ms) 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
30397
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
30398
+  (0.4ms) 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
+  (1.2ms)  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
+ 
30406
+  (1.2ms) select table_name from information_schema.views where table_schema = 'bloom_remit_rails_test'
30407
+  (14.1ms) TRUNCATE TABLE "public"."billers", "public"."users", "public"."bloom_remit_txns", "public"."bloom_remit_responses", "public"."payments" RESTART IDENTITY CASCADE;
30408
+  (0.3ms) 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
+  (0.3ms) BEGIN
30410
+ SQL (0.5ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
30411
+  (0.4ms) COMMIT
30412
+  (0.3ms) BEGIN
30413
+ SQL (0.7ms) INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "5ed3fee1-8975-4032-abc2-36de05e8f225"], ["external_id", "17845ccaaaab11d5b123e291"], ["sender_id", "1"], ["sender_type", "User"]]
30414
+  (0.5ms) COMMIT
30415
+ BloomRemit::Txn Load (0.5ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 1], ["secret", "5ed3fee1-8975-4032-abc2-36de05e8f225"]]
30416
+  (0.2ms) BEGIN
30417
+ SQL (0.3ms) UPDATE "bloom_remit_txns" SET "status" = $1, "status_description" = $2 WHERE "bloom_remit_txns"."id" = $3 [["status", 1], ["status_description", "My status description"], ["id", 1]]
30418
+  (0.5ms) COMMIT
30419
+  (0.5ms) 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
30420
+  (13.2ms) TRUNCATE TABLE "public"."billers", "public"."users", "public"."bloom_remit_txns", "public"."bloom_remit_responses", "public"."payments" RESTART IDENTITY CASCADE;
30421
+  (0.3ms) 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
30422
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
30423
+  (0.4ms) 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
+  (1.2ms)  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
+ 
30431
+  (1.1ms) select table_name from information_schema.views where table_schema = 'bloom_remit_rails_test'
30432
+  (16.5ms) TRUNCATE TABLE "public"."billers", "public"."users", "public"."bloom_remit_txns", "public"."bloom_remit_responses", "public"."payments" RESTART IDENTITY CASCADE;
30433
+  (0.7ms) 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
+  (0.3ms) BEGIN
30435
+ SQL (0.6ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
30436
+  (0.3ms) COMMIT
30437
+  (0.3ms) BEGIN
30438
+ SQL (0.6ms) INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "ef181f7f-9dcf-45ce-a99d-ae02cfb31ea4"], ["external_id", "08aaf82fff2f866502d31bfa"], ["sender_id", "1"], ["sender_type", "User"]]
30439
+  (0.5ms) COMMIT
30440
+ BloomRemit::Txn Load (0.5ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 1], ["secret", "ef181f7f-9dcf-45ce-a99d-ae02cfb31ea4"]]
30441
+  (0.2ms) BEGIN
30442
+ SQL (0.3ms) UPDATE "bloom_remit_txns" SET "status" = $1, "status_description" = $2, "vendor_external_id" = $3 WHERE "bloom_remit_txns"."id" = $4 [["status", 1], ["status_description", "My status description"], ["vendor_external_id", "somerefno"], ["id", 1]]
30443
+  (0.4ms) COMMIT
30444
+  (0.2ms) 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
30445
+  (9.3ms) TRUNCATE TABLE "public"."billers", "public"."users", "public"."bloom_remit_txns", "public"."bloom_remit_responses", "public"."payments" RESTART IDENTITY CASCADE;
30446
+  (0.7ms) 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
30447
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
30448
+  (0.4ms) 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
+  (1.1ms)  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
+ 
30456
+  (1.1ms) select table_name from information_schema.views where table_schema = 'bloom_remit_rails_test'
30457
+  (15.6ms) TRUNCATE TABLE "public"."billers", "public"."users", "public"."bloom_remit_txns", "public"."bloom_remit_responses", "public"."payments" RESTART IDENTITY CASCADE;
30458
+  (0.3ms) 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
+  (0.3ms) BEGIN
30460
+  (0.2ms) COMMIT
30461
+  (0.3ms) BEGIN
30462
+  (0.3ms) ROLLBACK
30463
+  (0.2ms) BEGIN
30464
+  (0.2ms) COMMIT
30465
+  (0.2ms) BEGIN
30466
+  (0.3ms) ROLLBACK
30467
+  (0.2ms) BEGIN
30468
+  (0.3ms) COMMIT
30469
+  (0.3ms) BEGIN
30470
+  (0.3ms) ROLLBACK
30471
+  (0.2ms) BEGIN
30472
+ SQL (0.6ms) INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
30473
+  (0.5ms) COMMIT
30474
+  (0.5ms) BEGIN
30475
+ SQL (0.8ms) INSERT INTO "users" ("type") VALUES ($1) RETURNING "id" [["type", "SubUser"]]
30476
+  (0.5ms) COMMIT
30477
+  (4.8ms) BEGIN
30478
+ SQL (0.4ms) INSERT INTO "payments" ("type") VALUES ($1) RETURNING "id" [["type", "SubPayment"]]
30479
+  (0.5ms) COMMIT
30480
+  (0.5ms) BEGIN
30481
+ SQL (1.1ms) 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", "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
+  (1.1ms) COMMIT
30483
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1]]
30484
+ Payment Load (0.3ms) SELECT "payments".* FROM "payments" WHERE "payments"."id" = $1 LIMIT 1 [["id", 1]]
30485
+  (0.3ms) ALTER 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
30486
+  (10.5ms) TRUNCATE TABLE "public"."billers", "public"."users", "public"."bloom_remit_txns", "public"."bloom_remit_responses", "public"."payments" RESTART IDENTITY CASCADE;
30487
+  (0.3ms) 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
30488
+  (0.2ms) BEGIN
30489
+ SQL (0.5ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
30490
+  (0.7ms) COMMIT
30491
+  (0.3ms) BEGIN
30492
+ SQL (0.5ms) INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "4fdd287b-5237-4c2d-bbe3-9fce4fa6ca9d"], ["external_id", "bb87b488581bb3963f1ae681"], ["sender_id", "1"], ["sender_type", "User"]]
30493
+  (0.5ms) COMMIT
30494
+ BloomRemit::Txn Load (0.4ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 1], ["secret", "4fdd287b-5237-4c2d-bbe3-9fce4fa6ca9d"]]
30495
+  (0.2ms) BEGIN
30496
+ SQL (0.5ms) UPDATE "bloom_remit_txns" SET "status" = $1, "status_description" = $2, "vendor_external_id" = $3 WHERE "bloom_remit_txns"."id" = $4 [["status", 1], ["status_description", "My status description"], ["vendor_external_id", "somerefno"], ["id", 1]]
30497
+  (0.5ms) COMMIT
30498
+  (0.3ms) 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
+  (10.1ms) TRUNCATE TABLE "public"."billers", "public"."users", "public"."bloom_remit_txns", "public"."bloom_remit_responses", "public"."payments" RESTART IDENTITY CASCADE;
30500
+  (0.3ms) 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
+  (0.2ms) BEGIN
30502
+  (0.2ms) COMMIT
30503
+  (0.2ms) BEGIN
30504
+  (0.2ms) ROLLBACK
30505
+  (0.3ms) BEGIN
30506
+  (0.2ms) COMMIT
30507
+  (0.2ms) BEGIN
30508
+  (0.3ms) ROLLBACK
30509
+  (0.2ms) BEGIN
30510
+  (0.2ms) COMMIT
30511
+  (0.2ms) BEGIN
30512
+  (0.2ms) ROLLBACK
30513
+  (0.2ms) BEGIN
30514
+  (0.2ms) COMMIT
30515
+  (0.2ms) BEGIN
30516
+  (0.2ms) ROLLBACK
30517
+  (0.2ms) BEGIN
30518
+  (0.5ms) COMMIT
30519
+  (0.3ms) BEGIN
30520
+  (0.2ms) ROLLBACK
30521
+  (0.2ms) BEGIN
30522
+  (0.2ms) COMMIT
30523
+  (0.2ms) BEGIN
30524
+  (0.2ms) ROLLBACK
30525
+  (0.2ms) BEGIN
30526
+  (0.2ms) COMMIT
30527
+  (0.2ms) BEGIN
30528
+  (0.3ms) ROLLBACK
30529
+  (0.2ms) BEGIN
30530
+  (0.2ms) COMMIT
30531
+  (0.2ms) BEGIN
30532
+  (0.3ms) SAVEPOINT active_record_1
30533
+ SQL (0.5ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
30534
+  (0.3ms) RELEASE SAVEPOINT active_record_1
30535
+  (0.3ms) SAVEPOINT active_record_1
30536
+ SQL (0.7ms) INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "cd84855b-ba05-4e15-8c5a-84339bcd8949"], ["external_id", "c9734b05a759b19e79288cbd"], ["sender_id", "1"], ["sender_type", "User"]]
30537
+  (0.2ms) RELEASE SAVEPOINT active_record_1
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
+ BloomRemit::Txn Load (0.4ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 1], ["secret", nil]]
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
+ BloomRemit::Txn Load (0.4ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 1], ["secret", "cd84855b-ba05-4e15-8c5a-84339bcd8949"]]
30548
+  (0.4ms) SAVEPOINT active_record_1
30549
+ SQL (0.4ms) UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 1], ["id", 1]]
30550
+  (0.2ms) RELEASE SAVEPOINT active_record_1
30551
+ Completed 200 OK in 7ms (Views: 0.4ms | ActiveRecord: 1.4ms)
30552
+ BloomRemit::Txn Load (0.3ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1 [["id", 1]]
30553
+  (0.3ms) ROLLBACK
30554
+  (0.2ms) BEGIN
30555
+  (0.2ms) COMMIT
30556
+  (0.2ms) BEGIN
30557
+  (0.3ms) SAVEPOINT active_record_1
30558
+ SQL (0.4ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
30559
+  (0.2ms) RELEASE SAVEPOINT active_record_1
30560
+  (0.2ms) SAVEPOINT active_record_1
30561
+ SQL (0.4ms) INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "5c753e87-9c88-48df-9db8-84ae83c9bb68"], ["external_id", "79a121e4b804673472668ca0"], ["sender_id", "2"], ["sender_type", "User"]]
30562
+  (0.2ms) RELEASE SAVEPOINT active_record_1
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
+ BloomRemit::Txn Load (0.4ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 2], ["secret", nil]]
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
+ BloomRemit::Txn Load (0.4ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 2], ["secret", "5c753e87-9c88-48df-9db8-84ae83c9bb68"]]
30573
+  (0.3ms) SAVEPOINT active_record_1
30574
+ SQL (0.4ms) UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 1], ["id", 2]]
30575
+  (0.2ms) RELEASE SAVEPOINT active_record_1
30576
+ Completed 204 No Content in 37ms (ActiveRecord: 1.4ms)
30577
+ BloomRemit::Txn Load (0.5ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1 [["id", 2]]
30578
+  (0.3ms) ROLLBACK
30579
+  (0.2ms) BEGIN
30580
+  (0.2ms) COMMIT
30581
+  (0.2ms) BEGIN
30582
+  (0.3ms) SAVEPOINT active_record_1
30583
+ SQL (0.3ms) INSERT INTO "users" ("type") VALUES ($1) RETURNING "id" [["type", "SubUser"]]
30584
+  (0.2ms) RELEASE SAVEPOINT active_record_1
30585
+  (0.2ms) SAVEPOINT active_record_1
30586
+ SQL (0.5ms) INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
30587
+  (0.2ms) RELEASE SAVEPOINT active_record_1
30588
+  (0.2ms) SAVEPOINT active_record_1
30589
+ SQL (0.4ms) INSERT INTO "payments" ("type") VALUES ($1) RETURNING "id" [["type", "SubPayment"]]
30590
+  (0.2ms) RELEASE SAVEPOINT active_record_1
30591
+  (0.2ms) SAVEPOINT active_record_1
30592
+ SQL (0.4ms) INSERT INTO "bloom_remit_txns" ("secret", "sender_type", "sender_id", "amount", "account_name", "account_id", "target_slug", "owner_id", "owner_type", "external_id") 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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
30594
+  (0.3ms) ROLLBACK
30595
+  (0.2ms) BEGIN
30596
+  (0.2ms) COMMIT
30597
+  (0.2ms) BEGIN
30598
+  (0.3ms) ROLLBACK
30599
+  (0.3ms) BEGIN
30600
+  (0.2ms) COMMIT
30601
+  (0.2ms) BEGIN
30602
+  (0.3ms) SAVEPOINT active_record_1
30603
+ SQL (0.4ms) INSERT INTO "payments" DEFAULT VALUES RETURNING "id"
30604
+  (0.2ms) RELEASE SAVEPOINT active_record_1
30605
+  (0.2ms) SAVEPOINT active_record_1
30606
+ SQL (0.4ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
30607
+  (0.2ms) RELEASE SAVEPOINT active_record_1
30608
+  (0.3ms) SAVEPOINT active_record_1
30609
+ SQL (0.3ms) INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "owner_id", "owner_type", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "bbd98f05-7eb6-49dd-b122-269770e20a0a"], ["external_id", "2221cac99e93d66b6517eccd"], ["owner_id", "2"], ["owner_type", "Payment"], ["sender_id", "4"], ["sender_type", "User"]]
30610
+  (0.2ms) RELEASE SAVEPOINT active_record_1
30611
+  (0.2ms) SAVEPOINT active_record_1
30612
+ SQL (0.6ms) INSERT INTO "bloom_remit_responses" ("body", "txn_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["body", "{\"i\":\"am body\"}"], ["txn_id", 4], ["created_at", "2016-08-17 00:41:20.598918"], ["updated_at", "2016-08-17 00:41:20.598918"]]
30613
+  (0.2ms) RELEASE SAVEPOINT active_record_1
30614
+  (0.4ms) SELECT COUNT(*) FROM "bloom_remit_responses" WHERE "bloom_remit_responses"."txn_id" = $1 [["txn_id", 4]]
30615
+ BloomRemit::Response Load (0.3ms) SELECT "bloom_remit_responses".* FROM "bloom_remit_responses" WHERE "bloom_remit_responses"."txn_id" = $1 ORDER BY "bloom_remit_responses"."id" ASC LIMIT 1 [["txn_id", 4]]
30616
+  (0.3ms) ROLLBACK
30617
+  (0.3ms) BEGIN
30618
+  (0.2ms) COMMIT
30619
+  (0.2ms) BEGIN
30620
+  (0.3ms) ROLLBACK
30621
+  (0.2ms) BEGIN
30622
+  (0.2ms) COMMIT
30623
+  (0.2ms) BEGIN
30624
+  (0.4ms) ROLLBACK
30625
+  (0.2ms) BEGIN
30626
+  (0.4ms) COMMIT
30627
+  (0.4ms) BEGIN
30628
+  (0.3ms) ROLLBACK
30629
+  (0.2ms) BEGIN
30630
+  (0.2ms) COMMIT
30631
+  (0.4ms) BEGIN
30632
+  (0.2ms) ROLLBACK
30633
+  (0.2ms) BEGIN
30634
+  (0.2ms) COMMIT
30635
+  (0.2ms) BEGIN
30636
+  (0.2ms) 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.5.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-09 00:00:00.000000000 Z
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