bscf-core 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/bscf/core/version.rb +1 -1
- metadata +2 -55
- data/spec/dummy/Rakefile +0 -6
- data/spec/dummy/app/assets/stylesheets/application.css +0 -15
- data/spec/dummy/app/controllers/application_controller.rb +0 -2
- data/spec/dummy/app/jobs/application_job.rb +0 -7
- data/spec/dummy/app/mailers/application_mailer.rb +0 -4
- data/spec/dummy/app/models/application_record.rb +0 -3
- data/spec/dummy/app/views/layouts/mailer.html.erb +0 -13
- data/spec/dummy/app/views/layouts/mailer.text.erb +0 -1
- data/spec/dummy/bin/dev +0 -2
- data/spec/dummy/bin/rails +0 -4
- data/spec/dummy/bin/rake +0 -4
- data/spec/dummy/bin/setup +0 -34
- data/spec/dummy/config/application.rb +0 -43
- data/spec/dummy/config/boot.rb +0 -5
- data/spec/dummy/config/cable.yml +0 -10
- data/spec/dummy/config/database.yml +0 -17
- data/spec/dummy/config/environment.rb +0 -5
- data/spec/dummy/config/environments/development.rb +0 -67
- data/spec/dummy/config/environments/production.rb +0 -86
- data/spec/dummy/config/environments/test.rb +0 -53
- data/spec/dummy/config/initializers/cors.rb +0 -16
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +0 -8
- data/spec/dummy/config/initializers/inflections.rb +0 -16
- data/spec/dummy/config/locales/en.yml +0 -31
- data/spec/dummy/config/puma.rb +0 -38
- data/spec/dummy/config/routes.rb +0 -3
- data/spec/dummy/config/storage.yml +0 -34
- data/spec/dummy/config.ru +0 -6
- data/spec/dummy/db/schema.rb +0 -246
- data/spec/dummy/log/development.log +0 -2077
- data/spec/dummy/log/test.log +0 -69259
- data/spec/dummy/tmp/local_secret.txt +0 -1
- data/spec/examples.txt +0 -167
- data/spec/models/bscf/core/address_spec.rb +0 -12
- data/spec/models/bscf/core/business_spec.rb +0 -64
- data/spec/models/bscf/core/category_spec.rb +0 -43
- data/spec/models/bscf/core/order_item_spec.rb +0 -26
- data/spec/models/bscf/core/order_spec.rb +0 -16
- data/spec/models/bscf/core/product_spec.rb +0 -47
- data/spec/models/bscf/core/quotation_item_spec.rb +0 -44
- data/spec/models/bscf/core/quotation_spec.rb +0 -41
- data/spec/models/bscf/core/request_for_quotation_spec.rb +0 -13
- data/spec/models/bscf/core/rfq_item_spec.rb +0 -14
- data/spec/models/bscf/core/role_spec.rb +0 -14
- data/spec/models/bscf/core/user_profile_spec.rb +0 -20
- data/spec/models/bscf/core/user_role_spec.rb +0 -13
- data/spec/models/bscf/core/user_spec.rb +0 -22
- data/spec/models/bscf/core/virtual_account_spec.rb +0 -111
- data/spec/models/bscf/core/virtual_account_transaction_spec.rb +0 -133
- data/spec/rails_helper.rb +0 -46
- data/spec/spec_helper.rb +0 -37
- data/spec/support/models/shared_examples.rb +0 -49
- data/spec/support/requests/shared_requests.rb +0 -126
@@ -1,2077 +0,0 @@
|
|
1
|
-
[1m[35mSQL (10.8ms)[0m [1m[35mSET search_path TO public /*application='Dummy'*/[0m
|
2
|
-
[1m[35m (722.5ms)[0m [1m[35mCREATE DATABASE "bscf_dev" ENCODING = 'unicode' /*application='Dummy'*/[0m
|
3
|
-
[1m[35mSQL (0.1ms)[0m [1m[35mSET search_path TO public /*application='Dummy'*/[0m
|
4
|
-
[1m[35m (105.0ms)[0m [1m[35mCREATE DATABASE "bscf_test" ENCODING = 'unicode' /*application='Dummy'*/[0m
|
5
|
-
[1m[35m (26.1ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY) /*application='Dummy'*/[0m
|
6
|
-
[1m[35m (4.5ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
7
|
-
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_try_advisory_lock(7136077842679658775) /*application='Dummy'*/[0m
|
8
|
-
[1m[36mActiveRecord::SchemaMigration Load (1.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
9
|
-
[1m[36mActiveRecord::InternalMetadata Load (3.4ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
10
|
-
[1m[36mActiveRecord::InternalMetadata Create (1.7ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'development', '2025-03-24 13:19:53.793527', '2025-03-24 13:19:53.793529') RETURNING "key" /*application='Dummy'*/[0m
|
11
|
-
Migrating to CreateBscfCorePeople (20250324131935)
|
12
|
-
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mBEGIN /*application='Dummy'*/[0m
|
13
|
-
[1m[35m (9.7ms)[0m [1m[35mCREATE TABLE "bscf_core_people" ("id" bigserial primary key, "name" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
14
|
-
[1m[36mActiveRecord::SchemaMigration Create (0.5ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ('20250324131935') RETURNING "version" /*application='Dummy'*/[0m
|
15
|
-
[1m[36mTRANSACTION (1.4ms)[0m [1m[35mCOMMIT /*application='Dummy'*/[0m
|
16
|
-
[1m[35m (0.6ms)[0m [1m[34mSELECT pg_advisory_unlock(7136077842679658775) /*application='Dummy'*/[0m
|
17
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
18
|
-
[1m[35mSQL (0.4ms)[0m [1m[35mSET search_path TO public /*application='Dummy'*/[0m
|
19
|
-
[1m[35m (403.6ms)[0m [1m[35mCREATE DATABASE "bscf_dev" ENCODING = 'unicode' /*application='Dummy'*/[0m
|
20
|
-
[1m[35mSQL (0.1ms)[0m [1m[35mSET search_path TO public /*application='Dummy'*/[0m
|
21
|
-
[1m[35m (21.1ms)[0m [1m[35mCREATE DATABASE "bscf_test" ENCODING = 'unicode' /*application='Dummy'*/[0m
|
22
|
-
[1m[35m (1.7ms)[0m [1m[34mSELECT pg_try_advisory_lock(7136077842679658775) /*application='Dummy'*/[0m
|
23
|
-
[1m[36mActiveRecord::SchemaMigration Load (3.7ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
24
|
-
[1m[36mActiveRecord::InternalMetadata Load (3.6ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
25
|
-
Migrating to CreateBscfCoreUsers (20250326065606)
|
26
|
-
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mBEGIN /*application='Dummy'*/[0m
|
27
|
-
[1m[35m (31.3ms)[0m [1m[35mCREATE TABLE "bscf_core_users" ("id" bigserial primary key, "first_name" character varying NOT NULL, "middle_name" character varying NOT NULL, "last_name" character varying NOT NULL, "email" character varying NOT NULL, "phone_number" character varying NOT NULL, "password_digest" character varying NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
28
|
-
[1m[35m (1.7ms)[0m [1m[35mCREATE UNIQUE INDEX "index_bscf_core_users_on_email" ON "bscf_core_users" ("email") /*application='Dummy'*/[0m
|
29
|
-
[1m[35m (1.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_bscf_core_users_on_phone_number" ON "bscf_core_users" ("phone_number") /*application='Dummy'*/[0m
|
30
|
-
[1m[36mActiveRecord::SchemaMigration Create (0.5ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ('20250326065606') RETURNING "version" /*application='Dummy'*/[0m
|
31
|
-
[1m[36mTRANSACTION (0.7ms)[0m [1m[35mCOMMIT /*application='Dummy'*/[0m
|
32
|
-
[1m[35m (0.7ms)[0m [1m[34mSELECT pg_advisory_unlock(7136077842679658775) /*application='Dummy'*/[0m
|
33
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
34
|
-
[1m[36mActiveRecord::SchemaMigration Load (2.8ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
35
|
-
[1m[36mActiveRecord::InternalMetadata Load (1.8ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
36
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
37
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
38
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
39
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.3ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
40
|
-
[1m[35mSQL (0.2ms)[0m [1m[35mSET search_path TO public /*application='Dummy'*/[0m
|
41
|
-
[1m[35m (98.6ms)[0m [1m[35mDROP DATABASE IF EXISTS "bscf_dev" /*application='Dummy'*/[0m
|
42
|
-
[1m[35mSQL (0.1ms)[0m [1m[35mSET search_path TO public /*application='Dummy'*/[0m
|
43
|
-
[1m[35m (66.7ms)[0m [1m[35mDROP DATABASE IF EXISTS "bscf_test" /*application='Dummy'*/[0m
|
44
|
-
[1m[35mSQL (0.2ms)[0m [1m[35mSET search_path TO public /*application='Dummy'*/[0m
|
45
|
-
[1m[35m (160.8ms)[0m [1m[35mCREATE DATABASE "bscf_dev" ENCODING = 'unicode' /*application='Dummy'*/[0m
|
46
|
-
[1m[35mSQL (0.1ms)[0m [1m[35mSET search_path TO public /*application='Dummy'*/[0m
|
47
|
-
[1m[35m (75.9ms)[0m [1m[35mCREATE DATABASE "bscf_test" ENCODING = 'unicode' /*application='Dummy'*/[0m
|
48
|
-
[1m[35mSQL (1.5ms)[0m [1m[35mCREATE EXTENSION IF NOT EXISTS "plpgsql" SCHEMA pg_catalog /*application='Dummy'*/[0m
|
49
|
-
[1m[35m (4.3ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY) /*application='Dummy'*/[0m
|
50
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
51
|
-
[1m[35m (1.7ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (0) /*application='Dummy'*/[0m
|
52
|
-
[1m[35m (1.2ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
53
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
54
|
-
[1m[36mActiveRecord::InternalMetadata Create (0.3ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'development', '2025-03-26 07:22:41.527957', '2025-03-26 07:22:41.527961') RETURNING "key" /*application='Dummy'*/[0m
|
55
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
56
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.3ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'schema_sha1' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
57
|
-
[1m[36mActiveRecord::InternalMetadata Create (0.3ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('schema_sha1', '9c6777daaa6ce85cc74b26c38000144a7834a947', '2025-03-26 07:22:41.532591', '2025-03-26 07:22:41.532593') RETURNING "key" /*application='Dummy'*/[0m
|
58
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT pg_try_advisory_lock(7136077842679658775) /*application='Dummy'*/[0m
|
59
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
60
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
61
|
-
Migrating to CreateBscfCoreUsers (20250326065606)
|
62
|
-
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mBEGIN /*application='Dummy'*/[0m
|
63
|
-
[1m[35m (3.1ms)[0m [1m[35mCREATE TABLE "bscf_core_users" ("id" bigserial primary key, "first_name" character varying NOT NULL, "middle_name" character varying NOT NULL, "last_name" character varying NOT NULL, "email" character varying NOT NULL, "phone_number" character varying NOT NULL, "password_digest" character varying NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
64
|
-
[1m[35m (0.5ms)[0m [1m[35mCREATE UNIQUE INDEX "index_bscf_core_users_on_email" ON "bscf_core_users" ("email") /*application='Dummy'*/[0m
|
65
|
-
[1m[35m (0.4ms)[0m [1m[35mCREATE UNIQUE INDEX "index_bscf_core_users_on_phone_number" ON "bscf_core_users" ("phone_number") /*application='Dummy'*/[0m
|
66
|
-
[1m[36mActiveRecord::SchemaMigration Create (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ('20250326065606') RETURNING "version" /*application='Dummy'*/[0m
|
67
|
-
[1m[36mTRANSACTION (2.2ms)[0m [1m[35mCOMMIT /*application='Dummy'*/[0m
|
68
|
-
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_advisory_unlock(7136077842679658775) /*application='Dummy'*/[0m
|
69
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
70
|
-
[1m[35m (0.6ms)[0m [1m[34mSELECT pg_try_advisory_lock(7136077842679658775) /*application='Dummy'*/[0m
|
71
|
-
[1m[36mActiveRecord::SchemaMigration Load (2.7ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
72
|
-
[1m[36mActiveRecord::InternalMetadata Load (1.9ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
73
|
-
Migrating to CreateBscfCoreRoles (20250326075111)
|
74
|
-
[1m[36mTRANSACTION (0.2ms)[0m [1m[35mBEGIN /*application='Dummy'*/[0m
|
75
|
-
[1m[35m (15.7ms)[0m [1m[35mCREATE TABLE "bscf_core_roles" ("id" bigserial primary key, "name" character varying NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
76
|
-
[1m[36mActiveRecord::SchemaMigration Create (0.6ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ('20250326075111') RETURNING "version" /*application='Dummy'*/[0m
|
77
|
-
[1m[36mTRANSACTION (0.6ms)[0m [1m[35mCOMMIT /*application='Dummy'*/[0m
|
78
|
-
[1m[35m (1.0ms)[0m [1m[34mSELECT pg_advisory_unlock(7136077842679658775) /*application='Dummy'*/[0m
|
79
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
80
|
-
[1m[36mActiveRecord::SchemaMigration Load (1.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
81
|
-
[1m[36mActiveRecord::InternalMetadata Load (1.0ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
82
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
83
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.3ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
84
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
85
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
86
|
-
[1m[35mSQL (0.2ms)[0m [1m[35mSET search_path TO public /*application='Dummy'*/[0m
|
87
|
-
[1m[35m (60.5ms)[0m [1m[35mDROP DATABASE IF EXISTS "bscf_test" /*application='Dummy'*/[0m
|
88
|
-
[1m[35m (133.7ms)[0m [1m[35mCREATE DATABASE "bscf_test" ENCODING = 'unicode' /*application='Dummy'*/[0m
|
89
|
-
[1m[35mSQL (14.7ms)[0m [1m[35mCREATE EXTENSION IF NOT EXISTS "plpgsql" SCHEMA pg_catalog /*application='Dummy'*/[0m
|
90
|
-
[1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_roles" CASCADE /*application='Dummy'*/[0m
|
91
|
-
[1m[35m (4.0ms)[0m [1m[35mCREATE TABLE "bscf_core_roles" ("id" bigserial primary key, "name" character varying NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
92
|
-
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_users" CASCADE /*application='Dummy'*/[0m
|
93
|
-
[1m[35m (1.5ms)[0m [1m[35mCREATE TABLE "bscf_core_users" ("id" bigserial primary key, "first_name" character varying NOT NULL, "middle_name" character varying NOT NULL, "last_name" character varying NOT NULL, "email" character varying NOT NULL, "phone_number" character varying NOT NULL, "password_digest" character varying NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
94
|
-
[1m[35m (0.7ms)[0m [1m[35mCREATE UNIQUE INDEX "index_bscf_core_users_on_email" ON "bscf_core_users" ("email") /*application='Dummy'*/[0m
|
95
|
-
[1m[35m (0.4ms)[0m [1m[35mCREATE UNIQUE INDEX "index_bscf_core_users_on_phone_number" ON "bscf_core_users" ("phone_number") /*application='Dummy'*/[0m
|
96
|
-
[1m[35m (1.0ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY) /*application='Dummy'*/[0m
|
97
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
98
|
-
[1m[35m (0.5ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (20250326075111) /*application='Dummy'*/[0m
|
99
|
-
[1m[35m (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES
|
100
|
-
(20250326065606); /*application='Dummy'*/[0m
|
101
|
-
[1m[35m (1.6ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
102
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
103
|
-
[1m[36mActiveRecord::InternalMetadata Create (0.4ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'development', '2025-03-26 08:00:51.535081', '2025-03-26 08:00:51.535085') RETURNING "key" /*application='Dummy'*/[0m
|
104
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
105
|
-
[1m[36mActiveRecord::InternalMetadata Update (0.4ms)[0m [1m[33mUPDATE "ar_internal_metadata" SET "value" = 'test', "updated_at" = '2025-03-26 08:00:51.538963' WHERE "ar_internal_metadata"."key" = 'environment' /*application='Dummy'*/[0m
|
106
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.3ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'schema_sha1' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
107
|
-
[1m[36mActiveRecord::InternalMetadata Create (0.3ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('schema_sha1', '89eded1314fdd47d2f7cf7a5aa1ab63d7cfedc0b', '2025-03-26 08:00:51.542484', '2025-03-26 08:00:51.542486') RETURNING "key" /*application='Dummy'*/[0m
|
108
|
-
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_try_advisory_lock(7136077842679658775) /*application='Dummy'*/[0m
|
109
|
-
[1m[36mActiveRecord::SchemaMigration Load (1.9ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
110
|
-
[1m[36mActiveRecord::InternalMetadata Load (1.7ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
111
|
-
Migrating to CreateBscfCoreUserProfiles (20250326080646)
|
112
|
-
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mBEGIN /*application='Dummy'*/[0m
|
113
|
-
[1m[35m (19.4ms)[0m [1m[35mCREATE TABLE "bscf_core_user_profiles" ("id" bigserial primary key, "user_id" bigint NOT NULL, "date_of_birth" date NOT NULL, "nationality" character varying NOT NULL, "occupation" character varying NOT NULL, "source_of_funds" character varying NOT NULL, "kyc_status" integer DEFAULT 0, "gender" integer NOT NULL, "verified_at" timestamp(6), "verified_by_id" bigint, "address_id" bigint NOT NULL, "fayda_id" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL, CONSTRAINT "fk_rails_76d657f1fb"
|
114
|
-
FOREIGN KEY ("user_id")
|
115
|
-
REFERENCES "bscf_core_users" ("id")
|
116
|
-
, CONSTRAINT "fk_rails_96d9a7609e"
|
117
|
-
FOREIGN KEY ("verified_by_id")
|
118
|
-
REFERENCES "bscf_core_users" ("id")
|
119
|
-
, CONSTRAINT "fk_rails_c5a3f5b460"
|
120
|
-
FOREIGN KEY ("address_id")
|
121
|
-
REFERENCES "bscf_core_addresses" ("id")
|
122
|
-
) /*application='Dummy'*/[0m
|
123
|
-
[1m[36mTRANSACTION (0.1ms)[0m [1m[31mROLLBACK /*application='Dummy'*/[0m
|
124
|
-
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_advisory_unlock(7136077842679658775) /*application='Dummy'*/[0m
|
125
|
-
[1m[36mActiveRecord::SchemaMigration Load (1.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
126
|
-
[1m[36mActiveRecord::SchemaMigration Load (1.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
127
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
128
|
-
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_try_advisory_lock(7136077842679658775) /*application='Dummy'*/[0m
|
129
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
130
|
-
[1m[36mActiveRecord::InternalMetadata Load (1.3ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
131
|
-
Migrating to CreateBscfCoreUserProfiles (20250326080646)
|
132
|
-
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mBEGIN /*application='Dummy'*/[0m
|
133
|
-
[1m[35m (9.4ms)[0m [1m[35mCREATE TABLE "bscf_core_user_profiles" ("id" bigserial primary key, "user_id" bigint NOT NULL, "date_of_birth" date NOT NULL, "nationality" character varying NOT NULL, "occupation" character varying NOT NULL, "source_of_funds" character varying NOT NULL, "kyc_status" integer DEFAULT 0, "gender" integer NOT NULL, "verified_at" timestamp(6), "verified_by_id" bigint, "address_id" bigint NOT NULL, "fayda_id" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL, CONSTRAINT "fk_rails_76d657f1fb"
|
134
|
-
FOREIGN KEY ("user_id")
|
135
|
-
REFERENCES "bscf_core_users" ("id")
|
136
|
-
, CONSTRAINT "fk_rails_96d9a7609e"
|
137
|
-
FOREIGN KEY ("verified_by_id")
|
138
|
-
REFERENCES "bscf_core_users" ("id")
|
139
|
-
, CONSTRAINT "fk_rails_c5a3f5b460"
|
140
|
-
FOREIGN KEY ("address_id")
|
141
|
-
REFERENCES "bscf_core_addresses" ("id")
|
142
|
-
) /*application='Dummy'*/[0m
|
143
|
-
[1m[36mTRANSACTION (0.1ms)[0m [1m[31mROLLBACK /*application='Dummy'*/[0m
|
144
|
-
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_advisory_unlock(7136077842679658775) /*application='Dummy'*/[0m
|
145
|
-
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_try_advisory_lock(7136077842679658775) /*application='Dummy'*/[0m
|
146
|
-
[1m[36mActiveRecord::SchemaMigration Load (1.5ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
147
|
-
[1m[36mActiveRecord::InternalMetadata Load (1.3ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
148
|
-
Migrating to CreateBscfCoreAddresses (20250326081052)
|
149
|
-
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mBEGIN /*application='Dummy'*/[0m
|
150
|
-
[1m[35m (7.3ms)[0m [1m[35mCREATE TABLE "bscf_core_addresses" ("id" bigserial primary key, "city" character varying, "sub_city" character varying, "woreda" character varying, "latitude" character varying, "longitude" character varying, "house_number" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
151
|
-
[1m[36mActiveRecord::SchemaMigration Create (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ('20250326081052') RETURNING "version" /*application='Dummy'*/[0m
|
152
|
-
[1m[36mTRANSACTION (0.5ms)[0m [1m[35mCOMMIT /*application='Dummy'*/[0m
|
153
|
-
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(7136077842679658775) /*application='Dummy'*/[0m
|
154
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
155
|
-
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_try_advisory_lock(7136077842679658775) /*application='Dummy'*/[0m
|
156
|
-
[1m[36mActiveRecord::SchemaMigration Load (1.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
157
|
-
[1m[36mActiveRecord::InternalMetadata Load (1.2ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
158
|
-
Migrating to CreateBscfCoreUserProfiles (20250326080646)
|
159
|
-
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mBEGIN /*application='Dummy'*/[0m
|
160
|
-
[1m[35m (10.1ms)[0m [1m[35mCREATE TABLE "bscf_core_user_profiles" ("id" bigserial primary key, "user_id" bigint NOT NULL, "date_of_birth" date NOT NULL, "nationality" character varying NOT NULL, "occupation" character varying NOT NULL, "source_of_funds" character varying NOT NULL, "kyc_status" integer DEFAULT 0, "gender" integer NOT NULL, "verified_at" timestamp(6), "verified_by_id" bigint, "address_id" bigint NOT NULL, "fayda_id" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL, CONSTRAINT "fk_rails_76d657f1fb"
|
161
|
-
FOREIGN KEY ("user_id")
|
162
|
-
REFERENCES "bscf_core_users" ("id")
|
163
|
-
, CONSTRAINT "fk_rails_96d9a7609e"
|
164
|
-
FOREIGN KEY ("verified_by_id")
|
165
|
-
REFERENCES "bscf_core_users" ("id")
|
166
|
-
, CONSTRAINT "fk_rails_c5a3f5b460"
|
167
|
-
FOREIGN KEY ("address_id")
|
168
|
-
REFERENCES "bscf_core_addresses" ("id")
|
169
|
-
) /*application='Dummy'*/[0m
|
170
|
-
[1m[35m (3.0ms)[0m [1m[35mCREATE INDEX "index_bscf_core_user_profiles_on_user_id" ON "bscf_core_user_profiles" ("user_id") /*application='Dummy'*/[0m
|
171
|
-
[1m[35m (0.9ms)[0m [1m[35mCREATE INDEX "index_bscf_core_user_profiles_on_verified_by_id" ON "bscf_core_user_profiles" ("verified_by_id") /*application='Dummy'*/[0m
|
172
|
-
[1m[35m (0.7ms)[0m [1m[35mCREATE INDEX "index_bscf_core_user_profiles_on_address_id" ON "bscf_core_user_profiles" ("address_id") /*application='Dummy'*/[0m
|
173
|
-
[1m[36mActiveRecord::SchemaMigration Create (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ('20250326080646') RETURNING "version" /*application='Dummy'*/[0m
|
174
|
-
[1m[36mTRANSACTION (0.5ms)[0m [1m[35mCOMMIT /*application='Dummy'*/[0m
|
175
|
-
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(7136077842679658775) /*application='Dummy'*/[0m
|
176
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
177
|
-
[1m[36mActiveRecord::SchemaMigration Load (1.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
178
|
-
[1m[36mActiveRecord::InternalMetadata Load (1.5ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
179
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
180
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
181
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
182
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
183
|
-
[1m[35mSQL (0.1ms)[0m [1m[35mSET search_path TO public /*application='Dummy'*/[0m
|
184
|
-
[1m[35m (63.1ms)[0m [1m[35mDROP DATABASE IF EXISTS "bscf_test" /*application='Dummy'*/[0m
|
185
|
-
[1m[35m (127.6ms)[0m [1m[35mCREATE DATABASE "bscf_test" ENCODING = 'unicode' /*application='Dummy'*/[0m
|
186
|
-
[1m[35mSQL (19.9ms)[0m [1m[35mCREATE EXTENSION IF NOT EXISTS "plpgsql" SCHEMA pg_catalog /*application='Dummy'*/[0m
|
187
|
-
[1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_addresses" CASCADE /*application='Dummy'*/[0m
|
188
|
-
[1m[35m (3.7ms)[0m [1m[35mCREATE TABLE "bscf_core_addresses" ("id" bigserial primary key, "city" character varying, "sub_city" character varying, "woreda" character varying, "latitude" character varying, "longitude" character varying, "house_number" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
189
|
-
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_roles" CASCADE /*application='Dummy'*/[0m
|
190
|
-
[1m[35m (1.7ms)[0m [1m[35mCREATE TABLE "bscf_core_roles" ("id" bigserial primary key, "name" character varying NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
191
|
-
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_user_profiles" CASCADE /*application='Dummy'*/[0m
|
192
|
-
[1m[35m (2.1ms)[0m [1m[35mCREATE TABLE "bscf_core_user_profiles" ("id" bigserial primary key, "user_id" bigint NOT NULL, "date_of_birth" date NOT NULL, "nationality" character varying NOT NULL, "occupation" character varying NOT NULL, "source_of_funds" character varying NOT NULL, "kyc_status" integer DEFAULT 0, "gender" integer NOT NULL, "verified_at" timestamp(6), "verified_by_id" bigint, "address_id" bigint NOT NULL, "fayda_id" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
193
|
-
[1m[35m (0.7ms)[0m [1m[35mCREATE INDEX "index_bscf_core_user_profiles_on_address_id" ON "bscf_core_user_profiles" ("address_id") /*application='Dummy'*/[0m
|
194
|
-
[1m[35m (0.6ms)[0m [1m[35mCREATE INDEX "index_bscf_core_user_profiles_on_user_id" ON "bscf_core_user_profiles" ("user_id") /*application='Dummy'*/[0m
|
195
|
-
[1m[35m (0.5ms)[0m [1m[35mCREATE INDEX "index_bscf_core_user_profiles_on_verified_by_id" ON "bscf_core_user_profiles" ("verified_by_id") /*application='Dummy'*/[0m
|
196
|
-
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_users" CASCADE /*application='Dummy'*/[0m
|
197
|
-
[1m[35m (1.7ms)[0m [1m[35mCREATE TABLE "bscf_core_users" ("id" bigserial primary key, "first_name" character varying NOT NULL, "middle_name" character varying NOT NULL, "last_name" character varying NOT NULL, "email" character varying NOT NULL, "phone_number" character varying NOT NULL, "password_digest" character varying NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
198
|
-
[1m[35m (0.9ms)[0m [1m[35mCREATE UNIQUE INDEX "index_bscf_core_users_on_email" ON "bscf_core_users" ("email") /*application='Dummy'*/[0m
|
199
|
-
[1m[35m (0.5ms)[0m [1m[35mCREATE UNIQUE INDEX "index_bscf_core_users_on_phone_number" ON "bscf_core_users" ("phone_number") /*application='Dummy'*/[0m
|
200
|
-
[1m[35m (1.5ms)[0m [1m[35mALTER TABLE "bscf_core_user_profiles" ADD CONSTRAINT "fk_rails_c5a3f5b460"
|
201
|
-
FOREIGN KEY ("address_id")
|
202
|
-
REFERENCES "bscf_core_addresses" ("id")
|
203
|
-
/*application='Dummy'*/[0m
|
204
|
-
[1m[35m (0.8ms)[0m [1m[35mALTER TABLE "bscf_core_user_profiles" ADD CONSTRAINT "fk_rails_76d657f1fb"
|
205
|
-
FOREIGN KEY ("user_id")
|
206
|
-
REFERENCES "bscf_core_users" ("id")
|
207
|
-
/*application='Dummy'*/[0m
|
208
|
-
[1m[35m (0.6ms)[0m [1m[35mALTER TABLE "bscf_core_user_profiles" ADD CONSTRAINT "fk_rails_96d9a7609e"
|
209
|
-
FOREIGN KEY ("verified_by_id")
|
210
|
-
REFERENCES "bscf_core_users" ("id")
|
211
|
-
/*application='Dummy'*/[0m
|
212
|
-
[1m[35m (1.4ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY) /*application='Dummy'*/[0m
|
213
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
214
|
-
[1m[35m (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (20250326081052) /*application='Dummy'*/[0m
|
215
|
-
[1m[35m (0.6ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES
|
216
|
-
(20250326080646),
|
217
|
-
(20250326075111),
|
218
|
-
(20250326065606); /*application='Dummy'*/[0m
|
219
|
-
[1m[35m (1.3ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
220
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
221
|
-
[1m[36mActiveRecord::InternalMetadata Create (0.3ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'development', '2025-03-26 08:17:41.838602', '2025-03-26 08:17:41.838605') RETURNING "key" /*application='Dummy'*/[0m
|
222
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
223
|
-
[1m[36mActiveRecord::InternalMetadata Update (0.2ms)[0m [1m[33mUPDATE "ar_internal_metadata" SET "value" = 'test', "updated_at" = '2025-03-26 08:17:41.841174' WHERE "ar_internal_metadata"."key" = 'environment' /*application='Dummy'*/[0m
|
224
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'schema_sha1' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
225
|
-
[1m[36mActiveRecord::InternalMetadata Create (0.2ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('schema_sha1', '3f33d3312b7b1e0e5c8e4b2f65e816073fd4a17a', '2025-03-26 08:17:41.843104', '2025-03-26 08:17:41.843106') RETURNING "key" /*application='Dummy'*/[0m
|
226
|
-
[1m[35m (0.4ms)[0m [1m[34mSELECT pg_try_advisory_lock(7136077842679658775) /*application='Dummy'*/[0m
|
227
|
-
[1m[36mActiveRecord::SchemaMigration Load (23.9ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
228
|
-
[1m[36mActiveRecord::InternalMetadata Load (27.9ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
229
|
-
[1m[35m (23.6ms)[0m [1m[34mSELECT pg_advisory_unlock(7136077842679658775) /*application='Dummy'*/[0m
|
230
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
231
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
232
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
233
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
234
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
235
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
236
|
-
[1m[36mActiveRecord::InternalMetadata Load (18.9ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
237
|
-
[1m[35mSQL (0.1ms)[0m [1m[35mSET search_path TO public /*application='Dummy'*/[0m
|
238
|
-
[1m[35m (91.4ms)[0m [1m[35mDROP DATABASE IF EXISTS "bscf_test" /*application='Dummy'*/[0m
|
239
|
-
[1m[35m (147.4ms)[0m [1m[35mCREATE DATABASE "bscf_test" ENCODING = 'unicode' /*application='Dummy'*/[0m
|
240
|
-
[1m[35mSQL (21.9ms)[0m [1m[35mCREATE EXTENSION IF NOT EXISTS "plpgsql" SCHEMA pg_catalog /*application='Dummy'*/[0m
|
241
|
-
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_addresses" CASCADE /*application='Dummy'*/[0m
|
242
|
-
[1m[35m (7.4ms)[0m [1m[35mCREATE TABLE "bscf_core_addresses" ("id" bigserial primary key, "city" character varying, "sub_city" character varying, "woreda" character varying, "latitude" character varying, "longitude" character varying, "house_number" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
243
|
-
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_roles" CASCADE /*application='Dummy'*/[0m
|
244
|
-
[1m[35m (2.8ms)[0m [1m[35mCREATE TABLE "bscf_core_roles" ("id" bigserial primary key, "name" character varying NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
245
|
-
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_user_profiles" CASCADE /*application='Dummy'*/[0m
|
246
|
-
[1m[35m (2.6ms)[0m [1m[35mCREATE TABLE "bscf_core_user_profiles" ("id" bigserial primary key, "user_id" bigint NOT NULL, "date_of_birth" date NOT NULL, "nationality" character varying NOT NULL, "occupation" character varying NOT NULL, "source_of_funds" character varying NOT NULL, "kyc_status" integer DEFAULT 0, "gender" integer NOT NULL, "verified_at" timestamp(6), "verified_by_id" bigint, "address_id" bigint NOT NULL, "fayda_id" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
247
|
-
[1m[35m (1.0ms)[0m [1m[35mCREATE INDEX "index_bscf_core_user_profiles_on_address_id" ON "bscf_core_user_profiles" ("address_id") /*application='Dummy'*/[0m
|
248
|
-
[1m[35m (0.8ms)[0m [1m[35mCREATE INDEX "index_bscf_core_user_profiles_on_user_id" ON "bscf_core_user_profiles" ("user_id") /*application='Dummy'*/[0m
|
249
|
-
[1m[35m (0.8ms)[0m [1m[35mCREATE INDEX "index_bscf_core_user_profiles_on_verified_by_id" ON "bscf_core_user_profiles" ("verified_by_id") /*application='Dummy'*/[0m
|
250
|
-
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_users" CASCADE /*application='Dummy'*/[0m
|
251
|
-
[1m[35m (3.7ms)[0m [1m[35mCREATE TABLE "bscf_core_users" ("id" bigserial primary key, "first_name" character varying NOT NULL, "middle_name" character varying NOT NULL, "last_name" character varying NOT NULL, "email" character varying NOT NULL, "phone_number" character varying NOT NULL, "password_digest" character varying NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
252
|
-
[1m[35m (1.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_bscf_core_users_on_email" ON "bscf_core_users" ("email") /*application='Dummy'*/[0m
|
253
|
-
[1m[35m (0.8ms)[0m [1m[35mCREATE UNIQUE INDEX "index_bscf_core_users_on_phone_number" ON "bscf_core_users" ("phone_number") /*application='Dummy'*/[0m
|
254
|
-
[1m[35m (4.5ms)[0m [1m[35mALTER TABLE "bscf_core_user_profiles" ADD CONSTRAINT "fk_rails_c5a3f5b460"
|
255
|
-
FOREIGN KEY ("address_id")
|
256
|
-
REFERENCES "bscf_core_addresses" ("id")
|
257
|
-
/*application='Dummy'*/[0m
|
258
|
-
[1m[35m (2.0ms)[0m [1m[35mALTER TABLE "bscf_core_user_profiles" ADD CONSTRAINT "fk_rails_76d657f1fb"
|
259
|
-
FOREIGN KEY ("user_id")
|
260
|
-
REFERENCES "bscf_core_users" ("id")
|
261
|
-
/*application='Dummy'*/[0m
|
262
|
-
[1m[35m (1.6ms)[0m [1m[35mALTER TABLE "bscf_core_user_profiles" ADD CONSTRAINT "fk_rails_96d9a7609e"
|
263
|
-
FOREIGN KEY ("verified_by_id")
|
264
|
-
REFERENCES "bscf_core_users" ("id")
|
265
|
-
/*application='Dummy'*/[0m
|
266
|
-
[1m[35m (4.3ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY) /*application='Dummy'*/[0m
|
267
|
-
[1m[36mActiveRecord::SchemaMigration Load (1.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
268
|
-
[1m[35m (0.7ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (20250326081052) /*application='Dummy'*/[0m
|
269
|
-
[1m[35m (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES
|
270
|
-
(20250326080646),
|
271
|
-
(20250326075111),
|
272
|
-
(20250326065606); /*application='Dummy'*/[0m
|
273
|
-
[1m[35m (3.6ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
274
|
-
[1m[36mActiveRecord::InternalMetadata Load (1.1ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
275
|
-
[1m[36mActiveRecord::InternalMetadata Create (1.1ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'development', '2025-03-26 08:40:29.144124', '2025-03-26 08:40:29.144125') RETURNING "key" /*application='Dummy'*/[0m
|
276
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.3ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
277
|
-
[1m[36mActiveRecord::InternalMetadata Update (0.4ms)[0m [1m[33mUPDATE "ar_internal_metadata" SET "value" = 'test', "updated_at" = '2025-03-26 08:40:29.147953' WHERE "ar_internal_metadata"."key" = 'environment' /*application='Dummy'*/[0m
|
278
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'schema_sha1' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
279
|
-
[1m[36mActiveRecord::InternalMetadata Create (0.4ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('schema_sha1', '3f33d3312b7b1e0e5c8e4b2f65e816073fd4a17a', '2025-03-26 08:40:29.149461', '2025-03-26 08:40:29.149462') RETURNING "key" /*application='Dummy'*/[0m
|
280
|
-
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_try_advisory_lock(7136077842679658775) /*application='Dummy'*/[0m
|
281
|
-
[1m[36mActiveRecord::SchemaMigration Load (2.9ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
282
|
-
[1m[36mActiveRecord::InternalMetadata Load (1.6ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
283
|
-
Migrating to CreateBscfCoreUserRoles (20250326084233)
|
284
|
-
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mBEGIN /*application='Dummy'*/[0m
|
285
|
-
[1m[35m (8.7ms)[0m [1m[35mCREATE TABLE "bscf_core_user_roles" ("id" bigserial primary key, "user_id" bigint NOT NULL, "role_id" bigint NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL, CONSTRAINT "fk_rails_71c0ff189b"
|
286
|
-
FOREIGN KEY ("user_id")
|
287
|
-
REFERENCES "bscf_core_users" ("id")
|
288
|
-
, CONSTRAINT "fk_rails_d64b2985c7"
|
289
|
-
FOREIGN KEY ("role_id")
|
290
|
-
REFERENCES "bscf_core_roles" ("id")
|
291
|
-
) /*application='Dummy'*/[0m
|
292
|
-
[1m[35m (1.2ms)[0m [1m[35mCREATE INDEX "index_bscf_core_user_roles_on_user_id" ON "bscf_core_user_roles" ("user_id") /*application='Dummy'*/[0m
|
293
|
-
[1m[35m (1.1ms)[0m [1m[35mCREATE INDEX "index_bscf_core_user_roles_on_role_id" ON "bscf_core_user_roles" ("role_id") /*application='Dummy'*/[0m
|
294
|
-
[1m[36mActiveRecord::SchemaMigration Create (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ('20250326084233') RETURNING "version" /*application='Dummy'*/[0m
|
295
|
-
[1m[36mTRANSACTION (0.4ms)[0m [1m[35mCOMMIT /*application='Dummy'*/[0m
|
296
|
-
[1m[35m (0.4ms)[0m [1m[34mSELECT pg_advisory_unlock(7136077842679658775) /*application='Dummy'*/[0m
|
297
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
298
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
299
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
300
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
301
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
302
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
303
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
304
|
-
[1m[35mSQL (0.1ms)[0m [1m[35mSET search_path TO public /*application='Dummy'*/[0m
|
305
|
-
[1m[35m (75.6ms)[0m [1m[35mDROP DATABASE IF EXISTS "bscf_test" /*application='Dummy'*/[0m
|
306
|
-
[1m[35m (198.8ms)[0m [1m[35mCREATE DATABASE "bscf_test" ENCODING = 'unicode' /*application='Dummy'*/[0m
|
307
|
-
[1m[35mSQL (27.7ms)[0m [1m[35mCREATE EXTENSION IF NOT EXISTS "plpgsql" SCHEMA pg_catalog /*application='Dummy'*/[0m
|
308
|
-
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_addresses" CASCADE /*application='Dummy'*/[0m
|
309
|
-
[1m[35m (9.8ms)[0m [1m[35mCREATE TABLE "bscf_core_addresses" ("id" bigserial primary key, "city" character varying, "sub_city" character varying, "woreda" character varying, "latitude" character varying, "longitude" character varying, "house_number" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
310
|
-
[1m[35m (0.6ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_roles" CASCADE /*application='Dummy'*/[0m
|
311
|
-
[1m[35m (3.7ms)[0m [1m[35mCREATE TABLE "bscf_core_roles" ("id" bigserial primary key, "name" character varying NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
312
|
-
[1m[35m (0.5ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_user_profiles" CASCADE /*application='Dummy'*/[0m
|
313
|
-
[1m[35m (3.7ms)[0m [1m[35mCREATE TABLE "bscf_core_user_profiles" ("id" bigserial primary key, "user_id" bigint NOT NULL, "date_of_birth" date NOT NULL, "nationality" character varying NOT NULL, "occupation" character varying NOT NULL, "source_of_funds" character varying NOT NULL, "kyc_status" integer DEFAULT 0, "gender" integer NOT NULL, "verified_at" timestamp(6), "verified_by_id" bigint, "address_id" bigint NOT NULL, "fayda_id" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
314
|
-
[1m[35m (1.4ms)[0m [1m[35mCREATE INDEX "index_bscf_core_user_profiles_on_address_id" ON "bscf_core_user_profiles" ("address_id") /*application='Dummy'*/[0m
|
315
|
-
[1m[35m (1.5ms)[0m [1m[35mCREATE INDEX "index_bscf_core_user_profiles_on_user_id" ON "bscf_core_user_profiles" ("user_id") /*application='Dummy'*/[0m
|
316
|
-
[1m[35m (1.4ms)[0m [1m[35mCREATE INDEX "index_bscf_core_user_profiles_on_verified_by_id" ON "bscf_core_user_profiles" ("verified_by_id") /*application='Dummy'*/[0m
|
317
|
-
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_user_roles" CASCADE /*application='Dummy'*/[0m
|
318
|
-
[1m[35m (3.2ms)[0m [1m[35mCREATE TABLE "bscf_core_user_roles" ("id" bigserial primary key, "user_id" bigint NOT NULL, "role_id" bigint NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
319
|
-
[1m[35m (2.9ms)[0m [1m[35mCREATE INDEX "index_bscf_core_user_roles_on_role_id" ON "bscf_core_user_roles" ("role_id") /*application='Dummy'*/[0m
|
320
|
-
[1m[35m (1.2ms)[0m [1m[35mCREATE INDEX "index_bscf_core_user_roles_on_user_id" ON "bscf_core_user_roles" ("user_id") /*application='Dummy'*/[0m
|
321
|
-
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_users" CASCADE /*application='Dummy'*/[0m
|
322
|
-
[1m[35m (3.8ms)[0m [1m[35mCREATE TABLE "bscf_core_users" ("id" bigserial primary key, "first_name" character varying NOT NULL, "middle_name" character varying NOT NULL, "last_name" character varying NOT NULL, "email" character varying NOT NULL, "phone_number" character varying NOT NULL, "password_digest" character varying NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
323
|
-
[1m[35m (2.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_bscf_core_users_on_email" ON "bscf_core_users" ("email") /*application='Dummy'*/[0m
|
324
|
-
[1m[35m (1.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_bscf_core_users_on_phone_number" ON "bscf_core_users" ("phone_number") /*application='Dummy'*/[0m
|
325
|
-
[1m[35m (3.1ms)[0m [1m[35mALTER TABLE "bscf_core_user_profiles" ADD CONSTRAINT "fk_rails_c5a3f5b460"
|
326
|
-
FOREIGN KEY ("address_id")
|
327
|
-
REFERENCES "bscf_core_addresses" ("id")
|
328
|
-
/*application='Dummy'*/[0m
|
329
|
-
[1m[35m (2.1ms)[0m [1m[35mALTER TABLE "bscf_core_user_profiles" ADD CONSTRAINT "fk_rails_76d657f1fb"
|
330
|
-
FOREIGN KEY ("user_id")
|
331
|
-
REFERENCES "bscf_core_users" ("id")
|
332
|
-
/*application='Dummy'*/[0m
|
333
|
-
[1m[35m (2.0ms)[0m [1m[35mALTER TABLE "bscf_core_user_profiles" ADD CONSTRAINT "fk_rails_96d9a7609e"
|
334
|
-
FOREIGN KEY ("verified_by_id")
|
335
|
-
REFERENCES "bscf_core_users" ("id")
|
336
|
-
/*application='Dummy'*/[0m
|
337
|
-
[1m[35m (1.8ms)[0m [1m[35mALTER TABLE "bscf_core_user_roles" ADD CONSTRAINT "fk_rails_d64b2985c7"
|
338
|
-
FOREIGN KEY ("role_id")
|
339
|
-
REFERENCES "bscf_core_roles" ("id")
|
340
|
-
/*application='Dummy'*/[0m
|
341
|
-
[1m[35m (1.2ms)[0m [1m[35mALTER TABLE "bscf_core_user_roles" ADD CONSTRAINT "fk_rails_71c0ff189b"
|
342
|
-
FOREIGN KEY ("user_id")
|
343
|
-
REFERENCES "bscf_core_users" ("id")
|
344
|
-
/*application='Dummy'*/[0m
|
345
|
-
[1m[35m (3.9ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY) /*application='Dummy'*/[0m
|
346
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
347
|
-
[1m[35m (0.7ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (20250326084233) /*application='Dummy'*/[0m
|
348
|
-
[1m[35m (0.5ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES
|
349
|
-
(20250326081052),
|
350
|
-
(20250326080646),
|
351
|
-
(20250326075111),
|
352
|
-
(20250326065606); /*application='Dummy'*/[0m
|
353
|
-
[1m[35m (4.8ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
354
|
-
[1m[36mActiveRecord::InternalMetadata Load (1.6ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
355
|
-
[1m[36mActiveRecord::InternalMetadata Create (1.2ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'development', '2025-03-26 08:45:46.623766', '2025-03-26 08:45:46.623774') RETURNING "key" /*application='Dummy'*/[0m
|
356
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.8ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
357
|
-
[1m[36mActiveRecord::InternalMetadata Update (1.1ms)[0m [1m[33mUPDATE "ar_internal_metadata" SET "value" = 'test', "updated_at" = '2025-03-26 08:45:46.632289' WHERE "ar_internal_metadata"."key" = 'environment' /*application='Dummy'*/[0m
|
358
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'schema_sha1' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
359
|
-
[1m[36mActiveRecord::InternalMetadata Create (0.6ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('schema_sha1', '6b263e39641246976375d64708005c3540d06b05', '2025-03-26 08:45:46.638710', '2025-03-26 08:45:46.638714') RETURNING "key" /*application='Dummy'*/[0m
|
360
|
-
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_try_advisory_lock(7136077842679658775) /*application='Dummy'*/[0m
|
361
|
-
[1m[36mActiveRecord::SchemaMigration Load (3.6ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
362
|
-
[1m[36mActiveRecord::InternalMetadata Load (3.6ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
363
|
-
Migrating to CreateBscfCoreVirtualAccounts (20250326085741)
|
364
|
-
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mBEGIN /*application='Dummy'*/[0m
|
365
|
-
[1m[35m (25.0ms)[0m [1m[35mCREATE TABLE "bscf_core_virtual_accounts" ("id" bigserial primary key, "user_id" bigint NOT NULL, "account_number" character varying NOT NULL, "cbs_account_number" character varying NOT NULL, "balance" decimal DEFAULT 0.0 NOT NULL, "interest_rate" decimal DEFAULT 0.0 NOT NULL, "interest_type" integer DEFAULT 0 NOT NULL, "active" boolean DEFAULT TRUE NOT NULL, "branch_code" character varying NOT NULL, "product_scheme" character varying NOT NULL, "voucher_type" character varying NOT NULL, "status" integer DEFAULT 0 NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL, CONSTRAINT "fk_rails_062e0240bd"
|
366
|
-
FOREIGN KEY ("user_id")
|
367
|
-
REFERENCES "bscf_core_users" ("id")
|
368
|
-
) /*application='Dummy'*/[0m
|
369
|
-
[1m[35m (1.4ms)[0m [1m[35mCREATE INDEX "index_bscf_core_virtual_accounts_on_user_id" ON "bscf_core_virtual_accounts" ("user_id") /*application='Dummy'*/[0m
|
370
|
-
[1m[35m (0.8ms)[0m [1m[35mCREATE UNIQUE INDEX "index_bscf_core_virtual_accounts_on_account_number" ON "bscf_core_virtual_accounts" ("account_number") /*application='Dummy'*/[0m
|
371
|
-
[1m[35m (0.8ms)[0m [1m[35mCREATE UNIQUE INDEX "index_bscf_core_virtual_accounts_on_cbs_account_number" ON "bscf_core_virtual_accounts" ("cbs_account_number") /*application='Dummy'*/[0m
|
372
|
-
[1m[35m (0.7ms)[0m [1m[35mCREATE INDEX "index_bscf_core_virtual_accounts_on_branch_code" ON "bscf_core_virtual_accounts" ("branch_code") /*application='Dummy'*/[0m
|
373
|
-
[1m[35m (0.7ms)[0m [1m[35mCREATE INDEX "index_bscf_core_virtual_accounts_on_user_id_and_account_number" ON "bscf_core_virtual_accounts" ("user_id", "account_number") /*application='Dummy'*/[0m
|
374
|
-
[1m[36mActiveRecord::SchemaMigration Create (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ('20250326085741') RETURNING "version" /*application='Dummy'*/[0m
|
375
|
-
[1m[36mTRANSACTION (0.8ms)[0m [1m[35mCOMMIT /*application='Dummy'*/[0m
|
376
|
-
Migrating to CreateBscfCoreCategories (20250326103305)
|
377
|
-
[1m[36mTRANSACTION (0.4ms)[0m [1m[35mBEGIN /*application='Dummy'*/[0m
|
378
|
-
[1m[35m (5.3ms)[0m [1m[35mCREATE TABLE "bscf_core_categories" ("id" bigserial primary key, "name" character varying NOT NULL, "description" character varying NOT NULL, "parent_id" bigint, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
379
|
-
[1m[36mActiveRecord::SchemaMigration Create (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ('20250326103305') RETURNING "version" /*application='Dummy'*/[0m
|
380
|
-
[1m[36mTRANSACTION (0.2ms)[0m [1m[35mCOMMIT /*application='Dummy'*/[0m
|
381
|
-
[1m[35m (0.5ms)[0m [1m[34mSELECT pg_advisory_unlock(7136077842679658775) /*application='Dummy'*/[0m
|
382
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
383
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
384
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
385
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
386
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
387
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
388
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
389
|
-
[1m[35mSQL (0.1ms)[0m [1m[35mSET search_path TO public /*application='Dummy'*/[0m
|
390
|
-
[1m[35m (101.9ms)[0m [1m[35mDROP DATABASE IF EXISTS "bscf_test" /*application='Dummy'*/[0m
|
391
|
-
[1m[35m (130.0ms)[0m [1m[35mCREATE DATABASE "bscf_test" ENCODING = 'unicode' /*application='Dummy'*/[0m
|
392
|
-
[1m[35mSQL (20.7ms)[0m [1m[35mCREATE EXTENSION IF NOT EXISTS "plpgsql" SCHEMA pg_catalog /*application='Dummy'*/[0m
|
393
|
-
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_addresses" CASCADE /*application='Dummy'*/[0m
|
394
|
-
[1m[35m (4.2ms)[0m [1m[35mCREATE TABLE "bscf_core_addresses" ("id" bigserial primary key, "city" character varying, "sub_city" character varying, "woreda" character varying, "latitude" character varying, "longitude" character varying, "house_number" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
395
|
-
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_categories" CASCADE /*application='Dummy'*/[0m
|
396
|
-
[1m[35m (2.2ms)[0m [1m[35mCREATE TABLE "bscf_core_categories" ("id" bigserial primary key, "name" character varying NOT NULL, "description" character varying NOT NULL, "parent_id" bigint, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
397
|
-
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_roles" CASCADE /*application='Dummy'*/[0m
|
398
|
-
[1m[35m (1.7ms)[0m [1m[35mCREATE TABLE "bscf_core_roles" ("id" bigserial primary key, "name" character varying NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
399
|
-
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_user_profiles" CASCADE /*application='Dummy'*/[0m
|
400
|
-
[1m[35m (2.0ms)[0m [1m[35mCREATE TABLE "bscf_core_user_profiles" ("id" bigserial primary key, "user_id" bigint NOT NULL, "date_of_birth" date NOT NULL, "nationality" character varying NOT NULL, "occupation" character varying NOT NULL, "source_of_funds" character varying NOT NULL, "kyc_status" integer DEFAULT 0, "gender" integer NOT NULL, "verified_at" timestamp(6), "verified_by_id" bigint, "address_id" bigint NOT NULL, "fayda_id" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
401
|
-
[1m[35m (0.7ms)[0m [1m[35mCREATE INDEX "index_bscf_core_user_profiles_on_address_id" ON "bscf_core_user_profiles" ("address_id") /*application='Dummy'*/[0m
|
402
|
-
[1m[35m (0.6ms)[0m [1m[35mCREATE INDEX "index_bscf_core_user_profiles_on_user_id" ON "bscf_core_user_profiles" ("user_id") /*application='Dummy'*/[0m
|
403
|
-
[1m[35m (0.8ms)[0m [1m[35mCREATE INDEX "index_bscf_core_user_profiles_on_verified_by_id" ON "bscf_core_user_profiles" ("verified_by_id") /*application='Dummy'*/[0m
|
404
|
-
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_user_roles" CASCADE /*application='Dummy'*/[0m
|
405
|
-
[1m[35m (1.5ms)[0m [1m[35mCREATE TABLE "bscf_core_user_roles" ("id" bigserial primary key, "user_id" bigint NOT NULL, "role_id" bigint NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
406
|
-
[1m[35m (0.6ms)[0m [1m[35mCREATE INDEX "index_bscf_core_user_roles_on_role_id" ON "bscf_core_user_roles" ("role_id") /*application='Dummy'*/[0m
|
407
|
-
[1m[35m (0.6ms)[0m [1m[35mCREATE INDEX "index_bscf_core_user_roles_on_user_id" ON "bscf_core_user_roles" ("user_id") /*application='Dummy'*/[0m
|
408
|
-
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_users" CASCADE /*application='Dummy'*/[0m
|
409
|
-
[1m[35m (2.1ms)[0m [1m[35mCREATE TABLE "bscf_core_users" ("id" bigserial primary key, "first_name" character varying NOT NULL, "middle_name" character varying NOT NULL, "last_name" character varying NOT NULL, "email" character varying NOT NULL, "phone_number" character varying NOT NULL, "password_digest" character varying NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
410
|
-
[1m[35m (1.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_bscf_core_users_on_email" ON "bscf_core_users" ("email") /*application='Dummy'*/[0m
|
411
|
-
[1m[35m (0.7ms)[0m [1m[35mCREATE UNIQUE INDEX "index_bscf_core_users_on_phone_number" ON "bscf_core_users" ("phone_number") /*application='Dummy'*/[0m
|
412
|
-
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_virtual_accounts" CASCADE /*application='Dummy'*/[0m
|
413
|
-
[1m[35m (2.6ms)[0m [1m[35mCREATE TABLE "bscf_core_virtual_accounts" ("id" bigserial primary key, "user_id" bigint NOT NULL, "account_number" character varying NOT NULL, "cbs_account_number" character varying NOT NULL, "balance" decimal DEFAULT 0.0 NOT NULL, "interest_rate" decimal DEFAULT 0.0 NOT NULL, "interest_type" integer DEFAULT 0 NOT NULL, "active" boolean DEFAULT TRUE NOT NULL, "branch_code" character varying NOT NULL, "product_scheme" character varying NOT NULL, "voucher_type" character varying NOT NULL, "status" integer DEFAULT 0 NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
414
|
-
[1m[35m (0.8ms)[0m [1m[35mCREATE UNIQUE INDEX "index_bscf_core_virtual_accounts_on_account_number" ON "bscf_core_virtual_accounts" ("account_number") /*application='Dummy'*/[0m
|
415
|
-
[1m[35m (0.7ms)[0m [1m[35mCREATE INDEX "index_bscf_core_virtual_accounts_on_branch_code" ON "bscf_core_virtual_accounts" ("branch_code") /*application='Dummy'*/[0m
|
416
|
-
[1m[35m (0.9ms)[0m [1m[35mCREATE UNIQUE INDEX "index_bscf_core_virtual_accounts_on_cbs_account_number" ON "bscf_core_virtual_accounts" ("cbs_account_number") /*application='Dummy'*/[0m
|
417
|
-
[1m[35m (0.9ms)[0m [1m[35mCREATE INDEX "index_bscf_core_virtual_accounts_on_user_id_and_account_number" ON "bscf_core_virtual_accounts" ("user_id", "account_number") /*application='Dummy'*/[0m
|
418
|
-
[1m[35m (0.6ms)[0m [1m[35mCREATE INDEX "index_bscf_core_virtual_accounts_on_user_id" ON "bscf_core_virtual_accounts" ("user_id") /*application='Dummy'*/[0m
|
419
|
-
[1m[35m (1.7ms)[0m [1m[35mALTER TABLE "bscf_core_user_profiles" ADD CONSTRAINT "fk_rails_c5a3f5b460"
|
420
|
-
FOREIGN KEY ("address_id")
|
421
|
-
REFERENCES "bscf_core_addresses" ("id")
|
422
|
-
/*application='Dummy'*/[0m
|
423
|
-
[1m[35m (0.9ms)[0m [1m[35mALTER TABLE "bscf_core_user_profiles" ADD CONSTRAINT "fk_rails_76d657f1fb"
|
424
|
-
FOREIGN KEY ("user_id")
|
425
|
-
REFERENCES "bscf_core_users" ("id")
|
426
|
-
/*application='Dummy'*/[0m
|
427
|
-
[1m[35m (0.8ms)[0m [1m[35mALTER TABLE "bscf_core_user_profiles" ADD CONSTRAINT "fk_rails_96d9a7609e"
|
428
|
-
FOREIGN KEY ("verified_by_id")
|
429
|
-
REFERENCES "bscf_core_users" ("id")
|
430
|
-
/*application='Dummy'*/[0m
|
431
|
-
[1m[35m (0.8ms)[0m [1m[35mALTER TABLE "bscf_core_user_roles" ADD CONSTRAINT "fk_rails_d64b2985c7"
|
432
|
-
FOREIGN KEY ("role_id")
|
433
|
-
REFERENCES "bscf_core_roles" ("id")
|
434
|
-
/*application='Dummy'*/[0m
|
435
|
-
[1m[35m (0.6ms)[0m [1m[35mALTER TABLE "bscf_core_user_roles" ADD CONSTRAINT "fk_rails_71c0ff189b"
|
436
|
-
FOREIGN KEY ("user_id")
|
437
|
-
REFERENCES "bscf_core_users" ("id")
|
438
|
-
/*application='Dummy'*/[0m
|
439
|
-
[1m[35m (0.9ms)[0m [1m[35mALTER TABLE "bscf_core_virtual_accounts" ADD CONSTRAINT "fk_rails_062e0240bd"
|
440
|
-
FOREIGN KEY ("user_id")
|
441
|
-
REFERENCES "bscf_core_users" ("id")
|
442
|
-
/*application='Dummy'*/[0m
|
443
|
-
[1m[35m (2.0ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY) /*application='Dummy'*/[0m
|
444
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
445
|
-
[1m[35m (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (20250326103305) /*application='Dummy'*/[0m
|
446
|
-
[1m[35m (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES
|
447
|
-
(20250326085741),
|
448
|
-
(20250326084233),
|
449
|
-
(20250326081052),
|
450
|
-
(20250326080646),
|
451
|
-
(20250326075111),
|
452
|
-
(20250326065606); /*application='Dummy'*/[0m
|
453
|
-
[1m[35m (2.2ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
454
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.6ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
455
|
-
[1m[36mActiveRecord::InternalMetadata Create (0.4ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'development', '2025-03-26 11:02:52.832573', '2025-03-26 11:02:52.832577') RETURNING "key" /*application='Dummy'*/[0m
|
456
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
457
|
-
[1m[36mActiveRecord::InternalMetadata Update (0.3ms)[0m [1m[33mUPDATE "ar_internal_metadata" SET "value" = 'test', "updated_at" = '2025-03-26 11:02:52.835981' WHERE "ar_internal_metadata"."key" = 'environment' /*application='Dummy'*/[0m
|
458
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'schema_sha1' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
459
|
-
[1m[36mActiveRecord::InternalMetadata Create (0.3ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('schema_sha1', '1aedad140a5afe906e3808eef29b2d8c071b1e2d', '2025-03-26 11:02:52.838611', '2025-03-26 11:02:52.838613') RETURNING "key" /*application='Dummy'*/[0m
|
460
|
-
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_try_advisory_lock(7136077842679658775) /*application='Dummy'*/[0m
|
461
|
-
[1m[36mActiveRecord::SchemaMigration Load (1.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
462
|
-
[1m[36mActiveRecord::InternalMetadata Load (1.2ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
463
|
-
Migrating to CreateBscfCoreProducts (20250326105652)
|
464
|
-
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mBEGIN /*application='Dummy'*/[0m
|
465
|
-
[1m[35m (16.7ms)[0m [1m[35mCREATE TABLE "bscf_core_products" ("id" bigserial primary key, "sku" character varying NOT NULL, "name" character varying NOT NULL, "description" character varying NOT NULL, "category_id" bigint NOT NULL, "base_price" decimal DEFAULT 0.0 NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL, CONSTRAINT "fk_rails_9b9f33fd91"
|
466
|
-
FOREIGN KEY ("category_id")
|
467
|
-
REFERENCES "bscf_core_categories" ("id")
|
468
|
-
) /*application='Dummy'*/[0m
|
469
|
-
[1m[35m (1.0ms)[0m [1m[35mCREATE INDEX "index_bscf_core_products_on_category_id" ON "bscf_core_products" ("category_id") /*application='Dummy'*/[0m
|
470
|
-
[1m[35m (0.7ms)[0m [1m[35mCREATE UNIQUE INDEX "index_bscf_core_products_on_sku" ON "bscf_core_products" ("sku") /*application='Dummy'*/[0m
|
471
|
-
[1m[36mActiveRecord::SchemaMigration Create (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ('20250326105652') RETURNING "version" /*application='Dummy'*/[0m
|
472
|
-
[1m[36mTRANSACTION (2.1ms)[0m [1m[35mCOMMIT /*application='Dummy'*/[0m
|
473
|
-
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(7136077842679658775) /*application='Dummy'*/[0m
|
474
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
475
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
476
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
477
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
478
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
479
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
480
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
481
|
-
[1m[35mSQL (0.1ms)[0m [1m[35mSET search_path TO public /*application='Dummy'*/[0m
|
482
|
-
[1m[35m (76.8ms)[0m [1m[35mDROP DATABASE IF EXISTS "bscf_test" /*application='Dummy'*/[0m
|
483
|
-
[1m[35m (151.4ms)[0m [1m[35mCREATE DATABASE "bscf_test" ENCODING = 'unicode' /*application='Dummy'*/[0m
|
484
|
-
[1m[35mSQL (17.8ms)[0m [1m[35mCREATE EXTENSION IF NOT EXISTS "plpgsql" SCHEMA pg_catalog /*application='Dummy'*/[0m
|
485
|
-
[1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_addresses" CASCADE /*application='Dummy'*/[0m
|
486
|
-
[1m[35m (3.4ms)[0m [1m[35mCREATE TABLE "bscf_core_addresses" ("id" bigserial primary key, "city" character varying, "sub_city" character varying, "woreda" character varying, "latitude" character varying, "longitude" character varying, "house_number" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
487
|
-
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_categories" CASCADE /*application='Dummy'*/[0m
|
488
|
-
[1m[35m (1.6ms)[0m [1m[35mCREATE TABLE "bscf_core_categories" ("id" bigserial primary key, "name" character varying NOT NULL, "description" character varying NOT NULL, "parent_id" bigint, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
489
|
-
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_products" CASCADE /*application='Dummy'*/[0m
|
490
|
-
[1m[35m (1.5ms)[0m [1m[35mCREATE TABLE "bscf_core_products" ("id" bigserial primary key, "sku" character varying NOT NULL, "name" character varying NOT NULL, "description" character varying NOT NULL, "category_id" bigint NOT NULL, "base_price" decimal DEFAULT 0.0 NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
491
|
-
[1m[35m (0.7ms)[0m [1m[35mCREATE INDEX "index_bscf_core_products_on_category_id" ON "bscf_core_products" ("category_id") /*application='Dummy'*/[0m
|
492
|
-
[1m[35m (0.6ms)[0m [1m[35mCREATE UNIQUE INDEX "index_bscf_core_products_on_sku" ON "bscf_core_products" ("sku") /*application='Dummy'*/[0m
|
493
|
-
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_roles" CASCADE /*application='Dummy'*/[0m
|
494
|
-
[1m[35m (1.6ms)[0m [1m[35mCREATE TABLE "bscf_core_roles" ("id" bigserial primary key, "name" character varying NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
495
|
-
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_user_profiles" CASCADE /*application='Dummy'*/[0m
|
496
|
-
[1m[35m (1.8ms)[0m [1m[35mCREATE TABLE "bscf_core_user_profiles" ("id" bigserial primary key, "user_id" bigint NOT NULL, "date_of_birth" date NOT NULL, "nationality" character varying NOT NULL, "occupation" character varying NOT NULL, "source_of_funds" character varying NOT NULL, "kyc_status" integer DEFAULT 0, "gender" integer NOT NULL, "verified_at" timestamp(6), "verified_by_id" bigint, "address_id" bigint NOT NULL, "fayda_id" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
497
|
-
[1m[35m (0.7ms)[0m [1m[35mCREATE INDEX "index_bscf_core_user_profiles_on_address_id" ON "bscf_core_user_profiles" ("address_id") /*application='Dummy'*/[0m
|
498
|
-
[1m[35m (0.5ms)[0m [1m[35mCREATE INDEX "index_bscf_core_user_profiles_on_user_id" ON "bscf_core_user_profiles" ("user_id") /*application='Dummy'*/[0m
|
499
|
-
[1m[35m (0.5ms)[0m [1m[35mCREATE INDEX "index_bscf_core_user_profiles_on_verified_by_id" ON "bscf_core_user_profiles" ("verified_by_id") /*application='Dummy'*/[0m
|
500
|
-
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_user_roles" CASCADE /*application='Dummy'*/[0m
|
501
|
-
[1m[35m (1.2ms)[0m [1m[35mCREATE TABLE "bscf_core_user_roles" ("id" bigserial primary key, "user_id" bigint NOT NULL, "role_id" bigint NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
502
|
-
[1m[35m (0.7ms)[0m [1m[35mCREATE INDEX "index_bscf_core_user_roles_on_role_id" ON "bscf_core_user_roles" ("role_id") /*application='Dummy'*/[0m
|
503
|
-
[1m[35m (0.5ms)[0m [1m[35mCREATE INDEX "index_bscf_core_user_roles_on_user_id" ON "bscf_core_user_roles" ("user_id") /*application='Dummy'*/[0m
|
504
|
-
[1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_users" CASCADE /*application='Dummy'*/[0m
|
505
|
-
[1m[35m (1.7ms)[0m [1m[35mCREATE TABLE "bscf_core_users" ("id" bigserial primary key, "first_name" character varying NOT NULL, "middle_name" character varying NOT NULL, "last_name" character varying NOT NULL, "email" character varying NOT NULL, "phone_number" character varying NOT NULL, "password_digest" character varying NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
506
|
-
[1m[35m (0.9ms)[0m [1m[35mCREATE UNIQUE INDEX "index_bscf_core_users_on_email" ON "bscf_core_users" ("email") /*application='Dummy'*/[0m
|
507
|
-
[1m[35m (0.6ms)[0m [1m[35mCREATE UNIQUE INDEX "index_bscf_core_users_on_phone_number" ON "bscf_core_users" ("phone_number") /*application='Dummy'*/[0m
|
508
|
-
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_virtual_accounts" CASCADE /*application='Dummy'*/[0m
|
509
|
-
[1m[35m (1.9ms)[0m [1m[35mCREATE TABLE "bscf_core_virtual_accounts" ("id" bigserial primary key, "user_id" bigint NOT NULL, "account_number" character varying NOT NULL, "cbs_account_number" character varying NOT NULL, "balance" decimal DEFAULT 0.0 NOT NULL, "interest_rate" decimal DEFAULT 0.0 NOT NULL, "interest_type" integer DEFAULT 0 NOT NULL, "active" boolean DEFAULT TRUE NOT NULL, "branch_code" character varying NOT NULL, "product_scheme" character varying NOT NULL, "voucher_type" character varying NOT NULL, "status" integer DEFAULT 0 NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
510
|
-
[1m[35m (0.7ms)[0m [1m[35mCREATE UNIQUE INDEX "index_bscf_core_virtual_accounts_on_account_number" ON "bscf_core_virtual_accounts" ("account_number") /*application='Dummy'*/[0m
|
511
|
-
[1m[35m (0.8ms)[0m [1m[35mCREATE INDEX "index_bscf_core_virtual_accounts_on_branch_code" ON "bscf_core_virtual_accounts" ("branch_code") /*application='Dummy'*/[0m
|
512
|
-
[1m[35m (0.6ms)[0m [1m[35mCREATE UNIQUE INDEX "index_bscf_core_virtual_accounts_on_cbs_account_number" ON "bscf_core_virtual_accounts" ("cbs_account_number") /*application='Dummy'*/[0m
|
513
|
-
[1m[35m (0.6ms)[0m [1m[35mCREATE INDEX "index_bscf_core_virtual_accounts_on_user_id_and_account_number" ON "bscf_core_virtual_accounts" ("user_id", "account_number") /*application='Dummy'*/[0m
|
514
|
-
[1m[35m (0.6ms)[0m [1m[35mCREATE INDEX "index_bscf_core_virtual_accounts_on_user_id" ON "bscf_core_virtual_accounts" ("user_id") /*application='Dummy'*/[0m
|
515
|
-
[1m[35m (1.6ms)[0m [1m[35mALTER TABLE "bscf_core_products" ADD CONSTRAINT "fk_rails_9b9f33fd91"
|
516
|
-
FOREIGN KEY ("category_id")
|
517
|
-
REFERENCES "bscf_core_categories" ("id")
|
518
|
-
/*application='Dummy'*/[0m
|
519
|
-
[1m[35m (1.1ms)[0m [1m[35mALTER TABLE "bscf_core_user_profiles" ADD CONSTRAINT "fk_rails_c5a3f5b460"
|
520
|
-
FOREIGN KEY ("address_id")
|
521
|
-
REFERENCES "bscf_core_addresses" ("id")
|
522
|
-
/*application='Dummy'*/[0m
|
523
|
-
[1m[35m (0.7ms)[0m [1m[35mALTER TABLE "bscf_core_user_profiles" ADD CONSTRAINT "fk_rails_76d657f1fb"
|
524
|
-
FOREIGN KEY ("user_id")
|
525
|
-
REFERENCES "bscf_core_users" ("id")
|
526
|
-
/*application='Dummy'*/[0m
|
527
|
-
[1m[35m (0.6ms)[0m [1m[35mALTER TABLE "bscf_core_user_profiles" ADD CONSTRAINT "fk_rails_96d9a7609e"
|
528
|
-
FOREIGN KEY ("verified_by_id")
|
529
|
-
REFERENCES "bscf_core_users" ("id")
|
530
|
-
/*application='Dummy'*/[0m
|
531
|
-
[1m[35m (1.2ms)[0m [1m[35mALTER TABLE "bscf_core_user_roles" ADD CONSTRAINT "fk_rails_d64b2985c7"
|
532
|
-
FOREIGN KEY ("role_id")
|
533
|
-
REFERENCES "bscf_core_roles" ("id")
|
534
|
-
/*application='Dummy'*/[0m
|
535
|
-
[1m[35m (0.6ms)[0m [1m[35mALTER TABLE "bscf_core_user_roles" ADD CONSTRAINT "fk_rails_71c0ff189b"
|
536
|
-
FOREIGN KEY ("user_id")
|
537
|
-
REFERENCES "bscf_core_users" ("id")
|
538
|
-
/*application='Dummy'*/[0m
|
539
|
-
[1m[35m (1.0ms)[0m [1m[35mALTER TABLE "bscf_core_virtual_accounts" ADD CONSTRAINT "fk_rails_062e0240bd"
|
540
|
-
FOREIGN KEY ("user_id")
|
541
|
-
REFERENCES "bscf_core_users" ("id")
|
542
|
-
/*application='Dummy'*/[0m
|
543
|
-
[1m[35m (1.7ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY) /*application='Dummy'*/[0m
|
544
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
545
|
-
[1m[35m (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (20250326105652) /*application='Dummy'*/[0m
|
546
|
-
[1m[35m (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES
|
547
|
-
(20250326103305),
|
548
|
-
(20250326085741),
|
549
|
-
(20250326084233),
|
550
|
-
(20250326081052),
|
551
|
-
(20250326080646),
|
552
|
-
(20250326075111),
|
553
|
-
(20250326065606); /*application='Dummy'*/[0m
|
554
|
-
[1m[35m (1.6ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
555
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.6ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
556
|
-
[1m[36mActiveRecord::InternalMetadata Create (0.4ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'development', '2025-03-26 11:25:01.537569', '2025-03-26 11:25:01.537572') RETURNING "key" /*application='Dummy'*/[0m
|
557
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
558
|
-
[1m[36mActiveRecord::InternalMetadata Update (0.3ms)[0m [1m[33mUPDATE "ar_internal_metadata" SET "value" = 'test', "updated_at" = '2025-03-26 11:25:01.540924' WHERE "ar_internal_metadata"."key" = 'environment' /*application='Dummy'*/[0m
|
559
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'schema_sha1' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
560
|
-
[1m[36mActiveRecord::InternalMetadata Create (0.2ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('schema_sha1', 'd18c1d9ac5326e5d5415340ebd68dd0f9ff61f16', '2025-03-26 11:25:01.543255', '2025-03-26 11:25:01.543256') RETURNING "key" /*application='Dummy'*/[0m
|
561
|
-
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_try_advisory_lock(7136077842679658775) /*application='Dummy'*/[0m
|
562
|
-
[1m[36mActiveRecord::SchemaMigration Load (1.8ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
563
|
-
[1m[36mActiveRecord::InternalMetadata Load (1.2ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
564
|
-
Migrating to CreateBscfCoreBusinesses (20250326112449)
|
565
|
-
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mBEGIN /*application='Dummy'*/[0m
|
566
|
-
[1m[35m (9.3ms)[0m [1m[35mCREATE TABLE "bscf_core_businesses" ("id" bigserial primary key, "user_id" bigint NOT NULL, "business_name" character varying NOT NULL, "tin_number" character varying NOT NULL, "business_type" integer DEFAULT 0 NOT NULL, "verified_at" timestamp(6), "verification_status" integer DEFAULT 0 NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL, CONSTRAINT "fk_rails_8d7490b82a"
|
567
|
-
FOREIGN KEY ("user_id")
|
568
|
-
REFERENCES "bscf_core_users" ("id")
|
569
|
-
) /*application='Dummy'*/[0m
|
570
|
-
[1m[35m (1.2ms)[0m [1m[35mCREATE INDEX "index_bscf_core_businesses_on_user_id" ON "bscf_core_businesses" ("user_id") /*application='Dummy'*/[0m
|
571
|
-
[1m[36mActiveRecord::SchemaMigration Create (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ('20250326112449') RETURNING "version" /*application='Dummy'*/[0m
|
572
|
-
[1m[36mTRANSACTION (0.5ms)[0m [1m[35mCOMMIT /*application='Dummy'*/[0m
|
573
|
-
[1m[35m (0.4ms)[0m [1m[34mSELECT pg_advisory_unlock(7136077842679658775) /*application='Dummy'*/[0m
|
574
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
575
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
576
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
577
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
578
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
579
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
580
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
581
|
-
[1m[35mSQL (0.1ms)[0m [1m[35mSET search_path TO public /*application='Dummy'*/[0m
|
582
|
-
[1m[35m (55.9ms)[0m [1m[35mDROP DATABASE IF EXISTS "bscf_test" /*application='Dummy'*/[0m
|
583
|
-
[1m[35m (57.2ms)[0m [1m[35mCREATE DATABASE "bscf_test" ENCODING = 'unicode' /*application='Dummy'*/[0m
|
584
|
-
[1m[35mSQL (13.9ms)[0m [1m[35mCREATE EXTENSION IF NOT EXISTS "plpgsql" SCHEMA pg_catalog /*application='Dummy'*/[0m
|
585
|
-
[1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_addresses" CASCADE /*application='Dummy'*/[0m
|
586
|
-
[1m[35m (2.5ms)[0m [1m[35mCREATE TABLE "bscf_core_addresses" ("id" bigserial primary key, "city" character varying, "sub_city" character varying, "woreda" character varying, "latitude" character varying, "longitude" character varying, "house_number" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
587
|
-
[1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_businesses" CASCADE /*application='Dummy'*/[0m
|
588
|
-
[1m[35m (1.3ms)[0m [1m[35mCREATE TABLE "bscf_core_businesses" ("id" bigserial primary key, "user_id" bigint NOT NULL, "business_name" character varying NOT NULL, "tin_number" character varying NOT NULL, "business_type" integer DEFAULT 0 NOT NULL, "verified_at" timestamp(6), "verification_status" integer DEFAULT 0 NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
589
|
-
[1m[35m (0.4ms)[0m [1m[35mCREATE INDEX "index_bscf_core_businesses_on_user_id" ON "bscf_core_businesses" ("user_id") /*application='Dummy'*/[0m
|
590
|
-
[1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_categories" CASCADE /*application='Dummy'*/[0m
|
591
|
-
[1m[35m (1.3ms)[0m [1m[35mCREATE TABLE "bscf_core_categories" ("id" bigserial primary key, "name" character varying NOT NULL, "description" character varying NOT NULL, "parent_id" bigint, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
592
|
-
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_products" CASCADE /*application='Dummy'*/[0m
|
593
|
-
[1m[35m (1.4ms)[0m [1m[35mCREATE TABLE "bscf_core_products" ("id" bigserial primary key, "sku" character varying NOT NULL, "name" character varying NOT NULL, "description" character varying NOT NULL, "category_id" bigint NOT NULL, "base_price" decimal DEFAULT 0.0 NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
594
|
-
[1m[35m (0.4ms)[0m [1m[35mCREATE INDEX "index_bscf_core_products_on_category_id" ON "bscf_core_products" ("category_id") /*application='Dummy'*/[0m
|
595
|
-
[1m[35m (0.4ms)[0m [1m[35mCREATE UNIQUE INDEX "index_bscf_core_products_on_sku" ON "bscf_core_products" ("sku") /*application='Dummy'*/[0m
|
596
|
-
[1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_roles" CASCADE /*application='Dummy'*/[0m
|
597
|
-
[1m[35m (1.1ms)[0m [1m[35mCREATE TABLE "bscf_core_roles" ("id" bigserial primary key, "name" character varying NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
598
|
-
[1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_user_profiles" CASCADE /*application='Dummy'*/[0m
|
599
|
-
[1m[35m (1.2ms)[0m [1m[35mCREATE TABLE "bscf_core_user_profiles" ("id" bigserial primary key, "user_id" bigint NOT NULL, "date_of_birth" date NOT NULL, "nationality" character varying NOT NULL, "occupation" character varying NOT NULL, "source_of_funds" character varying NOT NULL, "kyc_status" integer DEFAULT 0, "gender" integer NOT NULL, "verified_at" timestamp(6), "verified_by_id" bigint, "address_id" bigint NOT NULL, "fayda_id" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
600
|
-
[1m[35m (0.4ms)[0m [1m[35mCREATE INDEX "index_bscf_core_user_profiles_on_address_id" ON "bscf_core_user_profiles" ("address_id") /*application='Dummy'*/[0m
|
601
|
-
[1m[35m (0.4ms)[0m [1m[35mCREATE INDEX "index_bscf_core_user_profiles_on_user_id" ON "bscf_core_user_profiles" ("user_id") /*application='Dummy'*/[0m
|
602
|
-
[1m[35m (0.5ms)[0m [1m[35mCREATE INDEX "index_bscf_core_user_profiles_on_verified_by_id" ON "bscf_core_user_profiles" ("verified_by_id") /*application='Dummy'*/[0m
|
603
|
-
[1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_user_roles" CASCADE /*application='Dummy'*/[0m
|
604
|
-
[1m[35m (0.8ms)[0m [1m[35mCREATE TABLE "bscf_core_user_roles" ("id" bigserial primary key, "user_id" bigint NOT NULL, "role_id" bigint NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
605
|
-
[1m[35m (0.4ms)[0m [1m[35mCREATE INDEX "index_bscf_core_user_roles_on_role_id" ON "bscf_core_user_roles" ("role_id") /*application='Dummy'*/[0m
|
606
|
-
[1m[35m (0.3ms)[0m [1m[35mCREATE INDEX "index_bscf_core_user_roles_on_user_id" ON "bscf_core_user_roles" ("user_id") /*application='Dummy'*/[0m
|
607
|
-
[1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_users" CASCADE /*application='Dummy'*/[0m
|
608
|
-
[1m[35m (1.1ms)[0m [1m[35mCREATE TABLE "bscf_core_users" ("id" bigserial primary key, "first_name" character varying NOT NULL, "middle_name" character varying NOT NULL, "last_name" character varying NOT NULL, "email" character varying NOT NULL, "phone_number" character varying NOT NULL, "password_digest" character varying NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
609
|
-
[1m[35m (0.4ms)[0m [1m[35mCREATE UNIQUE INDEX "index_bscf_core_users_on_email" ON "bscf_core_users" ("email") /*application='Dummy'*/[0m
|
610
|
-
[1m[35m (0.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_bscf_core_users_on_phone_number" ON "bscf_core_users" ("phone_number") /*application='Dummy'*/[0m
|
611
|
-
[1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_virtual_accounts" CASCADE /*application='Dummy'*/[0m
|
612
|
-
[1m[35m (1.3ms)[0m [1m[35mCREATE TABLE "bscf_core_virtual_accounts" ("id" bigserial primary key, "user_id" bigint NOT NULL, "account_number" character varying NOT NULL, "cbs_account_number" character varying NOT NULL, "balance" decimal DEFAULT 0.0 NOT NULL, "interest_rate" decimal DEFAULT 0.0 NOT NULL, "interest_type" integer DEFAULT 0 NOT NULL, "active" boolean DEFAULT TRUE NOT NULL, "branch_code" character varying NOT NULL, "product_scheme" character varying NOT NULL, "voucher_type" character varying NOT NULL, "status" integer DEFAULT 0 NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
613
|
-
[1m[35m (0.6ms)[0m [1m[35mCREATE UNIQUE INDEX "index_bscf_core_virtual_accounts_on_account_number" ON "bscf_core_virtual_accounts" ("account_number") /*application='Dummy'*/[0m
|
614
|
-
[1m[35m (0.3ms)[0m [1m[35mCREATE INDEX "index_bscf_core_virtual_accounts_on_branch_code" ON "bscf_core_virtual_accounts" ("branch_code") /*application='Dummy'*/[0m
|
615
|
-
[1m[35m (0.4ms)[0m [1m[35mCREATE UNIQUE INDEX "index_bscf_core_virtual_accounts_on_cbs_account_number" ON "bscf_core_virtual_accounts" ("cbs_account_number") /*application='Dummy'*/[0m
|
616
|
-
[1m[35m (0.5ms)[0m [1m[35mCREATE INDEX "index_bscf_core_virtual_accounts_on_user_id_and_account_number" ON "bscf_core_virtual_accounts" ("user_id", "account_number") /*application='Dummy'*/[0m
|
617
|
-
[1m[35m (0.3ms)[0m [1m[35mCREATE INDEX "index_bscf_core_virtual_accounts_on_user_id" ON "bscf_core_virtual_accounts" ("user_id") /*application='Dummy'*/[0m
|
618
|
-
[1m[35m (1.1ms)[0m [1m[35mALTER TABLE "bscf_core_businesses" ADD CONSTRAINT "fk_rails_8d7490b82a"
|
619
|
-
FOREIGN KEY ("user_id")
|
620
|
-
REFERENCES "bscf_core_users" ("id")
|
621
|
-
/*application='Dummy'*/[0m
|
622
|
-
[1m[35m (0.5ms)[0m [1m[35mALTER TABLE "bscf_core_products" ADD CONSTRAINT "fk_rails_9b9f33fd91"
|
623
|
-
FOREIGN KEY ("category_id")
|
624
|
-
REFERENCES "bscf_core_categories" ("id")
|
625
|
-
/*application='Dummy'*/[0m
|
626
|
-
[1m[35m (0.5ms)[0m [1m[35mALTER TABLE "bscf_core_user_profiles" ADD CONSTRAINT "fk_rails_c5a3f5b460"
|
627
|
-
FOREIGN KEY ("address_id")
|
628
|
-
REFERENCES "bscf_core_addresses" ("id")
|
629
|
-
/*application='Dummy'*/[0m
|
630
|
-
[1m[35m (0.4ms)[0m [1m[35mALTER TABLE "bscf_core_user_profiles" ADD CONSTRAINT "fk_rails_76d657f1fb"
|
631
|
-
FOREIGN KEY ("user_id")
|
632
|
-
REFERENCES "bscf_core_users" ("id")
|
633
|
-
/*application='Dummy'*/[0m
|
634
|
-
[1m[35m (0.3ms)[0m [1m[35mALTER TABLE "bscf_core_user_profiles" ADD CONSTRAINT "fk_rails_96d9a7609e"
|
635
|
-
FOREIGN KEY ("verified_by_id")
|
636
|
-
REFERENCES "bscf_core_users" ("id")
|
637
|
-
/*application='Dummy'*/[0m
|
638
|
-
[1m[35m (0.6ms)[0m [1m[35mALTER TABLE "bscf_core_user_roles" ADD CONSTRAINT "fk_rails_d64b2985c7"
|
639
|
-
FOREIGN KEY ("role_id")
|
640
|
-
REFERENCES "bscf_core_roles" ("id")
|
641
|
-
/*application='Dummy'*/[0m
|
642
|
-
[1m[35m (0.3ms)[0m [1m[35mALTER TABLE "bscf_core_user_roles" ADD CONSTRAINT "fk_rails_71c0ff189b"
|
643
|
-
FOREIGN KEY ("user_id")
|
644
|
-
REFERENCES "bscf_core_users" ("id")
|
645
|
-
/*application='Dummy'*/[0m
|
646
|
-
[1m[35m (0.5ms)[0m [1m[35mALTER TABLE "bscf_core_virtual_accounts" ADD CONSTRAINT "fk_rails_062e0240bd"
|
647
|
-
FOREIGN KEY ("user_id")
|
648
|
-
REFERENCES "bscf_core_users" ("id")
|
649
|
-
/*application='Dummy'*/[0m
|
650
|
-
[1m[35m (0.8ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY) /*application='Dummy'*/[0m
|
651
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
652
|
-
[1m[35m (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (20250326112449) /*application='Dummy'*/[0m
|
653
|
-
[1m[35m (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES
|
654
|
-
(20250326105652),
|
655
|
-
(20250326103305),
|
656
|
-
(20250326085741),
|
657
|
-
(20250326084233),
|
658
|
-
(20250326081052),
|
659
|
-
(20250326080646),
|
660
|
-
(20250326075111),
|
661
|
-
(20250326065606); /*application='Dummy'*/[0m
|
662
|
-
[1m[35m (0.9ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
663
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.3ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
664
|
-
[1m[36mActiveRecord::InternalMetadata Create (0.3ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'development', '2025-03-26 11:45:06.794820', '2025-03-26 11:45:06.794821') RETURNING "key" /*application='Dummy'*/[0m
|
665
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
666
|
-
[1m[36mActiveRecord::InternalMetadata Update (0.2ms)[0m [1m[33mUPDATE "ar_internal_metadata" SET "value" = 'test', "updated_at" = '2025-03-26 11:45:06.796426' WHERE "ar_internal_metadata"."key" = 'environment' /*application='Dummy'*/[0m
|
667
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'schema_sha1' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
668
|
-
[1m[36mActiveRecord::InternalMetadata Create (0.1ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('schema_sha1', 'cb61332a8f83b592503da0d63ab3585af252e3bd', '2025-03-26 11:45:06.797528', '2025-03-26 11:45:06.797529') RETURNING "key" /*application='Dummy'*/[0m
|
669
|
-
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_try_advisory_lock(7136077842679658775) /*application='Dummy'*/[0m
|
670
|
-
[1m[36mActiveRecord::SchemaMigration Load (6.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
671
|
-
[1m[36mActiveRecord::InternalMetadata Load (1.3ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
672
|
-
Migrating to CreateBscfCoreRequestForQuotations (20250326115203)
|
673
|
-
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mBEGIN /*application='Dummy'*/[0m
|
674
|
-
[1m[35m (16.3ms)[0m [1m[35mCREATE TABLE "bscf_core_request_for_quotations" ("id" bigserial primary key, "user_id" bigint NOT NULL, "status" integer DEFAULT 0 NOT NULL, "notes" text, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL, CONSTRAINT "fk_rails_8ed521a71d"
|
675
|
-
FOREIGN KEY ("user_id")
|
676
|
-
REFERENCES "bscf_core_users" ("id")
|
677
|
-
) /*application='Dummy'*/[0m
|
678
|
-
[1m[35m (1.3ms)[0m [1m[35mCREATE INDEX "index_bscf_core_request_for_quotations_on_user_id" ON "bscf_core_request_for_quotations" ("user_id") /*application='Dummy'*/[0m
|
679
|
-
[1m[36mActiveRecord::SchemaMigration Create (0.5ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ('20250326115203') RETURNING "version" /*application='Dummy'*/[0m
|
680
|
-
[1m[36mTRANSACTION (0.6ms)[0m [1m[35mCOMMIT /*application='Dummy'*/[0m
|
681
|
-
[1m[35m (0.5ms)[0m [1m[34mSELECT pg_advisory_unlock(7136077842679658775) /*application='Dummy'*/[0m
|
682
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
683
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
684
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
685
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
686
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.3ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
687
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
688
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
689
|
-
[1m[35mSQL (0.1ms)[0m [1m[35mSET search_path TO public /*application='Dummy'*/[0m
|
690
|
-
[1m[35m (94.9ms)[0m [1m[35mDROP DATABASE IF EXISTS "bscf_test" /*application='Dummy'*/[0m
|
691
|
-
[1m[35m (143.1ms)[0m [1m[35mCREATE DATABASE "bscf_test" ENCODING = 'unicode' /*application='Dummy'*/[0m
|
692
|
-
[1m[35mSQL (19.5ms)[0m [1m[35mCREATE EXTENSION IF NOT EXISTS "plpgsql" SCHEMA pg_catalog /*application='Dummy'*/[0m
|
693
|
-
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_addresses" CASCADE /*application='Dummy'*/[0m
|
694
|
-
[1m[35m (3.0ms)[0m [1m[35mCREATE TABLE "bscf_core_addresses" ("id" bigserial primary key, "city" character varying, "sub_city" character varying, "woreda" character varying, "latitude" character varying, "longitude" character varying, "house_number" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
695
|
-
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_businesses" CASCADE /*application='Dummy'*/[0m
|
696
|
-
[1m[35m (2.0ms)[0m [1m[35mCREATE TABLE "bscf_core_businesses" ("id" bigserial primary key, "user_id" bigint NOT NULL, "business_name" character varying NOT NULL, "tin_number" character varying NOT NULL, "business_type" integer DEFAULT 0 NOT NULL, "verified_at" timestamp(6), "verification_status" integer DEFAULT 0 NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
697
|
-
[1m[35m (0.8ms)[0m [1m[35mCREATE INDEX "index_bscf_core_businesses_on_user_id" ON "bscf_core_businesses" ("user_id") /*application='Dummy'*/[0m
|
698
|
-
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_categories" CASCADE /*application='Dummy'*/[0m
|
699
|
-
[1m[35m (1.4ms)[0m [1m[35mCREATE TABLE "bscf_core_categories" ("id" bigserial primary key, "name" character varying NOT NULL, "description" character varying NOT NULL, "parent_id" bigint, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
700
|
-
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_products" CASCADE /*application='Dummy'*/[0m
|
701
|
-
[1m[35m (2.0ms)[0m [1m[35mCREATE TABLE "bscf_core_products" ("id" bigserial primary key, "sku" character varying NOT NULL, "name" character varying NOT NULL, "description" character varying NOT NULL, "category_id" bigint NOT NULL, "base_price" decimal DEFAULT 0.0 NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
702
|
-
[1m[35m (0.6ms)[0m [1m[35mCREATE INDEX "index_bscf_core_products_on_category_id" ON "bscf_core_products" ("category_id") /*application='Dummy'*/[0m
|
703
|
-
[1m[35m (0.6ms)[0m [1m[35mCREATE UNIQUE INDEX "index_bscf_core_products_on_sku" ON "bscf_core_products" ("sku") /*application='Dummy'*/[0m
|
704
|
-
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_request_for_quotations" CASCADE /*application='Dummy'*/[0m
|
705
|
-
[1m[35m (1.6ms)[0m [1m[35mCREATE TABLE "bscf_core_request_for_quotations" ("id" bigserial primary key, "user_id" bigint NOT NULL, "status" integer DEFAULT 0 NOT NULL, "notes" text, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
706
|
-
[1m[35m (0.6ms)[0m [1m[35mCREATE INDEX "index_bscf_core_request_for_quotations_on_user_id" ON "bscf_core_request_for_quotations" ("user_id") /*application='Dummy'*/[0m
|
707
|
-
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_roles" CASCADE /*application='Dummy'*/[0m
|
708
|
-
[1m[35m (1.6ms)[0m [1m[35mCREATE TABLE "bscf_core_roles" ("id" bigserial primary key, "name" character varying NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
709
|
-
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_user_profiles" CASCADE /*application='Dummy'*/[0m
|
710
|
-
[1m[35m (1.5ms)[0m [1m[35mCREATE TABLE "bscf_core_user_profiles" ("id" bigserial primary key, "user_id" bigint NOT NULL, "date_of_birth" date NOT NULL, "nationality" character varying NOT NULL, "occupation" character varying NOT NULL, "source_of_funds" character varying NOT NULL, "kyc_status" integer DEFAULT 0, "gender" integer NOT NULL, "verified_at" timestamp(6), "verified_by_id" bigint, "address_id" bigint NOT NULL, "fayda_id" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
711
|
-
[1m[35m (0.6ms)[0m [1m[35mCREATE INDEX "index_bscf_core_user_profiles_on_address_id" ON "bscf_core_user_profiles" ("address_id") /*application='Dummy'*/[0m
|
712
|
-
[1m[35m (0.5ms)[0m [1m[35mCREATE INDEX "index_bscf_core_user_profiles_on_user_id" ON "bscf_core_user_profiles" ("user_id") /*application='Dummy'*/[0m
|
713
|
-
[1m[35m (1.2ms)[0m [1m[35mCREATE INDEX "index_bscf_core_user_profiles_on_verified_by_id" ON "bscf_core_user_profiles" ("verified_by_id") /*application='Dummy'*/[0m
|
714
|
-
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_user_roles" CASCADE /*application='Dummy'*/[0m
|
715
|
-
[1m[35m (1.3ms)[0m [1m[35mCREATE TABLE "bscf_core_user_roles" ("id" bigserial primary key, "user_id" bigint NOT NULL, "role_id" bigint NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
716
|
-
[1m[35m (0.7ms)[0m [1m[35mCREATE INDEX "index_bscf_core_user_roles_on_role_id" ON "bscf_core_user_roles" ("role_id") /*application='Dummy'*/[0m
|
717
|
-
[1m[35m (0.6ms)[0m [1m[35mCREATE INDEX "index_bscf_core_user_roles_on_user_id" ON "bscf_core_user_roles" ("user_id") /*application='Dummy'*/[0m
|
718
|
-
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_users" CASCADE /*application='Dummy'*/[0m
|
719
|
-
[1m[35m (2.3ms)[0m [1m[35mCREATE TABLE "bscf_core_users" ("id" bigserial primary key, "first_name" character varying NOT NULL, "middle_name" character varying NOT NULL, "last_name" character varying NOT NULL, "email" character varying NOT NULL, "phone_number" character varying NOT NULL, "password_digest" character varying NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
720
|
-
[1m[35m (0.8ms)[0m [1m[35mCREATE UNIQUE INDEX "index_bscf_core_users_on_email" ON "bscf_core_users" ("email") /*application='Dummy'*/[0m
|
721
|
-
[1m[35m (0.6ms)[0m [1m[35mCREATE UNIQUE INDEX "index_bscf_core_users_on_phone_number" ON "bscf_core_users" ("phone_number") /*application='Dummy'*/[0m
|
722
|
-
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_virtual_accounts" CASCADE /*application='Dummy'*/[0m
|
723
|
-
[1m[35m (2.4ms)[0m [1m[35mCREATE TABLE "bscf_core_virtual_accounts" ("id" bigserial primary key, "user_id" bigint NOT NULL, "account_number" character varying NOT NULL, "cbs_account_number" character varying NOT NULL, "balance" decimal DEFAULT 0.0 NOT NULL, "interest_rate" decimal DEFAULT 0.0 NOT NULL, "interest_type" integer DEFAULT 0 NOT NULL, "active" boolean DEFAULT TRUE NOT NULL, "branch_code" character varying NOT NULL, "product_scheme" character varying NOT NULL, "voucher_type" character varying NOT NULL, "status" integer DEFAULT 0 NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
724
|
-
[1m[35m (0.6ms)[0m [1m[35mCREATE UNIQUE INDEX "index_bscf_core_virtual_accounts_on_account_number" ON "bscf_core_virtual_accounts" ("account_number") /*application='Dummy'*/[0m
|
725
|
-
[1m[35m (0.6ms)[0m [1m[35mCREATE INDEX "index_bscf_core_virtual_accounts_on_branch_code" ON "bscf_core_virtual_accounts" ("branch_code") /*application='Dummy'*/[0m
|
726
|
-
[1m[35m (0.7ms)[0m [1m[35mCREATE UNIQUE INDEX "index_bscf_core_virtual_accounts_on_cbs_account_number" ON "bscf_core_virtual_accounts" ("cbs_account_number") /*application='Dummy'*/[0m
|
727
|
-
[1m[35m (1.9ms)[0m [1m[35mCREATE INDEX "index_bscf_core_virtual_accounts_on_user_id_and_account_number" ON "bscf_core_virtual_accounts" ("user_id", "account_number") /*application='Dummy'*/[0m
|
728
|
-
[1m[35m (0.6ms)[0m [1m[35mCREATE INDEX "index_bscf_core_virtual_accounts_on_user_id" ON "bscf_core_virtual_accounts" ("user_id") /*application='Dummy'*/[0m
|
729
|
-
[1m[35m (1.9ms)[0m [1m[35mALTER TABLE "bscf_core_businesses" ADD CONSTRAINT "fk_rails_8d7490b82a"
|
730
|
-
FOREIGN KEY ("user_id")
|
731
|
-
REFERENCES "bscf_core_users" ("id")
|
732
|
-
/*application='Dummy'*/[0m
|
733
|
-
[1m[35m (0.9ms)[0m [1m[35mALTER TABLE "bscf_core_products" ADD CONSTRAINT "fk_rails_9b9f33fd91"
|
734
|
-
FOREIGN KEY ("category_id")
|
735
|
-
REFERENCES "bscf_core_categories" ("id")
|
736
|
-
/*application='Dummy'*/[0m
|
737
|
-
[1m[35m (0.7ms)[0m [1m[35mALTER TABLE "bscf_core_request_for_quotations" ADD CONSTRAINT "fk_rails_8ed521a71d"
|
738
|
-
FOREIGN KEY ("user_id")
|
739
|
-
REFERENCES "bscf_core_users" ("id")
|
740
|
-
/*application='Dummy'*/[0m
|
741
|
-
[1m[35m (1.0ms)[0m [1m[35mALTER TABLE "bscf_core_user_profiles" ADD CONSTRAINT "fk_rails_c5a3f5b460"
|
742
|
-
FOREIGN KEY ("address_id")
|
743
|
-
REFERENCES "bscf_core_addresses" ("id")
|
744
|
-
/*application='Dummy'*/[0m
|
745
|
-
[1m[35m (0.6ms)[0m [1m[35mALTER TABLE "bscf_core_user_profiles" ADD CONSTRAINT "fk_rails_76d657f1fb"
|
746
|
-
FOREIGN KEY ("user_id")
|
747
|
-
REFERENCES "bscf_core_users" ("id")
|
748
|
-
/*application='Dummy'*/[0m
|
749
|
-
[1m[35m (0.6ms)[0m [1m[35mALTER TABLE "bscf_core_user_profiles" ADD CONSTRAINT "fk_rails_96d9a7609e"
|
750
|
-
FOREIGN KEY ("verified_by_id")
|
751
|
-
REFERENCES "bscf_core_users" ("id")
|
752
|
-
/*application='Dummy'*/[0m
|
753
|
-
[1m[35m (0.8ms)[0m [1m[35mALTER TABLE "bscf_core_user_roles" ADD CONSTRAINT "fk_rails_d64b2985c7"
|
754
|
-
FOREIGN KEY ("role_id")
|
755
|
-
REFERENCES "bscf_core_roles" ("id")
|
756
|
-
/*application='Dummy'*/[0m
|
757
|
-
[1m[35m (1.2ms)[0m [1m[35mALTER TABLE "bscf_core_user_roles" ADD CONSTRAINT "fk_rails_71c0ff189b"
|
758
|
-
FOREIGN KEY ("user_id")
|
759
|
-
REFERENCES "bscf_core_users" ("id")
|
760
|
-
/*application='Dummy'*/[0m
|
761
|
-
[1m[35m (1.0ms)[0m [1m[35mALTER TABLE "bscf_core_virtual_accounts" ADD CONSTRAINT "fk_rails_062e0240bd"
|
762
|
-
FOREIGN KEY ("user_id")
|
763
|
-
REFERENCES "bscf_core_users" ("id")
|
764
|
-
/*application='Dummy'*/[0m
|
765
|
-
[1m[35m (1.8ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY) /*application='Dummy'*/[0m
|
766
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
767
|
-
[1m[35m (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (20250326115203) /*application='Dummy'*/[0m
|
768
|
-
[1m[35m (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES
|
769
|
-
(20250326112449),
|
770
|
-
(20250326105652),
|
771
|
-
(20250326103305),
|
772
|
-
(20250326085741),
|
773
|
-
(20250326084233),
|
774
|
-
(20250326081052),
|
775
|
-
(20250326080646),
|
776
|
-
(20250326075111),
|
777
|
-
(20250326065606); /*application='Dummy'*/[0m
|
778
|
-
[1m[35m (1.9ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
779
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.6ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
780
|
-
[1m[36mActiveRecord::InternalMetadata Create (0.4ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'development', '2025-03-26 11:57:49.867481', '2025-03-26 11:57:49.867485') RETURNING "key" /*application='Dummy'*/[0m
|
781
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
782
|
-
[1m[36mActiveRecord::InternalMetadata Update (0.3ms)[0m [1m[33mUPDATE "ar_internal_metadata" SET "value" = 'test', "updated_at" = '2025-03-26 11:57:49.871029' WHERE "ar_internal_metadata"."key" = 'environment' /*application='Dummy'*/[0m
|
783
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'schema_sha1' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
784
|
-
[1m[36mActiveRecord::InternalMetadata Create (0.3ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('schema_sha1', '726770b09c52816c4fe6ed5f072e97a0be203b3d', '2025-03-26 11:57:49.873995', '2025-03-26 11:57:49.873997') RETURNING "key" /*application='Dummy'*/[0m
|
785
|
-
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_try_advisory_lock(7136077842679658775) /*application='Dummy'*/[0m
|
786
|
-
[1m[36mActiveRecord::SchemaMigration Load (2.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
787
|
-
[1m[36mActiveRecord::InternalMetadata Load (1.5ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
788
|
-
Migrating to CreateBscfCoreRfqItems (20250326120613)
|
789
|
-
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mBEGIN /*application='Dummy'*/[0m
|
790
|
-
[1m[35m (18.6ms)[0m [1m[35mCREATE TABLE "bscf_core_rfq_items" ("id" bigserial primary key, "request_for_quotation_id" bigint NOT NULL, "product_id" bigint NOT NULL, "quantity" float NOT NULL, "notes" text, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL, CONSTRAINT "fk_rails_1b773f00c6"
|
791
|
-
FOREIGN KEY ("request_for_quotation_id")
|
792
|
-
REFERENCES "bscf_core_request_for_quotations" ("id")
|
793
|
-
, CONSTRAINT "fk_rails_1b2464a246"
|
794
|
-
FOREIGN KEY ("product_id")
|
795
|
-
REFERENCES "bscf_core_products" ("id")
|
796
|
-
) /*application='Dummy'*/[0m
|
797
|
-
[1m[35m (1.9ms)[0m [1m[35mCREATE INDEX "index_bscf_core_rfq_items_on_request_for_quotation_id" ON "bscf_core_rfq_items" ("request_for_quotation_id") /*application='Dummy'*/[0m
|
798
|
-
[1m[35m (1.3ms)[0m [1m[35mCREATE INDEX "index_bscf_core_rfq_items_on_product_id" ON "bscf_core_rfq_items" ("product_id") /*application='Dummy'*/[0m
|
799
|
-
[1m[36mActiveRecord::SchemaMigration Create (0.7ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ('20250326120613') RETURNING "version" /*application='Dummy'*/[0m
|
800
|
-
[1m[36mTRANSACTION (0.5ms)[0m [1m[35mCOMMIT /*application='Dummy'*/[0m
|
801
|
-
[1m[35m (0.6ms)[0m [1m[34mSELECT pg_advisory_unlock(7136077842679658775) /*application='Dummy'*/[0m
|
802
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
803
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
804
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
805
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
806
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
807
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
808
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
809
|
-
[1m[35mSQL (0.2ms)[0m [1m[35mSET search_path TO public /*application='Dummy'*/[0m
|
810
|
-
[1m[35m (157.5ms)[0m [1m[35mDROP DATABASE IF EXISTS "bscf_test" /*application='Dummy'*/[0m
|
811
|
-
[1m[35m (146.0ms)[0m [1m[35mCREATE DATABASE "bscf_test" ENCODING = 'unicode' /*application='Dummy'*/[0m
|
812
|
-
[1m[35mSQL (17.9ms)[0m [1m[35mCREATE EXTENSION IF NOT EXISTS "plpgsql" SCHEMA pg_catalog /*application='Dummy'*/[0m
|
813
|
-
[1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_addresses" CASCADE /*application='Dummy'*/[0m
|
814
|
-
[1m[35m (3.7ms)[0m [1m[35mCREATE TABLE "bscf_core_addresses" ("id" bigserial primary key, "city" character varying, "sub_city" character varying, "woreda" character varying, "latitude" character varying, "longitude" character varying, "house_number" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
815
|
-
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_businesses" CASCADE /*application='Dummy'*/[0m
|
816
|
-
[1m[35m (1.7ms)[0m [1m[35mCREATE TABLE "bscf_core_businesses" ("id" bigserial primary key, "user_id" bigint NOT NULL, "business_name" character varying NOT NULL, "tin_number" character varying NOT NULL, "business_type" integer DEFAULT 0 NOT NULL, "verified_at" timestamp(6), "verification_status" integer DEFAULT 0 NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
817
|
-
[1m[35m (0.6ms)[0m [1m[35mCREATE INDEX "index_bscf_core_businesses_on_user_id" ON "bscf_core_businesses" ("user_id") /*application='Dummy'*/[0m
|
818
|
-
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_categories" CASCADE /*application='Dummy'*/[0m
|
819
|
-
[1m[35m (1.7ms)[0m [1m[35mCREATE TABLE "bscf_core_categories" ("id" bigserial primary key, "name" character varying NOT NULL, "description" character varying NOT NULL, "parent_id" bigint, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
820
|
-
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_products" CASCADE /*application='Dummy'*/[0m
|
821
|
-
[1m[35m (1.8ms)[0m [1m[35mCREATE TABLE "bscf_core_products" ("id" bigserial primary key, "sku" character varying NOT NULL, "name" character varying NOT NULL, "description" character varying NOT NULL, "category_id" bigint NOT NULL, "base_price" decimal DEFAULT 0.0 NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
822
|
-
[1m[35m (0.8ms)[0m [1m[35mCREATE INDEX "index_bscf_core_products_on_category_id" ON "bscf_core_products" ("category_id") /*application='Dummy'*/[0m
|
823
|
-
[1m[35m (0.6ms)[0m [1m[35mCREATE UNIQUE INDEX "index_bscf_core_products_on_sku" ON "bscf_core_products" ("sku") /*application='Dummy'*/[0m
|
824
|
-
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_request_for_quotations" CASCADE /*application='Dummy'*/[0m
|
825
|
-
[1m[35m (1.5ms)[0m [1m[35mCREATE TABLE "bscf_core_request_for_quotations" ("id" bigserial primary key, "user_id" bigint NOT NULL, "status" integer DEFAULT 0 NOT NULL, "notes" text, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
826
|
-
[1m[35m (0.6ms)[0m [1m[35mCREATE INDEX "index_bscf_core_request_for_quotations_on_user_id" ON "bscf_core_request_for_quotations" ("user_id") /*application='Dummy'*/[0m
|
827
|
-
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_rfq_items" CASCADE /*application='Dummy'*/[0m
|
828
|
-
[1m[35m (1.6ms)[0m [1m[35mCREATE TABLE "bscf_core_rfq_items" ("id" bigserial primary key, "request_for_quotation_id" bigint NOT NULL, "product_id" bigint NOT NULL, "quantity" float NOT NULL, "notes" text, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
829
|
-
[1m[35m (0.9ms)[0m [1m[35mCREATE INDEX "index_bscf_core_rfq_items_on_product_id" ON "bscf_core_rfq_items" ("product_id") /*application='Dummy'*/[0m
|
830
|
-
[1m[35m (0.6ms)[0m [1m[35mCREATE INDEX "index_bscf_core_rfq_items_on_request_for_quotation_id" ON "bscf_core_rfq_items" ("request_for_quotation_id") /*application='Dummy'*/[0m
|
831
|
-
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_roles" CASCADE /*application='Dummy'*/[0m
|
832
|
-
[1m[35m (1.8ms)[0m [1m[35mCREATE TABLE "bscf_core_roles" ("id" bigserial primary key, "name" character varying NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
833
|
-
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_user_profiles" CASCADE /*application='Dummy'*/[0m
|
834
|
-
[1m[35m (1.9ms)[0m [1m[35mCREATE TABLE "bscf_core_user_profiles" ("id" bigserial primary key, "user_id" bigint NOT NULL, "date_of_birth" date NOT NULL, "nationality" character varying NOT NULL, "occupation" character varying NOT NULL, "source_of_funds" character varying NOT NULL, "kyc_status" integer DEFAULT 0, "gender" integer NOT NULL, "verified_at" timestamp(6), "verified_by_id" bigint, "address_id" bigint NOT NULL, "fayda_id" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
835
|
-
[1m[35m (0.7ms)[0m [1m[35mCREATE INDEX "index_bscf_core_user_profiles_on_address_id" ON "bscf_core_user_profiles" ("address_id") /*application='Dummy'*/[0m
|
836
|
-
[1m[35m (0.6ms)[0m [1m[35mCREATE INDEX "index_bscf_core_user_profiles_on_user_id" ON "bscf_core_user_profiles" ("user_id") /*application='Dummy'*/[0m
|
837
|
-
[1m[35m (0.6ms)[0m [1m[35mCREATE INDEX "index_bscf_core_user_profiles_on_verified_by_id" ON "bscf_core_user_profiles" ("verified_by_id") /*application='Dummy'*/[0m
|
838
|
-
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_user_roles" CASCADE /*application='Dummy'*/[0m
|
839
|
-
[1m[35m (1.1ms)[0m [1m[35mCREATE TABLE "bscf_core_user_roles" ("id" bigserial primary key, "user_id" bigint NOT NULL, "role_id" bigint NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
840
|
-
[1m[35m (0.8ms)[0m [1m[35mCREATE INDEX "index_bscf_core_user_roles_on_role_id" ON "bscf_core_user_roles" ("role_id") /*application='Dummy'*/[0m
|
841
|
-
[1m[35m (0.8ms)[0m [1m[35mCREATE INDEX "index_bscf_core_user_roles_on_user_id" ON "bscf_core_user_roles" ("user_id") /*application='Dummy'*/[0m
|
842
|
-
[1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_users" CASCADE /*application='Dummy'*/[0m
|
843
|
-
[1m[35m (1.7ms)[0m [1m[35mCREATE TABLE "bscf_core_users" ("id" bigserial primary key, "first_name" character varying NOT NULL, "middle_name" character varying NOT NULL, "last_name" character varying NOT NULL, "email" character varying NOT NULL, "phone_number" character varying NOT NULL, "password_digest" character varying NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
844
|
-
[1m[35m (0.7ms)[0m [1m[35mCREATE UNIQUE INDEX "index_bscf_core_users_on_email" ON "bscf_core_users" ("email") /*application='Dummy'*/[0m
|
845
|
-
[1m[35m (0.7ms)[0m [1m[35mCREATE UNIQUE INDEX "index_bscf_core_users_on_phone_number" ON "bscf_core_users" ("phone_number") /*application='Dummy'*/[0m
|
846
|
-
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_virtual_accounts" CASCADE /*application='Dummy'*/[0m
|
847
|
-
[1m[35m (2.3ms)[0m [1m[35mCREATE TABLE "bscf_core_virtual_accounts" ("id" bigserial primary key, "user_id" bigint NOT NULL, "account_number" character varying NOT NULL, "cbs_account_number" character varying NOT NULL, "balance" decimal DEFAULT 0.0 NOT NULL, "interest_rate" decimal DEFAULT 0.0 NOT NULL, "interest_type" integer DEFAULT 0 NOT NULL, "active" boolean DEFAULT TRUE NOT NULL, "branch_code" character varying NOT NULL, "product_scheme" character varying NOT NULL, "voucher_type" character varying NOT NULL, "status" integer DEFAULT 0 NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
848
|
-
[1m[35m (0.7ms)[0m [1m[35mCREATE UNIQUE INDEX "index_bscf_core_virtual_accounts_on_account_number" ON "bscf_core_virtual_accounts" ("account_number") /*application='Dummy'*/[0m
|
849
|
-
[1m[35m (0.6ms)[0m [1m[35mCREATE INDEX "index_bscf_core_virtual_accounts_on_branch_code" ON "bscf_core_virtual_accounts" ("branch_code") /*application='Dummy'*/[0m
|
850
|
-
[1m[35m (0.6ms)[0m [1m[35mCREATE UNIQUE INDEX "index_bscf_core_virtual_accounts_on_cbs_account_number" ON "bscf_core_virtual_accounts" ("cbs_account_number") /*application='Dummy'*/[0m
|
851
|
-
[1m[35m (0.8ms)[0m [1m[35mCREATE INDEX "index_bscf_core_virtual_accounts_on_user_id_and_account_number" ON "bscf_core_virtual_accounts" ("user_id", "account_number") /*application='Dummy'*/[0m
|
852
|
-
[1m[35m (0.7ms)[0m [1m[35mCREATE INDEX "index_bscf_core_virtual_accounts_on_user_id" ON "bscf_core_virtual_accounts" ("user_id") /*application='Dummy'*/[0m
|
853
|
-
[1m[35m (2.0ms)[0m [1m[35mALTER TABLE "bscf_core_businesses" ADD CONSTRAINT "fk_rails_8d7490b82a"
|
854
|
-
FOREIGN KEY ("user_id")
|
855
|
-
REFERENCES "bscf_core_users" ("id")
|
856
|
-
/*application='Dummy'*/[0m
|
857
|
-
[1m[35m (1.1ms)[0m [1m[35mALTER TABLE "bscf_core_products" ADD CONSTRAINT "fk_rails_9b9f33fd91"
|
858
|
-
FOREIGN KEY ("category_id")
|
859
|
-
REFERENCES "bscf_core_categories" ("id")
|
860
|
-
/*application='Dummy'*/[0m
|
861
|
-
[1m[35m (0.7ms)[0m [1m[35mALTER TABLE "bscf_core_request_for_quotations" ADD CONSTRAINT "fk_rails_8ed521a71d"
|
862
|
-
FOREIGN KEY ("user_id")
|
863
|
-
REFERENCES "bscf_core_users" ("id")
|
864
|
-
/*application='Dummy'*/[0m
|
865
|
-
[1m[35m (0.8ms)[0m [1m[35mALTER TABLE "bscf_core_rfq_items" ADD CONSTRAINT "fk_rails_1b2464a246"
|
866
|
-
FOREIGN KEY ("product_id")
|
867
|
-
REFERENCES "bscf_core_products" ("id")
|
868
|
-
/*application='Dummy'*/[0m
|
869
|
-
[1m[35m (0.8ms)[0m [1m[35mALTER TABLE "bscf_core_rfq_items" ADD CONSTRAINT "fk_rails_1b773f00c6"
|
870
|
-
FOREIGN KEY ("request_for_quotation_id")
|
871
|
-
REFERENCES "bscf_core_request_for_quotations" ("id")
|
872
|
-
/*application='Dummy'*/[0m
|
873
|
-
[1m[35m (0.9ms)[0m [1m[35mALTER TABLE "bscf_core_user_profiles" ADD CONSTRAINT "fk_rails_c5a3f5b460"
|
874
|
-
FOREIGN KEY ("address_id")
|
875
|
-
REFERENCES "bscf_core_addresses" ("id")
|
876
|
-
/*application='Dummy'*/[0m
|
877
|
-
[1m[35m (0.7ms)[0m [1m[35mALTER TABLE "bscf_core_user_profiles" ADD CONSTRAINT "fk_rails_76d657f1fb"
|
878
|
-
FOREIGN KEY ("user_id")
|
879
|
-
REFERENCES "bscf_core_users" ("id")
|
880
|
-
/*application='Dummy'*/[0m
|
881
|
-
[1m[35m (0.7ms)[0m [1m[35mALTER TABLE "bscf_core_user_profiles" ADD CONSTRAINT "fk_rails_96d9a7609e"
|
882
|
-
FOREIGN KEY ("verified_by_id")
|
883
|
-
REFERENCES "bscf_core_users" ("id")
|
884
|
-
/*application='Dummy'*/[0m
|
885
|
-
[1m[35m (1.1ms)[0m [1m[35mALTER TABLE "bscf_core_user_roles" ADD CONSTRAINT "fk_rails_d64b2985c7"
|
886
|
-
FOREIGN KEY ("role_id")
|
887
|
-
REFERENCES "bscf_core_roles" ("id")
|
888
|
-
/*application='Dummy'*/[0m
|
889
|
-
[1m[35m (0.6ms)[0m [1m[35mALTER TABLE "bscf_core_user_roles" ADD CONSTRAINT "fk_rails_71c0ff189b"
|
890
|
-
FOREIGN KEY ("user_id")
|
891
|
-
REFERENCES "bscf_core_users" ("id")
|
892
|
-
/*application='Dummy'*/[0m
|
893
|
-
[1m[35m (0.9ms)[0m [1m[35mALTER TABLE "bscf_core_virtual_accounts" ADD CONSTRAINT "fk_rails_062e0240bd"
|
894
|
-
FOREIGN KEY ("user_id")
|
895
|
-
REFERENCES "bscf_core_users" ("id")
|
896
|
-
/*application='Dummy'*/[0m
|
897
|
-
[1m[35m (2.0ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY) /*application='Dummy'*/[0m
|
898
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
899
|
-
[1m[35m (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (20250326120613) /*application='Dummy'*/[0m
|
900
|
-
[1m[35m (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES
|
901
|
-
(20250326115203),
|
902
|
-
(20250326112449),
|
903
|
-
(20250326105652),
|
904
|
-
(20250326103305),
|
905
|
-
(20250326085741),
|
906
|
-
(20250326084233),
|
907
|
-
(20250326081052),
|
908
|
-
(20250326080646),
|
909
|
-
(20250326075111),
|
910
|
-
(20250326065606); /*application='Dummy'*/[0m
|
911
|
-
[1m[35m (1.9ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
912
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.6ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
913
|
-
[1m[36mActiveRecord::InternalMetadata Create (0.4ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'development', '2025-03-26 12:10:55.278630', '2025-03-26 12:10:55.278634') RETURNING "key" /*application='Dummy'*/[0m
|
914
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
915
|
-
[1m[36mActiveRecord::InternalMetadata Update (0.3ms)[0m [1m[33mUPDATE "ar_internal_metadata" SET "value" = 'test', "updated_at" = '2025-03-26 12:10:55.282356' WHERE "ar_internal_metadata"."key" = 'environment' /*application='Dummy'*/[0m
|
916
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'schema_sha1' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
917
|
-
[1m[36mActiveRecord::InternalMetadata Create (0.3ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('schema_sha1', '8a45fe0bd68bf3463c49abe73e6f37e8f5634eb3', '2025-03-26 12:10:55.285073', '2025-03-26 12:10:55.285075') RETURNING "key" /*application='Dummy'*/[0m
|
918
|
-
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_try_advisory_lock(7136077842679658775) /*application='Dummy'*/[0m
|
919
|
-
[1m[36mActiveRecord::SchemaMigration Load (2.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
920
|
-
[1m[36mActiveRecord::InternalMetadata Load (1.4ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
921
|
-
[1m[35m (0.6ms)[0m [1m[34mSELECT pg_advisory_unlock(7136077842679658775) /*application='Dummy'*/[0m
|
922
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
923
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
924
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.3ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
925
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
926
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.3ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
927
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
928
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.3ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
929
|
-
[1m[35mSQL (0.1ms)[0m [1m[35mSET search_path TO public /*application='Dummy'*/[0m
|
930
|
-
[1m[35m (110.8ms)[0m [1m[35mDROP DATABASE IF EXISTS "bscf_test" /*application='Dummy'*/[0m
|
931
|
-
[1m[35m (295.1ms)[0m [1m[35mCREATE DATABASE "bscf_test" ENCODING = 'unicode' /*application='Dummy'*/[0m
|
932
|
-
[1m[35mSQL (22.9ms)[0m [1m[35mCREATE EXTENSION IF NOT EXISTS "plpgsql" SCHEMA pg_catalog /*application='Dummy'*/[0m
|
933
|
-
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_addresses" CASCADE /*application='Dummy'*/[0m
|
934
|
-
[1m[35m (5.9ms)[0m [1m[35mCREATE TABLE "bscf_core_addresses" ("id" bigserial primary key, "city" character varying, "sub_city" character varying, "woreda" character varying, "latitude" character varying, "longitude" character varying, "house_number" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
935
|
-
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_businesses" CASCADE /*application='Dummy'*/[0m
|
936
|
-
[1m[35m (3.6ms)[0m [1m[35mCREATE TABLE "bscf_core_businesses" ("id" bigserial primary key, "user_id" bigint NOT NULL, "business_name" character varying NOT NULL, "tin_number" character varying NOT NULL, "business_type" integer DEFAULT 0 NOT NULL, "verified_at" timestamp(6), "verification_status" integer DEFAULT 0 NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
937
|
-
[1m[35m (1.0ms)[0m [1m[35mCREATE INDEX "index_bscf_core_businesses_on_user_id" ON "bscf_core_businesses" ("user_id") /*application='Dummy'*/[0m
|
938
|
-
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_categories" CASCADE /*application='Dummy'*/[0m
|
939
|
-
[1m[35m (2.9ms)[0m [1m[35mCREATE TABLE "bscf_core_categories" ("id" bigserial primary key, "name" character varying NOT NULL, "description" character varying NOT NULL, "parent_id" bigint, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
940
|
-
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_products" CASCADE /*application='Dummy'*/[0m
|
941
|
-
[1m[35m (3.6ms)[0m [1m[35mCREATE TABLE "bscf_core_products" ("id" bigserial primary key, "sku" character varying NOT NULL, "name" character varying NOT NULL, "description" character varying NOT NULL, "category_id" bigint NOT NULL, "base_price" decimal DEFAULT 0.0 NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
942
|
-
[1m[35m (0.8ms)[0m [1m[35mCREATE INDEX "index_bscf_core_products_on_category_id" ON "bscf_core_products" ("category_id") /*application='Dummy'*/[0m
|
943
|
-
[1m[35m (1.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_bscf_core_products_on_sku" ON "bscf_core_products" ("sku") /*application='Dummy'*/[0m
|
944
|
-
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_request_for_quotations" CASCADE /*application='Dummy'*/[0m
|
945
|
-
[1m[35m (3.6ms)[0m [1m[35mCREATE TABLE "bscf_core_request_for_quotations" ("id" bigserial primary key, "user_id" bigint NOT NULL, "status" integer DEFAULT 0 NOT NULL, "notes" text, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
946
|
-
[1m[35m (1.2ms)[0m [1m[35mCREATE INDEX "index_bscf_core_request_for_quotations_on_user_id" ON "bscf_core_request_for_quotations" ("user_id") /*application='Dummy'*/[0m
|
947
|
-
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_rfq_items" CASCADE /*application='Dummy'*/[0m
|
948
|
-
[1m[35m (3.8ms)[0m [1m[35mCREATE TABLE "bscf_core_rfq_items" ("id" bigserial primary key, "request_for_quotation_id" bigint NOT NULL, "product_id" bigint NOT NULL, "quantity" float NOT NULL, "notes" text, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
949
|
-
[1m[35m (1.6ms)[0m [1m[35mCREATE INDEX "index_bscf_core_rfq_items_on_product_id" ON "bscf_core_rfq_items" ("product_id") /*application='Dummy'*/[0m
|
950
|
-
[1m[35m (1.1ms)[0m [1m[35mCREATE INDEX "index_bscf_core_rfq_items_on_request_for_quotation_id" ON "bscf_core_rfq_items" ("request_for_quotation_id") /*application='Dummy'*/[0m
|
951
|
-
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_roles" CASCADE /*application='Dummy'*/[0m
|
952
|
-
[1m[35m (3.8ms)[0m [1m[35mCREATE TABLE "bscf_core_roles" ("id" bigserial primary key, "name" character varying NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
953
|
-
[1m[35m (0.5ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_user_profiles" CASCADE /*application='Dummy'*/[0m
|
954
|
-
[1m[35m (3.9ms)[0m [1m[35mCREATE TABLE "bscf_core_user_profiles" ("id" bigserial primary key, "user_id" bigint NOT NULL, "date_of_birth" date NOT NULL, "nationality" character varying NOT NULL, "occupation" character varying NOT NULL, "source_of_funds" character varying NOT NULL, "kyc_status" integer DEFAULT 0, "gender" integer NOT NULL, "verified_at" timestamp(6), "verified_by_id" bigint, "address_id" bigint NOT NULL, "fayda_id" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
955
|
-
[1m[35m (1.1ms)[0m [1m[35mCREATE INDEX "index_bscf_core_user_profiles_on_address_id" ON "bscf_core_user_profiles" ("address_id") /*application='Dummy'*/[0m
|
956
|
-
[1m[35m (1.2ms)[0m [1m[35mCREATE INDEX "index_bscf_core_user_profiles_on_user_id" ON "bscf_core_user_profiles" ("user_id") /*application='Dummy'*/[0m
|
957
|
-
[1m[35m (1.1ms)[0m [1m[35mCREATE INDEX "index_bscf_core_user_profiles_on_verified_by_id" ON "bscf_core_user_profiles" ("verified_by_id") /*application='Dummy'*/[0m
|
958
|
-
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_user_roles" CASCADE /*application='Dummy'*/[0m
|
959
|
-
[1m[35m (2.9ms)[0m [1m[35mCREATE TABLE "bscf_core_user_roles" ("id" bigserial primary key, "user_id" bigint NOT NULL, "role_id" bigint NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
960
|
-
[1m[35m (1.5ms)[0m [1m[35mCREATE INDEX "index_bscf_core_user_roles_on_role_id" ON "bscf_core_user_roles" ("role_id") /*application='Dummy'*/[0m
|
961
|
-
[1m[35m (1.4ms)[0m [1m[35mCREATE INDEX "index_bscf_core_user_roles_on_user_id" ON "bscf_core_user_roles" ("user_id") /*application='Dummy'*/[0m
|
962
|
-
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_users" CASCADE /*application='Dummy'*/[0m
|
963
|
-
[1m[35m (6.1ms)[0m [1m[35mCREATE TABLE "bscf_core_users" ("id" bigserial primary key, "first_name" character varying NOT NULL, "middle_name" character varying NOT NULL, "last_name" character varying NOT NULL, "email" character varying NOT NULL, "phone_number" character varying NOT NULL, "password_digest" character varying NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
964
|
-
[1m[35m (1.6ms)[0m [1m[35mCREATE UNIQUE INDEX "index_bscf_core_users_on_email" ON "bscf_core_users" ("email") /*application='Dummy'*/[0m
|
965
|
-
[1m[35m (1.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_bscf_core_users_on_phone_number" ON "bscf_core_users" ("phone_number") /*application='Dummy'*/[0m
|
966
|
-
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_virtual_accounts" CASCADE /*application='Dummy'*/[0m
|
967
|
-
[1m[35m (7.1ms)[0m [1m[35mCREATE TABLE "bscf_core_virtual_accounts" ("id" bigserial primary key, "user_id" bigint NOT NULL, "account_number" character varying NOT NULL, "cbs_account_number" character varying NOT NULL, "balance" decimal DEFAULT 0.0 NOT NULL, "interest_rate" decimal DEFAULT 0.0 NOT NULL, "interest_type" integer DEFAULT 0 NOT NULL, "active" boolean DEFAULT TRUE NOT NULL, "branch_code" character varying NOT NULL, "product_scheme" character varying NOT NULL, "voucher_type" character varying NOT NULL, "status" integer DEFAULT 0 NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
968
|
-
[1m[35m (1.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_bscf_core_virtual_accounts_on_account_number" ON "bscf_core_virtual_accounts" ("account_number") /*application='Dummy'*/[0m
|
969
|
-
[1m[35m (1.1ms)[0m [1m[35mCREATE INDEX "index_bscf_core_virtual_accounts_on_branch_code" ON "bscf_core_virtual_accounts" ("branch_code") /*application='Dummy'*/[0m
|
970
|
-
[1m[35m (1.5ms)[0m [1m[35mCREATE UNIQUE INDEX "index_bscf_core_virtual_accounts_on_cbs_account_number" ON "bscf_core_virtual_accounts" ("cbs_account_number") /*application='Dummy'*/[0m
|
971
|
-
[1m[35m (1.6ms)[0m [1m[35mCREATE INDEX "index_bscf_core_virtual_accounts_on_user_id_and_account_number" ON "bscf_core_virtual_accounts" ("user_id", "account_number") /*application='Dummy'*/[0m
|
972
|
-
[1m[35m (2.1ms)[0m [1m[35mCREATE INDEX "index_bscf_core_virtual_accounts_on_user_id" ON "bscf_core_virtual_accounts" ("user_id") /*application='Dummy'*/[0m
|
973
|
-
[1m[35m (5.0ms)[0m [1m[35mALTER TABLE "bscf_core_businesses" ADD CONSTRAINT "fk_rails_8d7490b82a"
|
974
|
-
FOREIGN KEY ("user_id")
|
975
|
-
REFERENCES "bscf_core_users" ("id")
|
976
|
-
/*application='Dummy'*/[0m
|
977
|
-
[1m[35m (2.4ms)[0m [1m[35mALTER TABLE "bscf_core_products" ADD CONSTRAINT "fk_rails_9b9f33fd91"
|
978
|
-
FOREIGN KEY ("category_id")
|
979
|
-
REFERENCES "bscf_core_categories" ("id")
|
980
|
-
/*application='Dummy'*/[0m
|
981
|
-
[1m[35m (1.8ms)[0m [1m[35mALTER TABLE "bscf_core_request_for_quotations" ADD CONSTRAINT "fk_rails_8ed521a71d"
|
982
|
-
FOREIGN KEY ("user_id")
|
983
|
-
REFERENCES "bscf_core_users" ("id")
|
984
|
-
/*application='Dummy'*/[0m
|
985
|
-
[1m[35m (2.0ms)[0m [1m[35mALTER TABLE "bscf_core_rfq_items" ADD CONSTRAINT "fk_rails_1b2464a246"
|
986
|
-
FOREIGN KEY ("product_id")
|
987
|
-
REFERENCES "bscf_core_products" ("id")
|
988
|
-
/*application='Dummy'*/[0m
|
989
|
-
[1m[35m (1.7ms)[0m [1m[35mALTER TABLE "bscf_core_rfq_items" ADD CONSTRAINT "fk_rails_1b773f00c6"
|
990
|
-
FOREIGN KEY ("request_for_quotation_id")
|
991
|
-
REFERENCES "bscf_core_request_for_quotations" ("id")
|
992
|
-
/*application='Dummy'*/[0m
|
993
|
-
[1m[35m (2.2ms)[0m [1m[35mALTER TABLE "bscf_core_user_profiles" ADD CONSTRAINT "fk_rails_c5a3f5b460"
|
994
|
-
FOREIGN KEY ("address_id")
|
995
|
-
REFERENCES "bscf_core_addresses" ("id")
|
996
|
-
/*application='Dummy'*/[0m
|
997
|
-
[1m[35m (1.6ms)[0m [1m[35mALTER TABLE "bscf_core_user_profiles" ADD CONSTRAINT "fk_rails_76d657f1fb"
|
998
|
-
FOREIGN KEY ("user_id")
|
999
|
-
REFERENCES "bscf_core_users" ("id")
|
1000
|
-
/*application='Dummy'*/[0m
|
1001
|
-
[1m[35m (1.5ms)[0m [1m[35mALTER TABLE "bscf_core_user_profiles" ADD CONSTRAINT "fk_rails_96d9a7609e"
|
1002
|
-
FOREIGN KEY ("verified_by_id")
|
1003
|
-
REFERENCES "bscf_core_users" ("id")
|
1004
|
-
/*application='Dummy'*/[0m
|
1005
|
-
[1m[35m (2.1ms)[0m [1m[35mALTER TABLE "bscf_core_user_roles" ADD CONSTRAINT "fk_rails_d64b2985c7"
|
1006
|
-
FOREIGN KEY ("role_id")
|
1007
|
-
REFERENCES "bscf_core_roles" ("id")
|
1008
|
-
/*application='Dummy'*/[0m
|
1009
|
-
[1m[35m (1.4ms)[0m [1m[35mALTER TABLE "bscf_core_user_roles" ADD CONSTRAINT "fk_rails_71c0ff189b"
|
1010
|
-
FOREIGN KEY ("user_id")
|
1011
|
-
REFERENCES "bscf_core_users" ("id")
|
1012
|
-
/*application='Dummy'*/[0m
|
1013
|
-
[1m[35m (2.3ms)[0m [1m[35mALTER TABLE "bscf_core_virtual_accounts" ADD CONSTRAINT "fk_rails_062e0240bd"
|
1014
|
-
FOREIGN KEY ("user_id")
|
1015
|
-
REFERENCES "bscf_core_users" ("id")
|
1016
|
-
/*application='Dummy'*/[0m
|
1017
|
-
[1m[35m (5.1ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY) /*application='Dummy'*/[0m
|
1018
|
-
[1m[36mActiveRecord::SchemaMigration Load (1.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
1019
|
-
[1m[35m (0.7ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (20250326120613) /*application='Dummy'*/[0m
|
1020
|
-
[1m[35m (0.5ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES
|
1021
|
-
(20250326115203),
|
1022
|
-
(20250326112449),
|
1023
|
-
(20250326105652),
|
1024
|
-
(20250326103305),
|
1025
|
-
(20250326085741),
|
1026
|
-
(20250326084233),
|
1027
|
-
(20250326081052),
|
1028
|
-
(20250326080646),
|
1029
|
-
(20250326075111),
|
1030
|
-
(20250326065606); /*application='Dummy'*/[0m
|
1031
|
-
[1m[35m (4.9ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
1032
|
-
[1m[36mActiveRecord::InternalMetadata Load (1.0ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
1033
|
-
[1m[36mActiveRecord::InternalMetadata Create (0.7ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'development', '2025-03-26 13:26:42.324200', '2025-03-26 13:26:42.324207') RETURNING "key" /*application='Dummy'*/[0m
|
1034
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.3ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
1035
|
-
[1m[36mActiveRecord::InternalMetadata Update (0.6ms)[0m [1m[33mUPDATE "ar_internal_metadata" SET "value" = 'test', "updated_at" = '2025-03-26 13:26:42.329163' WHERE "ar_internal_metadata"."key" = 'environment' /*application='Dummy'*/[0m
|
1036
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.3ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'schema_sha1' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
1037
|
-
[1m[36mActiveRecord::InternalMetadata Create (0.4ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('schema_sha1', '8a45fe0bd68bf3463c49abe73e6f37e8f5634eb3', '2025-03-26 13:26:42.332705', '2025-03-26 13:26:42.332708') RETURNING "key" /*application='Dummy'*/[0m
|
1038
|
-
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_try_advisory_lock(7136077842679658775) /*application='Dummy'*/[0m
|
1039
|
-
[1m[36mActiveRecord::SchemaMigration Load (2.5ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
1040
|
-
[1m[36mActiveRecord::InternalMetadata Load (2.1ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
1041
|
-
Migrating to CreateBscfCoreBscfCoreVirtualAccountTransactions (20250326121246)
|
1042
|
-
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mBEGIN /*application='Dummy'*/[0m
|
1043
|
-
[1m[35m (14.3ms)[0m [1m[35mCREATE TABLE "bscf_core_virtual_account_transactions" ("id" bigserial primary key, "from_account_id" bigint NOT NULL, "to_account_id" bigint NOT NULL, "amount" decimal NOT NULL, "transaction_type" integer NOT NULL, "status" integer DEFAULT 0 NOT NULL, "reference_number" character varying NOT NULL, "description" text, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL, CONSTRAINT "fk_rails_7dc2e329f8"
|
1044
|
-
FOREIGN KEY ("from_account_id")
|
1045
|
-
REFERENCES "bscf_core_virtual_accounts" ("id")
|
1046
|
-
, CONSTRAINT "fk_rails_fc01221ed7"
|
1047
|
-
FOREIGN KEY ("to_account_id")
|
1048
|
-
REFERENCES "bscf_core_virtual_accounts" ("id")
|
1049
|
-
) /*application='Dummy'*/[0m
|
1050
|
-
[1m[35m (1.8ms)[0m [1m[35mCREATE INDEX "idx_on_from_account_id_643ea7341d" ON "bscf_core_virtual_account_transactions" ("from_account_id") /*application='Dummy'*/[0m
|
1051
|
-
[1m[35m (1.9ms)[0m [1m[35mCREATE INDEX "index_bscf_core_virtual_account_transactions_on_to_account_id" ON "bscf_core_virtual_account_transactions" ("to_account_id") /*application='Dummy'*/[0m
|
1052
|
-
[1m[35m (1.1ms)[0m [1m[35mCREATE UNIQUE INDEX "idx_on_reference_number_9aa4ea6333" ON "bscf_core_virtual_account_transactions" ("reference_number") /*application='Dummy'*/[0m
|
1053
|
-
[1m[35m (0.8ms)[0m [1m[35mCREATE INDEX "idx_on_from_account_id_reference_number_ecc8e65d8f" ON "bscf_core_virtual_account_transactions" ("from_account_id", "reference_number") /*application='Dummy'*/[0m
|
1054
|
-
[1m[35m (0.7ms)[0m [1m[35mCREATE INDEX "idx_on_to_account_id_reference_number_6f4048491d" ON "bscf_core_virtual_account_transactions" ("to_account_id", "reference_number") /*application='Dummy'*/[0m
|
1055
|
-
[1m[36mActiveRecord::SchemaMigration Create (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ('20250326121246') RETURNING "version" /*application='Dummy'*/[0m
|
1056
|
-
[1m[36mTRANSACTION (0.4ms)[0m [1m[35mCOMMIT /*application='Dummy'*/[0m
|
1057
|
-
Migrating to CreateBscfCoreQuotations (20250327041651)
|
1058
|
-
[1m[36mTRANSACTION (0.3ms)[0m [1m[35mBEGIN /*application='Dummy'*/[0m
|
1059
|
-
[1m[35m (7.6ms)[0m [1m[35mCREATE TABLE "bscf_core_quotations" ("id" bigserial primary key, "request_for_quotation_id" bigint NOT NULL, "business_id" bigint NOT NULL, "price" decimal NOT NULL, "delivery_date" date NOT NULL, "valid_until" timestamp(6) NOT NULL, "status" integer DEFAULT 0 NOT NULL, "notes" text, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL, CONSTRAINT "fk_rails_118cd93fd7"
|
1060
|
-
FOREIGN KEY ("request_for_quotation_id")
|
1061
|
-
REFERENCES "bscf_core_request_for_quotations" ("id")
|
1062
|
-
, CONSTRAINT "fk_rails_5099683ac1"
|
1063
|
-
FOREIGN KEY ("business_id")
|
1064
|
-
REFERENCES "bscf_core_businesses" ("id")
|
1065
|
-
) /*application='Dummy'*/[0m
|
1066
|
-
[1m[35m (2.1ms)[0m [1m[35mCREATE INDEX "index_bscf_core_quotations_on_request_for_quotation_id" ON "bscf_core_quotations" ("request_for_quotation_id") /*application='Dummy'*/[0m
|
1067
|
-
[1m[35m (1.4ms)[0m [1m[35mCREATE INDEX "index_bscf_core_quotations_on_business_id" ON "bscf_core_quotations" ("business_id") /*application='Dummy'*/[0m
|
1068
|
-
[1m[36mActiveRecord::SchemaMigration Create (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ('20250327041651') RETURNING "version" /*application='Dummy'*/[0m
|
1069
|
-
[1m[36mTRANSACTION (0.2ms)[0m [1m[35mCOMMIT /*application='Dummy'*/[0m
|
1070
|
-
Migrating to CreateBscfCoreQuotationItems (20250327044020)
|
1071
|
-
[1m[36mTRANSACTION (0.4ms)[0m [1m[35mBEGIN /*application='Dummy'*/[0m
|
1072
|
-
[1m[35m (13.1ms)[0m [1m[35mCREATE TABLE "bscf_core_quotation_items" ("id" bigserial primary key, "quotation_id" bigint NOT NULL, "rfq_item_id" bigint NOT NULL, "product_id" bigint NOT NULL, "quantity" integer NOT NULL, "unit_price" decimal NOT NULL, "unit" integer NOT NULL, "subtotal" decimal NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL, CONSTRAINT "fk_rails_0f1ff137cd"
|
1073
|
-
FOREIGN KEY ("quotation_id")
|
1074
|
-
REFERENCES "bscf_core_quotations" ("id")
|
1075
|
-
, CONSTRAINT "fk_rails_54b38baf27"
|
1076
|
-
FOREIGN KEY ("rfq_item_id")
|
1077
|
-
REFERENCES "bscf_core_rfq_items" ("id")
|
1078
|
-
, CONSTRAINT "fk_rails_b58f3b1bfb"
|
1079
|
-
FOREIGN KEY ("product_id")
|
1080
|
-
REFERENCES "bscf_core_products" ("id")
|
1081
|
-
) /*application='Dummy'*/[0m
|
1082
|
-
[1m[35m (1.4ms)[0m [1m[35mCREATE INDEX "index_bscf_core_quotation_items_on_quotation_id" ON "bscf_core_quotation_items" ("quotation_id") /*application='Dummy'*/[0m
|
1083
|
-
[1m[35m (1.0ms)[0m [1m[35mCREATE INDEX "index_bscf_core_quotation_items_on_rfq_item_id" ON "bscf_core_quotation_items" ("rfq_item_id") /*application='Dummy'*/[0m
|
1084
|
-
[1m[35m (1.0ms)[0m [1m[35mCREATE INDEX "index_bscf_core_quotation_items_on_product_id" ON "bscf_core_quotation_items" ("product_id") /*application='Dummy'*/[0m
|
1085
|
-
[1m[36mActiveRecord::SchemaMigration Create (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ('20250327044020') RETURNING "version" /*application='Dummy'*/[0m
|
1086
|
-
[1m[36mTRANSACTION (0.5ms)[0m [1m[35mCOMMIT /*application='Dummy'*/[0m
|
1087
|
-
[1m[35m (0.6ms)[0m [1m[34mSELECT pg_advisory_unlock(7136077842679658775) /*application='Dummy'*/[0m
|
1088
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
1089
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
1090
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
1091
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
1092
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
1093
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
1094
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
1095
|
-
[1m[35mSQL (0.1ms)[0m [1m[35mSET search_path TO public /*application='Dummy'*/[0m
|
1096
|
-
[1m[35m (75.5ms)[0m [1m[35mDROP DATABASE IF EXISTS "bscf_test" /*application='Dummy'*/[0m
|
1097
|
-
[1m[35m (66.5ms)[0m [1m[35mCREATE DATABASE "bscf_test" ENCODING = 'unicode' /*application='Dummy'*/[0m
|
1098
|
-
[1m[35mSQL (16.3ms)[0m [1m[35mCREATE EXTENSION IF NOT EXISTS "plpgsql" SCHEMA pg_catalog /*application='Dummy'*/[0m
|
1099
|
-
[1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_addresses" CASCADE /*application='Dummy'*/[0m
|
1100
|
-
[1m[35m (3.1ms)[0m [1m[35mCREATE TABLE "bscf_core_addresses" ("id" bigserial primary key, "city" character varying, "sub_city" character varying, "woreda" character varying, "latitude" character varying, "longitude" character varying, "house_number" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
1101
|
-
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_businesses" CASCADE /*application='Dummy'*/[0m
|
1102
|
-
[1m[35m (1.9ms)[0m [1m[35mCREATE TABLE "bscf_core_businesses" ("id" bigserial primary key, "user_id" bigint NOT NULL, "business_name" character varying NOT NULL, "tin_number" character varying NOT NULL, "business_type" integer DEFAULT 0 NOT NULL, "verified_at" timestamp(6), "verification_status" integer DEFAULT 0 NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
1103
|
-
[1m[35m (0.5ms)[0m [1m[35mCREATE INDEX "index_bscf_core_businesses_on_user_id" ON "bscf_core_businesses" ("user_id") /*application='Dummy'*/[0m
|
1104
|
-
[1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_categories" CASCADE /*application='Dummy'*/[0m
|
1105
|
-
[1m[35m (1.5ms)[0m [1m[35mCREATE TABLE "bscf_core_categories" ("id" bigserial primary key, "name" character varying NOT NULL, "description" character varying NOT NULL, "parent_id" bigint, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
1106
|
-
[1m[35m (0.4ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_products" CASCADE /*application='Dummy'*/[0m
|
1107
|
-
[1m[35m (1.3ms)[0m [1m[35mCREATE TABLE "bscf_core_products" ("id" bigserial primary key, "sku" character varying NOT NULL, "name" character varying NOT NULL, "description" character varying NOT NULL, "category_id" bigint NOT NULL, "base_price" decimal DEFAULT 0.0 NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
1108
|
-
[1m[35m (0.6ms)[0m [1m[35mCREATE INDEX "index_bscf_core_products_on_category_id" ON "bscf_core_products" ("category_id") /*application='Dummy'*/[0m
|
1109
|
-
[1m[35m (0.7ms)[0m [1m[35mCREATE UNIQUE INDEX "index_bscf_core_products_on_sku" ON "bscf_core_products" ("sku") /*application='Dummy'*/[0m
|
1110
|
-
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_quotation_items" CASCADE /*application='Dummy'*/[0m
|
1111
|
-
[1m[35m (1.7ms)[0m [1m[35mCREATE TABLE "bscf_core_quotation_items" ("id" bigserial primary key, "quotation_id" bigint NOT NULL, "rfq_item_id" bigint NOT NULL, "product_id" bigint NOT NULL, "quantity" integer NOT NULL, "unit_price" decimal NOT NULL, "unit" integer NOT NULL, "subtotal" decimal NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
1112
|
-
[1m[35m (0.7ms)[0m [1m[35mCREATE INDEX "index_bscf_core_quotation_items_on_product_id" ON "bscf_core_quotation_items" ("product_id") /*application='Dummy'*/[0m
|
1113
|
-
[1m[35m (0.5ms)[0m [1m[35mCREATE INDEX "index_bscf_core_quotation_items_on_quotation_id" ON "bscf_core_quotation_items" ("quotation_id") /*application='Dummy'*/[0m
|
1114
|
-
[1m[35m (0.5ms)[0m [1m[35mCREATE INDEX "index_bscf_core_quotation_items_on_rfq_item_id" ON "bscf_core_quotation_items" ("rfq_item_id") /*application='Dummy'*/[0m
|
1115
|
-
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_quotations" CASCADE /*application='Dummy'*/[0m
|
1116
|
-
[1m[35m (1.8ms)[0m [1m[35mCREATE TABLE "bscf_core_quotations" ("id" bigserial primary key, "request_for_quotation_id" bigint NOT NULL, "business_id" bigint NOT NULL, "price" decimal NOT NULL, "delivery_date" date NOT NULL, "valid_until" timestamp(6) NOT NULL, "status" integer DEFAULT 0 NOT NULL, "notes" text, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
1117
|
-
[1m[35m (0.6ms)[0m [1m[35mCREATE INDEX "index_bscf_core_quotations_on_business_id" ON "bscf_core_quotations" ("business_id") /*application='Dummy'*/[0m
|
1118
|
-
[1m[35m (0.5ms)[0m [1m[35mCREATE INDEX "index_bscf_core_quotations_on_request_for_quotation_id" ON "bscf_core_quotations" ("request_for_quotation_id") /*application='Dummy'*/[0m
|
1119
|
-
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_request_for_quotations" CASCADE /*application='Dummy'*/[0m
|
1120
|
-
[1m[35m (1.6ms)[0m [1m[35mCREATE TABLE "bscf_core_request_for_quotations" ("id" bigserial primary key, "user_id" bigint NOT NULL, "status" integer DEFAULT 0 NOT NULL, "notes" text, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
1121
|
-
[1m[35m (0.6ms)[0m [1m[35mCREATE INDEX "index_bscf_core_request_for_quotations_on_user_id" ON "bscf_core_request_for_quotations" ("user_id") /*application='Dummy'*/[0m
|
1122
|
-
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_rfq_items" CASCADE /*application='Dummy'*/[0m
|
1123
|
-
[1m[35m (1.5ms)[0m [1m[35mCREATE TABLE "bscf_core_rfq_items" ("id" bigserial primary key, "request_for_quotation_id" bigint NOT NULL, "product_id" bigint NOT NULL, "quantity" float NOT NULL, "notes" text, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
1124
|
-
[1m[35m (1.3ms)[0m [1m[35mCREATE INDEX "index_bscf_core_rfq_items_on_product_id" ON "bscf_core_rfq_items" ("product_id") /*application='Dummy'*/[0m
|
1125
|
-
[1m[35m (0.7ms)[0m [1m[35mCREATE INDEX "index_bscf_core_rfq_items_on_request_for_quotation_id" ON "bscf_core_rfq_items" ("request_for_quotation_id") /*application='Dummy'*/[0m
|
1126
|
-
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_roles" CASCADE /*application='Dummy'*/[0m
|
1127
|
-
[1m[35m (1.5ms)[0m [1m[35mCREATE TABLE "bscf_core_roles" ("id" bigserial primary key, "name" character varying NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
1128
|
-
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_user_profiles" CASCADE /*application='Dummy'*/[0m
|
1129
|
-
[1m[35m (1.6ms)[0m [1m[35mCREATE TABLE "bscf_core_user_profiles" ("id" bigserial primary key, "user_id" bigint NOT NULL, "date_of_birth" date NOT NULL, "nationality" character varying NOT NULL, "occupation" character varying NOT NULL, "source_of_funds" character varying NOT NULL, "kyc_status" integer DEFAULT 0, "gender" integer NOT NULL, "verified_at" timestamp(6), "verified_by_id" bigint, "address_id" bigint NOT NULL, "fayda_id" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
1130
|
-
[1m[35m (0.6ms)[0m [1m[35mCREATE INDEX "index_bscf_core_user_profiles_on_address_id" ON "bscf_core_user_profiles" ("address_id") /*application='Dummy'*/[0m
|
1131
|
-
[1m[35m (0.5ms)[0m [1m[35mCREATE INDEX "index_bscf_core_user_profiles_on_user_id" ON "bscf_core_user_profiles" ("user_id") /*application='Dummy'*/[0m
|
1132
|
-
[1m[35m (0.6ms)[0m [1m[35mCREATE INDEX "index_bscf_core_user_profiles_on_verified_by_id" ON "bscf_core_user_profiles" ("verified_by_id") /*application='Dummy'*/[0m
|
1133
|
-
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_user_roles" CASCADE /*application='Dummy'*/[0m
|
1134
|
-
[1m[35m (1.2ms)[0m [1m[35mCREATE TABLE "bscf_core_user_roles" ("id" bigserial primary key, "user_id" bigint NOT NULL, "role_id" bigint NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
1135
|
-
[1m[35m (0.6ms)[0m [1m[35mCREATE INDEX "index_bscf_core_user_roles_on_role_id" ON "bscf_core_user_roles" ("role_id") /*application='Dummy'*/[0m
|
1136
|
-
[1m[35m (0.7ms)[0m [1m[35mCREATE INDEX "index_bscf_core_user_roles_on_user_id" ON "bscf_core_user_roles" ("user_id") /*application='Dummy'*/[0m
|
1137
|
-
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_users" CASCADE /*application='Dummy'*/[0m
|
1138
|
-
[1m[35m (2.1ms)[0m [1m[35mCREATE TABLE "bscf_core_users" ("id" bigserial primary key, "first_name" character varying NOT NULL, "middle_name" character varying NOT NULL, "last_name" character varying NOT NULL, "email" character varying NOT NULL, "phone_number" character varying NOT NULL, "password_digest" character varying NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
1139
|
-
[1m[35m (0.7ms)[0m [1m[35mCREATE UNIQUE INDEX "index_bscf_core_users_on_email" ON "bscf_core_users" ("email") /*application='Dummy'*/[0m
|
1140
|
-
[1m[35m (0.6ms)[0m [1m[35mCREATE UNIQUE INDEX "index_bscf_core_users_on_phone_number" ON "bscf_core_users" ("phone_number") /*application='Dummy'*/[0m
|
1141
|
-
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_virtual_account_transactions" CASCADE /*application='Dummy'*/[0m
|
1142
|
-
[1m[35m (1.6ms)[0m [1m[35mCREATE TABLE "bscf_core_virtual_account_transactions" ("id" bigserial primary key, "from_account_id" bigint NOT NULL, "to_account_id" bigint NOT NULL, "amount" decimal NOT NULL, "transaction_type" integer NOT NULL, "status" integer DEFAULT 0 NOT NULL, "reference_number" character varying NOT NULL, "description" text, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
1143
|
-
[1m[35m (0.7ms)[0m [1m[35mCREATE INDEX "idx_on_from_account_id_reference_number_ecc8e65d8f" ON "bscf_core_virtual_account_transactions" ("from_account_id", "reference_number") /*application='Dummy'*/[0m
|
1144
|
-
[1m[35m (0.6ms)[0m [1m[35mCREATE INDEX "idx_on_from_account_id_643ea7341d" ON "bscf_core_virtual_account_transactions" ("from_account_id") /*application='Dummy'*/[0m
|
1145
|
-
[1m[35m (0.9ms)[0m [1m[35mCREATE UNIQUE INDEX "idx_on_reference_number_9aa4ea6333" ON "bscf_core_virtual_account_transactions" ("reference_number") /*application='Dummy'*/[0m
|
1146
|
-
[1m[35m (0.7ms)[0m [1m[35mCREATE INDEX "idx_on_to_account_id_reference_number_6f4048491d" ON "bscf_core_virtual_account_transactions" ("to_account_id", "reference_number") /*application='Dummy'*/[0m
|
1147
|
-
[1m[35m (0.7ms)[0m [1m[35mCREATE INDEX "index_bscf_core_virtual_account_transactions_on_to_account_id" ON "bscf_core_virtual_account_transactions" ("to_account_id") /*application='Dummy'*/[0m
|
1148
|
-
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_virtual_accounts" CASCADE /*application='Dummy'*/[0m
|
1149
|
-
[1m[35m (2.0ms)[0m [1m[35mCREATE TABLE "bscf_core_virtual_accounts" ("id" bigserial primary key, "user_id" bigint NOT NULL, "account_number" character varying NOT NULL, "cbs_account_number" character varying NOT NULL, "balance" decimal DEFAULT 0.0 NOT NULL, "interest_rate" decimal DEFAULT 0.0 NOT NULL, "interest_type" integer DEFAULT 0 NOT NULL, "active" boolean DEFAULT TRUE NOT NULL, "branch_code" character varying NOT NULL, "product_scheme" character varying NOT NULL, "voucher_type" character varying NOT NULL, "status" integer DEFAULT 0 NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
1150
|
-
[1m[35m (0.7ms)[0m [1m[35mCREATE UNIQUE INDEX "index_bscf_core_virtual_accounts_on_account_number" ON "bscf_core_virtual_accounts" ("account_number") /*application='Dummy'*/[0m
|
1151
|
-
[1m[35m (0.6ms)[0m [1m[35mCREATE INDEX "index_bscf_core_virtual_accounts_on_branch_code" ON "bscf_core_virtual_accounts" ("branch_code") /*application='Dummy'*/[0m
|
1152
|
-
[1m[35m (0.6ms)[0m [1m[35mCREATE UNIQUE INDEX "index_bscf_core_virtual_accounts_on_cbs_account_number" ON "bscf_core_virtual_accounts" ("cbs_account_number") /*application='Dummy'*/[0m
|
1153
|
-
[1m[35m (0.6ms)[0m [1m[35mCREATE INDEX "index_bscf_core_virtual_accounts_on_user_id_and_account_number" ON "bscf_core_virtual_accounts" ("user_id", "account_number") /*application='Dummy'*/[0m
|
1154
|
-
[1m[35m (0.7ms)[0m [1m[35mCREATE INDEX "index_bscf_core_virtual_accounts_on_user_id" ON "bscf_core_virtual_accounts" ("user_id") /*application='Dummy'*/[0m
|
1155
|
-
[1m[35m (1.6ms)[0m [1m[35mALTER TABLE "bscf_core_businesses" ADD CONSTRAINT "fk_rails_8d7490b82a"
|
1156
|
-
FOREIGN KEY ("user_id")
|
1157
|
-
REFERENCES "bscf_core_users" ("id")
|
1158
|
-
/*application='Dummy'*/[0m
|
1159
|
-
[1m[35m (0.9ms)[0m [1m[35mALTER TABLE "bscf_core_products" ADD CONSTRAINT "fk_rails_9b9f33fd91"
|
1160
|
-
FOREIGN KEY ("category_id")
|
1161
|
-
REFERENCES "bscf_core_categories" ("id")
|
1162
|
-
/*application='Dummy'*/[0m
|
1163
|
-
[1m[35m (0.9ms)[0m [1m[35mALTER TABLE "bscf_core_quotation_items" ADD CONSTRAINT "fk_rails_b58f3b1bfb"
|
1164
|
-
FOREIGN KEY ("product_id")
|
1165
|
-
REFERENCES "bscf_core_products" ("id")
|
1166
|
-
/*application='Dummy'*/[0m
|
1167
|
-
[1m[35m (1.6ms)[0m [1m[35mALTER TABLE "bscf_core_quotation_items" ADD CONSTRAINT "fk_rails_0f1ff137cd"
|
1168
|
-
FOREIGN KEY ("quotation_id")
|
1169
|
-
REFERENCES "bscf_core_quotations" ("id")
|
1170
|
-
/*application='Dummy'*/[0m
|
1171
|
-
[1m[35m (0.9ms)[0m [1m[35mALTER TABLE "bscf_core_quotation_items" ADD CONSTRAINT "fk_rails_54b38baf27"
|
1172
|
-
FOREIGN KEY ("rfq_item_id")
|
1173
|
-
REFERENCES "bscf_core_rfq_items" ("id")
|
1174
|
-
/*application='Dummy'*/[0m
|
1175
|
-
[1m[35m (0.6ms)[0m [1m[35mALTER TABLE "bscf_core_quotations" ADD CONSTRAINT "fk_rails_5099683ac1"
|
1176
|
-
FOREIGN KEY ("business_id")
|
1177
|
-
REFERENCES "bscf_core_businesses" ("id")
|
1178
|
-
/*application='Dummy'*/[0m
|
1179
|
-
[1m[35m (0.7ms)[0m [1m[35mALTER TABLE "bscf_core_quotations" ADD CONSTRAINT "fk_rails_118cd93fd7"
|
1180
|
-
FOREIGN KEY ("request_for_quotation_id")
|
1181
|
-
REFERENCES "bscf_core_request_for_quotations" ("id")
|
1182
|
-
/*application='Dummy'*/[0m
|
1183
|
-
[1m[35m (0.8ms)[0m [1m[35mALTER TABLE "bscf_core_request_for_quotations" ADD CONSTRAINT "fk_rails_8ed521a71d"
|
1184
|
-
FOREIGN KEY ("user_id")
|
1185
|
-
REFERENCES "bscf_core_users" ("id")
|
1186
|
-
/*application='Dummy'*/[0m
|
1187
|
-
[1m[35m (0.6ms)[0m [1m[35mALTER TABLE "bscf_core_rfq_items" ADD CONSTRAINT "fk_rails_1b2464a246"
|
1188
|
-
FOREIGN KEY ("product_id")
|
1189
|
-
REFERENCES "bscf_core_products" ("id")
|
1190
|
-
/*application='Dummy'*/[0m
|
1191
|
-
[1m[35m (0.6ms)[0m [1m[35mALTER TABLE "bscf_core_rfq_items" ADD CONSTRAINT "fk_rails_1b773f00c6"
|
1192
|
-
FOREIGN KEY ("request_for_quotation_id")
|
1193
|
-
REFERENCES "bscf_core_request_for_quotations" ("id")
|
1194
|
-
/*application='Dummy'*/[0m
|
1195
|
-
[1m[35m (0.9ms)[0m [1m[35mALTER TABLE "bscf_core_user_profiles" ADD CONSTRAINT "fk_rails_c5a3f5b460"
|
1196
|
-
FOREIGN KEY ("address_id")
|
1197
|
-
REFERENCES "bscf_core_addresses" ("id")
|
1198
|
-
/*application='Dummy'*/[0m
|
1199
|
-
[1m[35m (0.9ms)[0m [1m[35mALTER TABLE "bscf_core_user_profiles" ADD CONSTRAINT "fk_rails_76d657f1fb"
|
1200
|
-
FOREIGN KEY ("user_id")
|
1201
|
-
REFERENCES "bscf_core_users" ("id")
|
1202
|
-
/*application='Dummy'*/[0m
|
1203
|
-
[1m[35m (0.9ms)[0m [1m[35mALTER TABLE "bscf_core_user_profiles" ADD CONSTRAINT "fk_rails_96d9a7609e"
|
1204
|
-
FOREIGN KEY ("verified_by_id")
|
1205
|
-
REFERENCES "bscf_core_users" ("id")
|
1206
|
-
/*application='Dummy'*/[0m
|
1207
|
-
[1m[35m (0.8ms)[0m [1m[35mALTER TABLE "bscf_core_user_roles" ADD CONSTRAINT "fk_rails_d64b2985c7"
|
1208
|
-
FOREIGN KEY ("role_id")
|
1209
|
-
REFERENCES "bscf_core_roles" ("id")
|
1210
|
-
/*application='Dummy'*/[0m
|
1211
|
-
[1m[35m (0.7ms)[0m [1m[35mALTER TABLE "bscf_core_user_roles" ADD CONSTRAINT "fk_rails_71c0ff189b"
|
1212
|
-
FOREIGN KEY ("user_id")
|
1213
|
-
REFERENCES "bscf_core_users" ("id")
|
1214
|
-
/*application='Dummy'*/[0m
|
1215
|
-
[1m[35m (1.5ms)[0m [1m[35mALTER TABLE "bscf_core_virtual_account_transactions" ADD CONSTRAINT "fk_rails_7dc2e329f8"
|
1216
|
-
FOREIGN KEY ("from_account_id")
|
1217
|
-
REFERENCES "bscf_core_virtual_accounts" ("id")
|
1218
|
-
/*application='Dummy'*/[0m
|
1219
|
-
[1m[35m (0.7ms)[0m [1m[35mALTER TABLE "bscf_core_virtual_account_transactions" ADD CONSTRAINT "fk_rails_fc01221ed7"
|
1220
|
-
FOREIGN KEY ("to_account_id")
|
1221
|
-
REFERENCES "bscf_core_virtual_accounts" ("id")
|
1222
|
-
/*application='Dummy'*/[0m
|
1223
|
-
[1m[35m (0.6ms)[0m [1m[35mALTER TABLE "bscf_core_virtual_accounts" ADD CONSTRAINT "fk_rails_062e0240bd"
|
1224
|
-
FOREIGN KEY ("user_id")
|
1225
|
-
REFERENCES "bscf_core_users" ("id")
|
1226
|
-
/*application='Dummy'*/[0m
|
1227
|
-
[1m[35m (1.8ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY) /*application='Dummy'*/[0m
|
1228
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
1229
|
-
[1m[35m (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (20250327044020) /*application='Dummy'*/[0m
|
1230
|
-
[1m[35m (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES
|
1231
|
-
(20250327041651),
|
1232
|
-
(20250326121246),
|
1233
|
-
(20250326120613),
|
1234
|
-
(20250326115203),
|
1235
|
-
(20250326112449),
|
1236
|
-
(20250326105652),
|
1237
|
-
(20250326103305),
|
1238
|
-
(20250326085741),
|
1239
|
-
(20250326084233),
|
1240
|
-
(20250326081052),
|
1241
|
-
(20250326080646),
|
1242
|
-
(20250326075111),
|
1243
|
-
(20250326065606); /*application='Dummy'*/[0m
|
1244
|
-
[1m[35m (1.9ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
1245
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.6ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
1246
|
-
[1m[36mActiveRecord::InternalMetadata Create (0.6ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'development', '2025-03-27 10:13:08.637619', '2025-03-27 10:13:08.637622') RETURNING "key" /*application='Dummy'*/[0m
|
1247
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
1248
|
-
[1m[36mActiveRecord::InternalMetadata Update (0.4ms)[0m [1m[33mUPDATE "ar_internal_metadata" SET "value" = 'test', "updated_at" = '2025-03-27 10:13:08.641774' WHERE "ar_internal_metadata"."key" = 'environment' /*application='Dummy'*/[0m
|
1249
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'schema_sha1' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
1250
|
-
[1m[36mActiveRecord::InternalMetadata Create (0.3ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('schema_sha1', '16e63d222df3fc79f0d950f309086459d274dfd1', '2025-03-27 10:13:08.644576', '2025-03-27 10:13:08.644578') RETURNING "key" /*application='Dummy'*/[0m
|
1251
|
-
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_try_advisory_lock(7136077842679658775) /*application='Dummy'*/[0m
|
1252
|
-
[1m[36mActiveRecord::SchemaMigration Load (2.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
1253
|
-
[1m[36mActiveRecord::InternalMetadata Load (1.5ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
1254
|
-
Migrating to CreateBscfCoreOrders (20250327102217)
|
1255
|
-
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mBEGIN /*application='Dummy'*/[0m
|
1256
|
-
[1m[35m (16.1ms)[0m [1m[35mCREATE TABLE "bscf_core_orders" ("id" bigserial primary key, "ordered_by_id" bigint, "ordered_to_id" bigint, "quotation_id" bigint, "order_type" integer DEFAULT 0 NOT NULL, "status" integer DEFAULT 0 NOT NULL, "total_amount" float, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL, CONSTRAINT "fk_rails_a2aea18f9c"
|
1257
|
-
FOREIGN KEY ("ordered_by_id")
|
1258
|
-
REFERENCES "bscf_core_users" ("id")
|
1259
|
-
, CONSTRAINT "fk_rails_6134cde349"
|
1260
|
-
FOREIGN KEY ("ordered_to_id")
|
1261
|
-
REFERENCES "bscf_core_users" ("id")
|
1262
|
-
, CONSTRAINT "fk_rails_f175f710a9"
|
1263
|
-
FOREIGN KEY ("quotation_id")
|
1264
|
-
REFERENCES "quotations" ("id")
|
1265
|
-
) /*application='Dummy'*/[0m
|
1266
|
-
[1m[36mTRANSACTION (0.1ms)[0m [1m[31mROLLBACK /*application='Dummy'*/[0m
|
1267
|
-
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_advisory_unlock(7136077842679658775) /*application='Dummy'*/[0m
|
1268
|
-
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_try_advisory_lock(7136077842679658775) /*application='Dummy'*/[0m
|
1269
|
-
[1m[36mActiveRecord::SchemaMigration Load (1.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
1270
|
-
[1m[36mActiveRecord::InternalMetadata Load (1.0ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
1271
|
-
Migrating to CreateBscfCoreOrders (20250327102217)
|
1272
|
-
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mBEGIN /*application='Dummy'*/[0m
|
1273
|
-
[1m[35m (9.1ms)[0m [1m[35mCREATE TABLE "bscf_core_orders" ("id" bigserial primary key, "ordered_by_id" bigint, "ordered_to_id" bigint, "quotation_id" bigint, "order_type" integer DEFAULT 0 NOT NULL, "status" integer DEFAULT 0 NOT NULL, "total_amount" float, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL, CONSTRAINT "fk_rails_a2aea18f9c"
|
1274
|
-
FOREIGN KEY ("ordered_by_id")
|
1275
|
-
REFERENCES "bscf_core_users" ("id")
|
1276
|
-
, CONSTRAINT "fk_rails_6134cde349"
|
1277
|
-
FOREIGN KEY ("ordered_to_id")
|
1278
|
-
REFERENCES "bscf_core_users" ("id")
|
1279
|
-
, CONSTRAINT "fk_rails_f175f710a9"
|
1280
|
-
FOREIGN KEY ("quotation_id")
|
1281
|
-
REFERENCES "bscf_core_quotations" ("id")
|
1282
|
-
) /*application='Dummy'*/[0m
|
1283
|
-
[1m[35m (1.5ms)[0m [1m[35mCREATE INDEX "index_bscf_core_orders_on_ordered_by_id" ON "bscf_core_orders" ("ordered_by_id") /*application='Dummy'*/[0m
|
1284
|
-
[1m[35m (1.6ms)[0m [1m[35mCREATE INDEX "index_bscf_core_orders_on_ordered_to_id" ON "bscf_core_orders" ("ordered_to_id") /*application='Dummy'*/[0m
|
1285
|
-
[1m[35m (1.5ms)[0m [1m[35mCREATE INDEX "index_bscf_core_orders_on_quotation_id" ON "bscf_core_orders" ("quotation_id") /*application='Dummy'*/[0m
|
1286
|
-
[1m[36mActiveRecord::SchemaMigration Create (0.5ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ('20250327102217') RETURNING "version" /*application='Dummy'*/[0m
|
1287
|
-
[1m[36mTRANSACTION (0.4ms)[0m [1m[35mCOMMIT /*application='Dummy'*/[0m
|
1288
|
-
[1m[35m (0.7ms)[0m [1m[34mSELECT pg_advisory_unlock(7136077842679658775) /*application='Dummy'*/[0m
|
1289
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
1290
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
1291
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
1292
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
1293
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
1294
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
1295
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
1296
|
-
[1m[35mSQL (0.1ms)[0m [1m[35mSET search_path TO public /*application='Dummy'*/[0m
|
1297
|
-
[1m[35m (71.2ms)[0m [1m[35mDROP DATABASE IF EXISTS "bscf_test" /*application='Dummy'*/[0m
|
1298
|
-
[1m[35m (119.7ms)[0m [1m[35mCREATE DATABASE "bscf_test" ENCODING = 'unicode' /*application='Dummy'*/[0m
|
1299
|
-
[1m[35mSQL (17.3ms)[0m [1m[35mCREATE EXTENSION IF NOT EXISTS "plpgsql" SCHEMA pg_catalog /*application='Dummy'*/[0m
|
1300
|
-
[1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_addresses" CASCADE /*application='Dummy'*/[0m
|
1301
|
-
[1m[35m (2.9ms)[0m [1m[35mCREATE TABLE "bscf_core_addresses" ("id" bigserial primary key, "city" character varying, "sub_city" character varying, "woreda" character varying, "latitude" character varying, "longitude" character varying, "house_number" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
1302
|
-
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_businesses" CASCADE /*application='Dummy'*/[0m
|
1303
|
-
[1m[35m (1.9ms)[0m [1m[35mCREATE TABLE "bscf_core_businesses" ("id" bigserial primary key, "user_id" bigint NOT NULL, "business_name" character varying NOT NULL, "tin_number" character varying NOT NULL, "business_type" integer DEFAULT 0 NOT NULL, "verified_at" timestamp(6), "verification_status" integer DEFAULT 0 NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
1304
|
-
[1m[35m (0.6ms)[0m [1m[35mCREATE INDEX "index_bscf_core_businesses_on_user_id" ON "bscf_core_businesses" ("user_id") /*application='Dummy'*/[0m
|
1305
|
-
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_categories" CASCADE /*application='Dummy'*/[0m
|
1306
|
-
[1m[35m (1.2ms)[0m [1m[35mCREATE TABLE "bscf_core_categories" ("id" bigserial primary key, "name" character varying NOT NULL, "description" character varying NOT NULL, "parent_id" bigint, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
1307
|
-
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_orders" CASCADE /*application='Dummy'*/[0m
|
1308
|
-
[1m[35m (1.0ms)[0m [1m[35mCREATE TABLE "bscf_core_orders" ("id" bigserial primary key, "ordered_by_id" bigint, "ordered_to_id" bigint, "quotation_id" bigint, "order_type" integer DEFAULT 0 NOT NULL, "status" integer DEFAULT 0 NOT NULL, "total_amount" float, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
1309
|
-
[1m[35m (1.1ms)[0m [1m[35mCREATE INDEX "index_bscf_core_orders_on_ordered_by_id" ON "bscf_core_orders" ("ordered_by_id") /*application='Dummy'*/[0m
|
1310
|
-
[1m[35m (0.6ms)[0m [1m[35mCREATE INDEX "index_bscf_core_orders_on_ordered_to_id" ON "bscf_core_orders" ("ordered_to_id") /*application='Dummy'*/[0m
|
1311
|
-
[1m[35m (0.7ms)[0m [1m[35mCREATE INDEX "index_bscf_core_orders_on_quotation_id" ON "bscf_core_orders" ("quotation_id") /*application='Dummy'*/[0m
|
1312
|
-
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_products" CASCADE /*application='Dummy'*/[0m
|
1313
|
-
[1m[35m (1.4ms)[0m [1m[35mCREATE TABLE "bscf_core_products" ("id" bigserial primary key, "sku" character varying NOT NULL, "name" character varying NOT NULL, "description" character varying NOT NULL, "category_id" bigint NOT NULL, "base_price" decimal DEFAULT 0.0 NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
1314
|
-
[1m[35m (0.6ms)[0m [1m[35mCREATE INDEX "index_bscf_core_products_on_category_id" ON "bscf_core_products" ("category_id") /*application='Dummy'*/[0m
|
1315
|
-
[1m[35m (1.0ms)[0m [1m[35mCREATE UNIQUE INDEX "index_bscf_core_products_on_sku" ON "bscf_core_products" ("sku") /*application='Dummy'*/[0m
|
1316
|
-
[1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_quotation_items" CASCADE /*application='Dummy'*/[0m
|
1317
|
-
[1m[35m (1.8ms)[0m [1m[35mCREATE TABLE "bscf_core_quotation_items" ("id" bigserial primary key, "quotation_id" bigint NOT NULL, "rfq_item_id" bigint NOT NULL, "product_id" bigint NOT NULL, "quantity" integer NOT NULL, "unit_price" decimal NOT NULL, "unit" integer NOT NULL, "subtotal" decimal NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
1318
|
-
[1m[35m (1.0ms)[0m [1m[35mCREATE INDEX "index_bscf_core_quotation_items_on_product_id" ON "bscf_core_quotation_items" ("product_id") /*application='Dummy'*/[0m
|
1319
|
-
[1m[35m (0.5ms)[0m [1m[35mCREATE INDEX "index_bscf_core_quotation_items_on_quotation_id" ON "bscf_core_quotation_items" ("quotation_id") /*application='Dummy'*/[0m
|
1320
|
-
[1m[35m (0.5ms)[0m [1m[35mCREATE INDEX "index_bscf_core_quotation_items_on_rfq_item_id" ON "bscf_core_quotation_items" ("rfq_item_id") /*application='Dummy'*/[0m
|
1321
|
-
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_quotations" CASCADE /*application='Dummy'*/[0m
|
1322
|
-
[1m[35m (2.1ms)[0m [1m[35mCREATE TABLE "bscf_core_quotations" ("id" bigserial primary key, "request_for_quotation_id" bigint NOT NULL, "business_id" bigint NOT NULL, "price" decimal NOT NULL, "delivery_date" date NOT NULL, "valid_until" timestamp(6) NOT NULL, "status" integer DEFAULT 0 NOT NULL, "notes" text, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
1323
|
-
[1m[35m (0.7ms)[0m [1m[35mCREATE INDEX "index_bscf_core_quotations_on_business_id" ON "bscf_core_quotations" ("business_id") /*application='Dummy'*/[0m
|
1324
|
-
[1m[35m (0.7ms)[0m [1m[35mCREATE INDEX "index_bscf_core_quotations_on_request_for_quotation_id" ON "bscf_core_quotations" ("request_for_quotation_id") /*application='Dummy'*/[0m
|
1325
|
-
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_request_for_quotations" CASCADE /*application='Dummy'*/[0m
|
1326
|
-
[1m[35m (1.6ms)[0m [1m[35mCREATE TABLE "bscf_core_request_for_quotations" ("id" bigserial primary key, "user_id" bigint NOT NULL, "status" integer DEFAULT 0 NOT NULL, "notes" text, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
1327
|
-
[1m[35m (0.6ms)[0m [1m[35mCREATE INDEX "index_bscf_core_request_for_quotations_on_user_id" ON "bscf_core_request_for_quotations" ("user_id") /*application='Dummy'*/[0m
|
1328
|
-
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_rfq_items" CASCADE /*application='Dummy'*/[0m
|
1329
|
-
[1m[35m (1.4ms)[0m [1m[35mCREATE TABLE "bscf_core_rfq_items" ("id" bigserial primary key, "request_for_quotation_id" bigint NOT NULL, "product_id" bigint NOT NULL, "quantity" float NOT NULL, "notes" text, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
1330
|
-
[1m[35m (0.6ms)[0m [1m[35mCREATE INDEX "index_bscf_core_rfq_items_on_product_id" ON "bscf_core_rfq_items" ("product_id") /*application='Dummy'*/[0m
|
1331
|
-
[1m[35m (0.5ms)[0m [1m[35mCREATE INDEX "index_bscf_core_rfq_items_on_request_for_quotation_id" ON "bscf_core_rfq_items" ("request_for_quotation_id") /*application='Dummy'*/[0m
|
1332
|
-
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_roles" CASCADE /*application='Dummy'*/[0m
|
1333
|
-
[1m[35m (1.8ms)[0m [1m[35mCREATE TABLE "bscf_core_roles" ("id" bigserial primary key, "name" character varying NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
1334
|
-
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_user_profiles" CASCADE /*application='Dummy'*/[0m
|
1335
|
-
[1m[35m (2.0ms)[0m [1m[35mCREATE TABLE "bscf_core_user_profiles" ("id" bigserial primary key, "user_id" bigint NOT NULL, "date_of_birth" date NOT NULL, "nationality" character varying NOT NULL, "occupation" character varying NOT NULL, "source_of_funds" character varying NOT NULL, "kyc_status" integer DEFAULT 0, "gender" integer NOT NULL, "verified_at" timestamp(6), "verified_by_id" bigint, "address_id" bigint NOT NULL, "fayda_id" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
1336
|
-
[1m[35m (0.7ms)[0m [1m[35mCREATE INDEX "index_bscf_core_user_profiles_on_address_id" ON "bscf_core_user_profiles" ("address_id") /*application='Dummy'*/[0m
|
1337
|
-
[1m[35m (0.5ms)[0m [1m[35mCREATE INDEX "index_bscf_core_user_profiles_on_user_id" ON "bscf_core_user_profiles" ("user_id") /*application='Dummy'*/[0m
|
1338
|
-
[1m[35m (0.6ms)[0m [1m[35mCREATE INDEX "index_bscf_core_user_profiles_on_verified_by_id" ON "bscf_core_user_profiles" ("verified_by_id") /*application='Dummy'*/[0m
|
1339
|
-
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_user_roles" CASCADE /*application='Dummy'*/[0m
|
1340
|
-
[1m[35m (1.4ms)[0m [1m[35mCREATE TABLE "bscf_core_user_roles" ("id" bigserial primary key, "user_id" bigint NOT NULL, "role_id" bigint NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
1341
|
-
[1m[35m (0.7ms)[0m [1m[35mCREATE INDEX "index_bscf_core_user_roles_on_role_id" ON "bscf_core_user_roles" ("role_id") /*application='Dummy'*/[0m
|
1342
|
-
[1m[35m (0.6ms)[0m [1m[35mCREATE INDEX "index_bscf_core_user_roles_on_user_id" ON "bscf_core_user_roles" ("user_id") /*application='Dummy'*/[0m
|
1343
|
-
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_users" CASCADE /*application='Dummy'*/[0m
|
1344
|
-
[1m[35m (1.7ms)[0m [1m[35mCREATE TABLE "bscf_core_users" ("id" bigserial primary key, "first_name" character varying NOT NULL, "middle_name" character varying NOT NULL, "last_name" character varying NOT NULL, "email" character varying NOT NULL, "phone_number" character varying NOT NULL, "password_digest" character varying NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
1345
|
-
[1m[35m (0.6ms)[0m [1m[35mCREATE UNIQUE INDEX "index_bscf_core_users_on_email" ON "bscf_core_users" ("email") /*application='Dummy'*/[0m
|
1346
|
-
[1m[35m (0.6ms)[0m [1m[35mCREATE UNIQUE INDEX "index_bscf_core_users_on_phone_number" ON "bscf_core_users" ("phone_number") /*application='Dummy'*/[0m
|
1347
|
-
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_virtual_account_transactions" CASCADE /*application='Dummy'*/[0m
|
1348
|
-
[1m[35m (1.8ms)[0m [1m[35mCREATE TABLE "bscf_core_virtual_account_transactions" ("id" bigserial primary key, "from_account_id" bigint NOT NULL, "to_account_id" bigint NOT NULL, "amount" decimal NOT NULL, "transaction_type" integer NOT NULL, "status" integer DEFAULT 0 NOT NULL, "reference_number" character varying NOT NULL, "description" text, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
1349
|
-
[1m[35m (0.7ms)[0m [1m[35mCREATE INDEX "idx_on_from_account_id_reference_number_ecc8e65d8f" ON "bscf_core_virtual_account_transactions" ("from_account_id", "reference_number") /*application='Dummy'*/[0m
|
1350
|
-
[1m[35m (0.8ms)[0m [1m[35mCREATE INDEX "idx_on_from_account_id_643ea7341d" ON "bscf_core_virtual_account_transactions" ("from_account_id") /*application='Dummy'*/[0m
|
1351
|
-
[1m[35m (0.7ms)[0m [1m[35mCREATE UNIQUE INDEX "idx_on_reference_number_9aa4ea6333" ON "bscf_core_virtual_account_transactions" ("reference_number") /*application='Dummy'*/[0m
|
1352
|
-
[1m[35m (0.6ms)[0m [1m[35mCREATE INDEX "idx_on_to_account_id_reference_number_6f4048491d" ON "bscf_core_virtual_account_transactions" ("to_account_id", "reference_number") /*application='Dummy'*/[0m
|
1353
|
-
[1m[35m (0.6ms)[0m [1m[35mCREATE INDEX "index_bscf_core_virtual_account_transactions_on_to_account_id" ON "bscf_core_virtual_account_transactions" ("to_account_id") /*application='Dummy'*/[0m
|
1354
|
-
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_virtual_accounts" CASCADE /*application='Dummy'*/[0m
|
1355
|
-
[1m[35m (2.0ms)[0m [1m[35mCREATE TABLE "bscf_core_virtual_accounts" ("id" bigserial primary key, "user_id" bigint NOT NULL, "account_number" character varying NOT NULL, "cbs_account_number" character varying NOT NULL, "balance" decimal DEFAULT 0.0 NOT NULL, "interest_rate" decimal DEFAULT 0.0 NOT NULL, "interest_type" integer DEFAULT 0 NOT NULL, "active" boolean DEFAULT TRUE NOT NULL, "branch_code" character varying NOT NULL, "product_scheme" character varying NOT NULL, "voucher_type" character varying NOT NULL, "status" integer DEFAULT 0 NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
1356
|
-
[1m[35m (0.7ms)[0m [1m[35mCREATE UNIQUE INDEX "index_bscf_core_virtual_accounts_on_account_number" ON "bscf_core_virtual_accounts" ("account_number") /*application='Dummy'*/[0m
|
1357
|
-
[1m[35m (0.8ms)[0m [1m[35mCREATE INDEX "index_bscf_core_virtual_accounts_on_branch_code" ON "bscf_core_virtual_accounts" ("branch_code") /*application='Dummy'*/[0m
|
1358
|
-
[1m[35m (0.6ms)[0m [1m[35mCREATE UNIQUE INDEX "index_bscf_core_virtual_accounts_on_cbs_account_number" ON "bscf_core_virtual_accounts" ("cbs_account_number") /*application='Dummy'*/[0m
|
1359
|
-
[1m[35m (0.7ms)[0m [1m[35mCREATE INDEX "index_bscf_core_virtual_accounts_on_user_id_and_account_number" ON "bscf_core_virtual_accounts" ("user_id", "account_number") /*application='Dummy'*/[0m
|
1360
|
-
[1m[35m (0.6ms)[0m [1m[35mCREATE INDEX "index_bscf_core_virtual_accounts_on_user_id" ON "bscf_core_virtual_accounts" ("user_id") /*application='Dummy'*/[0m
|
1361
|
-
[1m[35m (1.8ms)[0m [1m[35mALTER TABLE "bscf_core_businesses" ADD CONSTRAINT "fk_rails_8d7490b82a"
|
1362
|
-
FOREIGN KEY ("user_id")
|
1363
|
-
REFERENCES "bscf_core_users" ("id")
|
1364
|
-
/*application='Dummy'*/[0m
|
1365
|
-
[1m[35m (1.2ms)[0m [1m[35mALTER TABLE "bscf_core_orders" ADD CONSTRAINT "fk_rails_f175f710a9"
|
1366
|
-
FOREIGN KEY ("quotation_id")
|
1367
|
-
REFERENCES "bscf_core_quotations" ("id")
|
1368
|
-
/*application='Dummy'*/[0m
|
1369
|
-
[1m[35m (0.6ms)[0m [1m[35mALTER TABLE "bscf_core_orders" ADD CONSTRAINT "fk_rails_a2aea18f9c"
|
1370
|
-
FOREIGN KEY ("ordered_by_id")
|
1371
|
-
REFERENCES "bscf_core_users" ("id")
|
1372
|
-
/*application='Dummy'*/[0m
|
1373
|
-
[1m[35m (0.7ms)[0m [1m[35mALTER TABLE "bscf_core_orders" ADD CONSTRAINT "fk_rails_6134cde349"
|
1374
|
-
FOREIGN KEY ("ordered_to_id")
|
1375
|
-
REFERENCES "bscf_core_users" ("id")
|
1376
|
-
/*application='Dummy'*/[0m
|
1377
|
-
[1m[35m (0.8ms)[0m [1m[35mALTER TABLE "bscf_core_products" ADD CONSTRAINT "fk_rails_9b9f33fd91"
|
1378
|
-
FOREIGN KEY ("category_id")
|
1379
|
-
REFERENCES "bscf_core_categories" ("id")
|
1380
|
-
/*application='Dummy'*/[0m
|
1381
|
-
[1m[35m (0.7ms)[0m [1m[35mALTER TABLE "bscf_core_quotation_items" ADD CONSTRAINT "fk_rails_b58f3b1bfb"
|
1382
|
-
FOREIGN KEY ("product_id")
|
1383
|
-
REFERENCES "bscf_core_products" ("id")
|
1384
|
-
/*application='Dummy'*/[0m
|
1385
|
-
[1m[35m (0.5ms)[0m [1m[35mALTER TABLE "bscf_core_quotation_items" ADD CONSTRAINT "fk_rails_0f1ff137cd"
|
1386
|
-
FOREIGN KEY ("quotation_id")
|
1387
|
-
REFERENCES "bscf_core_quotations" ("id")
|
1388
|
-
/*application='Dummy'*/[0m
|
1389
|
-
[1m[35m (1.0ms)[0m [1m[35mALTER TABLE "bscf_core_quotation_items" ADD CONSTRAINT "fk_rails_54b38baf27"
|
1390
|
-
FOREIGN KEY ("rfq_item_id")
|
1391
|
-
REFERENCES "bscf_core_rfq_items" ("id")
|
1392
|
-
/*application='Dummy'*/[0m
|
1393
|
-
[1m[35m (0.6ms)[0m [1m[35mALTER TABLE "bscf_core_quotations" ADD CONSTRAINT "fk_rails_5099683ac1"
|
1394
|
-
FOREIGN KEY ("business_id")
|
1395
|
-
REFERENCES "bscf_core_businesses" ("id")
|
1396
|
-
/*application='Dummy'*/[0m
|
1397
|
-
[1m[35m (0.7ms)[0m [1m[35mALTER TABLE "bscf_core_quotations" ADD CONSTRAINT "fk_rails_118cd93fd7"
|
1398
|
-
FOREIGN KEY ("request_for_quotation_id")
|
1399
|
-
REFERENCES "bscf_core_request_for_quotations" ("id")
|
1400
|
-
/*application='Dummy'*/[0m
|
1401
|
-
[1m[35m (0.7ms)[0m [1m[35mALTER TABLE "bscf_core_request_for_quotations" ADD CONSTRAINT "fk_rails_8ed521a71d"
|
1402
|
-
FOREIGN KEY ("user_id")
|
1403
|
-
REFERENCES "bscf_core_users" ("id")
|
1404
|
-
/*application='Dummy'*/[0m
|
1405
|
-
[1m[35m (0.8ms)[0m [1m[35mALTER TABLE "bscf_core_rfq_items" ADD CONSTRAINT "fk_rails_1b2464a246"
|
1406
|
-
FOREIGN KEY ("product_id")
|
1407
|
-
REFERENCES "bscf_core_products" ("id")
|
1408
|
-
/*application='Dummy'*/[0m
|
1409
|
-
[1m[35m (0.8ms)[0m [1m[35mALTER TABLE "bscf_core_rfq_items" ADD CONSTRAINT "fk_rails_1b773f00c6"
|
1410
|
-
FOREIGN KEY ("request_for_quotation_id")
|
1411
|
-
REFERENCES "bscf_core_request_for_quotations" ("id")
|
1412
|
-
/*application='Dummy'*/[0m
|
1413
|
-
[1m[35m (0.9ms)[0m [1m[35mALTER TABLE "bscf_core_user_profiles" ADD CONSTRAINT "fk_rails_c5a3f5b460"
|
1414
|
-
FOREIGN KEY ("address_id")
|
1415
|
-
REFERENCES "bscf_core_addresses" ("id")
|
1416
|
-
/*application='Dummy'*/[0m
|
1417
|
-
[1m[35m (0.8ms)[0m [1m[35mALTER TABLE "bscf_core_user_profiles" ADD CONSTRAINT "fk_rails_76d657f1fb"
|
1418
|
-
FOREIGN KEY ("user_id")
|
1419
|
-
REFERENCES "bscf_core_users" ("id")
|
1420
|
-
/*application='Dummy'*/[0m
|
1421
|
-
[1m[35m (0.6ms)[0m [1m[35mALTER TABLE "bscf_core_user_profiles" ADD CONSTRAINT "fk_rails_96d9a7609e"
|
1422
|
-
FOREIGN KEY ("verified_by_id")
|
1423
|
-
REFERENCES "bscf_core_users" ("id")
|
1424
|
-
/*application='Dummy'*/[0m
|
1425
|
-
[1m[35m (0.8ms)[0m [1m[35mALTER TABLE "bscf_core_user_roles" ADD CONSTRAINT "fk_rails_d64b2985c7"
|
1426
|
-
FOREIGN KEY ("role_id")
|
1427
|
-
REFERENCES "bscf_core_roles" ("id")
|
1428
|
-
/*application='Dummy'*/[0m
|
1429
|
-
[1m[35m (0.6ms)[0m [1m[35mALTER TABLE "bscf_core_user_roles" ADD CONSTRAINT "fk_rails_71c0ff189b"
|
1430
|
-
FOREIGN KEY ("user_id")
|
1431
|
-
REFERENCES "bscf_core_users" ("id")
|
1432
|
-
/*application='Dummy'*/[0m
|
1433
|
-
[1m[35m (1.4ms)[0m [1m[35mALTER TABLE "bscf_core_virtual_account_transactions" ADD CONSTRAINT "fk_rails_7dc2e329f8"
|
1434
|
-
FOREIGN KEY ("from_account_id")
|
1435
|
-
REFERENCES "bscf_core_virtual_accounts" ("id")
|
1436
|
-
/*application='Dummy'*/[0m
|
1437
|
-
[1m[35m (0.6ms)[0m [1m[35mALTER TABLE "bscf_core_virtual_account_transactions" ADD CONSTRAINT "fk_rails_fc01221ed7"
|
1438
|
-
FOREIGN KEY ("to_account_id")
|
1439
|
-
REFERENCES "bscf_core_virtual_accounts" ("id")
|
1440
|
-
/*application='Dummy'*/[0m
|
1441
|
-
[1m[35m (0.6ms)[0m [1m[35mALTER TABLE "bscf_core_virtual_accounts" ADD CONSTRAINT "fk_rails_062e0240bd"
|
1442
|
-
FOREIGN KEY ("user_id")
|
1443
|
-
REFERENCES "bscf_core_users" ("id")
|
1444
|
-
/*application='Dummy'*/[0m
|
1445
|
-
[1m[35m (1.7ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY) /*application='Dummy'*/[0m
|
1446
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
1447
|
-
[1m[35m (0.9ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (20250327102217) /*application='Dummy'*/[0m
|
1448
|
-
[1m[35m (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES
|
1449
|
-
(20250327044020),
|
1450
|
-
(20250327041651),
|
1451
|
-
(20250326121246),
|
1452
|
-
(20250326120613),
|
1453
|
-
(20250326115203),
|
1454
|
-
(20250326112449),
|
1455
|
-
(20250326105652),
|
1456
|
-
(20250326103305),
|
1457
|
-
(20250326085741),
|
1458
|
-
(20250326084233),
|
1459
|
-
(20250326081052),
|
1460
|
-
(20250326080646),
|
1461
|
-
(20250326075111),
|
1462
|
-
(20250326065606); /*application='Dummy'*/[0m
|
1463
|
-
[1m[35m (2.2ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
1464
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.7ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
1465
|
-
[1m[36mActiveRecord::InternalMetadata Create (0.4ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'development', '2025-03-27 10:58:10.644963', '2025-03-27 10:58:10.644970') RETURNING "key" /*application='Dummy'*/[0m
|
1466
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
1467
|
-
[1m[36mActiveRecord::InternalMetadata Update (0.3ms)[0m [1m[33mUPDATE "ar_internal_metadata" SET "value" = 'test', "updated_at" = '2025-03-27 10:58:10.648854' WHERE "ar_internal_metadata"."key" = 'environment' /*application='Dummy'*/[0m
|
1468
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'schema_sha1' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
1469
|
-
[1m[36mActiveRecord::InternalMetadata Create (0.3ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('schema_sha1', '58ffc44e4fb07f7574e2107f7f7563f0b0e112c9', '2025-03-27 10:58:10.651733', '2025-03-27 10:58:10.651735') RETURNING "key" /*application='Dummy'*/[0m
|
1470
|
-
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_try_advisory_lock(7136077842679658775) /*application='Dummy'*/[0m
|
1471
|
-
[1m[36mActiveRecord::SchemaMigration Load (1.9ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
1472
|
-
[1m[36mActiveRecord::InternalMetadata Load (1.3ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
1473
|
-
[1m[35m (0.7ms)[0m [1m[34mSELECT pg_advisory_unlock(7136077842679658775) /*application='Dummy'*/[0m
|
1474
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
1475
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
1476
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
1477
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
1478
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
1479
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
1480
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
1481
|
-
[1m[35mSQL (0.1ms)[0m [1m[35mSET search_path TO public /*application='Dummy'*/[0m
|
1482
|
-
[1m[35m (44.5ms)[0m [1m[35mDROP DATABASE IF EXISTS "bscf_test" /*application='Dummy'*/[0m
|
1483
|
-
[1m[35m (131.2ms)[0m [1m[35mCREATE DATABASE "bscf_test" ENCODING = 'unicode' /*application='Dummy'*/[0m
|
1484
|
-
[1m[35mSQL (21.6ms)[0m [1m[35mCREATE EXTENSION IF NOT EXISTS "plpgsql" SCHEMA pg_catalog /*application='Dummy'*/[0m
|
1485
|
-
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_addresses" CASCADE /*application='Dummy'*/[0m
|
1486
|
-
[1m[35m (4.9ms)[0m [1m[35mCREATE TABLE "bscf_core_addresses" ("id" bigserial primary key, "city" character varying, "sub_city" character varying, "woreda" character varying, "latitude" character varying, "longitude" character varying, "house_number" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
1487
|
-
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_businesses" CASCADE /*application='Dummy'*/[0m
|
1488
|
-
[1m[35m (2.2ms)[0m [1m[35mCREATE TABLE "bscf_core_businesses" ("id" bigserial primary key, "user_id" bigint NOT NULL, "business_name" character varying NOT NULL, "tin_number" character varying NOT NULL, "business_type" integer DEFAULT 0 NOT NULL, "verified_at" timestamp(6), "verification_status" integer DEFAULT 0 NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
1489
|
-
[1m[35m (0.8ms)[0m [1m[35mCREATE INDEX "index_bscf_core_businesses_on_user_id" ON "bscf_core_businesses" ("user_id") /*application='Dummy'*/[0m
|
1490
|
-
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_categories" CASCADE /*application='Dummy'*/[0m
|
1491
|
-
[1m[35m (2.5ms)[0m [1m[35mCREATE TABLE "bscf_core_categories" ("id" bigserial primary key, "name" character varying NOT NULL, "description" character varying NOT NULL, "parent_id" bigint, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
1492
|
-
[1m[35m (0.4ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_orders" CASCADE /*application='Dummy'*/[0m
|
1493
|
-
[1m[35m (1.9ms)[0m [1m[35mCREATE TABLE "bscf_core_orders" ("id" bigserial primary key, "ordered_by_id" bigint, "ordered_to_id" bigint, "quotation_id" bigint, "order_type" integer DEFAULT 0 NOT NULL, "status" integer DEFAULT 0 NOT NULL, "total_amount" float, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
1494
|
-
[1m[35m (0.9ms)[0m [1m[35mCREATE INDEX "index_bscf_core_orders_on_ordered_by_id" ON "bscf_core_orders" ("ordered_by_id") /*application='Dummy'*/[0m
|
1495
|
-
[1m[35m (0.8ms)[0m [1m[35mCREATE INDEX "index_bscf_core_orders_on_ordered_to_id" ON "bscf_core_orders" ("ordered_to_id") /*application='Dummy'*/[0m
|
1496
|
-
[1m[35m (0.8ms)[0m [1m[35mCREATE INDEX "index_bscf_core_orders_on_quotation_id" ON "bscf_core_orders" ("quotation_id") /*application='Dummy'*/[0m
|
1497
|
-
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_products" CASCADE /*application='Dummy'*/[0m
|
1498
|
-
[1m[35m (2.7ms)[0m [1m[35mCREATE TABLE "bscf_core_products" ("id" bigserial primary key, "sku" character varying NOT NULL, "name" character varying NOT NULL, "description" character varying NOT NULL, "category_id" bigint NOT NULL, "base_price" decimal DEFAULT 0.0 NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
1499
|
-
[1m[35m (1.0ms)[0m [1m[35mCREATE INDEX "index_bscf_core_products_on_category_id" ON "bscf_core_products" ("category_id") /*application='Dummy'*/[0m
|
1500
|
-
[1m[35m (0.9ms)[0m [1m[35mCREATE UNIQUE INDEX "index_bscf_core_products_on_sku" ON "bscf_core_products" ("sku") /*application='Dummy'*/[0m
|
1501
|
-
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_quotation_items" CASCADE /*application='Dummy'*/[0m
|
1502
|
-
[1m[35m (2.3ms)[0m [1m[35mCREATE TABLE "bscf_core_quotation_items" ("id" bigserial primary key, "quotation_id" bigint NOT NULL, "rfq_item_id" bigint NOT NULL, "product_id" bigint NOT NULL, "quantity" integer NOT NULL, "unit_price" decimal NOT NULL, "unit" integer NOT NULL, "subtotal" decimal NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
1503
|
-
[1m[35m (0.9ms)[0m [1m[35mCREATE INDEX "index_bscf_core_quotation_items_on_product_id" ON "bscf_core_quotation_items" ("product_id") /*application='Dummy'*/[0m
|
1504
|
-
[1m[35m (1.3ms)[0m [1m[35mCREATE INDEX "index_bscf_core_quotation_items_on_quotation_id" ON "bscf_core_quotation_items" ("quotation_id") /*application='Dummy'*/[0m
|
1505
|
-
[1m[35m (0.7ms)[0m [1m[35mCREATE INDEX "index_bscf_core_quotation_items_on_rfq_item_id" ON "bscf_core_quotation_items" ("rfq_item_id") /*application='Dummy'*/[0m
|
1506
|
-
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_quotations" CASCADE /*application='Dummy'*/[0m
|
1507
|
-
[1m[35m (2.4ms)[0m [1m[35mCREATE TABLE "bscf_core_quotations" ("id" bigserial primary key, "request_for_quotation_id" bigint NOT NULL, "business_id" bigint NOT NULL, "price" decimal NOT NULL, "delivery_date" date NOT NULL, "valid_until" timestamp(6) NOT NULL, "status" integer DEFAULT 0 NOT NULL, "notes" text, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
1508
|
-
[1m[35m (1.2ms)[0m [1m[35mCREATE INDEX "index_bscf_core_quotations_on_business_id" ON "bscf_core_quotations" ("business_id") /*application='Dummy'*/[0m
|
1509
|
-
[1m[35m (0.8ms)[0m [1m[35mCREATE INDEX "index_bscf_core_quotations_on_request_for_quotation_id" ON "bscf_core_quotations" ("request_for_quotation_id") /*application='Dummy'*/[0m
|
1510
|
-
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_request_for_quotations" CASCADE /*application='Dummy'*/[0m
|
1511
|
-
[1m[35m (3.9ms)[0m [1m[35mCREATE TABLE "bscf_core_request_for_quotations" ("id" bigserial primary key, "user_id" bigint NOT NULL, "status" integer DEFAULT 0 NOT NULL, "notes" text, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
1512
|
-
[1m[35m (1.5ms)[0m [1m[35mCREATE INDEX "index_bscf_core_request_for_quotations_on_user_id" ON "bscf_core_request_for_quotations" ("user_id") /*application='Dummy'*/[0m
|
1513
|
-
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_rfq_items" CASCADE /*application='Dummy'*/[0m
|
1514
|
-
[1m[35m (3.5ms)[0m [1m[35mCREATE TABLE "bscf_core_rfq_items" ("id" bigserial primary key, "request_for_quotation_id" bigint NOT NULL, "product_id" bigint NOT NULL, "quantity" float NOT NULL, "notes" text, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
1515
|
-
[1m[35m (1.4ms)[0m [1m[35mCREATE INDEX "index_bscf_core_rfq_items_on_product_id" ON "bscf_core_rfq_items" ("product_id") /*application='Dummy'*/[0m
|
1516
|
-
[1m[35m (1.2ms)[0m [1m[35mCREATE INDEX "index_bscf_core_rfq_items_on_request_for_quotation_id" ON "bscf_core_rfq_items" ("request_for_quotation_id") /*application='Dummy'*/[0m
|
1517
|
-
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_roles" CASCADE /*application='Dummy'*/[0m
|
1518
|
-
[1m[35m (3.7ms)[0m [1m[35mCREATE TABLE "bscf_core_roles" ("id" bigserial primary key, "name" character varying NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
1519
|
-
[1m[35m (0.5ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_user_profiles" CASCADE /*application='Dummy'*/[0m
|
1520
|
-
[1m[35m (4.9ms)[0m [1m[35mCREATE TABLE "bscf_core_user_profiles" ("id" bigserial primary key, "user_id" bigint NOT NULL, "date_of_birth" date NOT NULL, "nationality" character varying NOT NULL, "occupation" character varying NOT NULL, "source_of_funds" character varying NOT NULL, "kyc_status" integer DEFAULT 0, "gender" integer NOT NULL, "verified_at" timestamp(6), "verified_by_id" bigint, "address_id" bigint NOT NULL, "fayda_id" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
1521
|
-
[1m[35m (1.6ms)[0m [1m[35mCREATE INDEX "index_bscf_core_user_profiles_on_address_id" ON "bscf_core_user_profiles" ("address_id") /*application='Dummy'*/[0m
|
1522
|
-
[1m[35m (1.3ms)[0m [1m[35mCREATE INDEX "index_bscf_core_user_profiles_on_user_id" ON "bscf_core_user_profiles" ("user_id") /*application='Dummy'*/[0m
|
1523
|
-
[1m[35m (1.3ms)[0m [1m[35mCREATE INDEX "index_bscf_core_user_profiles_on_verified_by_id" ON "bscf_core_user_profiles" ("verified_by_id") /*application='Dummy'*/[0m
|
1524
|
-
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_user_roles" CASCADE /*application='Dummy'*/[0m
|
1525
|
-
[1m[35m (4.0ms)[0m [1m[35mCREATE TABLE "bscf_core_user_roles" ("id" bigserial primary key, "user_id" bigint NOT NULL, "role_id" bigint NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
1526
|
-
[1m[35m (1.5ms)[0m [1m[35mCREATE INDEX "index_bscf_core_user_roles_on_role_id" ON "bscf_core_user_roles" ("role_id") /*application='Dummy'*/[0m
|
1527
|
-
[1m[35m (1.4ms)[0m [1m[35mCREATE INDEX "index_bscf_core_user_roles_on_user_id" ON "bscf_core_user_roles" ("user_id") /*application='Dummy'*/[0m
|
1528
|
-
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_users" CASCADE /*application='Dummy'*/[0m
|
1529
|
-
[1m[35m (4.7ms)[0m [1m[35mCREATE TABLE "bscf_core_users" ("id" bigserial primary key, "first_name" character varying NOT NULL, "middle_name" character varying NOT NULL, "last_name" character varying NOT NULL, "email" character varying NOT NULL, "phone_number" character varying NOT NULL, "password_digest" character varying NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
1530
|
-
[1m[35m (1.7ms)[0m [1m[35mCREATE UNIQUE INDEX "index_bscf_core_users_on_email" ON "bscf_core_users" ("email") /*application='Dummy'*/[0m
|
1531
|
-
[1m[35m (2.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_bscf_core_users_on_phone_number" ON "bscf_core_users" ("phone_number") /*application='Dummy'*/[0m
|
1532
|
-
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_virtual_account_transactions" CASCADE /*application='Dummy'*/[0m
|
1533
|
-
[1m[35m (6.1ms)[0m [1m[35mCREATE TABLE "bscf_core_virtual_account_transactions" ("id" bigserial primary key, "from_account_id" bigint NOT NULL, "to_account_id" bigint NOT NULL, "amount" decimal NOT NULL, "transaction_type" integer NOT NULL, "status" integer DEFAULT 0 NOT NULL, "reference_number" character varying NOT NULL, "description" text, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
1534
|
-
[1m[35m (2.4ms)[0m [1m[35mCREATE INDEX "idx_on_from_account_id_reference_number_ecc8e65d8f" ON "bscf_core_virtual_account_transactions" ("from_account_id", "reference_number") /*application='Dummy'*/[0m
|
1535
|
-
[1m[35m (1.8ms)[0m [1m[35mCREATE INDEX "idx_on_from_account_id_643ea7341d" ON "bscf_core_virtual_account_transactions" ("from_account_id") /*application='Dummy'*/[0m
|
1536
|
-
[1m[35m (2.2ms)[0m [1m[35mCREATE UNIQUE INDEX "idx_on_reference_number_9aa4ea6333" ON "bscf_core_virtual_account_transactions" ("reference_number") /*application='Dummy'*/[0m
|
1537
|
-
[1m[35m (2.6ms)[0m [1m[35mCREATE INDEX "idx_on_to_account_id_reference_number_6f4048491d" ON "bscf_core_virtual_account_transactions" ("to_account_id", "reference_number") /*application='Dummy'*/[0m
|
1538
|
-
[1m[35m (1.6ms)[0m [1m[35mCREATE INDEX "index_bscf_core_virtual_account_transactions_on_to_account_id" ON "bscf_core_virtual_account_transactions" ("to_account_id") /*application='Dummy'*/[0m
|
1539
|
-
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_virtual_accounts" CASCADE /*application='Dummy'*/[0m
|
1540
|
-
[1m[35m (6.0ms)[0m [1m[35mCREATE TABLE "bscf_core_virtual_accounts" ("id" bigserial primary key, "user_id" bigint NOT NULL, "account_number" character varying NOT NULL, "cbs_account_number" character varying NOT NULL, "balance" decimal DEFAULT 0.0 NOT NULL, "interest_rate" decimal DEFAULT 0.0 NOT NULL, "interest_type" integer DEFAULT 0 NOT NULL, "active" boolean DEFAULT TRUE NOT NULL, "branch_code" character varying NOT NULL, "product_scheme" character varying NOT NULL, "voucher_type" character varying NOT NULL, "status" integer DEFAULT 0 NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
1541
|
-
[1m[35m (1.9ms)[0m [1m[35mCREATE UNIQUE INDEX "index_bscf_core_virtual_accounts_on_account_number" ON "bscf_core_virtual_accounts" ("account_number") /*application='Dummy'*/[0m
|
1542
|
-
[1m[35m (1.9ms)[0m [1m[35mCREATE INDEX "index_bscf_core_virtual_accounts_on_branch_code" ON "bscf_core_virtual_accounts" ("branch_code") /*application='Dummy'*/[0m
|
1543
|
-
[1m[35m (1.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_bscf_core_virtual_accounts_on_cbs_account_number" ON "bscf_core_virtual_accounts" ("cbs_account_number") /*application='Dummy'*/[0m
|
1544
|
-
[1m[35m (1.4ms)[0m [1m[35mCREATE INDEX "index_bscf_core_virtual_accounts_on_user_id_and_account_number" ON "bscf_core_virtual_accounts" ("user_id", "account_number") /*application='Dummy'*/[0m
|
1545
|
-
[1m[35m (1.4ms)[0m [1m[35mCREATE INDEX "index_bscf_core_virtual_accounts_on_user_id" ON "bscf_core_virtual_accounts" ("user_id") /*application='Dummy'*/[0m
|
1546
|
-
[1m[35m (4.0ms)[0m [1m[35mALTER TABLE "bscf_core_businesses" ADD CONSTRAINT "fk_rails_8d7490b82a"
|
1547
|
-
FOREIGN KEY ("user_id")
|
1548
|
-
REFERENCES "bscf_core_users" ("id")
|
1549
|
-
/*application='Dummy'*/[0m
|
1550
|
-
[1m[35m (2.4ms)[0m [1m[35mALTER TABLE "bscf_core_orders" ADD CONSTRAINT "fk_rails_f175f710a9"
|
1551
|
-
FOREIGN KEY ("quotation_id")
|
1552
|
-
REFERENCES "bscf_core_quotations" ("id")
|
1553
|
-
/*application='Dummy'*/[0m
|
1554
|
-
[1m[35m (1.8ms)[0m [1m[35mALTER TABLE "bscf_core_orders" ADD CONSTRAINT "fk_rails_a2aea18f9c"
|
1555
|
-
FOREIGN KEY ("ordered_by_id")
|
1556
|
-
REFERENCES "bscf_core_users" ("id")
|
1557
|
-
/*application='Dummy'*/[0m
|
1558
|
-
[1m[35m (1.7ms)[0m [1m[35mALTER TABLE "bscf_core_orders" ADD CONSTRAINT "fk_rails_6134cde349"
|
1559
|
-
FOREIGN KEY ("ordered_to_id")
|
1560
|
-
REFERENCES "bscf_core_users" ("id")
|
1561
|
-
/*application='Dummy'*/[0m
|
1562
|
-
[1m[35m (2.9ms)[0m [1m[35mALTER TABLE "bscf_core_products" ADD CONSTRAINT "fk_rails_9b9f33fd91"
|
1563
|
-
FOREIGN KEY ("category_id")
|
1564
|
-
REFERENCES "bscf_core_categories" ("id")
|
1565
|
-
/*application='Dummy'*/[0m
|
1566
|
-
[1m[35m (1.9ms)[0m [1m[35mALTER TABLE "bscf_core_quotation_items" ADD CONSTRAINT "fk_rails_b58f3b1bfb"
|
1567
|
-
FOREIGN KEY ("product_id")
|
1568
|
-
REFERENCES "bscf_core_products" ("id")
|
1569
|
-
/*application='Dummy'*/[0m
|
1570
|
-
[1m[35m (1.7ms)[0m [1m[35mALTER TABLE "bscf_core_quotation_items" ADD CONSTRAINT "fk_rails_0f1ff137cd"
|
1571
|
-
FOREIGN KEY ("quotation_id")
|
1572
|
-
REFERENCES "bscf_core_quotations" ("id")
|
1573
|
-
/*application='Dummy'*/[0m
|
1574
|
-
[1m[35m (2.3ms)[0m [1m[35mALTER TABLE "bscf_core_quotation_items" ADD CONSTRAINT "fk_rails_54b38baf27"
|
1575
|
-
FOREIGN KEY ("rfq_item_id")
|
1576
|
-
REFERENCES "bscf_core_rfq_items" ("id")
|
1577
|
-
/*application='Dummy'*/[0m
|
1578
|
-
[1m[35m (3.0ms)[0m [1m[35mALTER TABLE "bscf_core_quotations" ADD CONSTRAINT "fk_rails_5099683ac1"
|
1579
|
-
FOREIGN KEY ("business_id")
|
1580
|
-
REFERENCES "bscf_core_businesses" ("id")
|
1581
|
-
/*application='Dummy'*/[0m
|
1582
|
-
[1m[35m (2.3ms)[0m [1m[35mALTER TABLE "bscf_core_quotations" ADD CONSTRAINT "fk_rails_118cd93fd7"
|
1583
|
-
FOREIGN KEY ("request_for_quotation_id")
|
1584
|
-
REFERENCES "bscf_core_request_for_quotations" ("id")
|
1585
|
-
/*application='Dummy'*/[0m
|
1586
|
-
[1m[35m (1.8ms)[0m [1m[35mALTER TABLE "bscf_core_request_for_quotations" ADD CONSTRAINT "fk_rails_8ed521a71d"
|
1587
|
-
FOREIGN KEY ("user_id")
|
1588
|
-
REFERENCES "bscf_core_users" ("id")
|
1589
|
-
/*application='Dummy'*/[0m
|
1590
|
-
[1m[35m (1.6ms)[0m [1m[35mALTER TABLE "bscf_core_rfq_items" ADD CONSTRAINT "fk_rails_1b2464a246"
|
1591
|
-
FOREIGN KEY ("product_id")
|
1592
|
-
REFERENCES "bscf_core_products" ("id")
|
1593
|
-
/*application='Dummy'*/[0m
|
1594
|
-
[1m[35m (2.0ms)[0m [1m[35mALTER TABLE "bscf_core_rfq_items" ADD CONSTRAINT "fk_rails_1b773f00c6"
|
1595
|
-
FOREIGN KEY ("request_for_quotation_id")
|
1596
|
-
REFERENCES "bscf_core_request_for_quotations" ("id")
|
1597
|
-
/*application='Dummy'*/[0m
|
1598
|
-
[1m[35m (2.3ms)[0m [1m[35mALTER TABLE "bscf_core_user_profiles" ADD CONSTRAINT "fk_rails_c5a3f5b460"
|
1599
|
-
FOREIGN KEY ("address_id")
|
1600
|
-
REFERENCES "bscf_core_addresses" ("id")
|
1601
|
-
/*application='Dummy'*/[0m
|
1602
|
-
[1m[35m (1.6ms)[0m [1m[35mALTER TABLE "bscf_core_user_profiles" ADD CONSTRAINT "fk_rails_76d657f1fb"
|
1603
|
-
FOREIGN KEY ("user_id")
|
1604
|
-
REFERENCES "bscf_core_users" ("id")
|
1605
|
-
/*application='Dummy'*/[0m
|
1606
|
-
[1m[35m (1.6ms)[0m [1m[35mALTER TABLE "bscf_core_user_profiles" ADD CONSTRAINT "fk_rails_96d9a7609e"
|
1607
|
-
FOREIGN KEY ("verified_by_id")
|
1608
|
-
REFERENCES "bscf_core_users" ("id")
|
1609
|
-
/*application='Dummy'*/[0m
|
1610
|
-
[1m[35m (2.0ms)[0m [1m[35mALTER TABLE "bscf_core_user_roles" ADD CONSTRAINT "fk_rails_d64b2985c7"
|
1611
|
-
FOREIGN KEY ("role_id")
|
1612
|
-
REFERENCES "bscf_core_roles" ("id")
|
1613
|
-
/*application='Dummy'*/[0m
|
1614
|
-
[1m[35m (1.4ms)[0m [1m[35mALTER TABLE "bscf_core_user_roles" ADD CONSTRAINT "fk_rails_71c0ff189b"
|
1615
|
-
FOREIGN KEY ("user_id")
|
1616
|
-
REFERENCES "bscf_core_users" ("id")
|
1617
|
-
/*application='Dummy'*/[0m
|
1618
|
-
[1m[35m (3.4ms)[0m [1m[35mALTER TABLE "bscf_core_virtual_account_transactions" ADD CONSTRAINT "fk_rails_7dc2e329f8"
|
1619
|
-
FOREIGN KEY ("from_account_id")
|
1620
|
-
REFERENCES "bscf_core_virtual_accounts" ("id")
|
1621
|
-
/*application='Dummy'*/[0m
|
1622
|
-
[1m[35m (1.8ms)[0m [1m[35mALTER TABLE "bscf_core_virtual_account_transactions" ADD CONSTRAINT "fk_rails_fc01221ed7"
|
1623
|
-
FOREIGN KEY ("to_account_id")
|
1624
|
-
REFERENCES "bscf_core_virtual_accounts" ("id")
|
1625
|
-
/*application='Dummy'*/[0m
|
1626
|
-
[1m[35m (1.4ms)[0m [1m[35mALTER TABLE "bscf_core_virtual_accounts" ADD CONSTRAINT "fk_rails_062e0240bd"
|
1627
|
-
FOREIGN KEY ("user_id")
|
1628
|
-
REFERENCES "bscf_core_users" ("id")
|
1629
|
-
/*application='Dummy'*/[0m
|
1630
|
-
[1m[35m (4.6ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY) /*application='Dummy'*/[0m
|
1631
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
1632
|
-
[1m[35m (0.6ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (20250327102217) /*application='Dummy'*/[0m
|
1633
|
-
[1m[35m (0.5ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES
|
1634
|
-
(20250327044020),
|
1635
|
-
(20250327041651),
|
1636
|
-
(20250326121246),
|
1637
|
-
(20250326120613),
|
1638
|
-
(20250326115203),
|
1639
|
-
(20250326112449),
|
1640
|
-
(20250326105652),
|
1641
|
-
(20250326103305),
|
1642
|
-
(20250326085741),
|
1643
|
-
(20250326084233),
|
1644
|
-
(20250326081052),
|
1645
|
-
(20250326080646),
|
1646
|
-
(20250326075111),
|
1647
|
-
(20250326065606); /*application='Dummy'*/[0m
|
1648
|
-
[1m[35m (4.9ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
1649
|
-
[1m[36mActiveRecord::InternalMetadata Load (1.1ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
1650
|
-
[1m[36mActiveRecord::InternalMetadata Create (0.6ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'development', '2025-03-27 11:21:08.085047', '2025-03-27 11:21:08.085055') RETURNING "key" /*application='Dummy'*/[0m
|
1651
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.3ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
1652
|
-
[1m[36mActiveRecord::InternalMetadata Update (0.6ms)[0m [1m[33mUPDATE "ar_internal_metadata" SET "value" = 'test', "updated_at" = '2025-03-27 11:21:08.090091' WHERE "ar_internal_metadata"."key" = 'environment' /*application='Dummy'*/[0m
|
1653
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'schema_sha1' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
1654
|
-
[1m[36mActiveRecord::InternalMetadata Create (1.2ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('schema_sha1', '58ffc44e4fb07f7574e2107f7f7563f0b0e112c9', '2025-03-27 11:21:08.094558', '2025-03-27 11:21:08.094562') RETURNING "key" /*application='Dummy'*/[0m
|
1655
|
-
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_try_advisory_lock(7136077842679658775) /*application='Dummy'*/[0m
|
1656
|
-
[1m[36mActiveRecord::SchemaMigration Load (2.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
1657
|
-
[1m[36mActiveRecord::InternalMetadata Load (1.3ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
1658
|
-
Migrating to CreateBscfCoreOrderItems (20250327112412)
|
1659
|
-
[1m[36mTRANSACTION (0.2ms)[0m [1m[35mBEGIN /*application='Dummy'*/[0m
|
1660
|
-
[1m[35m (16.2ms)[0m [1m[35mCREATE TABLE "bscf_core_order_items" ("id" bigserial primary key, "order_id" bigint NOT NULL, "product_id" bigint NOT NULL, "quotation_item_id" bigint, "quantity" float NOT NULL, "unit_price" float NOT NULL, "subtotal" float NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL, CONSTRAINT "fk_rails_594dbae950"
|
1661
|
-
FOREIGN KEY ("order_id")
|
1662
|
-
REFERENCES "bscf_core_orders" ("id")
|
1663
|
-
, CONSTRAINT "fk_rails_17adb37720"
|
1664
|
-
FOREIGN KEY ("product_id")
|
1665
|
-
REFERENCES "bscf_core_products" ("id")
|
1666
|
-
, CONSTRAINT "fk_rails_dfc96f9a7f"
|
1667
|
-
FOREIGN KEY ("quotation_item_id")
|
1668
|
-
REFERENCES "bscf_core_quotation_items" ("id")
|
1669
|
-
) /*application='Dummy'*/[0m
|
1670
|
-
[1m[35m (1.1ms)[0m [1m[35mCREATE INDEX "index_bscf_core_order_items_on_order_id" ON "bscf_core_order_items" ("order_id") /*application='Dummy'*/[0m
|
1671
|
-
[1m[35m (0.9ms)[0m [1m[35mCREATE INDEX "index_bscf_core_order_items_on_product_id" ON "bscf_core_order_items" ("product_id") /*application='Dummy'*/[0m
|
1672
|
-
[1m[35m (1.0ms)[0m [1m[35mCREATE INDEX "index_bscf_core_order_items_on_quotation_item_id" ON "bscf_core_order_items" ("quotation_item_id") /*application='Dummy'*/[0m
|
1673
|
-
[1m[36mActiveRecord::SchemaMigration Create (0.5ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ('20250327112412') RETURNING "version" /*application='Dummy'*/[0m
|
1674
|
-
[1m[36mTRANSACTION (0.4ms)[0m [1m[35mCOMMIT /*application='Dummy'*/[0m
|
1675
|
-
[1m[35m (0.4ms)[0m [1m[34mSELECT pg_advisory_unlock(7136077842679658775) /*application='Dummy'*/[0m
|
1676
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
1677
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
1678
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
1679
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
1680
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
1681
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
1682
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
1683
|
-
[1m[35mSQL (0.1ms)[0m [1m[35mSET search_path TO public /*application='Dummy'*/[0m
|
1684
|
-
[1m[35m (103.9ms)[0m [1m[35mDROP DATABASE IF EXISTS "bscf_test" /*application='Dummy'*/[0m
|
1685
|
-
[1m[35m (143.1ms)[0m [1m[35mCREATE DATABASE "bscf_test" ENCODING = 'unicode' /*application='Dummy'*/[0m
|
1686
|
-
[1m[35mSQL (16.5ms)[0m [1m[35mCREATE EXTENSION IF NOT EXISTS "plpgsql" SCHEMA pg_catalog /*application='Dummy'*/[0m
|
1687
|
-
[1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_addresses" CASCADE /*application='Dummy'*/[0m
|
1688
|
-
[1m[35m (3.3ms)[0m [1m[35mCREATE TABLE "bscf_core_addresses" ("id" bigserial primary key, "city" character varying, "sub_city" character varying, "woreda" character varying, "latitude" character varying, "longitude" character varying, "house_number" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
1689
|
-
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_businesses" CASCADE /*application='Dummy'*/[0m
|
1690
|
-
[1m[35m (1.4ms)[0m [1m[35mCREATE TABLE "bscf_core_businesses" ("id" bigserial primary key, "user_id" bigint NOT NULL, "business_name" character varying NOT NULL, "tin_number" character varying NOT NULL, "business_type" integer DEFAULT 0 NOT NULL, "verified_at" timestamp(6), "verification_status" integer DEFAULT 0 NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
1691
|
-
[1m[35m (0.9ms)[0m [1m[35mCREATE INDEX "index_bscf_core_businesses_on_user_id" ON "bscf_core_businesses" ("user_id") /*application='Dummy'*/[0m
|
1692
|
-
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_categories" CASCADE /*application='Dummy'*/[0m
|
1693
|
-
[1m[35m (1.5ms)[0m [1m[35mCREATE TABLE "bscf_core_categories" ("id" bigserial primary key, "name" character varying NOT NULL, "description" character varying NOT NULL, "parent_id" bigint, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
1694
|
-
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_order_items" CASCADE /*application='Dummy'*/[0m
|
1695
|
-
[1m[35m (1.7ms)[0m [1m[35mCREATE TABLE "bscf_core_order_items" ("id" bigserial primary key, "order_id" bigint NOT NULL, "product_id" bigint NOT NULL, "quotation_item_id" bigint, "quantity" float NOT NULL, "unit_price" float NOT NULL, "subtotal" float NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
1696
|
-
[1m[35m (0.7ms)[0m [1m[35mCREATE INDEX "index_bscf_core_order_items_on_order_id" ON "bscf_core_order_items" ("order_id") /*application='Dummy'*/[0m
|
1697
|
-
[1m[35m (0.5ms)[0m [1m[35mCREATE INDEX "index_bscf_core_order_items_on_product_id" ON "bscf_core_order_items" ("product_id") /*application='Dummy'*/[0m
|
1698
|
-
[1m[35m (0.5ms)[0m [1m[35mCREATE INDEX "index_bscf_core_order_items_on_quotation_item_id" ON "bscf_core_order_items" ("quotation_item_id") /*application='Dummy'*/[0m
|
1699
|
-
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_orders" CASCADE /*application='Dummy'*/[0m
|
1700
|
-
[1m[35m (1.3ms)[0m [1m[35mCREATE TABLE "bscf_core_orders" ("id" bigserial primary key, "ordered_by_id" bigint, "ordered_to_id" bigint, "quotation_id" bigint, "order_type" integer DEFAULT 0 NOT NULL, "status" integer DEFAULT 0 NOT NULL, "total_amount" float, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
1701
|
-
[1m[35m (0.6ms)[0m [1m[35mCREATE INDEX "index_bscf_core_orders_on_ordered_by_id" ON "bscf_core_orders" ("ordered_by_id") /*application='Dummy'*/[0m
|
1702
|
-
[1m[35m (1.2ms)[0m [1m[35mCREATE INDEX "index_bscf_core_orders_on_ordered_to_id" ON "bscf_core_orders" ("ordered_to_id") /*application='Dummy'*/[0m
|
1703
|
-
[1m[35m (0.7ms)[0m [1m[35mCREATE INDEX "index_bscf_core_orders_on_quotation_id" ON "bscf_core_orders" ("quotation_id") /*application='Dummy'*/[0m
|
1704
|
-
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_products" CASCADE /*application='Dummy'*/[0m
|
1705
|
-
[1m[35m (1.8ms)[0m [1m[35mCREATE TABLE "bscf_core_products" ("id" bigserial primary key, "sku" character varying NOT NULL, "name" character varying NOT NULL, "description" character varying NOT NULL, "category_id" bigint NOT NULL, "base_price" decimal DEFAULT 0.0 NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
1706
|
-
[1m[35m (0.7ms)[0m [1m[35mCREATE INDEX "index_bscf_core_products_on_category_id" ON "bscf_core_products" ("category_id") /*application='Dummy'*/[0m
|
1707
|
-
[1m[35m (0.7ms)[0m [1m[35mCREATE UNIQUE INDEX "index_bscf_core_products_on_sku" ON "bscf_core_products" ("sku") /*application='Dummy'*/[0m
|
1708
|
-
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_quotation_items" CASCADE /*application='Dummy'*/[0m
|
1709
|
-
[1m[35m (1.6ms)[0m [1m[35mCREATE TABLE "bscf_core_quotation_items" ("id" bigserial primary key, "quotation_id" bigint NOT NULL, "rfq_item_id" bigint NOT NULL, "product_id" bigint NOT NULL, "quantity" integer NOT NULL, "unit_price" decimal NOT NULL, "unit" integer NOT NULL, "subtotal" decimal NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
1710
|
-
[1m[35m (0.9ms)[0m [1m[35mCREATE INDEX "index_bscf_core_quotation_items_on_product_id" ON "bscf_core_quotation_items" ("product_id") /*application='Dummy'*/[0m
|
1711
|
-
[1m[35m (0.6ms)[0m [1m[35mCREATE INDEX "index_bscf_core_quotation_items_on_quotation_id" ON "bscf_core_quotation_items" ("quotation_id") /*application='Dummy'*/[0m
|
1712
|
-
[1m[35m (0.6ms)[0m [1m[35mCREATE INDEX "index_bscf_core_quotation_items_on_rfq_item_id" ON "bscf_core_quotation_items" ("rfq_item_id") /*application='Dummy'*/[0m
|
1713
|
-
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_quotations" CASCADE /*application='Dummy'*/[0m
|
1714
|
-
[1m[35m (2.0ms)[0m [1m[35mCREATE TABLE "bscf_core_quotations" ("id" bigserial primary key, "request_for_quotation_id" bigint NOT NULL, "business_id" bigint NOT NULL, "price" decimal NOT NULL, "delivery_date" date NOT NULL, "valid_until" timestamp(6) NOT NULL, "status" integer DEFAULT 0 NOT NULL, "notes" text, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
1715
|
-
[1m[35m (0.7ms)[0m [1m[35mCREATE INDEX "index_bscf_core_quotations_on_business_id" ON "bscf_core_quotations" ("business_id") /*application='Dummy'*/[0m
|
1716
|
-
[1m[35m (0.5ms)[0m [1m[35mCREATE INDEX "index_bscf_core_quotations_on_request_for_quotation_id" ON "bscf_core_quotations" ("request_for_quotation_id") /*application='Dummy'*/[0m
|
1717
|
-
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_request_for_quotations" CASCADE /*application='Dummy'*/[0m
|
1718
|
-
[1m[35m (1.9ms)[0m [1m[35mCREATE TABLE "bscf_core_request_for_quotations" ("id" bigserial primary key, "user_id" bigint NOT NULL, "status" integer DEFAULT 0 NOT NULL, "notes" text, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
1719
|
-
[1m[35m (0.8ms)[0m [1m[35mCREATE INDEX "index_bscf_core_request_for_quotations_on_user_id" ON "bscf_core_request_for_quotations" ("user_id") /*application='Dummy'*/[0m
|
1720
|
-
[1m[35m (0.4ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_rfq_items" CASCADE /*application='Dummy'*/[0m
|
1721
|
-
[1m[35m (1.6ms)[0m [1m[35mCREATE TABLE "bscf_core_rfq_items" ("id" bigserial primary key, "request_for_quotation_id" bigint NOT NULL, "product_id" bigint NOT NULL, "quantity" float NOT NULL, "notes" text, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
1722
|
-
[1m[35m (0.8ms)[0m [1m[35mCREATE INDEX "index_bscf_core_rfq_items_on_product_id" ON "bscf_core_rfq_items" ("product_id") /*application='Dummy'*/[0m
|
1723
|
-
[1m[35m (1.2ms)[0m [1m[35mCREATE INDEX "index_bscf_core_rfq_items_on_request_for_quotation_id" ON "bscf_core_rfq_items" ("request_for_quotation_id") /*application='Dummy'*/[0m
|
1724
|
-
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_roles" CASCADE /*application='Dummy'*/[0m
|
1725
|
-
[1m[35m (2.0ms)[0m [1m[35mCREATE TABLE "bscf_core_roles" ("id" bigserial primary key, "name" character varying NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
1726
|
-
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_user_profiles" CASCADE /*application='Dummy'*/[0m
|
1727
|
-
[1m[35m (2.3ms)[0m [1m[35mCREATE TABLE "bscf_core_user_profiles" ("id" bigserial primary key, "user_id" bigint NOT NULL, "date_of_birth" date NOT NULL, "nationality" character varying NOT NULL, "occupation" character varying NOT NULL, "source_of_funds" character varying NOT NULL, "kyc_status" integer DEFAULT 0, "gender" integer NOT NULL, "verified_at" timestamp(6), "verified_by_id" bigint, "address_id" bigint NOT NULL, "fayda_id" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
1728
|
-
[1m[35m (1.0ms)[0m [1m[35mCREATE INDEX "index_bscf_core_user_profiles_on_address_id" ON "bscf_core_user_profiles" ("address_id") /*application='Dummy'*/[0m
|
1729
|
-
[1m[35m (0.6ms)[0m [1m[35mCREATE INDEX "index_bscf_core_user_profiles_on_user_id" ON "bscf_core_user_profiles" ("user_id") /*application='Dummy'*/[0m
|
1730
|
-
[1m[35m (0.7ms)[0m [1m[35mCREATE INDEX "index_bscf_core_user_profiles_on_verified_by_id" ON "bscf_core_user_profiles" ("verified_by_id") /*application='Dummy'*/[0m
|
1731
|
-
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_user_roles" CASCADE /*application='Dummy'*/[0m
|
1732
|
-
[1m[35m (1.5ms)[0m [1m[35mCREATE TABLE "bscf_core_user_roles" ("id" bigserial primary key, "user_id" bigint NOT NULL, "role_id" bigint NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
1733
|
-
[1m[35m (0.8ms)[0m [1m[35mCREATE INDEX "index_bscf_core_user_roles_on_role_id" ON "bscf_core_user_roles" ("role_id") /*application='Dummy'*/[0m
|
1734
|
-
[1m[35m (0.7ms)[0m [1m[35mCREATE INDEX "index_bscf_core_user_roles_on_user_id" ON "bscf_core_user_roles" ("user_id") /*application='Dummy'*/[0m
|
1735
|
-
[1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_users" CASCADE /*application='Dummy'*/[0m
|
1736
|
-
[1m[35m (1.8ms)[0m [1m[35mCREATE TABLE "bscf_core_users" ("id" bigserial primary key, "first_name" character varying NOT NULL, "middle_name" character varying NOT NULL, "last_name" character varying NOT NULL, "email" character varying NOT NULL, "phone_number" character varying NOT NULL, "password_digest" character varying NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
1737
|
-
[1m[35m (0.9ms)[0m [1m[35mCREATE UNIQUE INDEX "index_bscf_core_users_on_email" ON "bscf_core_users" ("email") /*application='Dummy'*/[0m
|
1738
|
-
[1m[35m (0.8ms)[0m [1m[35mCREATE UNIQUE INDEX "index_bscf_core_users_on_phone_number" ON "bscf_core_users" ("phone_number") /*application='Dummy'*/[0m
|
1739
|
-
[1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_virtual_account_transactions" CASCADE /*application='Dummy'*/[0m
|
1740
|
-
[1m[35m (2.0ms)[0m [1m[35mCREATE TABLE "bscf_core_virtual_account_transactions" ("id" bigserial primary key, "from_account_id" bigint NOT NULL, "to_account_id" bigint NOT NULL, "amount" decimal NOT NULL, "transaction_type" integer NOT NULL, "status" integer DEFAULT 0 NOT NULL, "reference_number" character varying NOT NULL, "description" text, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
1741
|
-
[1m[35m (0.9ms)[0m [1m[35mCREATE INDEX "idx_on_from_account_id_reference_number_ecc8e65d8f" ON "bscf_core_virtual_account_transactions" ("from_account_id", "reference_number") /*application='Dummy'*/[0m
|
1742
|
-
[1m[35m (0.8ms)[0m [1m[35mCREATE INDEX "idx_on_from_account_id_643ea7341d" ON "bscf_core_virtual_account_transactions" ("from_account_id") /*application='Dummy'*/[0m
|
1743
|
-
[1m[35m (0.6ms)[0m [1m[35mCREATE UNIQUE INDEX "idx_on_reference_number_9aa4ea6333" ON "bscf_core_virtual_account_transactions" ("reference_number") /*application='Dummy'*/[0m
|
1744
|
-
[1m[35m (0.7ms)[0m [1m[35mCREATE INDEX "idx_on_to_account_id_reference_number_6f4048491d" ON "bscf_core_virtual_account_transactions" ("to_account_id", "reference_number") /*application='Dummy'*/[0m
|
1745
|
-
[1m[35m (1.0ms)[0m [1m[35mCREATE INDEX "index_bscf_core_virtual_account_transactions_on_to_account_id" ON "bscf_core_virtual_account_transactions" ("to_account_id") /*application='Dummy'*/[0m
|
1746
|
-
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_virtual_accounts" CASCADE /*application='Dummy'*/[0m
|
1747
|
-
[1m[35m (2.4ms)[0m [1m[35mCREATE TABLE "bscf_core_virtual_accounts" ("id" bigserial primary key, "user_id" bigint NOT NULL, "account_number" character varying NOT NULL, "cbs_account_number" character varying NOT NULL, "balance" decimal DEFAULT 0.0 NOT NULL, "interest_rate" decimal DEFAULT 0.0 NOT NULL, "interest_type" integer DEFAULT 0 NOT NULL, "active" boolean DEFAULT TRUE NOT NULL, "branch_code" character varying NOT NULL, "product_scheme" character varying NOT NULL, "voucher_type" character varying NOT NULL, "status" integer DEFAULT 0 NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
1748
|
-
[1m[35m (1.0ms)[0m [1m[35mCREATE UNIQUE INDEX "index_bscf_core_virtual_accounts_on_account_number" ON "bscf_core_virtual_accounts" ("account_number") /*application='Dummy'*/[0m
|
1749
|
-
[1m[35m (0.7ms)[0m [1m[35mCREATE INDEX "index_bscf_core_virtual_accounts_on_branch_code" ON "bscf_core_virtual_accounts" ("branch_code") /*application='Dummy'*/[0m
|
1750
|
-
[1m[35m (0.8ms)[0m [1m[35mCREATE UNIQUE INDEX "index_bscf_core_virtual_accounts_on_cbs_account_number" ON "bscf_core_virtual_accounts" ("cbs_account_number") /*application='Dummy'*/[0m
|
1751
|
-
[1m[35m (0.7ms)[0m [1m[35mCREATE INDEX "index_bscf_core_virtual_accounts_on_user_id_and_account_number" ON "bscf_core_virtual_accounts" ("user_id", "account_number") /*application='Dummy'*/[0m
|
1752
|
-
[1m[35m (0.7ms)[0m [1m[35mCREATE INDEX "index_bscf_core_virtual_accounts_on_user_id" ON "bscf_core_virtual_accounts" ("user_id") /*application='Dummy'*/[0m
|
1753
|
-
[1m[35m (1.9ms)[0m [1m[35mALTER TABLE "bscf_core_businesses" ADD CONSTRAINT "fk_rails_8d7490b82a"
|
1754
|
-
FOREIGN KEY ("user_id")
|
1755
|
-
REFERENCES "bscf_core_users" ("id")
|
1756
|
-
/*application='Dummy'*/[0m
|
1757
|
-
[1m[35m (1.7ms)[0m [1m[35mALTER TABLE "bscf_core_order_items" ADD CONSTRAINT "fk_rails_594dbae950"
|
1758
|
-
FOREIGN KEY ("order_id")
|
1759
|
-
REFERENCES "bscf_core_orders" ("id")
|
1760
|
-
/*application='Dummy'*/[0m
|
1761
|
-
[1m[35m (0.9ms)[0m [1m[35mALTER TABLE "bscf_core_order_items" ADD CONSTRAINT "fk_rails_17adb37720"
|
1762
|
-
FOREIGN KEY ("product_id")
|
1763
|
-
REFERENCES "bscf_core_products" ("id")
|
1764
|
-
/*application='Dummy'*/[0m
|
1765
|
-
[1m[35m (0.9ms)[0m [1m[35mALTER TABLE "bscf_core_order_items" ADD CONSTRAINT "fk_rails_dfc96f9a7f"
|
1766
|
-
FOREIGN KEY ("quotation_item_id")
|
1767
|
-
REFERENCES "bscf_core_quotation_items" ("id")
|
1768
|
-
/*application='Dummy'*/[0m
|
1769
|
-
[1m[35m (1.0ms)[0m [1m[35mALTER TABLE "bscf_core_orders" ADD CONSTRAINT "fk_rails_f175f710a9"
|
1770
|
-
FOREIGN KEY ("quotation_id")
|
1771
|
-
REFERENCES "bscf_core_quotations" ("id")
|
1772
|
-
/*application='Dummy'*/[0m
|
1773
|
-
[1m[35m (0.6ms)[0m [1m[35mALTER TABLE "bscf_core_orders" ADD CONSTRAINT "fk_rails_a2aea18f9c"
|
1774
|
-
FOREIGN KEY ("ordered_by_id")
|
1775
|
-
REFERENCES "bscf_core_users" ("id")
|
1776
|
-
/*application='Dummy'*/[0m
|
1777
|
-
[1m[35m (0.6ms)[0m [1m[35mALTER TABLE "bscf_core_orders" ADD CONSTRAINT "fk_rails_6134cde349"
|
1778
|
-
FOREIGN KEY ("ordered_to_id")
|
1779
|
-
REFERENCES "bscf_core_users" ("id")
|
1780
|
-
/*application='Dummy'*/[0m
|
1781
|
-
[1m[35m (0.7ms)[0m [1m[35mALTER TABLE "bscf_core_products" ADD CONSTRAINT "fk_rails_9b9f33fd91"
|
1782
|
-
FOREIGN KEY ("category_id")
|
1783
|
-
REFERENCES "bscf_core_categories" ("id")
|
1784
|
-
/*application='Dummy'*/[0m
|
1785
|
-
[1m[35m (0.9ms)[0m [1m[35mALTER TABLE "bscf_core_quotation_items" ADD CONSTRAINT "fk_rails_b58f3b1bfb"
|
1786
|
-
FOREIGN KEY ("product_id")
|
1787
|
-
REFERENCES "bscf_core_products" ("id")
|
1788
|
-
/*application='Dummy'*/[0m
|
1789
|
-
[1m[35m (0.7ms)[0m [1m[35mALTER TABLE "bscf_core_quotation_items" ADD CONSTRAINT "fk_rails_0f1ff137cd"
|
1790
|
-
FOREIGN KEY ("quotation_id")
|
1791
|
-
REFERENCES "bscf_core_quotations" ("id")
|
1792
|
-
/*application='Dummy'*/[0m
|
1793
|
-
[1m[35m (1.0ms)[0m [1m[35mALTER TABLE "bscf_core_quotation_items" ADD CONSTRAINT "fk_rails_54b38baf27"
|
1794
|
-
FOREIGN KEY ("rfq_item_id")
|
1795
|
-
REFERENCES "bscf_core_rfq_items" ("id")
|
1796
|
-
/*application='Dummy'*/[0m
|
1797
|
-
[1m[35m (0.7ms)[0m [1m[35mALTER TABLE "bscf_core_quotations" ADD CONSTRAINT "fk_rails_5099683ac1"
|
1798
|
-
FOREIGN KEY ("business_id")
|
1799
|
-
REFERENCES "bscf_core_businesses" ("id")
|
1800
|
-
/*application='Dummy'*/[0m
|
1801
|
-
[1m[35m (1.3ms)[0m [1m[35mALTER TABLE "bscf_core_quotations" ADD CONSTRAINT "fk_rails_118cd93fd7"
|
1802
|
-
FOREIGN KEY ("request_for_quotation_id")
|
1803
|
-
REFERENCES "bscf_core_request_for_quotations" ("id")
|
1804
|
-
/*application='Dummy'*/[0m
|
1805
|
-
[1m[35m (0.7ms)[0m [1m[35mALTER TABLE "bscf_core_request_for_quotations" ADD CONSTRAINT "fk_rails_8ed521a71d"
|
1806
|
-
FOREIGN KEY ("user_id")
|
1807
|
-
REFERENCES "bscf_core_users" ("id")
|
1808
|
-
/*application='Dummy'*/[0m
|
1809
|
-
[1m[35m (0.7ms)[0m [1m[35mALTER TABLE "bscf_core_rfq_items" ADD CONSTRAINT "fk_rails_1b2464a246"
|
1810
|
-
FOREIGN KEY ("product_id")
|
1811
|
-
REFERENCES "bscf_core_products" ("id")
|
1812
|
-
/*application='Dummy'*/[0m
|
1813
|
-
[1m[35m (0.7ms)[0m [1m[35mALTER TABLE "bscf_core_rfq_items" ADD CONSTRAINT "fk_rails_1b773f00c6"
|
1814
|
-
FOREIGN KEY ("request_for_quotation_id")
|
1815
|
-
REFERENCES "bscf_core_request_for_quotations" ("id")
|
1816
|
-
/*application='Dummy'*/[0m
|
1817
|
-
[1m[35m (1.2ms)[0m [1m[35mALTER TABLE "bscf_core_user_profiles" ADD CONSTRAINT "fk_rails_c5a3f5b460"
|
1818
|
-
FOREIGN KEY ("address_id")
|
1819
|
-
REFERENCES "bscf_core_addresses" ("id")
|
1820
|
-
/*application='Dummy'*/[0m
|
1821
|
-
[1m[35m (0.7ms)[0m [1m[35mALTER TABLE "bscf_core_user_profiles" ADD CONSTRAINT "fk_rails_76d657f1fb"
|
1822
|
-
FOREIGN KEY ("user_id")
|
1823
|
-
REFERENCES "bscf_core_users" ("id")
|
1824
|
-
/*application='Dummy'*/[0m
|
1825
|
-
[1m[35m (0.7ms)[0m [1m[35mALTER TABLE "bscf_core_user_profiles" ADD CONSTRAINT "fk_rails_96d9a7609e"
|
1826
|
-
FOREIGN KEY ("verified_by_id")
|
1827
|
-
REFERENCES "bscf_core_users" ("id")
|
1828
|
-
/*application='Dummy'*/[0m
|
1829
|
-
[1m[35m (1.2ms)[0m [1m[35mALTER TABLE "bscf_core_user_roles" ADD CONSTRAINT "fk_rails_d64b2985c7"
|
1830
|
-
FOREIGN KEY ("role_id")
|
1831
|
-
REFERENCES "bscf_core_roles" ("id")
|
1832
|
-
/*application='Dummy'*/[0m
|
1833
|
-
[1m[35m (0.7ms)[0m [1m[35mALTER TABLE "bscf_core_user_roles" ADD CONSTRAINT "fk_rails_71c0ff189b"
|
1834
|
-
FOREIGN KEY ("user_id")
|
1835
|
-
REFERENCES "bscf_core_users" ("id")
|
1836
|
-
/*application='Dummy'*/[0m
|
1837
|
-
[1m[35m (1.6ms)[0m [1m[35mALTER TABLE "bscf_core_virtual_account_transactions" ADD CONSTRAINT "fk_rails_7dc2e329f8"
|
1838
|
-
FOREIGN KEY ("from_account_id")
|
1839
|
-
REFERENCES "bscf_core_virtual_accounts" ("id")
|
1840
|
-
/*application='Dummy'*/[0m
|
1841
|
-
[1m[35m (1.1ms)[0m [1m[35mALTER TABLE "bscf_core_virtual_account_transactions" ADD CONSTRAINT "fk_rails_fc01221ed7"
|
1842
|
-
FOREIGN KEY ("to_account_id")
|
1843
|
-
REFERENCES "bscf_core_virtual_accounts" ("id")
|
1844
|
-
/*application='Dummy'*/[0m
|
1845
|
-
[1m[35m (0.7ms)[0m [1m[35mALTER TABLE "bscf_core_virtual_accounts" ADD CONSTRAINT "fk_rails_062e0240bd"
|
1846
|
-
FOREIGN KEY ("user_id")
|
1847
|
-
REFERENCES "bscf_core_users" ("id")
|
1848
|
-
/*application='Dummy'*/[0m
|
1849
|
-
[1m[35m (2.2ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY) /*application='Dummy'*/[0m
|
1850
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
1851
|
-
[1m[35m (0.5ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (20250327112412) /*application='Dummy'*/[0m
|
1852
|
-
[1m[35m (0.5ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES
|
1853
|
-
(20250327102217),
|
1854
|
-
(20250327044020),
|
1855
|
-
(20250327041651),
|
1856
|
-
(20250326121246),
|
1857
|
-
(20250326120613),
|
1858
|
-
(20250326115203),
|
1859
|
-
(20250326112449),
|
1860
|
-
(20250326105652),
|
1861
|
-
(20250326103305),
|
1862
|
-
(20250326085741),
|
1863
|
-
(20250326084233),
|
1864
|
-
(20250326081052),
|
1865
|
-
(20250326080646),
|
1866
|
-
(20250326075111),
|
1867
|
-
(20250326065606); /*application='Dummy'*/[0m
|
1868
|
-
[1m[35m (2.9ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
1869
|
-
[1m[36mActiveRecord::InternalMetadata Load (1.0ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
1870
|
-
[1m[36mActiveRecord::InternalMetadata Create (0.6ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'development', '2025-03-27 11:33:30.752001', '2025-03-27 11:33:30.752008') RETURNING "key" /*application='Dummy'*/[0m
|
1871
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
1872
|
-
[1m[36mActiveRecord::InternalMetadata Update (1.1ms)[0m [1m[33mUPDATE "ar_internal_metadata" SET "value" = 'test', "updated_at" = '2025-03-27 11:33:30.756967' WHERE "ar_internal_metadata"."key" = 'environment' /*application='Dummy'*/[0m
|
1873
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.3ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'schema_sha1' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
1874
|
-
[1m[36mActiveRecord::InternalMetadata Create (0.4ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('schema_sha1', '083c7a3bd0adf1f568a9f3f2caac4f356556e3b0', '2025-03-27 11:33:30.760672', '2025-03-27 11:33:30.760676') RETURNING "key" /*application='Dummy'*/[0m
|
1875
|
-
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_try_advisory_lock(7136077842679658775) /*application='Dummy'*/[0m
|
1876
|
-
[1m[36mActiveRecord::SchemaMigration Load (2.4ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
1877
|
-
[1m[36mActiveRecord::InternalMetadata Load (1.4ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
1878
|
-
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_advisory_unlock(7136077842679658775) /*application='Dummy'*/[0m
|
1879
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
1880
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
1881
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
1882
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
1883
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
1884
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
1885
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
1886
|
-
[1m[35mSQL (0.1ms)[0m [1m[35mSET search_path TO public /*application='Dummy'*/[0m
|
1887
|
-
[1m[35m (81.4ms)[0m [1m[35mDROP DATABASE IF EXISTS "bscf_test" /*application='Dummy'*/[0m
|
1888
|
-
[1m[35m (132.0ms)[0m [1m[35mCREATE DATABASE "bscf_test" ENCODING = 'unicode' /*application='Dummy'*/[0m
|
1889
|
-
[1m[35mSQL (16.1ms)[0m [1m[35mCREATE EXTENSION IF NOT EXISTS "plpgsql" SCHEMA pg_catalog /*application='Dummy'*/[0m
|
1890
|
-
[1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_addresses" CASCADE /*application='Dummy'*/[0m
|
1891
|
-
[1m[35m (4.4ms)[0m [1m[35mCREATE TABLE "bscf_core_addresses" ("id" bigserial primary key, "city" character varying, "sub_city" character varying, "woreda" character varying, "latitude" character varying, "longitude" character varying, "house_number" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
1892
|
-
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_businesses" CASCADE /*application='Dummy'*/[0m
|
1893
|
-
[1m[35m (1.6ms)[0m [1m[35mCREATE TABLE "bscf_core_businesses" ("id" bigserial primary key, "user_id" bigint NOT NULL, "business_name" character varying NOT NULL, "tin_number" character varying NOT NULL, "business_type" integer DEFAULT 0 NOT NULL, "verified_at" timestamp(6), "verification_status" integer DEFAULT 0 NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
1894
|
-
[1m[35m (0.7ms)[0m [1m[35mCREATE INDEX "index_bscf_core_businesses_on_user_id" ON "bscf_core_businesses" ("user_id") /*application='Dummy'*/[0m
|
1895
|
-
[1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_categories" CASCADE /*application='Dummy'*/[0m
|
1896
|
-
[1m[35m (1.5ms)[0m [1m[35mCREATE TABLE "bscf_core_categories" ("id" bigserial primary key, "name" character varying NOT NULL, "description" character varying NOT NULL, "parent_id" bigint, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
1897
|
-
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_order_items" CASCADE /*application='Dummy'*/[0m
|
1898
|
-
[1m[35m (1.1ms)[0m [1m[35mCREATE TABLE "bscf_core_order_items" ("id" bigserial primary key, "order_id" bigint NOT NULL, "product_id" bigint NOT NULL, "quotation_item_id" bigint, "quantity" float NOT NULL, "unit_price" float NOT NULL, "subtotal" float NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
1899
|
-
[1m[35m (0.6ms)[0m [1m[35mCREATE INDEX "index_bscf_core_order_items_on_order_id" ON "bscf_core_order_items" ("order_id") /*application='Dummy'*/[0m
|
1900
|
-
[1m[35m (0.5ms)[0m [1m[35mCREATE INDEX "index_bscf_core_order_items_on_product_id" ON "bscf_core_order_items" ("product_id") /*application='Dummy'*/[0m
|
1901
|
-
[1m[35m (0.6ms)[0m [1m[35mCREATE INDEX "index_bscf_core_order_items_on_quotation_item_id" ON "bscf_core_order_items" ("quotation_item_id") /*application='Dummy'*/[0m
|
1902
|
-
[1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_orders" CASCADE /*application='Dummy'*/[0m
|
1903
|
-
[1m[35m (1.1ms)[0m [1m[35mCREATE TABLE "bscf_core_orders" ("id" bigserial primary key, "ordered_by_id" bigint, "ordered_to_id" bigint, "quotation_id" bigint, "order_type" integer DEFAULT 0 NOT NULL, "status" integer DEFAULT 0 NOT NULL, "total_amount" float, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
1904
|
-
[1m[35m (0.6ms)[0m [1m[35mCREATE INDEX "index_bscf_core_orders_on_ordered_by_id" ON "bscf_core_orders" ("ordered_by_id") /*application='Dummy'*/[0m
|
1905
|
-
[1m[35m (0.6ms)[0m [1m[35mCREATE INDEX "index_bscf_core_orders_on_ordered_to_id" ON "bscf_core_orders" ("ordered_to_id") /*application='Dummy'*/[0m
|
1906
|
-
[1m[35m (0.5ms)[0m [1m[35mCREATE INDEX "index_bscf_core_orders_on_quotation_id" ON "bscf_core_orders" ("quotation_id") /*application='Dummy'*/[0m
|
1907
|
-
[1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_products" CASCADE /*application='Dummy'*/[0m
|
1908
|
-
[1m[35m (1.4ms)[0m [1m[35mCREATE TABLE "bscf_core_products" ("id" bigserial primary key, "sku" character varying NOT NULL, "name" character varying NOT NULL, "description" character varying NOT NULL, "category_id" bigint NOT NULL, "base_price" decimal DEFAULT 0.0 NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
1909
|
-
[1m[35m (0.7ms)[0m [1m[35mCREATE INDEX "index_bscf_core_products_on_category_id" ON "bscf_core_products" ("category_id") /*application='Dummy'*/[0m
|
1910
|
-
[1m[35m (0.6ms)[0m [1m[35mCREATE UNIQUE INDEX "index_bscf_core_products_on_sku" ON "bscf_core_products" ("sku") /*application='Dummy'*/[0m
|
1911
|
-
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_quotation_items" CASCADE /*application='Dummy'*/[0m
|
1912
|
-
[1m[35m (1.9ms)[0m [1m[35mCREATE TABLE "bscf_core_quotation_items" ("id" bigserial primary key, "quotation_id" bigint NOT NULL, "rfq_item_id" bigint NOT NULL, "product_id" bigint NOT NULL, "quantity" integer NOT NULL, "unit_price" decimal NOT NULL, "unit" integer NOT NULL, "subtotal" decimal NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
1913
|
-
[1m[35m (0.7ms)[0m [1m[35mCREATE INDEX "index_bscf_core_quotation_items_on_product_id" ON "bscf_core_quotation_items" ("product_id") /*application='Dummy'*/[0m
|
1914
|
-
[1m[35m (0.6ms)[0m [1m[35mCREATE INDEX "index_bscf_core_quotation_items_on_quotation_id" ON "bscf_core_quotation_items" ("quotation_id") /*application='Dummy'*/[0m
|
1915
|
-
[1m[35m (0.6ms)[0m [1m[35mCREATE INDEX "index_bscf_core_quotation_items_on_rfq_item_id" ON "bscf_core_quotation_items" ("rfq_item_id") /*application='Dummy'*/[0m
|
1916
|
-
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_quotations" CASCADE /*application='Dummy'*/[0m
|
1917
|
-
[1m[35m (1.7ms)[0m [1m[35mCREATE TABLE "bscf_core_quotations" ("id" bigserial primary key, "request_for_quotation_id" bigint NOT NULL, "business_id" bigint NOT NULL, "price" decimal NOT NULL, "delivery_date" date NOT NULL, "valid_until" timestamp(6) NOT NULL, "status" integer DEFAULT 0 NOT NULL, "notes" text, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
1918
|
-
[1m[35m (0.9ms)[0m [1m[35mCREATE INDEX "index_bscf_core_quotations_on_business_id" ON "bscf_core_quotations" ("business_id") /*application='Dummy'*/[0m
|
1919
|
-
[1m[35m (0.6ms)[0m [1m[35mCREATE INDEX "index_bscf_core_quotations_on_request_for_quotation_id" ON "bscf_core_quotations" ("request_for_quotation_id") /*application='Dummy'*/[0m
|
1920
|
-
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_request_for_quotations" CASCADE /*application='Dummy'*/[0m
|
1921
|
-
[1m[35m (1.8ms)[0m [1m[35mCREATE TABLE "bscf_core_request_for_quotations" ("id" bigserial primary key, "user_id" bigint NOT NULL, "status" integer DEFAULT 0 NOT NULL, "notes" text, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
1922
|
-
[1m[35m (0.7ms)[0m [1m[35mCREATE INDEX "index_bscf_core_request_for_quotations_on_user_id" ON "bscf_core_request_for_quotations" ("user_id") /*application='Dummy'*/[0m
|
1923
|
-
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_rfq_items" CASCADE /*application='Dummy'*/[0m
|
1924
|
-
[1m[35m (1.6ms)[0m [1m[35mCREATE TABLE "bscf_core_rfq_items" ("id" bigserial primary key, "request_for_quotation_id" bigint NOT NULL, "product_id" bigint NOT NULL, "quantity" float NOT NULL, "notes" text, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
1925
|
-
[1m[35m (1.1ms)[0m [1m[35mCREATE INDEX "index_bscf_core_rfq_items_on_product_id" ON "bscf_core_rfq_items" ("product_id") /*application='Dummy'*/[0m
|
1926
|
-
[1m[35m (0.6ms)[0m [1m[35mCREATE INDEX "index_bscf_core_rfq_items_on_request_for_quotation_id" ON "bscf_core_rfq_items" ("request_for_quotation_id") /*application='Dummy'*/[0m
|
1927
|
-
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_roles" CASCADE /*application='Dummy'*/[0m
|
1928
|
-
[1m[35m (2.6ms)[0m [1m[35mCREATE TABLE "bscf_core_roles" ("id" bigserial primary key, "name" character varying NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
1929
|
-
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_user_profiles" CASCADE /*application='Dummy'*/[0m
|
1930
|
-
[1m[35m (2.3ms)[0m [1m[35mCREATE TABLE "bscf_core_user_profiles" ("id" bigserial primary key, "user_id" bigint NOT NULL, "date_of_birth" date NOT NULL, "nationality" character varying NOT NULL, "occupation" character varying NOT NULL, "source_of_funds" character varying NOT NULL, "kyc_status" integer DEFAULT 0, "gender" integer NOT NULL, "verified_at" timestamp(6), "verified_by_id" bigint, "address_id" bigint NOT NULL, "fayda_id" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
1931
|
-
[1m[35m (0.7ms)[0m [1m[35mCREATE INDEX "index_bscf_core_user_profiles_on_address_id" ON "bscf_core_user_profiles" ("address_id") /*application='Dummy'*/[0m
|
1932
|
-
[1m[35m (0.6ms)[0m [1m[35mCREATE INDEX "index_bscf_core_user_profiles_on_user_id" ON "bscf_core_user_profiles" ("user_id") /*application='Dummy'*/[0m
|
1933
|
-
[1m[35m (0.6ms)[0m [1m[35mCREATE INDEX "index_bscf_core_user_profiles_on_verified_by_id" ON "bscf_core_user_profiles" ("verified_by_id") /*application='Dummy'*/[0m
|
1934
|
-
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_user_roles" CASCADE /*application='Dummy'*/[0m
|
1935
|
-
[1m[35m (3.3ms)[0m [1m[35mCREATE TABLE "bscf_core_user_roles" ("id" bigserial primary key, "user_id" bigint NOT NULL, "role_id" bigint NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
1936
|
-
[1m[35m (0.7ms)[0m [1m[35mCREATE INDEX "index_bscf_core_user_roles_on_role_id" ON "bscf_core_user_roles" ("role_id") /*application='Dummy'*/[0m
|
1937
|
-
[1m[35m (0.6ms)[0m [1m[35mCREATE INDEX "index_bscf_core_user_roles_on_user_id" ON "bscf_core_user_roles" ("user_id") /*application='Dummy'*/[0m
|
1938
|
-
[1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_users" CASCADE /*application='Dummy'*/[0m
|
1939
|
-
[1m[35m (1.7ms)[0m [1m[35mCREATE TABLE "bscf_core_users" ("id" bigserial primary key, "first_name" character varying NOT NULL, "middle_name" character varying NOT NULL, "last_name" character varying NOT NULL, "email" character varying NOT NULL, "phone_number" character varying NOT NULL, "password_digest" character varying NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
1940
|
-
[1m[35m (0.9ms)[0m [1m[35mCREATE UNIQUE INDEX "index_bscf_core_users_on_email" ON "bscf_core_users" ("email") /*application='Dummy'*/[0m
|
1941
|
-
[1m[35m (0.6ms)[0m [1m[35mCREATE UNIQUE INDEX "index_bscf_core_users_on_phone_number" ON "bscf_core_users" ("phone_number") /*application='Dummy'*/[0m
|
1942
|
-
[1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_virtual_account_transactions" CASCADE /*application='Dummy'*/[0m
|
1943
|
-
[1m[35m (2.1ms)[0m [1m[35mCREATE TABLE "bscf_core_virtual_account_transactions" ("id" bigserial primary key, "from_account_id" bigint NOT NULL, "to_account_id" bigint NOT NULL, "amount" decimal NOT NULL, "transaction_type" integer NOT NULL, "status" integer DEFAULT 0 NOT NULL, "reference_number" character varying NOT NULL, "description" text, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
1944
|
-
[1m[35m (0.8ms)[0m [1m[35mCREATE INDEX "idx_on_from_account_id_reference_number_ecc8e65d8f" ON "bscf_core_virtual_account_transactions" ("from_account_id", "reference_number") /*application='Dummy'*/[0m
|
1945
|
-
[1m[35m (0.6ms)[0m [1m[35mCREATE INDEX "idx_on_from_account_id_643ea7341d" ON "bscf_core_virtual_account_transactions" ("from_account_id") /*application='Dummy'*/[0m
|
1946
|
-
[1m[35m (0.6ms)[0m [1m[35mCREATE UNIQUE INDEX "idx_on_reference_number_9aa4ea6333" ON "bscf_core_virtual_account_transactions" ("reference_number") /*application='Dummy'*/[0m
|
1947
|
-
[1m[35m (1.0ms)[0m [1m[35mCREATE INDEX "idx_on_to_account_id_reference_number_6f4048491d" ON "bscf_core_virtual_account_transactions" ("to_account_id", "reference_number") /*application='Dummy'*/[0m
|
1948
|
-
[1m[35m (0.6ms)[0m [1m[35mCREATE INDEX "index_bscf_core_virtual_account_transactions_on_to_account_id" ON "bscf_core_virtual_account_transactions" ("to_account_id") /*application='Dummy'*/[0m
|
1949
|
-
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "bscf_core_virtual_accounts" CASCADE /*application='Dummy'*/[0m
|
1950
|
-
[1m[35m (2.4ms)[0m [1m[35mCREATE TABLE "bscf_core_virtual_accounts" ("id" bigserial primary key, "user_id" bigint NOT NULL, "account_number" character varying NOT NULL, "cbs_account_number" character varying NOT NULL, "balance" decimal DEFAULT 0.0 NOT NULL, "interest_rate" decimal DEFAULT 0.0 NOT NULL, "interest_type" integer DEFAULT 0 NOT NULL, "active" boolean DEFAULT TRUE NOT NULL, "branch_code" character varying NOT NULL, "product_scheme" character varying NOT NULL, "voucher_type" character varying NOT NULL, "status" integer DEFAULT 0 NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
1951
|
-
[1m[35m (0.8ms)[0m [1m[35mCREATE UNIQUE INDEX "index_bscf_core_virtual_accounts_on_account_number" ON "bscf_core_virtual_accounts" ("account_number") /*application='Dummy'*/[0m
|
1952
|
-
[1m[35m (0.9ms)[0m [1m[35mCREATE INDEX "index_bscf_core_virtual_accounts_on_branch_code" ON "bscf_core_virtual_accounts" ("branch_code") /*application='Dummy'*/[0m
|
1953
|
-
[1m[35m (0.8ms)[0m [1m[35mCREATE UNIQUE INDEX "index_bscf_core_virtual_accounts_on_cbs_account_number" ON "bscf_core_virtual_accounts" ("cbs_account_number") /*application='Dummy'*/[0m
|
1954
|
-
[1m[35m (0.6ms)[0m [1m[35mCREATE INDEX "index_bscf_core_virtual_accounts_on_user_id_and_account_number" ON "bscf_core_virtual_accounts" ("user_id", "account_number") /*application='Dummy'*/[0m
|
1955
|
-
[1m[35m (0.6ms)[0m [1m[35mCREATE INDEX "index_bscf_core_virtual_accounts_on_user_id" ON "bscf_core_virtual_accounts" ("user_id") /*application='Dummy'*/[0m
|
1956
|
-
[1m[35m (2.7ms)[0m [1m[35mALTER TABLE "bscf_core_businesses" ADD CONSTRAINT "fk_rails_8d7490b82a"
|
1957
|
-
FOREIGN KEY ("user_id")
|
1958
|
-
REFERENCES "bscf_core_users" ("id")
|
1959
|
-
/*application='Dummy'*/[0m
|
1960
|
-
[1m[35m (1.4ms)[0m [1m[35mALTER TABLE "bscf_core_order_items" ADD CONSTRAINT "fk_rails_594dbae950"
|
1961
|
-
FOREIGN KEY ("order_id")
|
1962
|
-
REFERENCES "bscf_core_orders" ("id")
|
1963
|
-
/*application='Dummy'*/[0m
|
1964
|
-
[1m[35m (0.8ms)[0m [1m[35mALTER TABLE "bscf_core_order_items" ADD CONSTRAINT "fk_rails_17adb37720"
|
1965
|
-
FOREIGN KEY ("product_id")
|
1966
|
-
REFERENCES "bscf_core_products" ("id")
|
1967
|
-
/*application='Dummy'*/[0m
|
1968
|
-
[1m[35m (0.9ms)[0m [1m[35mALTER TABLE "bscf_core_order_items" ADD CONSTRAINT "fk_rails_dfc96f9a7f"
|
1969
|
-
FOREIGN KEY ("quotation_item_id")
|
1970
|
-
REFERENCES "bscf_core_quotation_items" ("id")
|
1971
|
-
/*application='Dummy'*/[0m
|
1972
|
-
[1m[35m (1.3ms)[0m [1m[35mALTER TABLE "bscf_core_orders" ADD CONSTRAINT "fk_rails_f175f710a9"
|
1973
|
-
FOREIGN KEY ("quotation_id")
|
1974
|
-
REFERENCES "bscf_core_quotations" ("id")
|
1975
|
-
/*application='Dummy'*/[0m
|
1976
|
-
[1m[35m (0.6ms)[0m [1m[35mALTER TABLE "bscf_core_orders" ADD CONSTRAINT "fk_rails_a2aea18f9c"
|
1977
|
-
FOREIGN KEY ("ordered_by_id")
|
1978
|
-
REFERENCES "bscf_core_users" ("id")
|
1979
|
-
/*application='Dummy'*/[0m
|
1980
|
-
[1m[35m (0.6ms)[0m [1m[35mALTER TABLE "bscf_core_orders" ADD CONSTRAINT "fk_rails_6134cde349"
|
1981
|
-
FOREIGN KEY ("ordered_to_id")
|
1982
|
-
REFERENCES "bscf_core_users" ("id")
|
1983
|
-
/*application='Dummy'*/[0m
|
1984
|
-
[1m[35m (0.7ms)[0m [1m[35mALTER TABLE "bscf_core_products" ADD CONSTRAINT "fk_rails_9b9f33fd91"
|
1985
|
-
FOREIGN KEY ("category_id")
|
1986
|
-
REFERENCES "bscf_core_categories" ("id")
|
1987
|
-
/*application='Dummy'*/[0m
|
1988
|
-
[1m[35m (0.9ms)[0m [1m[35mALTER TABLE "bscf_core_quotation_items" ADD CONSTRAINT "fk_rails_b58f3b1bfb"
|
1989
|
-
FOREIGN KEY ("product_id")
|
1990
|
-
REFERENCES "bscf_core_products" ("id")
|
1991
|
-
/*application='Dummy'*/[0m
|
1992
|
-
[1m[35m (0.6ms)[0m [1m[35mALTER TABLE "bscf_core_quotation_items" ADD CONSTRAINT "fk_rails_0f1ff137cd"
|
1993
|
-
FOREIGN KEY ("quotation_id")
|
1994
|
-
REFERENCES "bscf_core_quotations" ("id")
|
1995
|
-
/*application='Dummy'*/[0m
|
1996
|
-
[1m[35m (0.8ms)[0m [1m[35mALTER TABLE "bscf_core_quotation_items" ADD CONSTRAINT "fk_rails_54b38baf27"
|
1997
|
-
FOREIGN KEY ("rfq_item_id")
|
1998
|
-
REFERENCES "bscf_core_rfq_items" ("id")
|
1999
|
-
/*application='Dummy'*/[0m
|
2000
|
-
[1m[35m (0.6ms)[0m [1m[35mALTER TABLE "bscf_core_quotations" ADD CONSTRAINT "fk_rails_5099683ac1"
|
2001
|
-
FOREIGN KEY ("business_id")
|
2002
|
-
REFERENCES "bscf_core_businesses" ("id")
|
2003
|
-
/*application='Dummy'*/[0m
|
2004
|
-
[1m[35m (1.2ms)[0m [1m[35mALTER TABLE "bscf_core_quotations" ADD CONSTRAINT "fk_rails_118cd93fd7"
|
2005
|
-
FOREIGN KEY ("request_for_quotation_id")
|
2006
|
-
REFERENCES "bscf_core_request_for_quotations" ("id")
|
2007
|
-
/*application='Dummy'*/[0m
|
2008
|
-
[1m[35m (0.6ms)[0m [1m[35mALTER TABLE "bscf_core_request_for_quotations" ADD CONSTRAINT "fk_rails_8ed521a71d"
|
2009
|
-
FOREIGN KEY ("user_id")
|
2010
|
-
REFERENCES "bscf_core_users" ("id")
|
2011
|
-
/*application='Dummy'*/[0m
|
2012
|
-
[1m[35m (0.6ms)[0m [1m[35mALTER TABLE "bscf_core_rfq_items" ADD CONSTRAINT "fk_rails_1b2464a246"
|
2013
|
-
FOREIGN KEY ("product_id")
|
2014
|
-
REFERENCES "bscf_core_products" ("id")
|
2015
|
-
/*application='Dummy'*/[0m
|
2016
|
-
[1m[35m (0.7ms)[0m [1m[35mALTER TABLE "bscf_core_rfq_items" ADD CONSTRAINT "fk_rails_1b773f00c6"
|
2017
|
-
FOREIGN KEY ("request_for_quotation_id")
|
2018
|
-
REFERENCES "bscf_core_request_for_quotations" ("id")
|
2019
|
-
/*application='Dummy'*/[0m
|
2020
|
-
[1m[35m (1.3ms)[0m [1m[35mALTER TABLE "bscf_core_user_profiles" ADD CONSTRAINT "fk_rails_c5a3f5b460"
|
2021
|
-
FOREIGN KEY ("address_id")
|
2022
|
-
REFERENCES "bscf_core_addresses" ("id")
|
2023
|
-
/*application='Dummy'*/[0m
|
2024
|
-
[1m[35m (0.7ms)[0m [1m[35mALTER TABLE "bscf_core_user_profiles" ADD CONSTRAINT "fk_rails_76d657f1fb"
|
2025
|
-
FOREIGN KEY ("user_id")
|
2026
|
-
REFERENCES "bscf_core_users" ("id")
|
2027
|
-
/*application='Dummy'*/[0m
|
2028
|
-
[1m[35m (0.8ms)[0m [1m[35mALTER TABLE "bscf_core_user_profiles" ADD CONSTRAINT "fk_rails_96d9a7609e"
|
2029
|
-
FOREIGN KEY ("verified_by_id")
|
2030
|
-
REFERENCES "bscf_core_users" ("id")
|
2031
|
-
/*application='Dummy'*/[0m
|
2032
|
-
[1m[35m (3.0ms)[0m [1m[35mALTER TABLE "bscf_core_user_roles" ADD CONSTRAINT "fk_rails_d64b2985c7"
|
2033
|
-
FOREIGN KEY ("role_id")
|
2034
|
-
REFERENCES "bscf_core_roles" ("id")
|
2035
|
-
/*application='Dummy'*/[0m
|
2036
|
-
[1m[35m (0.7ms)[0m [1m[35mALTER TABLE "bscf_core_user_roles" ADD CONSTRAINT "fk_rails_71c0ff189b"
|
2037
|
-
FOREIGN KEY ("user_id")
|
2038
|
-
REFERENCES "bscf_core_users" ("id")
|
2039
|
-
/*application='Dummy'*/[0m
|
2040
|
-
[1m[35m (1.4ms)[0m [1m[35mALTER TABLE "bscf_core_virtual_account_transactions" ADD CONSTRAINT "fk_rails_7dc2e329f8"
|
2041
|
-
FOREIGN KEY ("from_account_id")
|
2042
|
-
REFERENCES "bscf_core_virtual_accounts" ("id")
|
2043
|
-
/*application='Dummy'*/[0m
|
2044
|
-
[1m[35m (1.0ms)[0m [1m[35mALTER TABLE "bscf_core_virtual_account_transactions" ADD CONSTRAINT "fk_rails_fc01221ed7"
|
2045
|
-
FOREIGN KEY ("to_account_id")
|
2046
|
-
REFERENCES "bscf_core_virtual_accounts" ("id")
|
2047
|
-
/*application='Dummy'*/[0m
|
2048
|
-
[1m[35m (0.7ms)[0m [1m[35mALTER TABLE "bscf_core_virtual_accounts" ADD CONSTRAINT "fk_rails_062e0240bd"
|
2049
|
-
FOREIGN KEY ("user_id")
|
2050
|
-
REFERENCES "bscf_core_users" ("id")
|
2051
|
-
/*application='Dummy'*/[0m
|
2052
|
-
[1m[35m (2.1ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY) /*application='Dummy'*/[0m
|
2053
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
2054
|
-
[1m[35m (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (20250327112412) /*application='Dummy'*/[0m
|
2055
|
-
[1m[35m (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES
|
2056
|
-
(20250327102217),
|
2057
|
-
(20250327044020),
|
2058
|
-
(20250327041651),
|
2059
|
-
(20250326121246),
|
2060
|
-
(20250326120613),
|
2061
|
-
(20250326115203),
|
2062
|
-
(20250326112449),
|
2063
|
-
(20250326105652),
|
2064
|
-
(20250326103305),
|
2065
|
-
(20250326085741),
|
2066
|
-
(20250326084233),
|
2067
|
-
(20250326081052),
|
2068
|
-
(20250326080646),
|
2069
|
-
(20250326075111),
|
2070
|
-
(20250326065606); /*application='Dummy'*/[0m
|
2071
|
-
[1m[35m (2.9ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
2072
|
-
[1m[36mActiveRecord::InternalMetadata Load (1.0ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
2073
|
-
[1m[36mActiveRecord::InternalMetadata Create (0.7ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'development', '2025-03-27 11:41:12.792402', '2025-03-27 11:41:12.792407') RETURNING "key" /*application='Dummy'*/[0m
|
2074
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.3ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
2075
|
-
[1m[36mActiveRecord::InternalMetadata Update (0.7ms)[0m [1m[33mUPDATE "ar_internal_metadata" SET "value" = 'test', "updated_at" = '2025-03-27 11:41:12.797401' WHERE "ar_internal_metadata"."key" = 'environment' /*application='Dummy'*/[0m
|
2076
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.3ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'schema_sha1' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
2077
|
-
[1m[36mActiveRecord::InternalMetadata Create (0.5ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('schema_sha1', '083c7a3bd0adf1f568a9f3f2caac4f356556e3b0', '2025-03-27 11:41:12.801257', '2025-03-27 11:41:12.801261') RETURNING "key" /*application='Dummy'*/[0m
|