snf_core 0.2.99 → 0.3.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/app/controllers/snf_core/auth_controller.rb +27 -16
- data/db/migrate/20250312141147_add_unit_to_snf_core_item_requests.rb +5 -0
- data/lib/snf_core/version.rb +1 -1
- data/spec/dummy/db/schema.rb +44 -43
- data/spec/dummy/log/development.log +133 -0
- data/spec/dummy/log/test.log +10630 -0
- data/spec/dummy/tmp/pids/server.pid +1 -0
- data/spec/dummy/tmp/storage/4t/g2/4tg25888ee5rj0ce7tkqbcayu3o6 +0 -0
- data/spec/dummy/tmp/storage/4w/8g/4w8gm78byspbg9u3knleahn6yep0 +0 -0
- data/spec/dummy/tmp/storage/7w/hv/7whvwq4ot5uwt3k1h5ipc4xtvk36 +0 -0
- data/spec/dummy/tmp/storage/a7/00/a700gfeervmzu9mw05rhvbnjx8da +0 -0
- data/spec/dummy/tmp/storage/dm/xj/dmxjedfmoojuhgwpb9gjveuqyki7 +0 -0
- data/spec/dummy/tmp/storage/fx/08/fx08ebmlikk1qd57t92stc1hdbda +0 -0
- data/spec/dummy/tmp/storage/gm/ar/gmarwjxd7y7bzebx8atz41yffhjx +0 -0
- data/spec/dummy/tmp/storage/u4/cv/u4cvbf3g5ev4vi4ce3j9lsmrpipj +0 -0
- data/spec/dummy/tmp/storage/w9/u9/w9u9utltwus816bm8iznc1e3pprl +0 -0
- data/spec/dummy/tmp/storage/wg/o9/wgo9a559sc4bub8phdnkxtupnozr +0 -0
- data/spec/examples.txt +197 -197
- metadata +13 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0d80974d418a7c1fe8b24b1a10618970f84b256dcab2ab8a4e19cd178074a245
|
4
|
+
data.tar.gz: 7063dd83c1b2362aec9f7c5497d9e467c9adb26713e86bdf5fe03fa98111f0ac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bc5c1354322908abe46bc22e110e8cd593fbc835e29a31b408e3957c20fb34bad319920ed0f71453517a69f516bd9c0481cd8756f8dd24dabdb6d40556c5b55e
|
7
|
+
data.tar.gz: 3262eb5dc1d1fb7d2085d44b91e71edf2ae4b82bb1ba4faaa7092e7ec887cece2cf1e07e5ed8d59c93c48f6065fe41180848d182875758ba15d5231de52cefa6
|
@@ -6,26 +6,37 @@ module SnfCore
|
|
6
6
|
ActiveRecord::Base.transaction do
|
7
7
|
@address = Address.new(address_params)
|
8
8
|
|
9
|
-
@
|
10
|
-
|
9
|
+
if @address.save
|
10
|
+
@user = User.new(user_params)
|
11
|
+
@user.address = @address
|
11
12
|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
13
|
+
if @user.save
|
14
|
+
@business = Business.new(
|
15
|
+
user: @user,
|
16
|
+
business_name: signup_params[:business_name],
|
17
|
+
tin_number: signup_params[:tin_number],
|
18
|
+
business_type: signup_params[:business_type]
|
19
|
+
)
|
19
20
|
|
20
|
-
|
21
|
-
|
21
|
+
if @business.save
|
22
|
+
render json: {
|
23
|
+
success: true,
|
24
|
+
user: @user.as_json(except: [ :password_digest ]),
|
25
|
+
business: @business,
|
26
|
+
address: @address
|
27
|
+
}, status: :created
|
28
|
+
return
|
29
|
+
else
|
30
|
+
render json: { errors: @business.errors.full_messages }, status: :unprocessable_entity
|
31
|
+
raise ActiveRecord::Rollback
|
32
|
+
end
|
22
33
|
else
|
34
|
+
render json: { errors: @user.errors.full_messages }, status: :unprocessable_entity
|
23
35
|
raise ActiveRecord::Rollback
|
24
|
-
render json: { errors: @business.errors.full_messages }, status: :unprocessable_entity
|
25
36
|
end
|
26
37
|
else
|
27
|
-
|
28
|
-
|
38
|
+
render json: { errors: @address.errors.full_messages }, status: :unprocessable_entity
|
39
|
+
raise ActiveRecord::Rollback
|
29
40
|
end
|
30
41
|
end
|
31
42
|
end
|
@@ -59,7 +70,7 @@ module SnfCore
|
|
59
70
|
:first_name, :middle_name, :last_name, :password,
|
60
71
|
:phone_number, :business_name, :tin_number, :business_type,
|
61
72
|
:date_of_birth, :nationality, :occupation, :source_of_funds, :kyc_status,
|
62
|
-
:gender, :verified_at, :verified_by_id, :
|
73
|
+
:gender, :verified_at, :verified_by_id, :email
|
63
74
|
)
|
64
75
|
end
|
65
76
|
|
@@ -68,7 +79,7 @@ module SnfCore
|
|
68
79
|
:first_name, :middle_name, :last_name, :password,
|
69
80
|
:phone_number, :date_of_birth, :nationality,
|
70
81
|
:occupation, :source_of_funds, :kyc_status,
|
71
|
-
:gender, :verified_at, :verified_by_id, :
|
82
|
+
:gender, :verified_at, :verified_by_id, :email
|
72
83
|
)
|
73
84
|
end
|
74
85
|
|
data/lib/snf_core/version.rb
CHANGED
data/spec/dummy/db/schema.rb
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
#
|
11
11
|
# It's strongly recommended that you check this file into your version control system.
|
12
12
|
|
13
|
-
ActiveRecord::Schema[8.0].define(version:
|
13
|
+
ActiveRecord::Schema[8.0].define(version: 2025_03_12_141147) do
|
14
14
|
# These are extensions that must be enabled in order to support this database
|
15
15
|
enable_extension "pg_catalog.plpgsql"
|
16
16
|
|
@@ -20,8 +20,8 @@ ActiveRecord::Schema[8.0].define(version: 2025_03_12_043359) do
|
|
20
20
|
t.bigint "record_id", null: false
|
21
21
|
t.bigint "blob_id", null: false
|
22
22
|
t.datetime "created_at", null: false
|
23
|
-
t.index ["blob_id"], name: "index_active_storage_attachments_on_blob_id"
|
24
|
-
t.index ["record_type", "record_id", "name", "blob_id"], name: "index_active_storage_attachments_uniqueness", unique: true
|
23
|
+
t.index [ "blob_id" ], name: "index_active_storage_attachments_on_blob_id"
|
24
|
+
t.index [ "record_type", "record_id", "name", "blob_id" ], name: "index_active_storage_attachments_uniqueness", unique: true
|
25
25
|
end
|
26
26
|
|
27
27
|
create_table "active_storage_blobs", force: :cascade do |t|
|
@@ -33,13 +33,13 @@ ActiveRecord::Schema[8.0].define(version: 2025_03_12_043359) do
|
|
33
33
|
t.bigint "byte_size", null: false
|
34
34
|
t.string "checksum"
|
35
35
|
t.datetime "created_at", null: false
|
36
|
-
t.index ["key"], name: "index_active_storage_blobs_on_key", unique: true
|
36
|
+
t.index [ "key" ], name: "index_active_storage_blobs_on_key", unique: true
|
37
37
|
end
|
38
38
|
|
39
39
|
create_table "active_storage_variant_records", force: :cascade do |t|
|
40
40
|
t.bigint "blob_id", null: false
|
41
41
|
t.string "variation_digest", null: false
|
42
|
-
t.index ["blob_id", "variation_digest"], name: "index_active_storage_variant_records_uniqueness", unique: true
|
42
|
+
t.index [ "blob_id", "variation_digest" ], name: "index_active_storage_variant_records_uniqueness", unique: true
|
43
43
|
end
|
44
44
|
|
45
45
|
create_table "snf_core_account_transfers", force: :cascade do |t|
|
@@ -59,11 +59,11 @@ ActiveRecord::Schema[8.0].define(version: 2025_03_12_043359) do
|
|
59
59
|
t.jsonb "cbs_response_data"
|
60
60
|
t.datetime "created_at", null: false
|
61
61
|
t.datetime "updated_at", null: false
|
62
|
-
t.index ["destination_account_type", "destination_account_id"], name: "index_snf_core_account_transfers_on_destination_account"
|
63
|
-
t.index ["reference_number"], name: "index_snf_core_account_transfers_on_reference_number", unique: true
|
64
|
-
t.index ["reversal_transfer_id"], name: "index_snf_core_account_transfers_on_reversal_transfer_id"
|
65
|
-
t.index ["source_account_type", "source_account_id"], name: "index_snf_core_account_transfers_on_source_account"
|
66
|
-
t.index ["user_id"], name: "index_snf_core_account_transfers_on_user_id"
|
62
|
+
t.index [ "destination_account_type", "destination_account_id" ], name: "index_snf_core_account_transfers_on_destination_account"
|
63
|
+
t.index [ "reference_number" ], name: "index_snf_core_account_transfers_on_reference_number", unique: true
|
64
|
+
t.index [ "reversal_transfer_id" ], name: "index_snf_core_account_transfers_on_reversal_transfer_id"
|
65
|
+
t.index [ "source_account_type", "source_account_id" ], name: "index_snf_core_account_transfers_on_source_account"
|
66
|
+
t.index [ "user_id" ], name: "index_snf_core_account_transfers_on_user_id"
|
67
67
|
end
|
68
68
|
|
69
69
|
create_table "snf_core_addresses", force: :cascade do |t|
|
@@ -87,8 +87,8 @@ ActiveRecord::Schema[8.0].define(version: 2025_03_12_043359) do
|
|
87
87
|
t.boolean "is_verified", default: false, null: false
|
88
88
|
t.datetime "created_at", null: false
|
89
89
|
t.datetime "updated_at", null: false
|
90
|
-
t.index ["business_id"], name: "index_snf_core_business_documents_on_business_id"
|
91
|
-
t.index ["verified_by_id"], name: "index_snf_core_business_documents_on_verified_by_id"
|
90
|
+
t.index [ "business_id" ], name: "index_snf_core_business_documents_on_business_id"
|
91
|
+
t.index [ "verified_by_id" ], name: "index_snf_core_business_documents_on_verified_by_id"
|
92
92
|
end
|
93
93
|
|
94
94
|
create_table "snf_core_businesses", force: :cascade do |t|
|
@@ -100,7 +100,7 @@ ActiveRecord::Schema[8.0].define(version: 2025_03_12_043359) do
|
|
100
100
|
t.integer "verification_status", default: 0, null: false
|
101
101
|
t.datetime "created_at", null: false
|
102
102
|
t.datetime "updated_at", null: false
|
103
|
-
t.index ["user_id"], name: "index_snf_core_businesses_on_user_id"
|
103
|
+
t.index [ "user_id" ], name: "index_snf_core_businesses_on_user_id"
|
104
104
|
end
|
105
105
|
|
106
106
|
create_table "snf_core_categories", force: :cascade do |t|
|
@@ -109,7 +109,7 @@ ActiveRecord::Schema[8.0].define(version: 2025_03_12_043359) do
|
|
109
109
|
t.bigint "parent_id"
|
110
110
|
t.datetime "created_at", null: false
|
111
111
|
t.datetime "updated_at", null: false
|
112
|
-
t.index ["parent_id"], name: "index_snf_core_categories_on_parent_id"
|
112
|
+
t.index [ "parent_id" ], name: "index_snf_core_categories_on_parent_id"
|
113
113
|
end
|
114
114
|
|
115
115
|
create_table "snf_core_customer_groups", force: :cascade do |t|
|
@@ -120,8 +120,8 @@ ActiveRecord::Schema[8.0].define(version: 2025_03_12_043359) do
|
|
120
120
|
t.bigint "customer_id", null: false
|
121
121
|
t.datetime "created_at", null: false
|
122
122
|
t.datetime "updated_at", null: false
|
123
|
-
t.index ["customer_id"], name: "index_snf_core_customer_groups_on_customer_id"
|
124
|
-
t.index ["group_id"], name: "index_snf_core_customer_groups_on_group_id"
|
123
|
+
t.index [ "customer_id" ], name: "index_snf_core_customer_groups_on_customer_id"
|
124
|
+
t.index [ "group_id" ], name: "index_snf_core_customer_groups_on_group_id"
|
125
125
|
end
|
126
126
|
|
127
127
|
create_table "snf_core_delivery_orders", force: :cascade do |t|
|
@@ -134,7 +134,7 @@ ActiveRecord::Schema[8.0].define(version: 2025_03_12_043359) do
|
|
134
134
|
t.integer "status", null: false
|
135
135
|
t.datetime "created_at", null: false
|
136
136
|
t.datetime "updated_at", null: false
|
137
|
-
t.index ["order_id"], name: "index_snf_core_delivery_orders_on_order_id"
|
137
|
+
t.index [ "order_id" ], name: "index_snf_core_delivery_orders_on_order_id"
|
138
138
|
end
|
139
139
|
|
140
140
|
create_table "snf_core_groups", force: :cascade do |t|
|
@@ -142,7 +142,7 @@ ActiveRecord::Schema[8.0].define(version: 2025_03_12_043359) do
|
|
142
142
|
t.bigint "business_id", null: false
|
143
143
|
t.datetime "created_at", null: false
|
144
144
|
t.datetime "updated_at", null: false
|
145
|
-
t.index ["business_id"], name: "index_snf_core_groups_on_business_id"
|
145
|
+
t.index [ "business_id" ], name: "index_snf_core_groups_on_business_id"
|
146
146
|
end
|
147
147
|
|
148
148
|
create_table "snf_core_item_requests", force: :cascade do |t|
|
@@ -154,8 +154,9 @@ ActiveRecord::Schema[8.0].define(version: 2025_03_12_043359) do
|
|
154
154
|
t.integer "status", default: 0, null: false
|
155
155
|
t.datetime "created_at", null: false
|
156
156
|
t.datetime "updated_at", null: false
|
157
|
-
t.
|
158
|
-
t.index ["
|
157
|
+
t.string "unit"
|
158
|
+
t.index [ "product_id" ], name: "index_snf_core_item_requests_on_product_id"
|
159
|
+
t.index [ "user_id" ], name: "index_snf_core_item_requests_on_user_id"
|
159
160
|
end
|
160
161
|
|
161
162
|
create_table "snf_core_order_items", force: :cascade do |t|
|
@@ -166,8 +167,8 @@ ActiveRecord::Schema[8.0].define(version: 2025_03_12_043359) do
|
|
166
167
|
t.decimal "subtotal", null: false
|
167
168
|
t.datetime "created_at", null: false
|
168
169
|
t.datetime "updated_at", null: false
|
169
|
-
t.index ["order_id"], name: "index_snf_core_order_items_on_order_id"
|
170
|
-
t.index ["store_inventory_id"], name: "index_snf_core_order_items_on_store_inventory_id"
|
170
|
+
t.index [ "order_id" ], name: "index_snf_core_order_items_on_order_id"
|
171
|
+
t.index [ "store_inventory_id" ], name: "index_snf_core_order_items_on_store_inventory_id"
|
171
172
|
end
|
172
173
|
|
173
174
|
create_table "snf_core_orders", force: :cascade do |t|
|
@@ -177,8 +178,8 @@ ActiveRecord::Schema[8.0].define(version: 2025_03_12_043359) do
|
|
177
178
|
t.decimal "total_amount", default: "0.0", null: false
|
178
179
|
t.datetime "created_at", null: false
|
179
180
|
t.datetime "updated_at", null: false
|
180
|
-
t.index ["store_id"], name: "index_snf_core_orders_on_store_id"
|
181
|
-
t.index ["user_id"], name: "index_snf_core_orders_on_user_id"
|
181
|
+
t.index [ "store_id" ], name: "index_snf_core_orders_on_store_id"
|
182
|
+
t.index [ "user_id" ], name: "index_snf_core_orders_on_user_id"
|
182
183
|
end
|
183
184
|
|
184
185
|
create_table "snf_core_products", force: :cascade do |t|
|
@@ -189,7 +190,7 @@ ActiveRecord::Schema[8.0].define(version: 2025_03_12_043359) do
|
|
189
190
|
t.float "base_price"
|
190
191
|
t.datetime "created_at", null: false
|
191
192
|
t.datetime "updated_at", null: false
|
192
|
-
t.index ["category_id"], name: "index_snf_core_products_on_category_id"
|
193
|
+
t.index [ "category_id" ], name: "index_snf_core_products_on_category_id"
|
193
194
|
end
|
194
195
|
|
195
196
|
create_table "snf_core_quotations", force: :cascade do |t|
|
@@ -201,7 +202,7 @@ ActiveRecord::Schema[8.0].define(version: 2025_03_12_043359) do
|
|
201
202
|
t.text "notes"
|
202
203
|
t.datetime "created_at", null: false
|
203
204
|
t.datetime "updated_at", null: false
|
204
|
-
t.index ["item_request_id"], name: "index_snf_core_quotations_on_item_request_id"
|
205
|
+
t.index [ "item_request_id" ], name: "index_snf_core_quotations_on_item_request_id"
|
205
206
|
end
|
206
207
|
|
207
208
|
create_table "snf_core_roles", force: :cascade do |t|
|
@@ -217,9 +218,9 @@ ActiveRecord::Schema[8.0].define(version: 2025_03_12_043359) do
|
|
217
218
|
t.datetime "created_at", null: false
|
218
219
|
t.datetime "updated_at", null: false
|
219
220
|
t.integer "status", default: 0, null: false
|
220
|
-
t.index ["product_id"], name: "index_snf_core_store_inventories_on_product_id"
|
221
|
-
t.index ["store_id", "product_id"], name: "index_snf_core_store_inventories_on_store_id_and_product_id", unique: true
|
222
|
-
t.index ["store_id"], name: "index_snf_core_store_inventories_on_store_id"
|
221
|
+
t.index [ "product_id" ], name: "index_snf_core_store_inventories_on_product_id"
|
222
|
+
t.index [ "store_id", "product_id" ], name: "index_snf_core_store_inventories_on_store_id_and_product_id", unique: true
|
223
|
+
t.index [ "store_id" ], name: "index_snf_core_store_inventories_on_store_id"
|
223
224
|
end
|
224
225
|
|
225
226
|
create_table "snf_core_stores", force: :cascade do |t|
|
@@ -230,8 +231,8 @@ ActiveRecord::Schema[8.0].define(version: 2025_03_12_043359) do
|
|
230
231
|
t.bigint "address_id", null: false
|
231
232
|
t.datetime "created_at", null: false
|
232
233
|
t.datetime "updated_at", null: false
|
233
|
-
t.index ["address_id"], name: "index_snf_core_stores_on_address_id"
|
234
|
-
t.index ["business_id"], name: "index_snf_core_stores_on_business_id"
|
234
|
+
t.index [ "address_id" ], name: "index_snf_core_stores_on_address_id"
|
235
|
+
t.index [ "business_id" ], name: "index_snf_core_stores_on_business_id"
|
235
236
|
end
|
236
237
|
|
237
238
|
create_table "snf_core_user_roles", force: :cascade do |t|
|
@@ -239,8 +240,8 @@ ActiveRecord::Schema[8.0].define(version: 2025_03_12_043359) do
|
|
239
240
|
t.bigint "role_id", null: false
|
240
241
|
t.datetime "created_at", null: false
|
241
242
|
t.datetime "updated_at", null: false
|
242
|
-
t.index ["role_id"], name: "index_snf_core_user_roles_on_role_id"
|
243
|
-
t.index ["user_id"], name: "index_snf_core_user_roles_on_user_id"
|
243
|
+
t.index [ "role_id" ], name: "index_snf_core_user_roles_on_role_id"
|
244
|
+
t.index [ "user_id" ], name: "index_snf_core_user_roles_on_user_id"
|
244
245
|
end
|
245
246
|
|
246
247
|
create_table "snf_core_users", force: :cascade do |t|
|
@@ -275,10 +276,10 @@ ActiveRecord::Schema[8.0].define(version: 2025_03_12_043359) do
|
|
275
276
|
t.text "description"
|
276
277
|
t.datetime "created_at", null: false
|
277
278
|
t.datetime "updated_at", null: false
|
278
|
-
t.index ["created_at"], name: "index_snf_core_virtual_account_transactions_on_created_at"
|
279
|
-
t.index ["from_account_id"], name: "index_snf_core_virtual_account_transactions_on_from_account_id"
|
280
|
-
t.index ["reference_number"], name: "idx_on_reference_number_bd9be00f20", unique: true
|
281
|
-
t.index ["to_account_id"], name: "index_snf_core_virtual_account_transactions_on_to_account_id"
|
279
|
+
t.index [ "created_at" ], name: "index_snf_core_virtual_account_transactions_on_created_at"
|
280
|
+
t.index [ "from_account_id" ], name: "index_snf_core_virtual_account_transactions_on_from_account_id"
|
281
|
+
t.index [ "reference_number" ], name: "idx_on_reference_number_bd9be00f20", unique: true
|
282
|
+
t.index [ "to_account_id" ], name: "index_snf_core_virtual_account_transactions_on_to_account_id"
|
282
283
|
end
|
283
284
|
|
284
285
|
create_table "snf_core_virtual_accounts", force: :cascade do |t|
|
@@ -294,10 +295,10 @@ ActiveRecord::Schema[8.0].define(version: 2025_03_12_043359) do
|
|
294
295
|
t.string "voucher_type", limit: 1, null: false
|
295
296
|
t.datetime "created_at", null: false
|
296
297
|
t.datetime "updated_at", null: false
|
297
|
-
t.index ["account_number"], name: "index_snf_core_virtual_accounts_on_account_number", unique: true
|
298
|
-
t.index ["branch_code", "product_scheme", "voucher_type"], name: "idx_on_branch_code_product_scheme_voucher_type_b7038b3d5f"
|
299
|
-
t.index ["cbs_account_number"], name: "index_snf_core_virtual_accounts_on_cbs_account_number", unique: true
|
300
|
-
t.index ["user_id"], name: "index_snf_core_virtual_accounts_on_user_id"
|
298
|
+
t.index [ "account_number" ], name: "index_snf_core_virtual_accounts_on_account_number", unique: true
|
299
|
+
t.index [ "branch_code", "product_scheme", "voucher_type" ], name: "idx_on_branch_code_product_scheme_voucher_type_b7038b3d5f"
|
300
|
+
t.index [ "cbs_account_number" ], name: "index_snf_core_virtual_accounts_on_cbs_account_number", unique: true
|
301
|
+
t.index [ "user_id" ], name: "index_snf_core_virtual_accounts_on_user_id"
|
301
302
|
end
|
302
303
|
|
303
304
|
create_table "snf_core_wallets", force: :cascade do |t|
|
@@ -307,8 +308,8 @@ ActiveRecord::Schema[8.0].define(version: 2025_03_12_043359) do
|
|
307
308
|
t.boolean "is_active", default: true, null: false
|
308
309
|
t.datetime "created_at", null: false
|
309
310
|
t.datetime "updated_at", null: false
|
310
|
-
t.index ["user_id"], name: "index_snf_core_wallets_on_user_id"
|
311
|
-
t.index ["wallet_number"], name: "index_snf_core_wallets_on_wallet_number", unique: true
|
311
|
+
t.index [ "user_id" ], name: "index_snf_core_wallets_on_user_id"
|
312
|
+
t.index [ "wallet_number" ], name: "index_snf_core_wallets_on_wallet_number", unique: true
|
312
313
|
end
|
313
314
|
|
314
315
|
add_foreign_key "active_storage_attachments", "active_storage_blobs", column: "blob_id"
|
@@ -6348,3 +6348,136 @@ FOREIGN KEY ("user_id")
|
|
6348
6348
|
[1m[36mActiveRecord::InternalMetadata Update (0.5ms)[0m [1m[33mUPDATE "ar_internal_metadata" SET "value" = 'test', "updated_at" = '2025-03-12 09:28:39.063516' WHERE "ar_internal_metadata"."key" = 'environment' /*application='Dummy'*/[0m
|
6349
6349
|
[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
|
6350
6350
|
[1m[36mActiveRecord::InternalMetadata Create (0.4ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('schema_sha1', 'ce684782ac0a2f19cbccaf01724c2ba2ab15f8bc', '2025-03-12 09:28:39.066619', '2025-03-12 09:28:39.066622') RETURNING "key" /*application='Dummy'*/[0m
|
6351
|
+
Started POST "/auth/signup" for ::1 at 2025-03-12 12:40:17 +0300
|
6352
|
+
[1m[36mActiveRecord::SchemaMigration Load (3.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
6353
|
+
|
6354
|
+
ActionController::RoutingError (No route matches [POST] "/auth/signup"):
|
6355
|
+
|
6356
|
+
Started POST "/snf_cre/auth/signup" for ::1 at 2025-03-12 12:40:42 +0300
|
6357
|
+
|
6358
|
+
ActionController::RoutingError (No route matches [POST] "/snf_cre/auth/signup"):
|
6359
|
+
|
6360
|
+
Started POST "/snf_core/auth/signup" for ::1 at 2025-03-12 12:40:48 +0300
|
6361
|
+
Processing by SnfCore::AuthController#signup as */*
|
6362
|
+
Parameters: {"user" => {"first_name" => "John", "middle_name" => "Michael", "last_name" => "Doe", "phone_number" => "+251911234567", "password" => "[FILTERED]", "business_name" => "Test Company", "tin_number" => "123456789", "business_type" => "retailer", "date_of_birth" => "1990-01-01", "gender" => "male", "nationality" => "Ethiopian", "occupation" => "Business Owner", "source_of_funds" => "Salary", "kyc_status" => "pending"}, "address" => {"address_type" => "home", "city" => "Addis Ababa", "sub_city" => "Bole", "woreda" => "03", "latitude" => "9.0222", "longitude" => "38.7468"}, "auth" => {"user" => {"first_name" => "John", "middle_name" => "Michael", "last_name" => "Doe", "phone_number" => "+251911234567", "password" => "[FILTERED]", "business_name" => "Test Company", "tin_number" => "123456789", "business_type" => "retailer", "date_of_birth" => "1990-01-01", "gender" => "male", "nationality" => "Ethiopian", "occupation" => "Business Owner", "source_of_funds" => "Salary", "kyc_status" => "pending"}, "address" => {"address_type" => "home", "city" => "Addis Ababa", "sub_city" => "Bole", "woreda" => "03", "latitude" => "9.0222", "longitude" => "38.7468"}}}
|
6363
|
+
[1m[36mTRANSACTION (0.2ms)[0m [1m[35mBEGIN /*action='signup',application='Dummy',controller='auth'*/[0m
|
6364
|
+
[1m[36mSnfCore::Address Create (5.8ms)[0m [1m[32mINSERT INTO "snf_core_addresses" ("address_type", "city", "sub_city", "woreda", "latitude", "longitude", "created_at", "updated_at", "house_number") VALUES ('home', 'Addis Ababa', 'Bole', '03', 9.0222, 38.7468, '2025-03-12 09:40:48.778962', '2025-03-12 09:40:48.778962', NULL) RETURNING "id" /*action='signup',application='Dummy',controller='auth'*/[0m
|
6365
|
+
[1m[36mSnfCore::User Exists? (2.2ms)[0m [1m[34mSELECT 1 AS one FROM "snf_core_users" WHERE "snf_core_users"."phone_number" = '+251911234567' LIMIT 1 /*action='signup',application='Dummy',controller='auth'*/[0m
|
6366
|
+
[1m[36mSnfCore::User Exists? (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "snf_core_users" WHERE "snf_core_users"."email" IS NULL LIMIT 1 /*action='signup',application='Dummy',controller='auth'*/[0m
|
6367
|
+
[1m[36mSnfCore::User Create (2.5ms)[0m [1m[32mINSERT INTO "snf_core_users" ("first_name", "middle_name", "last_name", "email", "phone_number", "created_at", "updated_at", "password_digest", "password_changed", "reset_password_token", "date_of_birth", "nationality", "occupation", "source_of_funds", "kyc_status", "gender", "verified_at", "verified_by_id", "address_id") VALUES ('John', 'Michael', 'Doe', NULL, '+251911234567', '2025-03-12 09:40:49.041028', '2025-03-12 09:40:49.041028', '$2a$12$mZzOA5gmdk.WkFCKJNV19OV.U6Pd6LoyqBjV4QmbXVFJ0r5mdU2cO', FALSE, NULL, '1990-01-01', 'Ethiopian', 'Business Owner', 'Salary', 0, 0, NULL, NULL, 1) RETURNING "id" /*action='signup',application='Dummy',controller='auth'*/[0m
|
6368
|
+
[1m[36mSnfCore::Business Exists? (1.2ms)[0m [1m[34mSELECT 1 AS one FROM "snf_core_businesses" WHERE "snf_core_businesses"."tin_number" = '123456789' LIMIT 1 /*action='signup',application='Dummy',controller='auth'*/[0m
|
6369
|
+
[1m[36mSnfCore::Business Create (1.0ms)[0m [1m[32mINSERT INTO "snf_core_businesses" ("user_id", "business_name", "tin_number", "business_type", "verified_at", "verification_status", "created_at", "updated_at") VALUES (1, 'Test Company', '123456789', 0, NULL, 0, '2025-03-12 09:40:49.058363', '2025-03-12 09:40:49.058363') RETURNING "id" /*action='signup',application='Dummy',controller='auth'*/[0m
|
6370
|
+
[1m[36mTRANSACTION (1.7ms)[0m [1m[35mCOMMIT /*action='signup',application='Dummy',controller='auth'*/[0m
|
6371
|
+
Completed 201 Created in 364ms (Views: 0.1ms | ActiveRecord: 62.6ms (6 queries, 0 cached) | GC: 0.0ms)
|
6372
|
+
|
6373
|
+
|
6374
|
+
[1m[36mSnfCore::Address Load (540.1ms)[0m [1m[34mSELECT "snf_core_addresses".* FROM "snf_core_addresses" /* loading for pp */ LIMIT 11 /*application='Dummy'*/[0m
|
6375
|
+
[1m[36mSnfCore::User Load (2.8ms)[0m [1m[34mSELECT "snf_core_users".* FROM "snf_core_users" /* loading for pp */ LIMIT 11 /*application='Dummy'*/[0m
|
6376
|
+
[1m[36mSnfCore::Business Load (4.4ms)[0m [1m[34mSELECT "snf_core_businesses".* FROM "snf_core_businesses" /* loading for pp */ LIMIT 11 /*application='Dummy'*/[0m
|
6377
|
+
Started POST "/snf_core/auth/signup" for ::1 at 2025-03-12 13:39:24 +0300
|
6378
|
+
[1m[36mActiveRecord::SchemaMigration Load (2.9ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
6379
|
+
Processing by SnfCore::AuthController#signup as */*
|
6380
|
+
Parameters: {"user" => {"first_name" => "John", "middle_name" => "Michael", "last_name" => "Doe", "phone_number" => "+251911234567", "password" => "[FILTERED]", "business_name" => "Test Company", "tin_number" => "123456789", "business_type" => "retailer", "date_of_birth" => "1990-01-01", "gender" => "male", "nationality" => "Ethiopian", "occupation" => "Business Owner", "source_of_funds" => "Salary", "kyc_status" => "pending"}, "address" => {"address_type" => "home", "city" => "Addis Ababa", "sub_city" => "Bole", "woreda" => "03", "latitude" => "9.0222", "longitude" => "38.7468"}, "auth" => {"user" => {"first_name" => "John", "middle_name" => "Michael", "last_name" => "Doe", "phone_number" => "+251911234567", "password" => "[FILTERED]", "business_name" => "Test Company", "tin_number" => "123456789", "business_type" => "retailer", "date_of_birth" => "1990-01-01", "gender" => "male", "nationality" => "Ethiopian", "occupation" => "Business Owner", "source_of_funds" => "Salary", "kyc_status" => "pending"}, "address" => {"address_type" => "home", "city" => "Addis Ababa", "sub_city" => "Bole", "woreda" => "03", "latitude" => "9.0222", "longitude" => "38.7468"}}}
|
6381
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mBEGIN /*action='signup',application='Dummy',controller='auth'*/[0m
|
6382
|
+
[1m[36mSnfCore::Address Create (9.4ms)[0m [1m[32mINSERT INTO "snf_core_addresses" ("address_type", "city", "sub_city", "woreda", "latitude", "longitude", "created_at", "updated_at", "house_number") VALUES ('home', 'Addis Ababa', 'Bole', '03', 9.0222, 38.7468, '2025-03-12 10:39:24.313051', '2025-03-12 10:39:24.313051', NULL) RETURNING "id" /*action='signup',application='Dummy',controller='auth'*/[0m
|
6383
|
+
[1m[36mSnfCore::User Exists? (0.9ms)[0m [1m[34mSELECT 1 AS one FROM "snf_core_users" WHERE "snf_core_users"."phone_number" = '+251911234567' LIMIT 1 /*action='signup',application='Dummy',controller='auth'*/[0m
|
6384
|
+
[1m[36mSnfCore::User Exists? (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "snf_core_users" WHERE "snf_core_users"."email" IS NULL LIMIT 1 /*action='signup',application='Dummy',controller='auth'*/[0m
|
6385
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[31mROLLBACK /*action='signup',application='Dummy',controller='auth'*/[0m
|
6386
|
+
Completed 204 No Content in 317ms (ActiveRecord: 33.1ms (3 queries, 0 cached) | GC: 0.0ms)
|
6387
|
+
|
6388
|
+
|
6389
|
+
Started POST "/snf_core/auth/signup" for ::1 at 2025-03-12 13:39:30 +0300
|
6390
|
+
Processing by SnfCore::AuthController#signup as */*
|
6391
|
+
Parameters: {"user" => {"first_name" => "John", "middle_name" => "Michael", "last_name" => "Doe", "phone_number" => "+251911234567", "password" => "[FILTERED]", "business_name" => "Test Company", "tin_number" => "123456789", "business_type" => "retailer", "date_of_birth" => "1990-01-01", "gender" => "male", "nationality" => "Ethiopian", "occupation" => "Business Owner", "source_of_funds" => "Salary", "kyc_status" => "pending"}, "address" => {"address_type" => "home", "city" => "Addis Ababa", "sub_city" => "Bole", "woreda" => "03", "latitude" => "9.0222", "longitude" => "38.7468"}, "auth" => {"user" => {"first_name" => "John", "middle_name" => "Michael", "last_name" => "Doe", "phone_number" => "+251911234567", "password" => "[FILTERED]", "business_name" => "Test Company", "tin_number" => "123456789", "business_type" => "retailer", "date_of_birth" => "1990-01-01", "gender" => "male", "nationality" => "Ethiopian", "occupation" => "Business Owner", "source_of_funds" => "Salary", "kyc_status" => "pending"}, "address" => {"address_type" => "home", "city" => "Addis Ababa", "sub_city" => "Bole", "woreda" => "03", "latitude" => "9.0222", "longitude" => "38.7468"}}}
|
6392
|
+
[1m[36mTRANSACTION (0.3ms)[0m [1m[35mBEGIN /*action='signup',application='Dummy',controller='auth'*/[0m
|
6393
|
+
[1m[36mSnfCore::Address Create (2.4ms)[0m [1m[32mINSERT INTO "snf_core_addresses" ("address_type", "city", "sub_city", "woreda", "latitude", "longitude", "created_at", "updated_at", "house_number") VALUES ('home', 'Addis Ababa', 'Bole', '03', 9.0222, 38.7468, '2025-03-12 10:39:30.274588', '2025-03-12 10:39:30.274588', NULL) RETURNING "id" /*action='signup',application='Dummy',controller='auth'*/[0m
|
6394
|
+
[1m[36mSnfCore::User Exists? (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "snf_core_users" WHERE "snf_core_users"."phone_number" = '+251911234567' LIMIT 1 /*action='signup',application='Dummy',controller='auth'*/[0m
|
6395
|
+
[1m[36mSnfCore::User Exists? (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "snf_core_users" WHERE "snf_core_users"."email" IS NULL LIMIT 1 /*action='signup',application='Dummy',controller='auth'*/[0m
|
6396
|
+
[1m[36mTRANSACTION (0.2ms)[0m [1m[31mROLLBACK /*action='signup',application='Dummy',controller='auth'*/[0m
|
6397
|
+
Completed 204 No Content in 252ms (ActiveRecord: 3.3ms (3 queries, 0 cached) | GC: 0.0ms)
|
6398
|
+
|
6399
|
+
|
6400
|
+
Started POST "/snf_core/auth/signup" for ::1 at 2025-03-12 13:39:38 +0300
|
6401
|
+
Processing by SnfCore::AuthController#signup as */*
|
6402
|
+
Parameters: {"user" => {"first_name" => "John", "middle_name" => "Michael", "last_name" => "Doe", "phone_number" => "+251911234567", "password" => "[FILTERED]", "business_name" => "Test Company", "tin_number" => "123456789", "business_type" => "retailer", "date_of_birth" => "1990-01-01", "gender" => "male", "nationality" => "Ethiopian", "occupation" => "Business Owner", "source_of_funds" => "Salary", "kyc_status" => "pending"}, "address" => {"address_type" => "home", "city" => "Addis Ababa", "sub_city" => "Bole", "woreda" => "03", "latitude" => "9.0222", "longitude" => "38.7468"}, "auth" => {"user" => {"first_name" => "John", "middle_name" => "Michael", "last_name" => "Doe", "phone_number" => "+251911234567", "password" => "[FILTERED]", "business_name" => "Test Company", "tin_number" => "123456789", "business_type" => "retailer", "date_of_birth" => "1990-01-01", "gender" => "male", "nationality" => "Ethiopian", "occupation" => "Business Owner", "source_of_funds" => "Salary", "kyc_status" => "pending"}, "address" => {"address_type" => "home", "city" => "Addis Ababa", "sub_city" => "Bole", "woreda" => "03", "latitude" => "9.0222", "longitude" => "38.7468"}}}
|
6403
|
+
[1m[36mTRANSACTION (0.3ms)[0m [1m[35mBEGIN /*action='signup',application='Dummy',controller='auth'*/[0m
|
6404
|
+
[1m[36mSnfCore::Address Create (2.0ms)[0m [1m[32mINSERT INTO "snf_core_addresses" ("address_type", "city", "sub_city", "woreda", "latitude", "longitude", "created_at", "updated_at", "house_number") VALUES ('home', 'Addis Ababa', 'Bole', '03', 9.0222, 38.7468, '2025-03-12 10:39:38.710777', '2025-03-12 10:39:38.710777', NULL) RETURNING "id" /*action='signup',application='Dummy',controller='auth'*/[0m
|
6405
|
+
[1m[36mSnfCore::User Exists? (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "snf_core_users" WHERE "snf_core_users"."phone_number" = '+251911234567' LIMIT 1 /*action='signup',application='Dummy',controller='auth'*/[0m
|
6406
|
+
[1m[36mSnfCore::User Exists? (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "snf_core_users" WHERE "snf_core_users"."email" IS NULL LIMIT 1 /*action='signup',application='Dummy',controller='auth'*/[0m
|
6407
|
+
[1m[36mTRANSACTION (0.2ms)[0m [1m[31mROLLBACK /*action='signup',application='Dummy',controller='auth'*/[0m
|
6408
|
+
Completed 204 No Content in 252ms (ActiveRecord: 3.4ms (3 queries, 0 cached) | GC: 0.0ms)
|
6409
|
+
|
6410
|
+
|
6411
|
+
Started POST "/snf_core/auth/signup" for ::1 at 2025-03-12 13:40:25 +0300
|
6412
|
+
Processing by SnfCore::AuthController#signup as HTML
|
6413
|
+
Parameters: {"user" => {"first_name" => "John", "middle_name" => "Michael", "last_name" => "Doe", "phone_number" => "+251911234567", "password" => "[FILTERED]", "business_name" => "Test Company", "tin_number" => "123456789", "business_type" => "retailer", "date_of_birth" => "1990-01-01", "gender" => "male", "nationality" => "Ethiopian", "occupation" => "Business Owner", "source_of_funds" => "Salary", "kyc_status" => "pending"}, "address" => {"address_type" => "home", "city" => "Addis Ababa", "sub_city" => "Bole", "woreda" => "03", "latitude" => "9.0222", "longitude" => "38.7468"}, "auth" => {"user" => {"first_name" => "John", "middle_name" => "Michael", "last_name" => "Doe", "phone_number" => "+251911234567", "password" => "[FILTERED]", "business_name" => "Test Company", "tin_number" => "123456789", "business_type" => "retailer", "date_of_birth" => "1990-01-01", "gender" => "male", "nationality" => "Ethiopian", "occupation" => "Business Owner", "source_of_funds" => "Salary", "kyc_status" => "pending"}, "address" => {"address_type" => "home", "city" => "Addis Ababa", "sub_city" => "Bole", "woreda" => "03", "latitude" => "9.0222", "longitude" => "38.7468"}}}
|
6414
|
+
[1m[36mTRANSACTION (0.6ms)[0m [1m[35mBEGIN /*action='signup',application='Dummy',controller='auth'*/[0m
|
6415
|
+
[1m[36mSnfCore::Address Create (4.5ms)[0m [1m[32mINSERT INTO "snf_core_addresses" ("address_type", "city", "sub_city", "woreda", "latitude", "longitude", "created_at", "updated_at", "house_number") VALUES ('home', 'Addis Ababa', 'Bole', '03', 9.0222, 38.7468, '2025-03-12 10:40:25.387767', '2025-03-12 10:40:25.387767', NULL) RETURNING "id" /*action='signup',application='Dummy',controller='auth'*/[0m
|
6416
|
+
[1m[36mSnfCore::User Exists? (2.3ms)[0m [1m[34mSELECT 1 AS one FROM "snf_core_users" WHERE "snf_core_users"."phone_number" = '+251911234567' LIMIT 1 /*action='signup',application='Dummy',controller='auth'*/[0m
|
6417
|
+
[1m[36mSnfCore::User Exists? (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "snf_core_users" WHERE "snf_core_users"."email" IS NULL LIMIT 1 /*action='signup',application='Dummy',controller='auth'*/[0m
|
6418
|
+
[1m[36mTRANSACTION (0.3ms)[0m [1m[31mROLLBACK /*action='signup',application='Dummy',controller='auth'*/[0m
|
6419
|
+
Completed 204 No Content in 295ms (ActiveRecord: 7.9ms (3 queries, 0 cached) | GC: 37.3ms)
|
6420
|
+
|
6421
|
+
|
6422
|
+
Started POST "/snf_core/auth/signup" for ::1 at 2025-03-12 13:43:05 +0300
|
6423
|
+
Processing by SnfCore::AuthController#signup as */*
|
6424
|
+
Parameters: {"user" => {"first_name" => "John", "middle_name" => "Michael", "last_name" => "Doe", "phone_number" => "+251911234567", "password" => "[FILTERED]", "business_name" => "Test Company", "tin_number" => "123456789", "business_type" => "retailer", "date_of_birth" => "1990-01-01", "gender" => "male", "nationality" => "Ethiopian", "occupation" => "Business Owner", "source_of_funds" => "Salary", "kyc_status" => "pending"}, "address" => {"address_type" => "home", "city" => "Addis Ababa", "sub_city" => "Bole", "woreda" => "03", "latitude" => "9.0222", "longitude" => "38.7468"}, "auth" => {"user" => {"first_name" => "John", "middle_name" => "Michael", "last_name" => "Doe", "phone_number" => "+251911234567", "password" => "[FILTERED]", "business_name" => "Test Company", "tin_number" => "123456789", "business_type" => "retailer", "date_of_birth" => "1990-01-01", "gender" => "male", "nationality" => "Ethiopian", "occupation" => "Business Owner", "source_of_funds" => "Salary", "kyc_status" => "pending"}, "address" => {"address_type" => "home", "city" => "Addis Ababa", "sub_city" => "Bole", "woreda" => "03", "latitude" => "9.0222", "longitude" => "38.7468"}}}
|
6425
|
+
[1m[36mTRANSACTION (29.8ms)[0m [1m[35mBEGIN /*action='signup',application='Dummy',controller='auth'*/[0m
|
6426
|
+
[1m[36mSnfCore::Address Create (12.0ms)[0m [1m[32mINSERT INTO "snf_core_addresses" ("address_type", "city", "sub_city", "woreda", "latitude", "longitude", "created_at", "updated_at", "house_number") VALUES ('home', 'Addis Ababa', 'Bole', '03', 9.0222, 38.7468, '2025-03-12 10:43:06.152834', '2025-03-12 10:43:06.152834', NULL) RETURNING "id" /*action='signup',application='Dummy',controller='auth'*/[0m
|
6427
|
+
[1m[36mSnfCore::User Exists? (3.8ms)[0m [1m[34mSELECT 1 AS one FROM "snf_core_users" WHERE "snf_core_users"."phone_number" = '+251911234567' LIMIT 1 /*action='signup',application='Dummy',controller='auth'*/[0m
|
6428
|
+
[1m[36mSnfCore::User Exists? (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "snf_core_users" WHERE "snf_core_users"."email" IS NULL LIMIT 1 /*action='signup',application='Dummy',controller='auth'*/[0m
|
6429
|
+
[1m[36mTRANSACTION (0.3ms)[0m [1m[31mROLLBACK /*action='signup',application='Dummy',controller='auth'*/[0m
|
6430
|
+
Completed 422 Unprocessable Content in 1387ms (Views: 0.1ms | ActiveRecord: 181.6ms (3 queries, 0 cached) | GC: 65.7ms)
|
6431
|
+
|
6432
|
+
|
6433
|
+
Started POST "/snf_core/auth/signup" for ::1 at 2025-03-12 13:46:51 +0300
|
6434
|
+
Processing by SnfCore::AuthController#signup as */*
|
6435
|
+
Parameters: {"user" => {"first_name" => "John", "middle_name" => "Michael", "last_name" => "Doe", "phone_number" => "+251911234577", "password" => "[FILTERED]", "business_name" => "Test Company", "tin_number" => "123456789", "business_type" => "retailer", "date_of_birth" => "1990-01-01", "gender" => "male", "nationality" => "Ethiopian", "occupation" => "Business Owner", "source_of_funds" => "Salary", "kyc_status" => "pending"}, "address" => {"address_type" => "home", "city" => "Addis Ababa", "sub_city" => "Bole", "woreda" => "03", "latitude" => "9.0222", "longitude" => "38.7468"}, "auth" => {"user" => {"first_name" => "John", "middle_name" => "Michael", "last_name" => "Doe", "phone_number" => "+251911234577", "password" => "[FILTERED]", "business_name" => "Test Company", "tin_number" => "123456789", "business_type" => "retailer", "date_of_birth" => "1990-01-01", "gender" => "male", "nationality" => "Ethiopian", "occupation" => "Business Owner", "source_of_funds" => "Salary", "kyc_status" => "pending"}, "address" => {"address_type" => "home", "city" => "Addis Ababa", "sub_city" => "Bole", "woreda" => "03", "latitude" => "9.0222", "longitude" => "38.7468"}}}
|
6436
|
+
[1m[36mTRANSACTION (8.5ms)[0m [1m[35mBEGIN /*action='signup',application='Dummy',controller='auth'*/[0m
|
6437
|
+
[1m[36mSnfCore::Address Create (26.4ms)[0m [1m[32mINSERT INTO "snf_core_addresses" ("address_type", "city", "sub_city", "woreda", "latitude", "longitude", "created_at", "updated_at", "house_number") VALUES ('home', 'Addis Ababa', 'Bole', '03', 9.0222, 38.7468, '2025-03-12 10:46:51.572677', '2025-03-12 10:46:51.572677', NULL) RETURNING "id" /*action='signup',application='Dummy',controller='auth'*/[0m
|
6438
|
+
[1m[36mSnfCore::User Exists? (3.1ms)[0m [1m[34mSELECT 1 AS one FROM "snf_core_users" WHERE "snf_core_users"."phone_number" = '+251911234577' LIMIT 1 /*action='signup',application='Dummy',controller='auth'*/[0m
|
6439
|
+
[1m[36mSnfCore::User Exists? (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "snf_core_users" WHERE "snf_core_users"."email" IS NULL LIMIT 1 /*action='signup',application='Dummy',controller='auth'*/[0m
|
6440
|
+
[1m[36mTRANSACTION (0.4ms)[0m [1m[31mROLLBACK /*action='signup',application='Dummy',controller='auth'*/[0m
|
6441
|
+
Completed 422 Unprocessable Content in 290ms (Views: 0.4ms | ActiveRecord: 39.1ms (3 queries, 0 cached) | GC: 0.0ms)
|
6442
|
+
|
6443
|
+
|
6444
|
+
Started POST "/snf_core/auth/signup" for ::1 at 2025-03-12 13:47:06 +0300
|
6445
|
+
Processing by SnfCore::AuthController#signup as */*
|
6446
|
+
Parameters: {"user" => {"first_name" => "John", "middle_name" => "Michael", "last_name" => "Doe", "phone_number" => "+251911234577", "password" => "[FILTERED]", "business_name" => "Test Company", "tin_number" => "123456789", "business_type" => "retailer", "date_of_birth" => "1990-01-01", "gender" => "male", "nationality" => "Ethiopian", "occupation" => "Business Owner", "source_of_funds" => "Salary", "kyc_status" => "pending", "email" => "[FILTERED]"}, "address" => {"address_type" => "home", "city" => "Addis Ababa", "sub_city" => "Bole", "woreda" => "03", "latitude" => "9.0222", "longitude" => "38.7468"}, "auth" => {"user" => {"first_name" => "John", "middle_name" => "Michael", "last_name" => "Doe", "phone_number" => "+251911234577", "password" => "[FILTERED]", "business_name" => "Test Company", "tin_number" => "123456789", "business_type" => "retailer", "date_of_birth" => "1990-01-01", "gender" => "male", "nationality" => "Ethiopian", "occupation" => "Business Owner", "source_of_funds" => "Salary", "kyc_status" => "pending", "email" => "[FILTERED]"}, "address" => {"address_type" => "home", "city" => "Addis Ababa", "sub_city" => "Bole", "woreda" => "03", "latitude" => "9.0222", "longitude" => "38.7468"}}}
|
6447
|
+
[1m[36mTRANSACTION (0.8ms)[0m [1m[35mBEGIN /*action='signup',application='Dummy',controller='auth'*/[0m
|
6448
|
+
[1m[36mSnfCore::Address Create (4.2ms)[0m [1m[32mINSERT INTO "snf_core_addresses" ("address_type", "city", "sub_city", "woreda", "latitude", "longitude", "created_at", "updated_at", "house_number") VALUES ('home', 'Addis Ababa', 'Bole', '03', 9.0222, 38.7468, '2025-03-12 10:47:06.073215', '2025-03-12 10:47:06.073215', NULL) RETURNING "id" /*action='signup',application='Dummy',controller='auth'*/[0m
|
6449
|
+
[31mUnpermitted parameter: :email. Context: { controller: SnfCore::AuthController, action: signup, request: #<ActionDispatch::Request:0x00000001722391a0>, params: {"user" => {"first_name" => "John", "middle_name" => "Michael", "last_name" => "Doe", "phone_number" => "+251911234577", "password" => "[FILTERED]", "business_name" => "Test Company", "tin_number" => "123456789", "business_type" => "retailer", "date_of_birth" => "1990-01-01", "gender" => "male", "nationality" => "Ethiopian", "occupation" => "Business Owner", "source_of_funds" => "Salary", "kyc_status" => "pending", "email" => "[FILTERED]"}, "address" => {"address_type" => "home", "city" => "Addis Ababa", "sub_city" => "Bole", "woreda" => "03", "latitude" => "9.0222", "longitude" => "38.7468"}, "controller" => "snf_core/auth", "action" => "signup", "auth" => {"user" => {"first_name" => "John", "middle_name" => "Michael", "last_name" => "Doe", "phone_number" => "+251911234577", "password" => "[FILTERED]", "business_name" => "Test Company", "tin_number" => "123456789", "business_type" => "retailer", "date_of_birth" => "1990-01-01", "gender" => "male", "nationality" => "Ethiopian", "occupation" => "Business Owner", "source_of_funds" => "Salary", "kyc_status" => "pending", "email" => "[FILTERED]"}, "address" => {"address_type" => "home", "city" => "Addis Ababa", "sub_city" => "Bole", "woreda" => "03", "latitude" => "9.0222", "longitude" => "38.7468"}}} }[0m
|
6450
|
+
[1m[36mSnfCore::User Exists? (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "snf_core_users" WHERE "snf_core_users"."phone_number" = '+251911234577' LIMIT 1 /*action='signup',application='Dummy',controller='auth'*/[0m
|
6451
|
+
[1m[36mSnfCore::User Exists? (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "snf_core_users" WHERE "snf_core_users"."email" IS NULL LIMIT 1 /*action='signup',application='Dummy',controller='auth'*/[0m
|
6452
|
+
[1m[36mTRANSACTION (0.2ms)[0m [1m[31mROLLBACK /*action='signup',application='Dummy',controller='auth'*/[0m
|
6453
|
+
Completed 422 Unprocessable Content in 261ms (Views: 0.1ms | ActiveRecord: 5.9ms (3 queries, 0 cached) | GC: 0.0ms)
|
6454
|
+
|
6455
|
+
|
6456
|
+
[1m[36mSnfCore::User Load (158.6ms)[0m [1m[34mSELECT "snf_core_users".* FROM "snf_core_users" /* loading for pp */ LIMIT 11 /*application='Dummy'*/[0m
|
6457
|
+
Started POST "/snf_core/auth/signup" for ::1 at 2025-03-12 13:49:11 +0300
|
6458
|
+
Processing by SnfCore::AuthController#signup as */*
|
6459
|
+
Parameters: {"user" => {"first_name" => "John", "middle_name" => "Michael", "last_name" => "Doe", "phone_number" => "+251911234577", "password" => "[FILTERED]", "business_name" => "Test Company", "tin_number" => "123456789", "business_type" => "retailer", "date_of_birth" => "1990-01-01", "gender" => "male", "nationality" => "Ethiopian", "occupation" => "Business Owner", "source_of_funds" => "Salary", "kyc_status" => "pending", "email" => "[FILTERED]"}, "address" => {"address_type" => "home", "city" => "Addis Ababa", "sub_city" => "Bole", "woreda" => "03", "latitude" => "9.0222", "longitude" => "38.7468"}, "auth" => {"user" => {"first_name" => "John", "middle_name" => "Michael", "last_name" => "Doe", "phone_number" => "+251911234577", "password" => "[FILTERED]", "business_name" => "Test Company", "tin_number" => "123456789", "business_type" => "retailer", "date_of_birth" => "1990-01-01", "gender" => "male", "nationality" => "Ethiopian", "occupation" => "Business Owner", "source_of_funds" => "Salary", "kyc_status" => "pending", "email" => "[FILTERED]"}, "address" => {"address_type" => "home", "city" => "Addis Ababa", "sub_city" => "Bole", "woreda" => "03", "latitude" => "9.0222", "longitude" => "38.7468"}}}
|
6460
|
+
[1m[36mTRANSACTION (5.2ms)[0m [1m[35mBEGIN /*action='signup',application='Dummy',controller='auth'*/[0m
|
6461
|
+
[1m[36mSnfCore::Address Create (4.3ms)[0m [1m[32mINSERT INTO "snf_core_addresses" ("address_type", "city", "sub_city", "woreda", "latitude", "longitude", "created_at", "updated_at", "house_number") VALUES ('home', 'Addis Ababa', 'Bole', '03', 9.0222, 38.7468, '2025-03-12 10:49:11.654231', '2025-03-12 10:49:11.654231', NULL) RETURNING "id" /*action='signup',application='Dummy',controller='auth'*/[0m
|
6462
|
+
[1m[36mSnfCore::User Exists? (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "snf_core_users" WHERE "snf_core_users"."phone_number" = '+251911234577' LIMIT 1 /*action='signup',application='Dummy',controller='auth'*/[0m
|
6463
|
+
[1m[36mSnfCore::User Exists? (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "snf_core_users" WHERE "snf_core_users"."email" = 'test@gmail.com' LIMIT 1 /*action='signup',application='Dummy',controller='auth'*/[0m
|
6464
|
+
[1m[36mSnfCore::User Create (5.1ms)[0m [1m[32mINSERT INTO "snf_core_users" ("first_name", "middle_name", "last_name", "email", "phone_number", "created_at", "updated_at", "password_digest", "password_changed", "reset_password_token", "date_of_birth", "nationality", "occupation", "source_of_funds", "kyc_status", "gender", "verified_at", "verified_by_id", "address_id") VALUES ('John', 'Michael', 'Doe', 'test@gmail.com', '+251911234577', '2025-03-12 10:49:11.904537', '2025-03-12 10:49:11.904537', '$2a$12$zQqe4P9C3riyFAgImdAhHOV1sRo/QqKK/vCSNw1dNLV9vFSxN4J4C', FALSE, NULL, '1990-01-01', 'Ethiopian', 'Business Owner', 'Salary', 0, 0, NULL, NULL, 9) RETURNING "id" /*action='signup',application='Dummy',controller='auth'*/[0m
|
6465
|
+
[1m[36mSnfCore::Business Exists? (3.4ms)[0m [1m[34mSELECT 1 AS one FROM "snf_core_businesses" WHERE "snf_core_businesses"."tin_number" = '123456789' LIMIT 1 /*action='signup',application='Dummy',controller='auth'*/[0m
|
6466
|
+
[1m[36mTRANSACTION (0.4ms)[0m [1m[31mROLLBACK /*action='signup',application='Dummy',controller='auth'*/[0m
|
6467
|
+
Completed 422 Unprocessable Content in 356ms (Views: 0.1ms | ActiveRecord: 61.1ms (5 queries, 0 cached) | GC: 20.1ms)
|
6468
|
+
|
6469
|
+
|
6470
|
+
Started POST "/snf_core/auth/signup" for ::1 at 2025-03-12 13:49:30 +0300
|
6471
|
+
Processing by SnfCore::AuthController#signup as */*
|
6472
|
+
Parameters: {"user" => {"first_name" => "John", "middle_name" => "Michael", "last_name" => "Doe", "phone_number" => "+251911234577", "password" => "[FILTERED]", "business_name" => "Test Company", "tin_number" => "1234567890", "business_type" => "retailer", "date_of_birth" => "1990-01-01", "gender" => "male", "nationality" => "Ethiopian", "occupation" => "Business Owner", "source_of_funds" => "Salary", "kyc_status" => "pending", "email" => "[FILTERED]"}, "address" => {"address_type" => "home", "city" => "Addis Ababa", "sub_city" => "Bole", "woreda" => "03", "latitude" => "9.0222", "longitude" => "38.7468"}, "auth" => {"user" => {"first_name" => "John", "middle_name" => "Michael", "last_name" => "Doe", "phone_number" => "+251911234577", "password" => "[FILTERED]", "business_name" => "Test Company", "tin_number" => "1234567890", "business_type" => "retailer", "date_of_birth" => "1990-01-01", "gender" => "male", "nationality" => "Ethiopian", "occupation" => "Business Owner", "source_of_funds" => "Salary", "kyc_status" => "pending", "email" => "[FILTERED]"}, "address" => {"address_type" => "home", "city" => "Addis Ababa", "sub_city" => "Bole", "woreda" => "03", "latitude" => "9.0222", "longitude" => "38.7468"}}}
|
6473
|
+
[1m[36mTRANSACTION (1.2ms)[0m [1m[35mBEGIN /*action='signup',application='Dummy',controller='auth'*/[0m
|
6474
|
+
[1m[36mSnfCore::Address Create (4.6ms)[0m [1m[32mINSERT INTO "snf_core_addresses" ("address_type", "city", "sub_city", "woreda", "latitude", "longitude", "created_at", "updated_at", "house_number") VALUES ('home', 'Addis Ababa', 'Bole', '03', 9.0222, 38.7468, '2025-03-12 10:49:30.222638', '2025-03-12 10:49:30.222638', NULL) RETURNING "id" /*action='signup',application='Dummy',controller='auth'*/[0m
|
6475
|
+
[1m[36mSnfCore::User Exists? (2.1ms)[0m [1m[34mSELECT 1 AS one FROM "snf_core_users" WHERE "snf_core_users"."phone_number" = '+251911234577' LIMIT 1 /*action='signup',application='Dummy',controller='auth'*/[0m
|
6476
|
+
[1m[36mSnfCore::User Exists? (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "snf_core_users" WHERE "snf_core_users"."email" = 'test@gmail.com' LIMIT 1 /*action='signup',application='Dummy',controller='auth'*/[0m
|
6477
|
+
[1m[36mSnfCore::User Create (0.7ms)[0m [1m[32mINSERT INTO "snf_core_users" ("first_name", "middle_name", "last_name", "email", "phone_number", "created_at", "updated_at", "password_digest", "password_changed", "reset_password_token", "date_of_birth", "nationality", "occupation", "source_of_funds", "kyc_status", "gender", "verified_at", "verified_by_id", "address_id") VALUES ('John', 'Michael', 'Doe', 'test@gmail.com', '+251911234577', '2025-03-12 10:49:30.479295', '2025-03-12 10:49:30.479295', '$2a$12$r0.U7S3DR/q9j1Hd/qswGOP6cS3BrR1DNPMNVOsPS5no18/vZW6NK', FALSE, NULL, '1990-01-01', 'Ethiopian', 'Business Owner', 'Salary', 0, 0, NULL, NULL, 10) RETURNING "id" /*action='signup',application='Dummy',controller='auth'*/[0m
|
6478
|
+
[1m[36mSnfCore::Business Exists? (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "snf_core_businesses" WHERE "snf_core_businesses"."tin_number" = '1234567890' LIMIT 1 /*action='signup',application='Dummy',controller='auth'*/[0m
|
6479
|
+
[1m[36mSnfCore::Business Create (1.6ms)[0m [1m[32mINSERT INTO "snf_core_businesses" ("user_id", "business_name", "tin_number", "business_type", "verified_at", "verification_status", "created_at", "updated_at") VALUES (3, 'Test Company', '1234567890', 0, NULL, 0, '2025-03-12 10:49:30.482167', '2025-03-12 10:49:30.482167') RETURNING "id" /*action='signup',application='Dummy',controller='auth'*/[0m
|
6480
|
+
[1m[36mTRANSACTION (2.7ms)[0m [1m[35mCOMMIT /*action='signup',application='Dummy',controller='auth'*/[0m
|
6481
|
+
Completed 201 Created in 274ms (Views: 0.3ms | ActiveRecord: 13.4ms (6 queries, 0 cached) | GC: 2.6ms)
|
6482
|
+
|
6483
|
+
|