bloom_remit 0.8.0 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/concepts/bloom_remit/txns/contracts/create.rb +0 -2
- data/app/services/bloom_remit/create_txn.rb +25 -8
- data/db/migrate/20160930034811_allow_null_external_id_for_bloom_remit_txns.rb +5 -0
- data/lib/bloom_remit.rb +2 -0
- data/lib/bloom_remit/version.rb +1 -1
- data/spec/concepts/bloom_remit/txns/contracts/create_spec.rb +0 -1
- data/spec/dummy/db/schema.rb +2 -2
- data/spec/dummy/log/test.log +596 -0
- metadata +31 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 004cf8a8cbe6e2f79f425da1a3362b7bf7b0861d
|
4
|
+
data.tar.gz: a8671438ad0a3af55f9c2aa0023abc6809e1adea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: da741fcd5c70b9feff9eee795e3d5142889b889b8b8a59e01263bc117948968ace80edb5ab79923ce306f5b9a37f8df86b8d5d8aa1798ef993c30c74871e9394
|
7
|
+
data.tar.gz: 84ec86f256fea4f420528978e61c364404cf49ea53b560d13b08a13a39ee4caf2ecf7abfe247c03435f41f7a37b808b8cfedbbddfb6b838cb5597811362352d1
|
@@ -1,15 +1,32 @@
|
|
1
1
|
module BloomRemit
|
2
2
|
class CreateTxn
|
3
3
|
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
4
|
+
include Virtus.model
|
5
|
+
attribute :target_slug, String
|
6
|
+
attribute :sender, String
|
7
|
+
attribute :owner
|
8
|
+
attribute :amount, Float
|
9
|
+
attribute :account_name, String
|
10
|
+
attribute :account_id, String
|
11
|
+
attribute :external_id, String
|
12
|
+
|
13
|
+
include ActiveModel::Validations
|
14
|
+
validates(
|
15
|
+
:target_slug,
|
16
|
+
:sender,
|
17
|
+
:owner,
|
18
|
+
:amount,
|
19
|
+
:account_name,
|
20
|
+
presence: true
|
12
21
|
)
|
22
|
+
|
23
|
+
def self.call(opts)
|
24
|
+
create_txn = self.new(opts)
|
25
|
+
fail ArgumentError, create_txn.errors.full_messages if create_txn.invalid?
|
26
|
+
create_txn.()
|
27
|
+
end
|
28
|
+
|
29
|
+
def call
|
13
30
|
::BloomRemit::Txns::Operations::Create.(txn: {
|
14
31
|
sender_id: sender.id,
|
15
32
|
sender_type: sender.class.base_class.name,
|
data/lib/bloom_remit.rb
CHANGED
data/lib/bloom_remit/version.rb
CHANGED
data/spec/dummy/db/schema.rb
CHANGED
@@ -11,7 +11,7 @@
|
|
11
11
|
#
|
12
12
|
# It's strongly recommended that you check this file into your version control system.
|
13
13
|
|
14
|
-
ActiveRecord::Schema.define(version:
|
14
|
+
ActiveRecord::Schema.define(version: 20160930034811) do
|
15
15
|
|
16
16
|
# These are extensions that must be enabled in order to support this database
|
17
17
|
enable_extension "plpgsql"
|
@@ -40,7 +40,7 @@ ActiveRecord::Schema.define(version: 20160817003323) do
|
|
40
40
|
t.string "target_slug", null: false
|
41
41
|
t.string "owner_id"
|
42
42
|
t.string "owner_type"
|
43
|
-
t.string "external_id"
|
43
|
+
t.string "external_id"
|
44
44
|
t.text "status_description"
|
45
45
|
t.string "vendor_external_id"
|
46
46
|
end
|
data/spec/dummy/log/test.log
CHANGED
@@ -33827,3 +33827,599 @@ Completed 204 No Content in 13ms (ActiveRecord: 2.5ms)
|
|
33827
33827
|
[1m[35m (0.3ms)[0m COMMIT
|
33828
33828
|
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
33829
33829
|
[1m[35m (0.6ms)[0m ROLLBACK
|
33830
|
+
[1m[36mActiveRecord::SchemaMigration Load (14.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
33831
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.9ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
33832
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.9ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
33833
|
+
[1m[35m (4.1ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
|
33834
|
+
[1m[36m (1.9ms)[0m [1m SELECT schemaname || '.' || tablename
|
33835
|
+
FROM pg_tables
|
33836
|
+
WHERE
|
33837
|
+
tablename !~ '_prt_' AND
|
33838
|
+
tablename <> 'schema_migrations' AND
|
33839
|
+
schemaname = ANY (current_schemas(false))
|
33840
|
+
[0m
|
33841
|
+
[1m[35m (5.2ms)[0m select table_name from information_schema.views where table_schema = 'app_test'
|
33842
|
+
[1m[36m (394.9ms)[0m [1mTRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE;[0m
|
33843
|
+
[1m[35m (1.0ms)[0m ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
|
33844
|
+
[1m[36m (0.6ms)[0m [1mBEGIN[0m
|
33845
|
+
[1m[35m (0.5ms)[0m COMMIT
|
33846
|
+
[1m[36m (0.6ms)[0m [1mBEGIN[0m
|
33847
|
+
[1m[35m (0.7ms)[0m SAVEPOINT active_record_1
|
33848
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "users" ("type") VALUES ($1) RETURNING "id"[0m [["type", "SubUser"]]
|
33849
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
33850
|
+
[1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
|
33851
|
+
[1m[35mSQL (0.8ms)[0m INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
|
33852
|
+
[1m[36m (0.5ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33853
|
+
[1m[35m (0.7ms)[0m SAVEPOINT active_record_1
|
33854
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "payments" ("type") VALUES ($1) RETURNING "id"[0m [["type", "SubPayment"]]
|
33855
|
+
[1m[35m (0.5ms)[0m RELEASE SAVEPOINT active_record_1
|
33856
|
+
[1m[36m (0.7ms)[0m [1mSAVEPOINT active_record_1[0m
|
33857
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "bloom_remit_txns" ("secret", "sender_type", "sender_id", "amount", "account_name", "account_id", "target_slug", "owner_id", "owner_type", "external_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["secret", "9e4c75e1-fbf0-45e7-9cd4-6f0deb8abab4"], ["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", "f8346db2d56fbc2f8ba599b7"]]
|
33858
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33859
|
+
[1m[35m (0.8ms)[0m ROLLBACK
|
33860
|
+
[1m[36mActiveRecord::SchemaMigration Load (3.8ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
33861
|
+
[1m[36m (226.4ms)[0m [1mDROP DATABASE IF EXISTS "app_test"[0m
|
33862
|
+
[1m[35m (596.9ms)[0m CREATE DATABASE "app_test" ENCODING = 'unicode'
|
33863
|
+
[1m[36mSQL (2.7ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
33864
|
+
[1m[35m (123.1ms)[0m CREATE TABLE "billers" ("id" serial primary key, "slug" character varying)
|
33865
|
+
[1m[36m (84.4ms)[0m [1mCREATE TABLE "bloom_remit_responses" ("id" serial primary key, "txn_id" integer NOT NULL, "body" text NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
|
33866
|
+
[1m[35m (55.5ms)[0m CREATE INDEX "index_bloom_remit_responses_on_txn_id" ON "bloom_remit_responses" USING btree ("txn_id")
|
33867
|
+
[1m[36m (79.7ms)[0m [1mCREATE TABLE "bloom_remit_txns" ("id" serial primary key, "status" integer DEFAULT 0 NOT NULL, "sender_id" character varying NOT NULL, "sender_type" character varying NOT NULL, "amount" decimal NOT NULL, "account_name" character varying, "account_id" character varying, "secret" uuid NOT NULL, "target_slug" character varying NOT NULL, "owner_id" character varying, "owner_type" character varying, "external_id" character varying NOT NULL, "status_description" text, "vendor_external_id" character varying) [0m
|
33868
|
+
[1m[35m (51.4ms)[0m CREATE INDEX "index_bloom_remit_txns_on_external_id" ON "bloom_remit_txns" USING btree ("external_id")
|
33869
|
+
[1m[36m (39.4ms)[0m [1mCREATE INDEX "index_bloom_remit_txns_on_owner_id_and_owner_type" ON "bloom_remit_txns" USING btree ("owner_id", "owner_type")[0m
|
33870
|
+
[1m[35m (44.2ms)[0m CREATE INDEX "index_bloom_remit_txns_on_vendor_external_id" ON "bloom_remit_txns" USING btree ("vendor_external_id")
|
33871
|
+
[1m[36m (90.4ms)[0m [1mCREATE TABLE "payments" ("id" serial primary key, "type" character varying) [0m
|
33872
|
+
[1m[35m (73.1ms)[0m CREATE TABLE "users" ("id" serial primary key, "email" character varying, "bloom_remit_id" character varying, "type" character varying)
|
33873
|
+
[1m[36m (44.3ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m
|
33874
|
+
[1m[35m (44.0ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
33875
|
+
[1m[36m (1.4ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
33876
|
+
[1m[35m (13.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160817003323')
|
33877
|
+
[1m[36m (14.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160729085500')[0m
|
33878
|
+
[1m[35m (11.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160805001840')
|
33879
|
+
[1m[36m (11.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160805042105')[0m
|
33880
|
+
[1m[35m (12.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160806011259')
|
33881
|
+
[1m[36m (11.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160806012210')[0m
|
33882
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.8ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
33883
|
+
[1m[36mActiveRecord::SchemaMigration Load (1.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
33884
|
+
[1m[36m (224.6ms)[0m [1mDROP DATABASE IF EXISTS "app_test"[0m
|
33885
|
+
[1m[35m (512.8ms)[0m CREATE DATABASE "app_test" ENCODING = 'unicode'
|
33886
|
+
[1m[36mSQL (0.8ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
33887
|
+
[1m[35m (59.9ms)[0m CREATE TABLE "billers" ("id" serial primary key, "slug" character varying)
|
33888
|
+
[1m[36m (56.9ms)[0m [1mCREATE TABLE "bloom_remit_responses" ("id" serial primary key, "txn_id" integer NOT NULL, "body" text NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
|
33889
|
+
[1m[35m (38.0ms)[0m CREATE INDEX "index_bloom_remit_responses_on_txn_id" ON "bloom_remit_responses" USING btree ("txn_id")
|
33890
|
+
[1m[36m (53.3ms)[0m [1mCREATE TABLE "bloom_remit_txns" ("id" serial primary key, "status" integer DEFAULT 0 NOT NULL, "sender_id" character varying NOT NULL, "sender_type" character varying NOT NULL, "amount" decimal NOT NULL, "account_name" character varying, "account_id" character varying, "secret" uuid NOT NULL, "target_slug" character varying NOT NULL, "owner_id" character varying, "owner_type" character varying, "external_id" character varying NOT NULL, "status_description" text, "vendor_external_id" character varying) [0m
|
33891
|
+
[1m[35m (37.5ms)[0m CREATE INDEX "index_bloom_remit_txns_on_external_id" ON "bloom_remit_txns" USING btree ("external_id")
|
33892
|
+
[1m[36m (32.5ms)[0m [1mCREATE INDEX "index_bloom_remit_txns_on_owner_id_and_owner_type" ON "bloom_remit_txns" USING btree ("owner_id", "owner_type")[0m
|
33893
|
+
[1m[35m (46.9ms)[0m CREATE INDEX "index_bloom_remit_txns_on_vendor_external_id" ON "bloom_remit_txns" USING btree ("vendor_external_id")
|
33894
|
+
[1m[36m (67.9ms)[0m [1mCREATE TABLE "payments" ("id" serial primary key, "type" character varying) [0m
|
33895
|
+
[1m[35m (61.8ms)[0m CREATE TABLE "users" ("id" serial primary key, "email" character varying, "bloom_remit_id" character varying, "type" character varying)
|
33896
|
+
[1m[36m (31.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m
|
33897
|
+
[1m[35m (37.2ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
33898
|
+
[1m[36m (1.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
33899
|
+
[1m[35m (11.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160817003323')
|
33900
|
+
[1m[36m (17.0ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160729085500')[0m
|
33901
|
+
[1m[35m (13.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160805001840')
|
33902
|
+
[1m[36m (17.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160805042105')[0m
|
33903
|
+
[1m[35m (16.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160806011259')
|
33904
|
+
[1m[36m (16.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160806012210')[0m
|
33905
|
+
[1m[35mActiveRecord::SchemaMigration Load (3.5ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
33906
|
+
[1m[36mActiveRecord::SchemaMigration Load (2.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
33907
|
+
Migrating to CreateBloomRemitTxns (20160729070509)
|
33908
|
+
[1m[35m (0.9ms)[0m BEGIN
|
33909
|
+
[1m[36m (4.4ms)[0m [1mCREATE TABLE "bloom_remit_txns" ("id" serial primary key, "status" integer DEFAULT 0 NOT NULL, "recipient_type" character varying NOT NULL, "recipient_id" character varying NOT NULL, "sender_id" integer NOT NULL, "sender_type" character varying NOT NULL, "amount" decimal NOT NULL, "account_name" character varying, "account_id" character varying, "secret" uuid NOT NULL) [0m
|
33910
|
+
[1m[35m (0.6ms)[0m ROLLBACK
|
33911
|
+
[1m[36m (38.8ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m
|
33912
|
+
[1m[35m (42.3ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
33913
|
+
[1m[36mActiveRecord::SchemaMigration Load (1.0ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
33914
|
+
Migrating to CreateBloomRemitTxns (20160729070509)
|
33915
|
+
[1m[35m (0.6ms)[0m BEGIN
|
33916
|
+
[1m[36m (51.8ms)[0m [1mCREATE TABLE "bloom_remit_txns" ("id" serial primary key, "status" integer DEFAULT 0 NOT NULL, "recipient_type" character varying NOT NULL, "recipient_id" character varying NOT NULL, "sender_id" integer NOT NULL, "sender_type" character varying NOT NULL, "amount" decimal NOT NULL, "account_name" character varying, "account_id" character varying, "secret" uuid NOT NULL) [0m
|
33917
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160729070509"]]
|
33918
|
+
[1m[36m (11.9ms)[0m [1mCOMMIT[0m
|
33919
|
+
Migrating to CreateUsers (20160729085500)
|
33920
|
+
[1m[35m (2.9ms)[0m BEGIN
|
33921
|
+
[1m[36m (77.6ms)[0m [1mCREATE TABLE "users" ("id" serial primary key, "email" character varying, "bloom_remit_id" character varying) [0m
|
33922
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160729085500"]]
|
33923
|
+
[1m[36m (26.3ms)[0m [1mCOMMIT[0m
|
33924
|
+
Migrating to CreateBillers (20160805001840)
|
33925
|
+
[1m[35m (2.3ms)[0m BEGIN
|
33926
|
+
[1m[36m (58.8ms)[0m [1mCREATE TABLE "billers" ("id" serial primary key, "slug" character varying) [0m
|
33927
|
+
[1m[35mSQL (5.6ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160805001840"]]
|
33928
|
+
[1m[36m (15.6ms)[0m [1mCOMMIT[0m
|
33929
|
+
Migrating to DropRecipientFromTxns (20160805004223)
|
33930
|
+
[1m[35m (1.8ms)[0m BEGIN
|
33931
|
+
[1m[36m (9.2ms)[0m [1mALTER TABLE "bloom_remit_txns" DROP "recipient_id"[0m
|
33932
|
+
[1m[35m (6.5ms)[0m ALTER TABLE "bloom_remit_txns" DROP "recipient_type"
|
33933
|
+
[1m[36mSQL (2.9ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20160805004223"]]
|
33934
|
+
[1m[35m (17.2ms)[0m COMMIT
|
33935
|
+
Migrating to AddTargetSlugToBloomRemitTxns (20160805004350)
|
33936
|
+
[1m[36m (2.0ms)[0m [1mBEGIN[0m
|
33937
|
+
[1m[35m (2.9ms)[0m ALTER TABLE "bloom_remit_txns" ADD "target_slug" character varying NOT NULL
|
33938
|
+
[1m[36mSQL (3.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20160805004350"]]
|
33939
|
+
[1m[35m (18.0ms)[0m COMMIT
|
33940
|
+
Migrating to AddOwnerToBloomRemitTxns (20160805040950)
|
33941
|
+
[1m[36m (0.9ms)[0m [1mBEGIN[0m
|
33942
|
+
[1m[35m (1.4ms)[0m ALTER TABLE "bloom_remit_txns" ADD "owner_id" character varying
|
33943
|
+
[1m[36m (4.6ms)[0m [1mALTER TABLE "bloom_remit_txns" ADD "owner_type" character varying[0m
|
33944
|
+
[1m[35m (35.5ms)[0m CREATE INDEX "index_bloom_remit_txns_on_owner_id_and_owner_type" ON "bloom_remit_txns" ("owner_id", "owner_type")
|
33945
|
+
[1m[36mSQL (3.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20160805040950"]]
|
33946
|
+
[1m[35m (14.8ms)[0m COMMIT
|
33947
|
+
Migrating to CreatePayments (20160805042105)
|
33948
|
+
[1m[36m (0.7ms)[0m [1mBEGIN[0m
|
33949
|
+
[1m[35m (30.7ms)[0m CREATE TABLE "payments" ("id" serial primary key)
|
33950
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20160805042105"]]
|
33951
|
+
[1m[35m (23.6ms)[0m COMMIT
|
33952
|
+
Migrating to ChangeTxnsSenderIdToString (20160805095308)
|
33953
|
+
[1m[36m (4.9ms)[0m [1mBEGIN[0m
|
33954
|
+
[1m[35m (115.3ms)[0m ALTER TABLE "bloom_remit_txns" ALTER COLUMN "sender_id" TYPE character varying
|
33955
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20160805095308"]]
|
33956
|
+
[1m[35m (13.9ms)[0m COMMIT
|
33957
|
+
Migrating to AddTypeToUsers (20160806011259)
|
33958
|
+
[1m[36m (0.7ms)[0m [1mBEGIN[0m
|
33959
|
+
[1m[35m (1.1ms)[0m ALTER TABLE "users" ADD "type" character varying
|
33960
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20160806011259"]]
|
33961
|
+
[1m[35m (12.1ms)[0m COMMIT
|
33962
|
+
Migrating to AddTypeToPayments (20160806012210)
|
33963
|
+
[1m[36m (0.6ms)[0m [1mBEGIN[0m
|
33964
|
+
[1m[35m (25.1ms)[0m ALTER TABLE "payments" ADD "type" character varying
|
33965
|
+
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20160806012210"]]
|
33966
|
+
[1m[35m (13.1ms)[0m COMMIT
|
33967
|
+
Migrating to CreateBloomRemitResponses (20160806054012)
|
33968
|
+
[1m[36m (0.7ms)[0m [1mBEGIN[0m
|
33969
|
+
[1m[35m (56.9ms)[0m CREATE TABLE "bloom_remit_responses" ("id" serial primary key, "txn_id" integer NOT NULL, "body" text NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
|
33970
|
+
[1m[36m (26.0ms)[0m [1mCREATE INDEX "index_bloom_remit_responses_on_txn_id" ON "bloom_remit_responses" ("txn_id")[0m
|
33971
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160806054012"]]
|
33972
|
+
[1m[36m (9.7ms)[0m [1mCOMMIT[0m
|
33973
|
+
Migrating to AddExternalIdToBloomRemitTxns (20160808081300)
|
33974
|
+
[1m[35m (0.8ms)[0m BEGIN
|
33975
|
+
[1m[36m (0.9ms)[0m [1mALTER TABLE "bloom_remit_txns" ADD "external_id" character varying NOT NULL[0m
|
33976
|
+
[1m[35m (24.9ms)[0m CREATE INDEX "index_bloom_remit_txns_on_external_id" ON "bloom_remit_txns" ("external_id")
|
33977
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20160808081300"]]
|
33978
|
+
[1m[35m (11.2ms)[0m COMMIT
|
33979
|
+
Migrating to AddStatusDescriptionToBloomRemitTxns (20160809043433)
|
33980
|
+
[1m[36m (0.7ms)[0m [1mBEGIN[0m
|
33981
|
+
[1m[35m (0.8ms)[0m ALTER TABLE "bloom_remit_txns" ADD "status_description" text
|
33982
|
+
[1m[36mSQL (1.7ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20160809043433"]]
|
33983
|
+
[1m[35m (17.8ms)[0m COMMIT
|
33984
|
+
Migrating to AddVendorExternalIdToBloomRemitTxns (20160817003323)
|
33985
|
+
[1m[36m (1.3ms)[0m [1mBEGIN[0m
|
33986
|
+
[1m[35m (0.9ms)[0m ALTER TABLE "bloom_remit_txns" ADD "vendor_external_id" character varying
|
33987
|
+
[1m[36m (22.0ms)[0m [1mCREATE INDEX "index_bloom_remit_txns_on_vendor_external_id" ON "bloom_remit_txns" ("vendor_external_id")[0m
|
33988
|
+
[1m[35mSQL (5.4ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160817003323"]]
|
33989
|
+
[1m[36m (12.7ms)[0m [1mCOMMIT[0m
|
33990
|
+
Migrating to AllowNullExternalIdForTxns (20160930034811)
|
33991
|
+
[1m[35m (0.8ms)[0m BEGIN
|
33992
|
+
[1m[36m (1.5ms)[0m [1mALTER TABLE "txns" ALTER COLUMN "external_id" TYPE character varying[0m
|
33993
|
+
[1m[35m (1.1ms)[0m ROLLBACK
|
33994
|
+
[1m[36m (38.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m
|
33995
|
+
[1m[35m (39.3ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
33996
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.9ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
33997
|
+
Migrating to CreateBloomRemitTxns (20160729070509)
|
33998
|
+
[1m[35m (0.6ms)[0m BEGIN
|
33999
|
+
[1m[36m (55.4ms)[0m [1mCREATE TABLE "bloom_remit_txns" ("id" serial primary key, "status" integer DEFAULT 0 NOT NULL, "recipient_type" character varying NOT NULL, "recipient_id" character varying NOT NULL, "sender_id" integer NOT NULL, "sender_type" character varying NOT NULL, "amount" decimal NOT NULL, "account_name" character varying, "account_id" character varying, "secret" uuid NOT NULL) [0m
|
34000
|
+
[1m[35mSQL (2.4ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160729070509"]]
|
34001
|
+
[1m[36m (17.4ms)[0m [1mCOMMIT[0m
|
34002
|
+
Migrating to CreateUsers (20160729085500)
|
34003
|
+
[1m[35m (2.2ms)[0m BEGIN
|
34004
|
+
[1m[36m (53.1ms)[0m [1mCREATE TABLE "users" ("id" serial primary key, "email" character varying, "bloom_remit_id" character varying) [0m
|
34005
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160729085500"]]
|
34006
|
+
[1m[36m (12.2ms)[0m [1mCOMMIT[0m
|
34007
|
+
Migrating to CreateBillers (20160805001840)
|
34008
|
+
[1m[35m (1.1ms)[0m BEGIN
|
34009
|
+
[1m[36m (53.2ms)[0m [1mCREATE TABLE "billers" ("id" serial primary key, "slug" character varying) [0m
|
34010
|
+
[1m[35mSQL (1.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160805001840"]]
|
34011
|
+
[1m[36m (16.3ms)[0m [1mCOMMIT[0m
|
34012
|
+
Migrating to DropRecipientFromTxns (20160805004223)
|
34013
|
+
[1m[35m (0.7ms)[0m BEGIN
|
34014
|
+
[1m[36m (1.1ms)[0m [1mALTER TABLE "bloom_remit_txns" DROP "recipient_id"[0m
|
34015
|
+
[1m[35m (0.8ms)[0m ALTER TABLE "bloom_remit_txns" DROP "recipient_type"
|
34016
|
+
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20160805004223"]]
|
34017
|
+
[1m[35m (16.6ms)[0m COMMIT
|
34018
|
+
Migrating to AddTargetSlugToBloomRemitTxns (20160805004350)
|
34019
|
+
[1m[36m (4.0ms)[0m [1mBEGIN[0m
|
34020
|
+
[1m[35m (0.9ms)[0m ALTER TABLE "bloom_remit_txns" ADD "target_slug" character varying NOT NULL
|
34021
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20160805004350"]]
|
34022
|
+
[1m[35m (14.4ms)[0m COMMIT
|
34023
|
+
Migrating to AddOwnerToBloomRemitTxns (20160805040950)
|
34024
|
+
[1m[36m (1.5ms)[0m [1mBEGIN[0m
|
34025
|
+
[1m[35m (3.0ms)[0m ALTER TABLE "bloom_remit_txns" ADD "owner_id" character varying
|
34026
|
+
[1m[36m (2.8ms)[0m [1mALTER TABLE "bloom_remit_txns" ADD "owner_type" character varying[0m
|
34027
|
+
[1m[35m (34.5ms)[0m CREATE INDEX "index_bloom_remit_txns_on_owner_id_and_owner_type" ON "bloom_remit_txns" ("owner_id", "owner_type")
|
34028
|
+
[1m[36mSQL (2.4ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20160805040950"]]
|
34029
|
+
[1m[35m (14.6ms)[0m COMMIT
|
34030
|
+
Migrating to CreatePayments (20160805042105)
|
34031
|
+
[1m[36m (5.9ms)[0m [1mBEGIN[0m
|
34032
|
+
[1m[35m (33.1ms)[0m CREATE TABLE "payments" ("id" serial primary key)
|
34033
|
+
[1m[36mSQL (2.9ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20160805042105"]]
|
34034
|
+
[1m[35m (19.3ms)[0m COMMIT
|
34035
|
+
Migrating to ChangeTxnsSenderIdToString (20160805095308)
|
34036
|
+
[1m[36m (1.4ms)[0m [1mBEGIN[0m
|
34037
|
+
[1m[35m (90.9ms)[0m ALTER TABLE "bloom_remit_txns" ALTER COLUMN "sender_id" TYPE character varying
|
34038
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20160805095308"]]
|
34039
|
+
[1m[35m (16.3ms)[0m COMMIT
|
34040
|
+
Migrating to AddTypeToUsers (20160806011259)
|
34041
|
+
[1m[36m (0.8ms)[0m [1mBEGIN[0m
|
34042
|
+
[1m[35m (0.8ms)[0m ALTER TABLE "users" ADD "type" character varying
|
34043
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20160806011259"]]
|
34044
|
+
[1m[35m (12.2ms)[0m COMMIT
|
34045
|
+
Migrating to AddTypeToPayments (20160806012210)
|
34046
|
+
[1m[36m (0.7ms)[0m [1mBEGIN[0m
|
34047
|
+
[1m[35m (28.2ms)[0m ALTER TABLE "payments" ADD "type" character varying
|
34048
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20160806012210"]]
|
34049
|
+
[1m[35m (12.6ms)[0m COMMIT
|
34050
|
+
Migrating to CreateBloomRemitResponses (20160806054012)
|
34051
|
+
[1m[36m (0.7ms)[0m [1mBEGIN[0m
|
34052
|
+
[1m[35m (44.0ms)[0m CREATE TABLE "bloom_remit_responses" ("id" serial primary key, "txn_id" integer NOT NULL, "body" text NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
|
34053
|
+
[1m[36m (21.5ms)[0m [1mCREATE INDEX "index_bloom_remit_responses_on_txn_id" ON "bloom_remit_responses" ("txn_id")[0m
|
34054
|
+
[1m[35mSQL (1.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160806054012"]]
|
34055
|
+
[1m[36m (11.3ms)[0m [1mCOMMIT[0m
|
34056
|
+
Migrating to AddExternalIdToBloomRemitTxns (20160808081300)
|
34057
|
+
[1m[35m (1.2ms)[0m BEGIN
|
34058
|
+
[1m[36m (0.8ms)[0m [1mALTER TABLE "bloom_remit_txns" ADD "external_id" character varying NOT NULL[0m
|
34059
|
+
[1m[35m (37.5ms)[0m CREATE INDEX "index_bloom_remit_txns_on_external_id" ON "bloom_remit_txns" ("external_id")
|
34060
|
+
[1m[36mSQL (3.0ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20160808081300"]]
|
34061
|
+
[1m[35m (15.3ms)[0m COMMIT
|
34062
|
+
Migrating to AddStatusDescriptionToBloomRemitTxns (20160809043433)
|
34063
|
+
[1m[36m (0.7ms)[0m [1mBEGIN[0m
|
34064
|
+
[1m[35m (0.7ms)[0m ALTER TABLE "bloom_remit_txns" ADD "status_description" text
|
34065
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20160809043433"]]
|
34066
|
+
[1m[35m (12.9ms)[0m COMMIT
|
34067
|
+
Migrating to AddVendorExternalIdToBloomRemitTxns (20160817003323)
|
34068
|
+
[1m[36m (1.5ms)[0m [1mBEGIN[0m
|
34069
|
+
[1m[35m (1.5ms)[0m ALTER TABLE "bloom_remit_txns" ADD "vendor_external_id" character varying
|
34070
|
+
[1m[36m (32.1ms)[0m [1mCREATE INDEX "index_bloom_remit_txns_on_vendor_external_id" ON "bloom_remit_txns" ("vendor_external_id")[0m
|
34071
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160817003323"]]
|
34072
|
+
[1m[36m (13.0ms)[0m [1mCOMMIT[0m
|
34073
|
+
Migrating to AllowNullExternalIdForTxns (20160930034811)
|
34074
|
+
[1m[36m (42.5ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m
|
34075
|
+
[1m[35m (38.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
34076
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.9ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
34077
|
+
Migrating to CreateBloomRemitTxns (20160729070509)
|
34078
|
+
[1m[35m (0.6ms)[0m BEGIN
|
34079
|
+
[1m[36m (45.1ms)[0m [1mCREATE TABLE "bloom_remit_txns" ("id" serial primary key, "status" integer DEFAULT 0 NOT NULL, "recipient_type" character varying NOT NULL, "recipient_id" character varying NOT NULL, "sender_id" integer NOT NULL, "sender_type" character varying NOT NULL, "amount" decimal NOT NULL, "account_name" character varying, "account_id" character varying, "secret" uuid NOT NULL) [0m
|
34080
|
+
[1m[35mSQL (1.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160729070509"]]
|
34081
|
+
[1m[36m (12.6ms)[0m [1mCOMMIT[0m
|
34082
|
+
Migrating to CreateUsers (20160729085500)
|
34083
|
+
[1m[35m (0.9ms)[0m BEGIN
|
34084
|
+
[1m[36m (52.6ms)[0m [1mCREATE TABLE "users" ("id" serial primary key, "email" character varying, "bloom_remit_id" character varying) [0m
|
34085
|
+
[1m[35mSQL (0.8ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160729085500"]]
|
34086
|
+
[1m[36m (10.9ms)[0m [1mCOMMIT[0m
|
34087
|
+
Migrating to CreateBillers (20160805001840)
|
34088
|
+
[1m[35m (1.8ms)[0m BEGIN
|
34089
|
+
[1m[36m (76.5ms)[0m [1mCREATE TABLE "billers" ("id" serial primary key, "slug" character varying) [0m
|
34090
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160805001840"]]
|
34091
|
+
[1m[36m (10.0ms)[0m [1mCOMMIT[0m
|
34092
|
+
Migrating to DropRecipientFromTxns (20160805004223)
|
34093
|
+
[1m[35m (1.9ms)[0m BEGIN
|
34094
|
+
[1m[36m (4.2ms)[0m [1mALTER TABLE "bloom_remit_txns" DROP "recipient_id"[0m
|
34095
|
+
[1m[35m (4.2ms)[0m ALTER TABLE "bloom_remit_txns" DROP "recipient_type"
|
34096
|
+
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20160805004223"]]
|
34097
|
+
[1m[35m (15.6ms)[0m COMMIT
|
34098
|
+
Migrating to AddTargetSlugToBloomRemitTxns (20160805004350)
|
34099
|
+
[1m[36m (0.7ms)[0m [1mBEGIN[0m
|
34100
|
+
[1m[35m (0.8ms)[0m ALTER TABLE "bloom_remit_txns" ADD "target_slug" character varying NOT NULL
|
34101
|
+
[1m[36mSQL (2.5ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20160805004350"]]
|
34102
|
+
[1m[35m (17.1ms)[0m COMMIT
|
34103
|
+
Migrating to AddOwnerToBloomRemitTxns (20160805040950)
|
34104
|
+
[1m[36m (3.1ms)[0m [1mBEGIN[0m
|
34105
|
+
[1m[35m (3.2ms)[0m ALTER TABLE "bloom_remit_txns" ADD "owner_id" character varying
|
34106
|
+
[1m[36m (1.1ms)[0m [1mALTER TABLE "bloom_remit_txns" ADD "owner_type" character varying[0m
|
34107
|
+
[1m[35m (37.9ms)[0m CREATE INDEX "index_bloom_remit_txns_on_owner_id_and_owner_type" ON "bloom_remit_txns" ("owner_id", "owner_type")
|
34108
|
+
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20160805040950"]]
|
34109
|
+
[1m[35m (16.9ms)[0m COMMIT
|
34110
|
+
Migrating to CreatePayments (20160805042105)
|
34111
|
+
[1m[36m (1.3ms)[0m [1mBEGIN[0m
|
34112
|
+
[1m[35m (39.1ms)[0m CREATE TABLE "payments" ("id" serial primary key)
|
34113
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20160805042105"]]
|
34114
|
+
[1m[35m (19.2ms)[0m COMMIT
|
34115
|
+
Migrating to ChangeTxnsSenderIdToString (20160805095308)
|
34116
|
+
[1m[36m (2.9ms)[0m [1mBEGIN[0m
|
34117
|
+
[1m[35m (94.9ms)[0m ALTER TABLE "bloom_remit_txns" ALTER COLUMN "sender_id" TYPE character varying
|
34118
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20160805095308"]]
|
34119
|
+
[1m[35m (10.6ms)[0m COMMIT
|
34120
|
+
Migrating to AddTypeToUsers (20160806011259)
|
34121
|
+
[1m[36m (0.6ms)[0m [1mBEGIN[0m
|
34122
|
+
[1m[35m (0.9ms)[0m ALTER TABLE "users" ADD "type" character varying
|
34123
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20160806011259"]]
|
34124
|
+
[1m[35m (9.7ms)[0m COMMIT
|
34125
|
+
Migrating to AddTypeToPayments (20160806012210)
|
34126
|
+
[1m[36m (0.6ms)[0m [1mBEGIN[0m
|
34127
|
+
[1m[35m (23.4ms)[0m ALTER TABLE "payments" ADD "type" character varying
|
34128
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20160806012210"]]
|
34129
|
+
[1m[35m (14.4ms)[0m COMMIT
|
34130
|
+
Migrating to CreateBloomRemitResponses (20160806054012)
|
34131
|
+
[1m[36m (3.0ms)[0m [1mBEGIN[0m
|
34132
|
+
[1m[35m (57.8ms)[0m CREATE TABLE "bloom_remit_responses" ("id" serial primary key, "txn_id" integer NOT NULL, "body" text NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
|
34133
|
+
[1m[36m (27.4ms)[0m [1mCREATE INDEX "index_bloom_remit_responses_on_txn_id" ON "bloom_remit_responses" ("txn_id")[0m
|
34134
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160806054012"]]
|
34135
|
+
[1m[36m (17.7ms)[0m [1mCOMMIT[0m
|
34136
|
+
Migrating to AddExternalIdToBloomRemitTxns (20160808081300)
|
34137
|
+
[1m[35m (1.2ms)[0m BEGIN
|
34138
|
+
[1m[36m (5.4ms)[0m [1mALTER TABLE "bloom_remit_txns" ADD "external_id" character varying NOT NULL[0m
|
34139
|
+
[1m[35m (33.1ms)[0m CREATE INDEX "index_bloom_remit_txns_on_external_id" ON "bloom_remit_txns" ("external_id")
|
34140
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20160808081300"]]
|
34141
|
+
[1m[35m (14.7ms)[0m COMMIT
|
34142
|
+
Migrating to AddStatusDescriptionToBloomRemitTxns (20160809043433)
|
34143
|
+
[1m[36m (2.4ms)[0m [1mBEGIN[0m
|
34144
|
+
[1m[35m (1.2ms)[0m ALTER TABLE "bloom_remit_txns" ADD "status_description" text
|
34145
|
+
[1m[36mSQL (2.7ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20160809043433"]]
|
34146
|
+
[1m[35m (13.1ms)[0m COMMIT
|
34147
|
+
Migrating to AddVendorExternalIdToBloomRemitTxns (20160817003323)
|
34148
|
+
[1m[36m (0.8ms)[0m [1mBEGIN[0m
|
34149
|
+
[1m[35m (1.2ms)[0m ALTER TABLE "bloom_remit_txns" ADD "vendor_external_id" character varying
|
34150
|
+
[1m[36m (28.9ms)[0m [1mCREATE INDEX "index_bloom_remit_txns_on_vendor_external_id" ON "bloom_remit_txns" ("vendor_external_id")[0m
|
34151
|
+
[1m[35mSQL (0.8ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160817003323"]]
|
34152
|
+
[1m[36m (15.5ms)[0m [1mCOMMIT[0m
|
34153
|
+
Migrating to AllowNullExternalIdForBloomRemitTxns (20160930034811)
|
34154
|
+
[1m[35m (0.7ms)[0m BEGIN
|
34155
|
+
[1m[36m (1.2ms)[0m [1mALTER TABLE "bloom_remit_txns" ALTER COLUMN "external_id" TYPE character varying[0m
|
34156
|
+
[1m[35m (0.6ms)[0m ALTER TABLE "bloom_remit_txns" ALTER "external_id" DROP NOT NULL
|
34157
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20160930034811"]]
|
34158
|
+
[1m[35m (14.8ms)[0m COMMIT
|
34159
|
+
[1m[36mActiveRecord::SchemaMigration Load (1.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
34160
|
+
[1m[35m (2.7ms)[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
|
34161
|
+
FROM pg_constraint c
|
34162
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
34163
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
34164
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
34165
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
34166
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
34167
|
+
WHERE c.contype = 'f'
|
34168
|
+
AND t1.relname = 'billers'
|
34169
|
+
AND t3.nspname = ANY (current_schemas(false))
|
34170
|
+
ORDER BY c.conname
|
34171
|
+
|
34172
|
+
[1m[36m (2.5ms)[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
|
34173
|
+
FROM pg_constraint c
|
34174
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
34175
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
34176
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
34177
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
34178
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
34179
|
+
WHERE c.contype = 'f'
|
34180
|
+
AND t1.relname = 'bloom_remit_responses'
|
34181
|
+
AND t3.nspname = ANY (current_schemas(false))
|
34182
|
+
ORDER BY c.conname
|
34183
|
+
[0m
|
34184
|
+
[1m[35m (2.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
|
34185
|
+
FROM pg_constraint c
|
34186
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
34187
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
34188
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
34189
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
34190
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
34191
|
+
WHERE c.contype = 'f'
|
34192
|
+
AND t1.relname = 'bloom_remit_txns'
|
34193
|
+
AND t3.nspname = ANY (current_schemas(false))
|
34194
|
+
ORDER BY c.conname
|
34195
|
+
|
34196
|
+
[1m[36m (2.5ms)[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
|
34197
|
+
FROM pg_constraint c
|
34198
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
34199
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
34200
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
34201
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
34202
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
34203
|
+
WHERE c.contype = 'f'
|
34204
|
+
AND t1.relname = 'payments'
|
34205
|
+
AND t3.nspname = ANY (current_schemas(false))
|
34206
|
+
ORDER BY c.conname
|
34207
|
+
[0m
|
34208
|
+
[1m[35m (2.4ms)[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
|
34209
|
+
FROM pg_constraint c
|
34210
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
34211
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
34212
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
34213
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
34214
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
34215
|
+
WHERE c.contype = 'f'
|
34216
|
+
AND t1.relname = 'users'
|
34217
|
+
AND t3.nspname = ANY (current_schemas(false))
|
34218
|
+
ORDER BY c.conname
|
34219
|
+
|
34220
|
+
[1m[36mActiveRecord::SchemaMigration Load (1.0ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
34221
|
+
[1m[35m (1.2ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL
|
34222
|
+
[1m[36m (2.2ms)[0m [1m SELECT schemaname || '.' || tablename
|
34223
|
+
FROM pg_tables
|
34224
|
+
WHERE
|
34225
|
+
tablename !~ '_prt_' AND
|
34226
|
+
tablename <> 'schema_migrations' AND
|
34227
|
+
schemaname = ANY (current_schemas(false))
|
34228
|
+
[0m
|
34229
|
+
[1m[35m (1.9ms)[0m select table_name from information_schema.views where table_schema = 'app_test'
|
34230
|
+
[1m[36m (358.3ms)[0m [1mTRUNCATE TABLE "public"."billers", "public"."users", "public"."payments", "public"."bloom_remit_responses", "public"."bloom_remit_txns" RESTART IDENTITY CASCADE;[0m
|
34231
|
+
[1m[35m (0.8ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL
|
34232
|
+
[1m[36m (0.6ms)[0m [1mBEGIN[0m
|
34233
|
+
[1m[35m (0.5ms)[0m COMMIT
|
34234
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
34235
|
+
[1m[35m (0.7ms)[0m ROLLBACK
|
34236
|
+
[1m[36m (0.6ms)[0m [1mBEGIN[0m
|
34237
|
+
[1m[35m (0.4ms)[0m COMMIT
|
34238
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
34239
|
+
[1m[35m (0.6ms)[0m ROLLBACK
|
34240
|
+
[1m[36m (0.6ms)[0m [1mBEGIN[0m
|
34241
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
|
34242
|
+
[1m[36m (13.5ms)[0m [1mCOMMIT[0m
|
34243
|
+
[1m[35m (0.7ms)[0m BEGIN
|
34244
|
+
[1m[36mSQL (1.9ms)[0m [1mINSERT INTO "users" ("type") VALUES ($1) RETURNING "id"[0m [["type", "SubUser"]]
|
34245
|
+
[1m[35m (21.6ms)[0m COMMIT
|
34246
|
+
[1m[36m (0.9ms)[0m [1mBEGIN[0m
|
34247
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "payments" ("type") VALUES ($1) RETURNING "id" [["type", "SubPayment"]]
|
34248
|
+
[1m[36m (12.9ms)[0m [1mCOMMIT[0m
|
34249
|
+
[1m[35m (0.8ms)[0m BEGIN
|
34250
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "bloom_remit_txns" ("secret", "sender_type", "sender_id", "amount", "account_name", "account_id", "target_slug", "owner_id", "owner_type", "external_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id"[0m [["secret", "78e86390-c7bb-4356-9b57-1de35f8aeb4c"], ["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", "ec2495560413b85cd84f8bcc"]]
|
34251
|
+
[1m[35m (12.4ms)[0m COMMIT
|
34252
|
+
[1m[36mUser Load (0.8ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 1]]
|
34253
|
+
[1m[35mPayment Load (0.9ms)[0m SELECT "payments".* FROM "payments" WHERE "payments"."id" = $1 LIMIT 1 [["id", 1]]
|
34254
|
+
[1m[36m (0.8ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL[0m
|
34255
|
+
[1m[35m (359.9ms)[0m TRUNCATE TABLE "public"."billers", "public"."users", "public"."payments", "public"."bloom_remit_responses", "public"."bloom_remit_txns" RESTART IDENTITY CASCADE;
|
34256
|
+
[1m[36m (1.0ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL[0m
|
34257
|
+
[1m[35m (0.7ms)[0m BEGIN
|
34258
|
+
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
34259
|
+
[1m[35m (10.7ms)[0m COMMIT
|
34260
|
+
[1m[36m (0.9ms)[0m [1mBEGIN[0m
|
34261
|
+
[1m[35mSQL (1.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", "60e9a0da-4b67-4acf-bee7-f7d29cd04eef"], ["external_id", "6abe9b9def0a5d6a8d8854d0"], ["sender_id", "1"], ["sender_type", "User"]]
|
34262
|
+
[1m[36m (13.7ms)[0m [1mCOMMIT[0m
|
34263
|
+
[1m[35mBloomRemit::Txn Load (1.3ms)[0m SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 1], ["secret", "60e9a0da-4b67-4acf-bee7-f7d29cd04eef"]]
|
34264
|
+
[1m[36m (1.1ms)[0m [1mBEGIN[0m
|
34265
|
+
[1m[35mSQL (2.6ms)[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]]
|
34266
|
+
[1m[36m (11.5ms)[0m [1mCOMMIT[0m
|
34267
|
+
[1m[35m (0.8ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL
|
34268
|
+
[1m[36m (352.2ms)[0m [1mTRUNCATE TABLE "public"."billers", "public"."users", "public"."payments", "public"."bloom_remit_responses", "public"."bloom_remit_txns" RESTART IDENTITY CASCADE;[0m
|
34269
|
+
[1m[35m (1.4ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL
|
34270
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
34271
|
+
[1m[35m (0.5ms)[0m COMMIT
|
34272
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
34273
|
+
[1m[35m (0.5ms)[0m ROLLBACK
|
34274
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
34275
|
+
[1m[35m (0.4ms)[0m COMMIT
|
34276
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
34277
|
+
[1m[35m (1.7ms)[0m ROLLBACK
|
34278
|
+
[1m[36m (0.8ms)[0m [1mBEGIN[0m
|
34279
|
+
[1m[35m (0.5ms)[0m COMMIT
|
34280
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
34281
|
+
[1m[35m (0.8ms)[0m ROLLBACK
|
34282
|
+
[1m[36m (0.6ms)[0m [1mBEGIN[0m
|
34283
|
+
[1m[35m (0.6ms)[0m COMMIT
|
34284
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
34285
|
+
[1m[35m (0.7ms)[0m ROLLBACK
|
34286
|
+
[1m[36m (0.6ms)[0m [1mBEGIN[0m
|
34287
|
+
[1m[35m (0.5ms)[0m COMMIT
|
34288
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
34289
|
+
[1m[35m (0.5ms)[0m ROLLBACK
|
34290
|
+
[1m[36m (0.6ms)[0m [1mBEGIN[0m
|
34291
|
+
[1m[35m (0.5ms)[0m COMMIT
|
34292
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
34293
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
34294
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
34295
|
+
[1m[35m (0.4ms)[0m COMMIT
|
34296
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
34297
|
+
[1m[35m (1.4ms)[0m ROLLBACK
|
34298
|
+
[1m[36m (0.6ms)[0m [1mBEGIN[0m
|
34299
|
+
[1m[35m (0.5ms)[0m COMMIT
|
34300
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
34301
|
+
[1m[35m (0.9ms)[0m SAVEPOINT active_record_1
|
34302
|
+
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
34303
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
34304
|
+
[1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
|
34305
|
+
[1m[35mSQL (1.0ms)[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", "3597527b-097a-41b9-bf95-6d4068dad936"], ["external_id", "f9145fea664a67b039934157"], ["sender_id", "1"], ["sender_type", "User"]]
|
34306
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
34307
|
+
Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-09-30 11:55:23 +0800
|
34308
|
+
Processing by BloomRemit::Api::V1::TxnsController#post_update as JSON
|
34309
|
+
Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"1", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
|
34310
|
+
[1m[35mBloomRemit::Txn Load (1.0ms)[0m SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 1], ["secret", nil]]
|
34311
|
+
Rendered text template (0.0ms)
|
34312
|
+
Completed 404 Not Found in 17ms (Views: 15.4ms | ActiveRecord: 1.0ms)
|
34313
|
+
Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-09-30 11:55:24 +0800
|
34314
|
+
Processing by BloomRemit::Api::V1::TxnsController#post_update as JSON
|
34315
|
+
Parameters: {"secret"=>"3597527b-097a-41b9-bf95-6d4068dad936", "status"=>"paid", "id"=>"1", "txn"=>{"status"=>"paid", "secret"=>"3597527b-097a-41b9-bf95-6d4068dad936"}}
|
34316
|
+
[1m[36mBloomRemit::Txn Load (1.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", "3597527b-097a-41b9-bf95-6d4068dad936"]]
|
34317
|
+
[1m[35m (0.6ms)[0m SAVEPOINT active_record_1
|
34318
|
+
[1m[36mSQL (0.8ms)[0m [1mUPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2[0m [["status", 1], ["id", 1]]
|
34319
|
+
[1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1
|
34320
|
+
Completed 200 OK in 8ms (Views: 0.4ms | ActiveRecord: 3.1ms)
|
34321
|
+
[1m[36mBloomRemit::Txn Load (0.7ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1[0m [["id", 1]]
|
34322
|
+
[1m[35m (0.6ms)[0m ROLLBACK
|
34323
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
34324
|
+
[1m[35m (0.4ms)[0m COMMIT
|
34325
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
34326
|
+
[1m[35m (0.8ms)[0m SAVEPOINT active_record_1
|
34327
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
34328
|
+
[1m[35m (0.5ms)[0m RELEASE SAVEPOINT active_record_1
|
34329
|
+
[1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
|
34330
|
+
[1m[35mSQL (1.0ms)[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", "ebbc4f0d-2ed9-4207-9354-4a35a56788d2"], ["external_id", "5d65f6ca013abe6f13c097ab"], ["sender_id", "2"], ["sender_type", "User"]]
|
34331
|
+
[1m[36m (0.7ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
34332
|
+
Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-09-30 11:55:24 +0800
|
34333
|
+
Processing by BloomRemit::Api::V1::TxnsController#update as JSON
|
34334
|
+
Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"2", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
|
34335
|
+
[1m[35mBloomRemit::Txn Load (0.9ms)[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]]
|
34336
|
+
Rendered text template (0.0ms)
|
34337
|
+
Completed 404 Not Found in 2ms (Views: 0.3ms | ActiveRecord: 0.9ms)
|
34338
|
+
Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-09-30 11:55:24 +0800
|
34339
|
+
Processing by BloomRemit::Api::V1::TxnsController#update as JSON
|
34340
|
+
Parameters: {"secret"=>"ebbc4f0d-2ed9-4207-9354-4a35a56788d2", "status"=>"paid", "id"=>"2", "txn"=>{"status"=>"paid", "secret"=>"ebbc4f0d-2ed9-4207-9354-4a35a56788d2"}}
|
34341
|
+
[1m[36mBloomRemit::Txn Load (0.9ms)[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", "ebbc4f0d-2ed9-4207-9354-4a35a56788d2"]]
|
34342
|
+
[1m[35m (0.9ms)[0m SAVEPOINT active_record_1
|
34343
|
+
[1m[36mSQL (1.0ms)[0m [1mUPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2[0m [["status", 1], ["id", 2]]
|
34344
|
+
[1m[35m (0.7ms)[0m RELEASE SAVEPOINT active_record_1
|
34345
|
+
Completed 204 No Content in 23ms (ActiveRecord: 3.5ms)
|
34346
|
+
[1m[36mBloomRemit::Txn Load (1.2ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1[0m [["id", 2]]
|
34347
|
+
[1m[35m (0.7ms)[0m ROLLBACK
|
34348
|
+
[1m[36m (0.7ms)[0m [1mBEGIN[0m
|
34349
|
+
[1m[35m (0.6ms)[0m COMMIT
|
34350
|
+
[1m[36m (0.6ms)[0m [1mBEGIN[0m
|
34351
|
+
[1m[35m (0.6ms)[0m SAVEPOINT active_record_1
|
34352
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "users" ("type") VALUES ($1) RETURNING "id"[0m [["type", "SubUser"]]
|
34353
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
34354
|
+
[1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
|
34355
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
|
34356
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
34357
|
+
[1m[35m (1.5ms)[0m SAVEPOINT active_record_1
|
34358
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "payments" ("type") VALUES ($1) RETURNING "id"[0m [["type", "SubPayment"]]
|
34359
|
+
[1m[35m (0.5ms)[0m RELEASE SAVEPOINT active_record_1
|
34360
|
+
[1m[36m (0.8ms)[0m [1mSAVEPOINT active_record_1[0m
|
34361
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "bloom_remit_txns" ("secret", "sender_type", "sender_id", "amount", "account_name", "account_id", "target_slug", "owner_id", "owner_type", "external_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["secret", "d2f65adf-0924-4c16-91b6-bc63b96ef15d"], ["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", "8c13944c69c425e285e7b1b8"]]
|
34362
|
+
[1m[36m (0.7ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
34363
|
+
[1m[35m (0.7ms)[0m ROLLBACK
|
34364
|
+
[1m[36m (0.6ms)[0m [1mBEGIN[0m
|
34365
|
+
[1m[35m (0.7ms)[0m COMMIT
|
34366
|
+
[1m[36m (0.6ms)[0m [1mBEGIN[0m
|
34367
|
+
[1m[35m (0.7ms)[0m ROLLBACK
|
34368
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
34369
|
+
[1m[35m (0.5ms)[0m COMMIT
|
34370
|
+
[1m[36m (1.2ms)[0m [1mBEGIN[0m
|
34371
|
+
[1m[35m (0.7ms)[0m SAVEPOINT active_record_1
|
34372
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "payments" DEFAULT VALUES RETURNING "id"[0m
|
34373
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
34374
|
+
[1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
|
34375
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "users" DEFAULT VALUES RETURNING "id"
|
34376
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
34377
|
+
[1m[35m (0.7ms)[0m SAVEPOINT active_record_1
|
34378
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "owner_id", "owner_type", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "0c3cf030-ca19-45d7-a96e-8fcf7ffbd728"], ["external_id", "0c05e32beefd0e97024f8825"], ["owner_id", "2"], ["owner_type", "Payment"], ["sender_id", "4"], ["sender_type", "User"]]
|
34379
|
+
[1m[35m (0.7ms)[0m RELEASE SAVEPOINT active_record_1
|
34380
|
+
[1m[36m (0.8ms)[0m [1mSAVEPOINT active_record_1[0m
|
34381
|
+
[1m[35mSQL (1.1ms)[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-09-30 03:55:24.141234"], ["updated_at", "2016-09-30 03:55:24.141234"]]
|
34382
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
34383
|
+
[1m[35m (1.0ms)[0m SELECT COUNT(*) FROM "bloom_remit_responses" WHERE "bloom_remit_responses"."txn_id" = $1 [["txn_id", 4]]
|
34384
|
+
[1m[36mBloomRemit::Response Load (0.8ms)[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]]
|
34385
|
+
[1m[35m (0.6ms)[0m ROLLBACK
|
34386
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
34387
|
+
[1m[35m (0.5ms)[0m COMMIT
|
34388
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
34389
|
+
[1m[35m (0.6ms)[0m SAVEPOINT active_record_1
|
34390
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "payments" DEFAULT VALUES RETURNING "id"[0m
|
34391
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
34392
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
34393
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "users" DEFAULT VALUES RETURNING "id"
|
34394
|
+
[1m[36m (0.5ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
34395
|
+
[1m[35m (0.4ms)[0m SAVEPOINT active_record_1
|
34396
|
+
[1m[36mSQL (0.6ms)[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", "d4068db1-db2e-41e3-9028-d56d18438a11"], ["external_id", "f317415d3fca29902c933c06"], ["owner_id", "3"], ["owner_type", "Payment"], ["sender_id", "5"], ["sender_type", "User"]]
|
34397
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
34398
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
34399
|
+
[1m[35mSQL (0.9ms)[0m UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 7], ["id", 5]]
|
34400
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
34401
|
+
[1m[35m (0.6ms)[0m SAVEPOINT active_record_1
|
34402
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "bloom_remit_responses" ("body", "txn_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["body", "{\"status\":\"500\",\"error\":\"Internal Server Error\"}"], ["txn_id", 5], ["created_at", "2016-09-30 03:55:24.172343"], ["updated_at", "2016-09-30 03:55:24.172343"]]
|
34403
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
34404
|
+
[1m[36mBloomRemit::Txn Load (0.8ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1[0m [["id", 5]]
|
34405
|
+
[1m[35m (0.7ms)[0m ROLLBACK
|
34406
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
34407
|
+
[1m[35m (0.5ms)[0m COMMIT
|
34408
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
34409
|
+
[1m[35m (0.7ms)[0m ROLLBACK
|
34410
|
+
[1m[36m (1.2ms)[0m [1mBEGIN[0m
|
34411
|
+
[1m[35m (0.6ms)[0m COMMIT
|
34412
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
34413
|
+
[1m[35m (0.7ms)[0m ROLLBACK
|
34414
|
+
[1m[36m (0.9ms)[0m [1mBEGIN[0m
|
34415
|
+
[1m[35m (1.1ms)[0m COMMIT
|
34416
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
34417
|
+
[1m[35m (0.6ms)[0m ROLLBACK
|
34418
|
+
[1m[36m (0.7ms)[0m [1mBEGIN[0m
|
34419
|
+
[1m[35m (0.5ms)[0m COMMIT
|
34420
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
34421
|
+
[1m[35m (0.8ms)[0m ROLLBACK
|
34422
|
+
[1m[36m (0.7ms)[0m [1mBEGIN[0m
|
34423
|
+
[1m[35m (0.6ms)[0m COMMIT
|
34424
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
34425
|
+
[1m[35m (0.7ms)[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.9.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-09-
|
11
|
+
date: 2016-09-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -206,6 +206,34 @@ dependencies:
|
|
206
206
|
- - ">="
|
207
207
|
- !ruby/object:Gem::Version
|
208
208
|
version: '0'
|
209
|
+
- !ruby/object:Gem::Dependency
|
210
|
+
name: virtus
|
211
|
+
requirement: !ruby/object:Gem::Requirement
|
212
|
+
requirements:
|
213
|
+
- - ">="
|
214
|
+
- !ruby/object:Gem::Version
|
215
|
+
version: '0'
|
216
|
+
type: :runtime
|
217
|
+
prerelease: false
|
218
|
+
version_requirements: !ruby/object:Gem::Requirement
|
219
|
+
requirements:
|
220
|
+
- - ">="
|
221
|
+
- !ruby/object:Gem::Version
|
222
|
+
version: '0'
|
223
|
+
- !ruby/object:Gem::Dependency
|
224
|
+
name: activemodel
|
225
|
+
requirement: !ruby/object:Gem::Requirement
|
226
|
+
requirements:
|
227
|
+
- - ">="
|
228
|
+
- !ruby/object:Gem::Version
|
229
|
+
version: '0'
|
230
|
+
type: :runtime
|
231
|
+
prerelease: false
|
232
|
+
version_requirements: !ruby/object:Gem::Requirement
|
233
|
+
requirements:
|
234
|
+
- - ">="
|
235
|
+
- !ruby/object:Gem::Version
|
236
|
+
version: '0'
|
209
237
|
- !ruby/object:Gem::Dependency
|
210
238
|
name: sqlite3
|
211
239
|
requirement: !ruby/object:Gem::Requirement
|
@@ -385,6 +413,7 @@ files:
|
|
385
413
|
- db/migrate/20160808081300_add_external_id_to_bloom_remit_txns.rb
|
386
414
|
- db/migrate/20160809043433_add_status_description_to_bloom_remit_txns.rb
|
387
415
|
- db/migrate/20160817003323_add_vendor_external_id_to_bloom_remit_txns.rb
|
416
|
+
- db/migrate/20160930034811_allow_null_external_id_for_bloom_remit_txns.rb
|
388
417
|
- lib/bloom_remit.rb
|
389
418
|
- lib/bloom_remit/engine.rb
|
390
419
|
- lib/bloom_remit/factories.rb
|