snf_core 0.3.7 → 0.3.8

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.
Files changed (27) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/snf_core/auth_controller.rb +3 -2
  3. data/app/models/snf_core/quotation.rb +1 -0
  4. data/db/migrate/20250317135148_add_user_to_quotation.rb +5 -0
  5. data/lib/snf_core/version.rb +1 -1
  6. data/spec/dummy/db/schema.rb +4 -1
  7. data/spec/dummy/log/development.log +793 -0
  8. data/spec/dummy/log/test.log +16055 -0
  9. data/spec/dummy/tmp/storage/4b/jj/4bjj0gif47zey9wtfgchqycn1yvf +0 -0
  10. data/spec/dummy/tmp/storage/4p/en/4peng35m86rx8tqpyj6ekabtkby8 +0 -0
  11. data/spec/dummy/tmp/storage/5m/ym/5mymeg6xe9jzbmzzlgeuc9cpfc7p +0 -0
  12. data/spec/dummy/tmp/storage/74/qy/74qyz5a03ozsho4l4fb1qmcd1iyl +0 -0
  13. data/spec/dummy/tmp/storage/7f/1u/7f1u3qgbmbvx18taa0zeyeau19tv +0 -0
  14. data/spec/dummy/tmp/storage/cf/cn/cfcnhpfk26n7siiezv2v1ooo7m2w +0 -0
  15. data/spec/dummy/tmp/storage/cz/gv/czgv4l1kemyizmlq3975u364pppi +0 -0
  16. data/spec/dummy/tmp/storage/f3/33/f333obc6vddqvdsbesykcpxm41y5 +0 -0
  17. data/spec/dummy/tmp/storage/gt/9z/gt9zc94cxlddgqpgomo30vjjihky +0 -0
  18. data/spec/dummy/tmp/storage/iq/z5/iqz5993sf7hx44dprnqqpc2b7n52 +0 -0
  19. data/spec/dummy/tmp/storage/iy/3r/iy3rwasm8e6s4z3wmhnwwmo7w9sz +0 -0
  20. data/spec/dummy/tmp/storage/ny/o3/nyo3lmyjvneit4ame6w4f3ruhnkp +0 -0
  21. data/spec/dummy/tmp/storage/od/wq/odwqixsz0iqwah8tm7eggdxyvsob +0 -0
  22. data/spec/dummy/tmp/storage/pu/t5/put5ap86ooxqmifj7mi0niu507l8 +0 -0
  23. data/spec/dummy/tmp/storage/qd/5o/qd5oes7453z8e5mizm5e2f3zxuiz +0 -0
  24. data/spec/examples.txt +202 -201
  25. data/spec/factories/snf_core/quotations.rb +1 -0
  26. data/spec/models/snf_core/quotation_spec.rb +1 -0
  27. metadata +18 -2
@@ -9192,3 +9192,796 @@ FOREIGN KEY ("user_id")
9192
9192
  ActiveRecord::InternalMetadata Update (1.5ms) UPDATE "ar_internal_metadata" SET "value" = 'test', "updated_at" = '2025-03-13 11:44:38.654064' WHERE "ar_internal_metadata"."key" = 'environment' /*application='Dummy'*/
9193
9193
  ActiveRecord::InternalMetadata Load (0.4ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'schema_sha1' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/
9194
9194
  ActiveRecord::InternalMetadata Create (0.6ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('schema_sha1', '218184097ba896dfad8023903cb8f560edf494c0', '2025-03-13 11:44:38.657479', '2025-03-13 11:44:38.657481') RETURNING "key" /*application='Dummy'*/
9195
+ Started POST "/auth/login" for 127.0.0.1 at 2025-03-17 12:11:08 +0300
9196
+ ActiveRecord::SchemaMigration Load (3.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
9197
+
9198
+ ActionController::RoutingError (No route matches [POST] "/auth/login"):
9199
+
9200
+ Started POST "/auth/login" for 127.0.0.1 at 2025-03-17 12:11:16 +0300
9201
+
9202
+ ActionController::RoutingError (No route matches [POST] "/auth/login"):
9203
+
9204
+ Started POST "/snf_core/auth/login" for 127.0.0.1 at 2025-03-17 12:11:28 +0300
9205
+ Processing by SnfCore::AuthController#login as HTML
9206
+ Parameters: {"auth" => {"phone_number" => "0978616116", "password" => "[FILTERED]"}}
9207
+ SnfCore::User Load (2.2ms) SELECT "snf_core_users".* FROM "snf_core_users" WHERE "snf_core_users"."phone_number" = '0978616116' LIMIT 1 /*action='login',application='Dummy',controller='auth'*/
9208
+ Completed 401 Unauthorized in 90ms (Views: 0.1ms | ActiveRecord: 31.7ms (1 query, 0 cached) | GC: 0.0ms)
9209
+
9210
+
9211
+ Started POST "/snf_core/auth/signup" for ::1 at 2025-03-17 12:15:38 +0300
9212
+ Processing by SnfCore::AuthController#signup as HTML
9213
+ Parameters: {"user" => {"first_name" => "John", "middle_name" => "Doe", "last_name" => "Smith", "phone_number" => "+251911223344", "password" => "[FILTERED]", "business_name" => "Test Business", "tin_number" => "123456789", "business_type" => "retailer", "date_of_birth" => "1990-01-01", "gender" => "male", "nationality" => "Ethiopia", "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" => "Doe", "last_name" => "Smith", "phone_number" => "+251911223344", "password" => "[FILTERED]", "business_name" => "Test Business", "tin_number" => "123456789", "business_type" => "retailer", "date_of_birth" => "1990-01-01", "gender" => "male", "nationality" => "Ethiopia", "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"}}}
9214
+ TRANSACTION (5.3ms) BEGIN /*action='signup',application='Dummy',controller='auth'*/
9215
+ SnfCore::Address Create (10.7ms) INSERT 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-17 09:15:38.305729', '2025-03-17 09:15:38.305729', NULL) RETURNING "id" /*action='signup',application='Dummy',controller='auth'*/
9216
+ SnfCore::User Exists? (0.5ms) SELECT 1 AS one FROM "snf_core_users" WHERE "snf_core_users"."phone_number" = '+251911223344' LIMIT 1 /*action='signup',application='Dummy',controller='auth'*/
9217
+ TRANSACTION (2.1ms) ROLLBACK /*action='signup',application='Dummy',controller='auth'*/
9218
+ Completed 422 Unprocessable Content in 356ms (Views: 0.4ms | ActiveRecord: 61.4ms (2 queries, 0 cached) | GC: 0.0ms)
9219
+
9220
+
9221
+ Started POST "/snf_core/auth/signup" for ::1 at 2025-03-17 12:15:54 +0300
9222
+ Processing by SnfCore::AuthController#signup as HTML
9223
+ Parameters: {"user" => {"first_name" => "John", "middle_name" => "Doe", "last_name" => "Smith", "phone_number" => "+251911223344", "password" => "[FILTERED]", "business_name" => "Test Business", "tin_number" => "123456789", "business_type" => "retailer", "date_of_birth" => "1990-01-01", "gender" => "male", "nationality" => "Ethiopia", "occupation" => "Business Owner", "source_of_funds" => "Salary", "kyc_status" => "pending", "fayda_id" => "123423334"}, "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" => "Doe", "last_name" => "Smith", "phone_number" => "+251911223344", "password" => "[FILTERED]", "business_name" => "Test Business", "tin_number" => "123456789", "business_type" => "retailer", "date_of_birth" => "1990-01-01", "gender" => "male", "nationality" => "Ethiopia", "occupation" => "Business Owner", "source_of_funds" => "Salary", "kyc_status" => "pending", "fayda_id" => "123423334"}, "address" => {"address_type" => "home", "city" => "Addis Ababa", "sub_city" => "Bole", "woreda" => "03", "latitude" => "9.0222", "longitude" => "38.7468"}}}
9224
+ TRANSACTION (0.2ms) BEGIN /*action='signup',application='Dummy',controller='auth'*/
9225
+ SnfCore::Address Create (2.3ms) INSERT 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-17 09:15:54.543968', '2025-03-17 09:15:54.543968', NULL) RETURNING "id" /*action='signup',application='Dummy',controller='auth'*/
9226
+ SnfCore::User Exists? (1.6ms) SELECT 1 AS one FROM "snf_core_users" WHERE "snf_core_users"."phone_number" = '+251911223344' LIMIT 1 /*action='signup',application='Dummy',controller='auth'*/
9227
+ SnfCore::User Create (4.9ms) INSERT 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", "fayda_id") VALUES ('John', 'Doe', 'Smith', NULL, '+251911223344', '2025-03-17 09:15:54.799426', '2025-03-17 09:15:54.799426', '$2a$12$l4NAKvty.UkPXyaSiNpLO.iiOoNgjjAIuzgLWB1ClqqqBaGW.gpM2', TRUE, NULL, '1990-01-01', 'Ethiopia', 'Business Owner', 'Salary', 0, 0, NULL, NULL, 2, '123423334') RETURNING "id" /*action='signup',application='Dummy',controller='auth'*/
9228
+ SnfCore::Role Load (2.5ms) SELECT "snf_core_roles".* FROM "snf_core_roles" WHERE "snf_core_roles"."name" = 'User' LIMIT 1 /*action='signup',application='Dummy',controller='auth'*/
9229
+ SnfCore::UserRole Load (3.0ms) SELECT "snf_core_user_roles".* FROM "snf_core_user_roles" WHERE "snf_core_user_roles"."user_id" = 1 AND "snf_core_user_roles"."role_id" IS NULL LIMIT 1 /*action='signup',application='Dummy',controller='auth'*/
9230
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1 /*action='signup',application='Dummy',controller='auth'*/
9231
+ TRANSACTION (1.2ms) ROLLBACK TO SAVEPOINT active_record_1 /*action='signup',application='Dummy',controller='auth'*/
9232
+ TRANSACTION (0.4ms) ROLLBACK /*action='signup',application='Dummy',controller='auth'*/
9233
+ Completed 422 Unprocessable Content in 290ms (ActiveRecord: 25.5ms (5 queries, 0 cached) | GC: 0.0ms)
9234
+
9235
+
9236
+
9237
+ ActiveRecord::RecordInvalid (Validation failed: Role must exist):
9238
+
9239
+ activerecord (8.0.1) lib/active_record/validations.rb:87:in 'ActiveRecord::Validations#raise_validation_error'
9240
+ activerecord (8.0.1) lib/active_record/validations.rb:54:in 'ActiveRecord::Validations#save!'
9241
+ activerecord (8.0.1) lib/active_record/transactions.rb:366:in 'block in ActiveRecord::Transactions#save!'
9242
+ activerecord (8.0.1) lib/active_record/transactions.rb:418:in 'block (2 levels) in ActiveRecord::Transactions#with_transaction_returning_status'
9243
+ activerecord (8.0.1) lib/active_record/connection_adapters/abstract/database_statements.rb:357:in 'ActiveRecord::ConnectionAdapters::DatabaseStatements#transaction'
9244
+ activerecord (8.0.1) lib/active_record/transactions.rb:414:in 'block in ActiveRecord::Transactions#with_transaction_returning_status'
9245
+ activerecord (8.0.1) lib/active_record/connection_adapters/abstract/connection_pool.rb:412:in 'ActiveRecord::ConnectionAdapters::ConnectionPool#with_connection'
9246
+ activerecord (8.0.1) lib/active_record/connection_handling.rb:310:in 'ActiveRecord::ConnectionHandling#with_connection'
9247
+ activerecord (8.0.1) lib/active_record/transactions.rb:410:in 'ActiveRecord::Transactions#with_transaction_returning_status'
9248
+ activerecord (8.0.1) lib/active_record/transactions.rb:366:in 'ActiveRecord::Transactions#save!'
9249
+ activerecord (8.0.1) lib/active_record/suppressor.rb:56:in 'ActiveRecord::Suppressor#save!'
9250
+ activerecord (8.0.1) lib/active_record/persistence.rb:55:in 'ActiveRecord::Persistence::ClassMethods#create!'
9251
+ activerecord (8.0.1) lib/active_record/relation.rb:1362:in 'ActiveRecord::Relation#_create!'
9252
+ activerecord (8.0.1) lib/active_record/relation.rb:174:in 'block in ActiveRecord::Relation#create!'
9253
+ activerecord (8.0.1) lib/active_record/relation.rb:1373:in 'ActiveRecord::Relation#_scoping'
9254
+ activerecord (8.0.1) lib/active_record/relation.rb:548:in 'ActiveRecord::Relation#scoping'
9255
+ activerecord (8.0.1) lib/active_record/relation.rb:174:in 'ActiveRecord::Relation#create!'
9256
+ activerecord (8.0.1) lib/active_record/relation.rb:290:in 'block (2 levels) in ActiveRecord::Relation#create_or_find_by!'
9257
+ activerecord (8.0.1) lib/active_record/connection_adapters/abstract/transaction.rb:626:in 'block in ActiveRecord::ConnectionAdapters::TransactionManager#within_new_transaction'
9258
+ activesupport (8.0.1) lib/active_support/concurrency/null_lock.rb:9:in 'ActiveSupport::Concurrency::NullLock#synchronize'
9259
+ activerecord (8.0.1) lib/active_record/connection_adapters/abstract/transaction.rb:623:in 'ActiveRecord::ConnectionAdapters::TransactionManager#within_new_transaction'
9260
+ activerecord (8.0.1) lib/active_record/connection_adapters/abstract/database_statements.rb:367:in 'ActiveRecord::ConnectionAdapters::DatabaseStatements#within_new_transaction'
9261
+ activerecord (8.0.1) lib/active_record/connection_adapters/abstract/database_statements.rb:359:in 'ActiveRecord::ConnectionAdapters::DatabaseStatements#transaction'
9262
+ activerecord (8.0.1) lib/active_record/transactions.rb:234:in 'block in ActiveRecord::Transactions::ClassMethods#transaction'
9263
+ activerecord (8.0.1) lib/active_record/connection_adapters/abstract/connection_pool.rb:412:in 'ActiveRecord::ConnectionAdapters::ConnectionPool#with_connection'
9264
+ activerecord (8.0.1) lib/active_record/connection_handling.rb:310:in 'ActiveRecord::ConnectionHandling#with_connection'
9265
+ activerecord (8.0.1) lib/active_record/transactions.rb:233:in 'ActiveRecord::Transactions::ClassMethods#transaction'
9266
+ activerecord (8.0.1) lib/active_record/relation/delegation.rb:106:in 'ActiveRecord::Delegation#transaction'
9267
+ activerecord (8.0.1) lib/active_record/relation.rb:290:in 'block in ActiveRecord::Relation#create_or_find_by!'
9268
+ activerecord (8.0.1) lib/active_record/connection_adapters/abstract/connection_pool.rb:412:in 'ActiveRecord::ConnectionAdapters::ConnectionPool#with_connection'
9269
+ activerecord (8.0.1) lib/active_record/connection_handling.rb:310:in 'ActiveRecord::ConnectionHandling#with_connection'
9270
+ activerecord (8.0.1) lib/active_record/relation/delegation.rb:106:in 'ActiveRecord::Delegation#with_connection'
9271
+ activerecord (8.0.1) lib/active_record/relation.rb:289:in 'ActiveRecord::Relation#create_or_find_by!'
9272
+ activerecord (8.0.1) lib/active_record/relation.rb:239:in 'ActiveRecord::Relation#find_or_create_by!'
9273
+ activerecord (8.0.1) lib/active_record/querying.rb:24:in 'ActiveRecord::Querying#find_or_create_by!'
9274
+ /Users/asrat/HOME/self/mks/BUNNA/snf_core/app/controllers/snf_core/auth_controller.rb:40:in 'block in SnfCore::AuthController#signup'
9275
+ activerecord (8.0.1) lib/active_record/connection_adapters/abstract/transaction.rb:626:in 'block in ActiveRecord::ConnectionAdapters::TransactionManager#within_new_transaction'
9276
+ activesupport (8.0.1) lib/active_support/concurrency/null_lock.rb:9:in 'ActiveSupport::Concurrency::NullLock#synchronize'
9277
+ activerecord (8.0.1) lib/active_record/connection_adapters/abstract/transaction.rb:623:in 'ActiveRecord::ConnectionAdapters::TransactionManager#within_new_transaction'
9278
+ activerecord (8.0.1) lib/active_record/connection_adapters/abstract/database_statements.rb:367:in 'ActiveRecord::ConnectionAdapters::DatabaseStatements#within_new_transaction'
9279
+ activerecord (8.0.1) lib/active_record/connection_adapters/abstract/database_statements.rb:359:in 'ActiveRecord::ConnectionAdapters::DatabaseStatements#transaction'
9280
+ activerecord (8.0.1) lib/active_record/transactions.rb:234:in 'block in ActiveRecord::Transactions::ClassMethods#transaction'
9281
+ activerecord (8.0.1) lib/active_record/connection_adapters/abstract/connection_pool.rb:418:in 'ActiveRecord::ConnectionAdapters::ConnectionPool#with_connection'
9282
+ activerecord (8.0.1) lib/active_record/connection_handling.rb:310:in 'ActiveRecord::ConnectionHandling#with_connection'
9283
+ activerecord (8.0.1) lib/active_record/transactions.rb:233:in 'ActiveRecord::Transactions::ClassMethods#transaction'
9284
+ /Users/asrat/HOME/self/mks/BUNNA/snf_core/app/controllers/snf_core/auth_controller.rb:30:in 'SnfCore::AuthController#signup'
9285
+ actionpack (8.0.1) lib/action_controller/metal/basic_implicit_render.rb:8:in 'ActionController::BasicImplicitRender#send_action'
9286
+ actionpack (8.0.1) lib/abstract_controller/base.rb:226:in 'AbstractController::Base#process_action'
9287
+ actionpack (8.0.1) lib/action_controller/metal/rendering.rb:193:in 'ActionController::Rendering#process_action'
9288
+ actionpack (8.0.1) lib/abstract_controller/callbacks.rb:261:in 'block in AbstractController::Callbacks#process_action'
9289
+ activesupport (8.0.1) lib/active_support/callbacks.rb:109:in 'ActiveSupport::Callbacks#run_callbacks'
9290
+ actionpack (8.0.1) lib/abstract_controller/callbacks.rb:260:in 'AbstractController::Callbacks#process_action'
9291
+ actionpack (8.0.1) lib/action_controller/metal/rescue.rb:27:in 'ActionController::Rescue#process_action'
9292
+ actionpack (8.0.1) lib/action_controller/metal/instrumentation.rb:76:in 'block in ActionController::Instrumentation#process_action'
9293
+ activesupport (8.0.1) lib/active_support/notifications.rb:210:in 'block in ActiveSupport::Notifications.instrument'
9294
+ activesupport (8.0.1) lib/active_support/notifications/instrumenter.rb:58:in 'ActiveSupport::Notifications::Instrumenter#instrument'
9295
+ activesupport (8.0.1) lib/active_support/notifications.rb:210:in 'ActiveSupport::Notifications.instrument'
9296
+ actionpack (8.0.1) lib/action_controller/metal/instrumentation.rb:75:in 'ActionController::Instrumentation#process_action'
9297
+ actionpack (8.0.1) lib/action_controller/metal/params_wrapper.rb:259:in 'ActionController::ParamsWrapper#process_action'
9298
+ activerecord (8.0.1) lib/active_record/railties/controller_runtime.rb:39:in 'ActiveRecord::Railties::ControllerRuntime#process_action'
9299
+ actionpack (8.0.1) lib/abstract_controller/base.rb:163:in 'AbstractController::Base#process'
9300
+ actionpack (8.0.1) lib/action_controller/metal.rb:252:in 'ActionController::Metal#dispatch'
9301
+ actionpack (8.0.1) lib/action_controller/metal.rb:335:in 'ActionController::Metal.dispatch'
9302
+ actionpack (8.0.1) lib/action_dispatch/routing/route_set.rb:67:in 'ActionDispatch::Routing::RouteSet::Dispatcher#dispatch'
9303
+ actionpack (8.0.1) lib/action_dispatch/routing/route_set.rb:50:in 'ActionDispatch::Routing::RouteSet::Dispatcher#serve'
9304
+ actionpack (8.0.1) lib/action_dispatch/journey/router.rb:53:in 'block in ActionDispatch::Journey::Router#serve'
9305
+ actionpack (8.0.1) lib/action_dispatch/journey/router.rb:133:in 'block in ActionDispatch::Journey::Router#find_routes'
9306
+ actionpack (8.0.1) lib/action_dispatch/journey/router.rb:126:in 'Array#each'
9307
+ actionpack (8.0.1) lib/action_dispatch/journey/router.rb:126:in 'ActionDispatch::Journey::Router#find_routes'
9308
+ actionpack (8.0.1) lib/action_dispatch/journey/router.rb:34:in 'ActionDispatch::Journey::Router#serve'
9309
+ actionpack (8.0.1) lib/action_dispatch/routing/route_set.rb:908:in 'ActionDispatch::Routing::RouteSet#call'
9310
+ railties (8.0.1) lib/rails/engine/lazy_route_set.rb:68:in 'Rails::Engine::LazyRouteSet#call'
9311
+ railties (8.0.1) lib/rails/engine.rb:535:in 'Rails::Engine#call'
9312
+ railties (8.0.1) lib/rails/railtie.rb:226:in 'Kernel#public_send'
9313
+ railties (8.0.1) lib/rails/railtie.rb:226:in 'Rails::Railtie.method_missing'
9314
+ actionpack (8.0.1) lib/action_dispatch/routing/mapper.rb:33:in 'block in <class:Constraints>'
9315
+ actionpack (8.0.1) lib/action_dispatch/routing/mapper.rb:62:in 'ActionDispatch::Routing::Mapper::Constraints#serve'
9316
+ actionpack (8.0.1) lib/action_dispatch/journey/router.rb:53:in 'block in ActionDispatch::Journey::Router#serve'
9317
+ actionpack (8.0.1) lib/action_dispatch/journey/router.rb:133:in 'block in ActionDispatch::Journey::Router#find_routes'
9318
+ actionpack (8.0.1) lib/action_dispatch/journey/router.rb:126:in 'Array#each'
9319
+ actionpack (8.0.1) lib/action_dispatch/journey/router.rb:126:in 'ActionDispatch::Journey::Router#find_routes'
9320
+ actionpack (8.0.1) lib/action_dispatch/journey/router.rb:34:in 'ActionDispatch::Journey::Router#serve'
9321
+ actionpack (8.0.1) lib/action_dispatch/routing/route_set.rb:908:in 'ActionDispatch::Routing::RouteSet#call'
9322
+ railties (8.0.1) lib/rails/engine/lazy_route_set.rb:68:in 'Rails::Engine::LazyRouteSet#call'
9323
+ rack (3.1.10) lib/rack/etag.rb:29:in 'Rack::ETag#call'
9324
+ rack (3.1.10) lib/rack/conditional_get.rb:43:in 'Rack::ConditionalGet#call'
9325
+ rack (3.1.10) lib/rack/head.rb:15:in 'Rack::Head#call'
9326
+ activerecord (8.0.1) lib/active_record/migration.rb:671:in 'ActiveRecord::Migration::CheckPending#call'
9327
+ actionpack (8.0.1) lib/action_dispatch/middleware/callbacks.rb:31:in 'block in ActionDispatch::Callbacks#call'
9328
+ activesupport (8.0.1) lib/active_support/callbacks.rb:100:in 'ActiveSupport::Callbacks#run_callbacks'
9329
+ actionpack (8.0.1) lib/action_dispatch/middleware/callbacks.rb:30:in 'ActionDispatch::Callbacks#call'
9330
+ actionpack (8.0.1) lib/action_dispatch/middleware/executor.rb:16:in 'ActionDispatch::Executor#call'
9331
+ actionpack (8.0.1) lib/action_dispatch/middleware/actionable_exceptions.rb:18:in 'ActionDispatch::ActionableExceptions#call'
9332
+ sentry-rails (5.22.4) lib/sentry/rails/rescued_exception_interceptor.rb:11:in 'Sentry::Rails::RescuedExceptionInterceptor#call'
9333
+ actionpack (8.0.1) lib/action_dispatch/middleware/debug_exceptions.rb:31:in 'ActionDispatch::DebugExceptions#call'
9334
+ sentry-ruby (5.22.4) lib/sentry/rack/capture_exceptions.rb:15:in 'Sentry::Rack::CaptureExceptions#call'
9335
+ actionpack (8.0.1) lib/action_dispatch/middleware/show_exceptions.rb:32:in 'ActionDispatch::ShowExceptions#call'
9336
+ railties (8.0.1) lib/rails/rack/logger.rb:41:in 'Rails::Rack::Logger#call_app'
9337
+ railties (8.0.1) lib/rails/rack/logger.rb:29:in 'Rails::Rack::Logger#call'
9338
+ actionpack (8.0.1) lib/action_dispatch/middleware/remote_ip.rb:96:in 'ActionDispatch::RemoteIp#call'
9339
+ actionpack (8.0.1) lib/action_dispatch/middleware/request_id.rb:34:in 'ActionDispatch::RequestId#call'
9340
+ rack (3.1.10) lib/rack/runtime.rb:24:in 'Rack::Runtime#call'
9341
+ actionpack (8.0.1) lib/action_dispatch/middleware/server_timing.rb:61:in 'block in ActionDispatch::ServerTiming#call'
9342
+ actionpack (8.0.1) lib/action_dispatch/middleware/server_timing.rb:26:in 'ActionDispatch::ServerTiming::Subscriber#collect_events'
9343
+ actionpack (8.0.1) lib/action_dispatch/middleware/server_timing.rb:60:in 'ActionDispatch::ServerTiming#call'
9344
+ actionpack (8.0.1) lib/action_dispatch/middleware/executor.rb:16:in 'ActionDispatch::Executor#call'
9345
+ actionpack (8.0.1) lib/action_dispatch/middleware/static.rb:27:in 'ActionDispatch::Static#call'
9346
+ rack (3.1.10) lib/rack/sendfile.rb:114:in 'Rack::Sendfile#call'
9347
+ actionpack (8.0.1) lib/action_dispatch/middleware/host_authorization.rb:143:in 'ActionDispatch::HostAuthorization#call'
9348
+ railties (8.0.1) lib/rails/engine.rb:535:in 'Rails::Engine#call'
9349
+ puma (6.6.0) lib/puma/configuration.rb:279:in 'Puma::Configuration::ConfigMiddleware#call'
9350
+ puma (6.6.0) lib/puma/request.rb:99:in 'block in Puma::Request#handle_request'
9351
+ puma (6.6.0) lib/puma/thread_pool.rb:390:in 'Puma::ThreadPool#with_force_shutdown'
9352
+ puma (6.6.0) lib/puma/request.rb:98:in 'Puma::Request#handle_request'
9353
+ puma (6.6.0) lib/puma/server.rb:472:in 'Puma::Server#process_client'
9354
+ puma (6.6.0) lib/puma/server.rb:254:in 'block in Puma::Server#run'
9355
+ puma (6.6.0) lib/puma/thread_pool.rb:167:in 'block in Puma::ThreadPool#spawn_thread'
9356
+ TRANSACTION (0.2ms) BEGIN /*application='Dummy'*/
9357
+ SnfCore::Role Exists? (2.5ms) SELECT 1 AS one FROM "snf_core_roles" WHERE "snf_core_roles"."name" = 'User' LIMIT 1 /*application='Dummy'*/
9358
+ SnfCore::Role Create (2.2ms) INSERT INTO "snf_core_roles" ("name", "created_at", "updated_at") VALUES ('User', '2025-03-17 09:17:06.558563', '2025-03-17 09:17:06.558563') RETURNING "id" /*application='Dummy'*/
9359
+ TRANSACTION (1.0ms) COMMIT /*application='Dummy'*/
9360
+ Started POST "/snf_core/auth/signup" for ::1 at 2025-03-17 12:17:10 +0300
9361
+ Processing by SnfCore::AuthController#signup as HTML
9362
+ Parameters: {"user" => {"first_name" => "John", "middle_name" => "Doe", "last_name" => "Smith", "phone_number" => "+251911223344", "password" => "[FILTERED]", "business_name" => "Test Business", "tin_number" => "123456789", "business_type" => "retailer", "date_of_birth" => "1990-01-01", "gender" => "male", "nationality" => "Ethiopia", "occupation" => "Business Owner", "source_of_funds" => "Salary", "kyc_status" => "pending", "fayda_id" => "123423334"}, "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" => "Doe", "last_name" => "Smith", "phone_number" => "+251911223344", "password" => "[FILTERED]", "business_name" => "Test Business", "tin_number" => "123456789", "business_type" => "retailer", "date_of_birth" => "1990-01-01", "gender" => "male", "nationality" => "Ethiopia", "occupation" => "Business Owner", "source_of_funds" => "Salary", "kyc_status" => "pending", "fayda_id" => "123423334"}, "address" => {"address_type" => "home", "city" => "Addis Ababa", "sub_city" => "Bole", "woreda" => "03", "latitude" => "9.0222", "longitude" => "38.7468"}}}
9363
+ TRANSACTION (0.7ms) BEGIN /*action='signup',application='Dummy',controller='auth'*/
9364
+ SnfCore::Address Create (4.1ms) INSERT 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-17 09:17:10.957615', '2025-03-17 09:17:10.957615', NULL) RETURNING "id" /*action='signup',application='Dummy',controller='auth'*/
9365
+ SnfCore::User Exists? (1.2ms) SELECT 1 AS one FROM "snf_core_users" WHERE "snf_core_users"."phone_number" = '+251911223344' LIMIT 1 /*action='signup',application='Dummy',controller='auth'*/
9366
+ SnfCore::User Create (0.9ms) INSERT 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", "fayda_id") VALUES ('John', 'Doe', 'Smith', NULL, '+251911223344', '2025-03-17 09:17:11.208427', '2025-03-17 09:17:11.208427', '$2a$12$G0NjHqOkh/oEMwsoUy7M.u/TAAj.L/y6nZHtJuRk3uVNDWgvscltm', TRUE, NULL, '1990-01-01', 'Ethiopia', 'Business Owner', 'Salary', 0, 0, NULL, NULL, 3, '123423334') RETURNING "id" /*action='signup',application='Dummy',controller='auth'*/
9367
+ SnfCore::Role Load (0.2ms) SELECT "snf_core_roles".* FROM "snf_core_roles" WHERE "snf_core_roles"."name" = 'User' LIMIT 1 /*action='signup',application='Dummy',controller='auth'*/
9368
+ SnfCore::UserRole Load (0.6ms) SELECT "snf_core_user_roles".* FROM "snf_core_user_roles" WHERE "snf_core_user_roles"."user_id" = 2 AND "snf_core_user_roles"."role_id" = 1 LIMIT 1 /*action='signup',application='Dummy',controller='auth'*/
9369
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1 /*action='signup',application='Dummy',controller='auth'*/
9370
+ SnfCore::UserRole Create (4.5ms) INSERT INTO "snf_core_user_roles" ("user_id", "role_id", "created_at", "updated_at") VALUES (2, 1, '2025-03-17 09:17:11.215065', '2025-03-17 09:17:11.215065') RETURNING "id" /*action='signup',application='Dummy',controller='auth'*/
9371
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 /*action='signup',application='Dummy',controller='auth'*/
9372
+ SnfCore::Business Exists? (2.0ms) SELECT 1 AS one FROM "snf_core_businesses" WHERE "snf_core_businesses"."tin_number" = '123456789' LIMIT 1 /*action='signup',application='Dummy',controller='auth'*/
9373
+ SnfCore::Business Create (2.1ms) INSERT INTO "snf_core_businesses" ("user_id", "business_name", "tin_number", "business_type", "verified_at", "verification_status", "created_at", "updated_at") VALUES (2, 'Test Business', '123456789', 0, NULL, 0, '2025-03-17 09:17:11.241255', '2025-03-17 09:17:11.241255') RETURNING "id" /*action='signup',application='Dummy',controller='auth'*/
9374
+ TRANSACTION (0.3ms) COMMIT /*action='signup',application='Dummy',controller='auth'*/
9375
+ Completed 201 Created in 292ms (Views: 0.2ms | ActiveRecord: 23.6ms (8 queries, 0 cached) | GC: 0.6ms)
9376
+
9377
+
9378
+ Started POST "/snf_core/auth/login" for 127.0.0.1 at 2025-03-17 12:17:33 +0300
9379
+ Processing by SnfCore::AuthController#login as HTML
9380
+ Parameters: {"auth" => {"phone_number" => "+251911223344", "password" => "[FILTERED]"}}
9381
+ SnfCore::User Load (0.7ms) SELECT "snf_core_users".* FROM "snf_core_users" WHERE "snf_core_users"."phone_number" = '+251911223344' LIMIT 1 /*action='login',application='Dummy',controller='auth'*/
9382
+ SnfCore::UserRole Load (0.8ms) SELECT "snf_core_user_roles".* FROM "snf_core_user_roles" WHERE "snf_core_user_roles"."user_id" = 2 LIMIT 1 /*action='login',application='Dummy',controller='auth'*/
9383
+ SnfCore::Address Load (2.4ms) SELECT "snf_core_addresses".* FROM "snf_core_addresses" WHERE "snf_core_addresses"."user_id" = 2 LIMIT 1 /*action='login',application='Dummy',controller='auth'*/
9384
+ Completed 500 Internal Server Error in 254ms (ActiveRecord: 3.9ms (3 queries, 0 cached) | GC: 0.0ms)
9385
+
9386
+
9387
+
9388
+ ActiveRecord::StatementInvalid (PG::UndefinedColumn: ERROR: column snf_core_addresses.user_id does not exist
9389
+ LINE 1: ...core_addresses".* FROM "snf_core_addresses" WHERE "snf_core_...
9390
+ ^
9391
+ )
9392
+ Caused by: PG::UndefinedColumn (ERROR: column snf_core_addresses.user_id does not exist
9393
+ LINE 1: ...core_addresses".* FROM "snf_core_addresses" WHERE "snf_core_...
9394
+ ^
9395
+ )
9396
+
9397
+ Information for: ActiveRecord::StatementInvalid (PG::UndefinedColumn: ERROR: column snf_core_addresses.user_id does not exist
9398
+ LINE 1: ...core_addresses".* FROM "snf_core_addresses" WHERE "snf_core_...
9399
+ ^
9400
+ ):
9401
+
9402
+
9403
+ Information for cause: PG::UndefinedColumn (ERROR: column snf_core_addresses.user_id does not exist
9404
+ LINE 1: ...core_addresses".* FROM "snf_core_addresses" WHERE "snf_core_...
9405
+ ^
9406
+ ):
9407
+
9408
+ activerecord (8.0.1) lib/active_record/connection_adapters/postgresql/database_statements.rb:160:in 'PG::Connection#exec'
9409
+ activerecord (8.0.1) lib/active_record/connection_adapters/postgresql/database_statements.rb:160:in 'ActiveRecord::ConnectionAdapters::PostgreSQL::DatabaseStatements#perform_query'
9410
+ activerecord (8.0.1) lib/active_record/connection_adapters/abstract/database_statements.rb:556:in 'block (2 levels) in ActiveRecord::ConnectionAdapters::DatabaseStatements#raw_execute'
9411
+ activerecord (8.0.1) lib/active_record/connection_adapters/abstract_adapter.rb:1011:in 'block in ActiveRecord::ConnectionAdapters::AbstractAdapter#with_raw_connection'
9412
+ activesupport (8.0.1) lib/active_support/concurrency/null_lock.rb:9:in 'ActiveSupport::Concurrency::NullLock#synchronize'
9413
+ activerecord (8.0.1) lib/active_record/connection_adapters/abstract_adapter.rb:983:in 'ActiveRecord::ConnectionAdapters::AbstractAdapter#with_raw_connection'
9414
+ activerecord (8.0.1) lib/active_record/connection_adapters/abstract/database_statements.rb:555:in 'block in ActiveRecord::ConnectionAdapters::DatabaseStatements#raw_execute'
9415
+ activesupport (8.0.1) lib/active_support/notifications/instrumenter.rb:58:in 'ActiveSupport::Notifications::Instrumenter#instrument'
9416
+ activerecord (8.0.1) lib/active_record/connection_adapters/abstract_adapter.rb:1129:in 'ActiveRecord::ConnectionAdapters::AbstractAdapter#log'
9417
+ activerecord (8.0.1) lib/active_record/connection_adapters/abstract/database_statements.rb:554:in 'ActiveRecord::ConnectionAdapters::DatabaseStatements#raw_execute'
9418
+ activerecord (8.0.1) lib/active_record/connection_adapters/abstract/database_statements.rb:591:in 'ActiveRecord::ConnectionAdapters::DatabaseStatements#internal_execute'
9419
+ activerecord (8.0.1) lib/active_record/connection_adapters/abstract/database_statements.rb:547:in 'ActiveRecord::ConnectionAdapters::DatabaseStatements#internal_exec_query'
9420
+ activerecord (8.0.1) lib/active_record/connection_adapters/abstract/database_statements.rb:693:in 'ActiveRecord::ConnectionAdapters::DatabaseStatements#select'
9421
+ activerecord (8.0.1) lib/active_record/connection_adapters/abstract/database_statements.rb:73:in 'ActiveRecord::ConnectionAdapters::DatabaseStatements#select_all'
9422
+ activerecord (8.0.1) lib/active_record/connection_adapters/abstract/query_cache.rb:248:in 'block in ActiveRecord::ConnectionAdapters::QueryCache#select_all'
9423
+ activerecord (8.0.1) lib/active_record/connection_adapters/abstract/query_cache.rb:286:in 'block (2 levels) in ActiveRecord::ConnectionAdapters::QueryCache#cache_sql'
9424
+ activerecord (8.0.1) lib/active_record/connection_adapters/abstract/query_cache.rb:80:in 'ActiveRecord::ConnectionAdapters::QueryCache::Store#compute_if_absent'
9425
+ activerecord (8.0.1) lib/active_record/connection_adapters/abstract/query_cache.rb:284:in 'block in ActiveRecord::ConnectionAdapters::QueryCache#cache_sql'
9426
+ activesupport (8.0.1) lib/active_support/concurrency/null_lock.rb:9:in 'ActiveSupport::Concurrency::NullLock#synchronize'
9427
+ activerecord (8.0.1) lib/active_record/connection_adapters/abstract/query_cache.rb:283:in 'ActiveRecord::ConnectionAdapters::QueryCache#cache_sql'
9428
+ activerecord (8.0.1) lib/active_record/connection_adapters/abstract/query_cache.rb:248:in 'ActiveRecord::ConnectionAdapters::QueryCache#select_all'
9429
+ activerecord (8.0.1) lib/active_record/querying.rb:68:in 'ActiveRecord::Querying#_query_by_sql'
9430
+ activerecord (8.0.1) lib/active_record/relation.rb:1449:in 'block (2 levels) in ActiveRecord::Relation#exec_main_query'
9431
+ activerecord (8.0.1) lib/active_record/connection_adapters/abstract/connection_pool.rb:418:in 'ActiveRecord::ConnectionAdapters::ConnectionPool#with_connection'
9432
+ activerecord (8.0.1) lib/active_record/connection_handling.rb:310:in 'ActiveRecord::ConnectionHandling#with_connection'
9433
+ activerecord (8.0.1) lib/active_record/relation.rb:1448:in 'block in ActiveRecord::Relation#exec_main_query'
9434
+ activerecord (8.0.1) lib/active_record/relation.rb:1470:in 'ActiveRecord::Relation#skip_query_cache_if_necessary'
9435
+ activerecord (8.0.1) lib/active_record/relation.rb:1432:in 'ActiveRecord::Relation#exec_main_query'
9436
+ activerecord (8.0.1) lib/active_record/relation.rb:1410:in 'block in ActiveRecord::Relation#exec_queries'
9437
+ activerecord (8.0.1) lib/active_record/relation.rb:1470:in 'ActiveRecord::Relation#skip_query_cache_if_necessary'
9438
+ activerecord (8.0.1) lib/active_record/relation.rb:1404:in 'ActiveRecord::Relation#exec_queries'
9439
+ activerecord (8.0.1) lib/active_record/relation.rb:1181:in 'ActiveRecord::Relation#load'
9440
+ activerecord (8.0.1) lib/active_record/relation.rb:343:in 'ActiveRecord::Relation#records'
9441
+ activerecord (8.0.1) lib/active_record/relation/finder_methods.rb:586:in 'ActiveRecord::FinderMethods#find_take'
9442
+ activerecord (8.0.1) lib/active_record/relation/finder_methods.rb:129:in 'ActiveRecord::FinderMethods#take'
9443
+ activerecord (8.0.1) lib/active_record/relation/finder_methods.rb:112:in 'ActiveRecord::FinderMethods#find_by'
9444
+ activerecord (8.0.1) lib/active_record/querying.rb:24:in 'ActiveRecord::Querying#find_by'
9445
+ activerecord (8.0.1) lib/active_record/core.rb:310:in 'block in ActiveRecord::Core::ClassMethods#find_by'
9446
+ activerecord (8.0.1) lib/active_record/core.rb:278:in 'Hash#each'
9447
+ activerecord (8.0.1) lib/active_record/core.rb:278:in 'Enumerable#each_with_object'
9448
+ activerecord (8.0.1) lib/active_record/core.rb:278:in 'ActiveRecord::Core::ClassMethods#find_by'
9449
+ /Users/asrat/HOME/self/mks/BUNNA/snf_core/app/controllers/snf_core/auth_controller.rb:78:in 'SnfCore::AuthController#login'
9450
+ actionpack (8.0.1) lib/action_controller/metal/basic_implicit_render.rb:8:in 'ActionController::BasicImplicitRender#send_action'
9451
+ actionpack (8.0.1) lib/abstract_controller/base.rb:226:in 'AbstractController::Base#process_action'
9452
+ actionpack (8.0.1) lib/action_controller/metal/rendering.rb:193:in 'ActionController::Rendering#process_action'
9453
+ actionpack (8.0.1) lib/abstract_controller/callbacks.rb:261:in 'block in AbstractController::Callbacks#process_action'
9454
+ activesupport (8.0.1) lib/active_support/callbacks.rb:109:in 'ActiveSupport::Callbacks#run_callbacks'
9455
+ actionpack (8.0.1) lib/abstract_controller/callbacks.rb:260:in 'AbstractController::Callbacks#process_action'
9456
+ actionpack (8.0.1) lib/action_controller/metal/rescue.rb:27:in 'ActionController::Rescue#process_action'
9457
+ actionpack (8.0.1) lib/action_controller/metal/instrumentation.rb:76:in 'block in ActionController::Instrumentation#process_action'
9458
+ activesupport (8.0.1) lib/active_support/notifications.rb:210:in 'block in ActiveSupport::Notifications.instrument'
9459
+ activesupport (8.0.1) lib/active_support/notifications/instrumenter.rb:58:in 'ActiveSupport::Notifications::Instrumenter#instrument'
9460
+ activesupport (8.0.1) lib/active_support/notifications.rb:210:in 'ActiveSupport::Notifications.instrument'
9461
+ actionpack (8.0.1) lib/action_controller/metal/instrumentation.rb:75:in 'ActionController::Instrumentation#process_action'
9462
+ actionpack (8.0.1) lib/action_controller/metal/params_wrapper.rb:259:in 'ActionController::ParamsWrapper#process_action'
9463
+ activerecord (8.0.1) lib/active_record/railties/controller_runtime.rb:39:in 'ActiveRecord::Railties::ControllerRuntime#process_action'
9464
+ actionpack (8.0.1) lib/abstract_controller/base.rb:163:in 'AbstractController::Base#process'
9465
+ actionpack (8.0.1) lib/action_controller/metal.rb:252:in 'ActionController::Metal#dispatch'
9466
+ actionpack (8.0.1) lib/action_controller/metal.rb:335:in 'ActionController::Metal.dispatch'
9467
+ actionpack (8.0.1) lib/action_dispatch/routing/route_set.rb:67:in 'ActionDispatch::Routing::RouteSet::Dispatcher#dispatch'
9468
+ actionpack (8.0.1) lib/action_dispatch/routing/route_set.rb:50:in 'ActionDispatch::Routing::RouteSet::Dispatcher#serve'
9469
+ actionpack (8.0.1) lib/action_dispatch/journey/router.rb:53:in 'block in ActionDispatch::Journey::Router#serve'
9470
+ actionpack (8.0.1) lib/action_dispatch/journey/router.rb:133:in 'block in ActionDispatch::Journey::Router#find_routes'
9471
+ actionpack (8.0.1) lib/action_dispatch/journey/router.rb:126:in 'Array#each'
9472
+ actionpack (8.0.1) lib/action_dispatch/journey/router.rb:126:in 'ActionDispatch::Journey::Router#find_routes'
9473
+ actionpack (8.0.1) lib/action_dispatch/journey/router.rb:34:in 'ActionDispatch::Journey::Router#serve'
9474
+ actionpack (8.0.1) lib/action_dispatch/routing/route_set.rb:908:in 'ActionDispatch::Routing::RouteSet#call'
9475
+ railties (8.0.1) lib/rails/engine/lazy_route_set.rb:68:in 'Rails::Engine::LazyRouteSet#call'
9476
+ railties (8.0.1) lib/rails/engine.rb:535:in 'Rails::Engine#call'
9477
+ railties (8.0.1) lib/rails/railtie.rb:226:in 'Kernel#public_send'
9478
+ railties (8.0.1) lib/rails/railtie.rb:226:in 'Rails::Railtie.method_missing'
9479
+ actionpack (8.0.1) lib/action_dispatch/routing/mapper.rb:33:in 'block in <class:Constraints>'
9480
+ actionpack (8.0.1) lib/action_dispatch/routing/mapper.rb:62:in 'ActionDispatch::Routing::Mapper::Constraints#serve'
9481
+ actionpack (8.0.1) lib/action_dispatch/journey/router.rb:53:in 'block in ActionDispatch::Journey::Router#serve'
9482
+ actionpack (8.0.1) lib/action_dispatch/journey/router.rb:133:in 'block in ActionDispatch::Journey::Router#find_routes'
9483
+ actionpack (8.0.1) lib/action_dispatch/journey/router.rb:126:in 'Array#each'
9484
+ actionpack (8.0.1) lib/action_dispatch/journey/router.rb:126:in 'ActionDispatch::Journey::Router#find_routes'
9485
+ actionpack (8.0.1) lib/action_dispatch/journey/router.rb:34:in 'ActionDispatch::Journey::Router#serve'
9486
+ actionpack (8.0.1) lib/action_dispatch/routing/route_set.rb:908:in 'ActionDispatch::Routing::RouteSet#call'
9487
+ railties (8.0.1) lib/rails/engine/lazy_route_set.rb:68:in 'Rails::Engine::LazyRouteSet#call'
9488
+ rack (3.1.10) lib/rack/etag.rb:29:in 'Rack::ETag#call'
9489
+ rack (3.1.10) lib/rack/conditional_get.rb:43:in 'Rack::ConditionalGet#call'
9490
+ rack (3.1.10) lib/rack/head.rb:15:in 'Rack::Head#call'
9491
+ activerecord (8.0.1) lib/active_record/migration.rb:671:in 'ActiveRecord::Migration::CheckPending#call'
9492
+ actionpack (8.0.1) lib/action_dispatch/middleware/callbacks.rb:31:in 'block in ActionDispatch::Callbacks#call'
9493
+ activesupport (8.0.1) lib/active_support/callbacks.rb:100:in 'ActiveSupport::Callbacks#run_callbacks'
9494
+ actionpack (8.0.1) lib/action_dispatch/middleware/callbacks.rb:30:in 'ActionDispatch::Callbacks#call'
9495
+ actionpack (8.0.1) lib/action_dispatch/middleware/executor.rb:16:in 'ActionDispatch::Executor#call'
9496
+ actionpack (8.0.1) lib/action_dispatch/middleware/actionable_exceptions.rb:18:in 'ActionDispatch::ActionableExceptions#call'
9497
+ sentry-rails (5.22.4) lib/sentry/rails/rescued_exception_interceptor.rb:11:in 'Sentry::Rails::RescuedExceptionInterceptor#call'
9498
+ actionpack (8.0.1) lib/action_dispatch/middleware/debug_exceptions.rb:31:in 'ActionDispatch::DebugExceptions#call'
9499
+ sentry-ruby (5.22.4) lib/sentry/rack/capture_exceptions.rb:15:in 'Sentry::Rack::CaptureExceptions#call'
9500
+ actionpack (8.0.1) lib/action_dispatch/middleware/show_exceptions.rb:32:in 'ActionDispatch::ShowExceptions#call'
9501
+ railties (8.0.1) lib/rails/rack/logger.rb:41:in 'Rails::Rack::Logger#call_app'
9502
+ railties (8.0.1) lib/rails/rack/logger.rb:29:in 'Rails::Rack::Logger#call'
9503
+ actionpack (8.0.1) lib/action_dispatch/middleware/remote_ip.rb:96:in 'ActionDispatch::RemoteIp#call'
9504
+ actionpack (8.0.1) lib/action_dispatch/middleware/request_id.rb:34:in 'ActionDispatch::RequestId#call'
9505
+ rack (3.1.10) lib/rack/runtime.rb:24:in 'Rack::Runtime#call'
9506
+ actionpack (8.0.1) lib/action_dispatch/middleware/server_timing.rb:61:in 'block in ActionDispatch::ServerTiming#call'
9507
+ actionpack (8.0.1) lib/action_dispatch/middleware/server_timing.rb:26:in 'ActionDispatch::ServerTiming::Subscriber#collect_events'
9508
+ actionpack (8.0.1) lib/action_dispatch/middleware/server_timing.rb:60:in 'ActionDispatch::ServerTiming#call'
9509
+ actionpack (8.0.1) lib/action_dispatch/middleware/executor.rb:16:in 'ActionDispatch::Executor#call'
9510
+ actionpack (8.0.1) lib/action_dispatch/middleware/static.rb:27:in 'ActionDispatch::Static#call'
9511
+ rack (3.1.10) lib/rack/sendfile.rb:114:in 'Rack::Sendfile#call'
9512
+ actionpack (8.0.1) lib/action_dispatch/middleware/host_authorization.rb:143:in 'ActionDispatch::HostAuthorization#call'
9513
+ railties (8.0.1) lib/rails/engine.rb:535:in 'Rails::Engine#call'
9514
+ puma (6.6.0) lib/puma/configuration.rb:279:in 'Puma::Configuration::ConfigMiddleware#call'
9515
+ puma (6.6.0) lib/puma/request.rb:99:in 'block in Puma::Request#handle_request'
9516
+ puma (6.6.0) lib/puma/thread_pool.rb:390:in 'Puma::ThreadPool#with_force_shutdown'
9517
+ puma (6.6.0) lib/puma/request.rb:98:in 'Puma::Request#handle_request'
9518
+ puma (6.6.0) lib/puma/server.rb:472:in 'Puma::Server#process_client'
9519
+ puma (6.6.0) lib/puma/server.rb:254:in 'block in Puma::Server#run'
9520
+ puma (6.6.0) lib/puma/thread_pool.rb:167:in 'block in Puma::ThreadPool#spawn_thread'
9521
+ Started POST "/snf_core/auth/login" for 127.0.0.1 at 2025-03-17 12:17:49 +0300
9522
+ ActiveRecord::SchemaMigration Load (3.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
9523
+ Processing by SnfCore::AuthController#login as HTML
9524
+ Parameters: {"auth" => {"phone_number" => "+251911223344", "password" => "[FILTERED]"}}
9525
+ SnfCore::User Load (1.4ms) SELECT "snf_core_users".* FROM "snf_core_users" WHERE "snf_core_users"."phone_number" = '+251911223344' LIMIT 1 /*action='login',application='Dummy',controller='auth'*/
9526
+ SnfCore::UserRole Load (1.1ms) SELECT "snf_core_user_roles".* FROM "snf_core_user_roles" WHERE "snf_core_user_roles"."user_id" = 2 LIMIT 1 /*action='login',application='Dummy',controller='auth'*/
9527
+ SnfCore::Address Load (0.4ms) SELECT "snf_core_addresses".* FROM "snf_core_addresses" WHERE "snf_core_addresses"."user_id" = 2 LIMIT 1 /*action='login',application='Dummy',controller='auth'*/
9528
+ Completed 500 Internal Server Error in 298ms (ActiveRecord: 31.7ms (3 queries, 0 cached) | GC: 0.0ms)
9529
+
9530
+
9531
+
9532
+ ActiveRecord::StatementInvalid (PG::UndefinedColumn: ERROR: column snf_core_addresses.user_id does not exist
9533
+ LINE 1: ...core_addresses".* FROM "snf_core_addresses" WHERE "snf_core_...
9534
+ ^
9535
+ )
9536
+ Caused by: PG::UndefinedColumn (ERROR: column snf_core_addresses.user_id does not exist
9537
+ LINE 1: ...core_addresses".* FROM "snf_core_addresses" WHERE "snf_core_...
9538
+ ^
9539
+ )
9540
+
9541
+ Information for: ActiveRecord::StatementInvalid (PG::UndefinedColumn: ERROR: column snf_core_addresses.user_id does not exist
9542
+ LINE 1: ...core_addresses".* FROM "snf_core_addresses" WHERE "snf_core_...
9543
+ ^
9544
+ ):
9545
+
9546
+
9547
+ Information for cause: PG::UndefinedColumn (ERROR: column snf_core_addresses.user_id does not exist
9548
+ LINE 1: ...core_addresses".* FROM "snf_core_addresses" WHERE "snf_core_...
9549
+ ^
9550
+ ):
9551
+
9552
+ activerecord (8.0.1) lib/active_record/connection_adapters/postgresql/database_statements.rb:160:in 'PG::Connection#exec'
9553
+ activerecord (8.0.1) lib/active_record/connection_adapters/postgresql/database_statements.rb:160:in 'ActiveRecord::ConnectionAdapters::PostgreSQL::DatabaseStatements#perform_query'
9554
+ activerecord (8.0.1) lib/active_record/connection_adapters/abstract/database_statements.rb:556:in 'block (2 levels) in ActiveRecord::ConnectionAdapters::DatabaseStatements#raw_execute'
9555
+ activerecord (8.0.1) lib/active_record/connection_adapters/abstract_adapter.rb:1011:in 'block in ActiveRecord::ConnectionAdapters::AbstractAdapter#with_raw_connection'
9556
+ activesupport (8.0.1) lib/active_support/concurrency/null_lock.rb:9:in 'ActiveSupport::Concurrency::NullLock#synchronize'
9557
+ activerecord (8.0.1) lib/active_record/connection_adapters/abstract_adapter.rb:983:in 'ActiveRecord::ConnectionAdapters::AbstractAdapter#with_raw_connection'
9558
+ activerecord (8.0.1) lib/active_record/connection_adapters/abstract/database_statements.rb:555:in 'block in ActiveRecord::ConnectionAdapters::DatabaseStatements#raw_execute'
9559
+ activesupport (8.0.1) lib/active_support/notifications/instrumenter.rb:58:in 'ActiveSupport::Notifications::Instrumenter#instrument'
9560
+ activerecord (8.0.1) lib/active_record/connection_adapters/abstract_adapter.rb:1129:in 'ActiveRecord::ConnectionAdapters::AbstractAdapter#log'
9561
+ activerecord (8.0.1) lib/active_record/connection_adapters/abstract/database_statements.rb:554:in 'ActiveRecord::ConnectionAdapters::DatabaseStatements#raw_execute'
9562
+ activerecord (8.0.1) lib/active_record/connection_adapters/abstract/database_statements.rb:591:in 'ActiveRecord::ConnectionAdapters::DatabaseStatements#internal_execute'
9563
+ activerecord (8.0.1) lib/active_record/connection_adapters/abstract/database_statements.rb:547:in 'ActiveRecord::ConnectionAdapters::DatabaseStatements#internal_exec_query'
9564
+ activerecord (8.0.1) lib/active_record/connection_adapters/abstract/database_statements.rb:693:in 'ActiveRecord::ConnectionAdapters::DatabaseStatements#select'
9565
+ activerecord (8.0.1) lib/active_record/connection_adapters/abstract/database_statements.rb:73:in 'ActiveRecord::ConnectionAdapters::DatabaseStatements#select_all'
9566
+ activerecord (8.0.1) lib/active_record/connection_adapters/abstract/query_cache.rb:248:in 'block in ActiveRecord::ConnectionAdapters::QueryCache#select_all'
9567
+ activerecord (8.0.1) lib/active_record/connection_adapters/abstract/query_cache.rb:286:in 'block (2 levels) in ActiveRecord::ConnectionAdapters::QueryCache#cache_sql'
9568
+ activerecord (8.0.1) lib/active_record/connection_adapters/abstract/query_cache.rb:80:in 'ActiveRecord::ConnectionAdapters::QueryCache::Store#compute_if_absent'
9569
+ activerecord (8.0.1) lib/active_record/connection_adapters/abstract/query_cache.rb:284:in 'block in ActiveRecord::ConnectionAdapters::QueryCache#cache_sql'
9570
+ activesupport (8.0.1) lib/active_support/concurrency/null_lock.rb:9:in 'ActiveSupport::Concurrency::NullLock#synchronize'
9571
+ activerecord (8.0.1) lib/active_record/connection_adapters/abstract/query_cache.rb:283:in 'ActiveRecord::ConnectionAdapters::QueryCache#cache_sql'
9572
+ activerecord (8.0.1) lib/active_record/connection_adapters/abstract/query_cache.rb:248:in 'ActiveRecord::ConnectionAdapters::QueryCache#select_all'
9573
+ activerecord (8.0.1) lib/active_record/querying.rb:68:in 'ActiveRecord::Querying#_query_by_sql'
9574
+ activerecord (8.0.1) lib/active_record/relation.rb:1449:in 'block (2 levels) in ActiveRecord::Relation#exec_main_query'
9575
+ activerecord (8.0.1) lib/active_record/connection_adapters/abstract/connection_pool.rb:418:in 'ActiveRecord::ConnectionAdapters::ConnectionPool#with_connection'
9576
+ activerecord (8.0.1) lib/active_record/connection_handling.rb:310:in 'ActiveRecord::ConnectionHandling#with_connection'
9577
+ activerecord (8.0.1) lib/active_record/relation.rb:1448:in 'block in ActiveRecord::Relation#exec_main_query'
9578
+ activerecord (8.0.1) lib/active_record/relation.rb:1470:in 'ActiveRecord::Relation#skip_query_cache_if_necessary'
9579
+ activerecord (8.0.1) lib/active_record/relation.rb:1432:in 'ActiveRecord::Relation#exec_main_query'
9580
+ activerecord (8.0.1) lib/active_record/relation.rb:1410:in 'block in ActiveRecord::Relation#exec_queries'
9581
+ activerecord (8.0.1) lib/active_record/relation.rb:1470:in 'ActiveRecord::Relation#skip_query_cache_if_necessary'
9582
+ activerecord (8.0.1) lib/active_record/relation.rb:1404:in 'ActiveRecord::Relation#exec_queries'
9583
+ activerecord (8.0.1) lib/active_record/relation.rb:1181:in 'ActiveRecord::Relation#load'
9584
+ activerecord (8.0.1) lib/active_record/relation.rb:343:in 'ActiveRecord::Relation#records'
9585
+ activerecord (8.0.1) lib/active_record/relation/finder_methods.rb:586:in 'ActiveRecord::FinderMethods#find_take'
9586
+ activerecord (8.0.1) lib/active_record/relation/finder_methods.rb:129:in 'ActiveRecord::FinderMethods#take'
9587
+ activerecord (8.0.1) lib/active_record/relation/finder_methods.rb:112:in 'ActiveRecord::FinderMethods#find_by'
9588
+ activerecord (8.0.1) lib/active_record/querying.rb:24:in 'ActiveRecord::Querying#find_by'
9589
+ activerecord (8.0.1) lib/active_record/core.rb:310:in 'block in ActiveRecord::Core::ClassMethods#find_by'
9590
+ activerecord (8.0.1) lib/active_record/core.rb:278:in 'Hash#each'
9591
+ activerecord (8.0.1) lib/active_record/core.rb:278:in 'Enumerable#each_with_object'
9592
+ activerecord (8.0.1) lib/active_record/core.rb:278:in 'ActiveRecord::Core::ClassMethods#find_by'
9593
+ /Users/asrat/HOME/self/mks/BUNNA/snf_core/app/controllers/snf_core/auth_controller.rb:78:in 'SnfCore::AuthController#login'
9594
+ actionpack (8.0.1) lib/action_controller/metal/basic_implicit_render.rb:8:in 'ActionController::BasicImplicitRender#send_action'
9595
+ actionpack (8.0.1) lib/abstract_controller/base.rb:226:in 'AbstractController::Base#process_action'
9596
+ actionpack (8.0.1) lib/action_controller/metal/rendering.rb:193:in 'ActionController::Rendering#process_action'
9597
+ actionpack (8.0.1) lib/abstract_controller/callbacks.rb:261:in 'block in AbstractController::Callbacks#process_action'
9598
+ activesupport (8.0.1) lib/active_support/callbacks.rb:109:in 'ActiveSupport::Callbacks#run_callbacks'
9599
+ actionpack (8.0.1) lib/abstract_controller/callbacks.rb:260:in 'AbstractController::Callbacks#process_action'
9600
+ actionpack (8.0.1) lib/action_controller/metal/rescue.rb:27:in 'ActionController::Rescue#process_action'
9601
+ actionpack (8.0.1) lib/action_controller/metal/instrumentation.rb:76:in 'block in ActionController::Instrumentation#process_action'
9602
+ activesupport (8.0.1) lib/active_support/notifications.rb:210:in 'block in ActiveSupport::Notifications.instrument'
9603
+ activesupport (8.0.1) lib/active_support/notifications/instrumenter.rb:58:in 'ActiveSupport::Notifications::Instrumenter#instrument'
9604
+ activesupport (8.0.1) lib/active_support/notifications.rb:210:in 'ActiveSupport::Notifications.instrument'
9605
+ actionpack (8.0.1) lib/action_controller/metal/instrumentation.rb:75:in 'ActionController::Instrumentation#process_action'
9606
+ actionpack (8.0.1) lib/action_controller/metal/params_wrapper.rb:259:in 'ActionController::ParamsWrapper#process_action'
9607
+ activerecord (8.0.1) lib/active_record/railties/controller_runtime.rb:39:in 'ActiveRecord::Railties::ControllerRuntime#process_action'
9608
+ actionpack (8.0.1) lib/abstract_controller/base.rb:163:in 'AbstractController::Base#process'
9609
+ actionpack (8.0.1) lib/action_controller/metal.rb:252:in 'ActionController::Metal#dispatch'
9610
+ actionpack (8.0.1) lib/action_controller/metal.rb:335:in 'ActionController::Metal.dispatch'
9611
+ actionpack (8.0.1) lib/action_dispatch/routing/route_set.rb:67:in 'ActionDispatch::Routing::RouteSet::Dispatcher#dispatch'
9612
+ actionpack (8.0.1) lib/action_dispatch/routing/route_set.rb:50:in 'ActionDispatch::Routing::RouteSet::Dispatcher#serve'
9613
+ actionpack (8.0.1) lib/action_dispatch/journey/router.rb:53:in 'block in ActionDispatch::Journey::Router#serve'
9614
+ actionpack (8.0.1) lib/action_dispatch/journey/router.rb:133:in 'block in ActionDispatch::Journey::Router#find_routes'
9615
+ actionpack (8.0.1) lib/action_dispatch/journey/router.rb:126:in 'Array#each'
9616
+ actionpack (8.0.1) lib/action_dispatch/journey/router.rb:126:in 'ActionDispatch::Journey::Router#find_routes'
9617
+ actionpack (8.0.1) lib/action_dispatch/journey/router.rb:34:in 'ActionDispatch::Journey::Router#serve'
9618
+ actionpack (8.0.1) lib/action_dispatch/routing/route_set.rb:908:in 'ActionDispatch::Routing::RouteSet#call'
9619
+ railties (8.0.1) lib/rails/engine/lazy_route_set.rb:68:in 'Rails::Engine::LazyRouteSet#call'
9620
+ railties (8.0.1) lib/rails/engine.rb:535:in 'Rails::Engine#call'
9621
+ railties (8.0.1) lib/rails/railtie.rb:226:in 'Kernel#public_send'
9622
+ railties (8.0.1) lib/rails/railtie.rb:226:in 'Rails::Railtie.method_missing'
9623
+ actionpack (8.0.1) lib/action_dispatch/routing/mapper.rb:33:in 'block in <class:Constraints>'
9624
+ actionpack (8.0.1) lib/action_dispatch/routing/mapper.rb:62:in 'ActionDispatch::Routing::Mapper::Constraints#serve'
9625
+ actionpack (8.0.1) lib/action_dispatch/journey/router.rb:53:in 'block in ActionDispatch::Journey::Router#serve'
9626
+ actionpack (8.0.1) lib/action_dispatch/journey/router.rb:133:in 'block in ActionDispatch::Journey::Router#find_routes'
9627
+ actionpack (8.0.1) lib/action_dispatch/journey/router.rb:126:in 'Array#each'
9628
+ actionpack (8.0.1) lib/action_dispatch/journey/router.rb:126:in 'ActionDispatch::Journey::Router#find_routes'
9629
+ actionpack (8.0.1) lib/action_dispatch/journey/router.rb:34:in 'ActionDispatch::Journey::Router#serve'
9630
+ actionpack (8.0.1) lib/action_dispatch/routing/route_set.rb:908:in 'ActionDispatch::Routing::RouteSet#call'
9631
+ railties (8.0.1) lib/rails/engine/lazy_route_set.rb:68:in 'Rails::Engine::LazyRouteSet#call'
9632
+ rack (3.1.10) lib/rack/etag.rb:29:in 'Rack::ETag#call'
9633
+ rack (3.1.10) lib/rack/conditional_get.rb:43:in 'Rack::ConditionalGet#call'
9634
+ rack (3.1.10) lib/rack/head.rb:15:in 'Rack::Head#call'
9635
+ activerecord (8.0.1) lib/active_record/migration.rb:671:in 'ActiveRecord::Migration::CheckPending#call'
9636
+ actionpack (8.0.1) lib/action_dispatch/middleware/callbacks.rb:31:in 'block in ActionDispatch::Callbacks#call'
9637
+ activesupport (8.0.1) lib/active_support/callbacks.rb:100:in 'ActiveSupport::Callbacks#run_callbacks'
9638
+ actionpack (8.0.1) lib/action_dispatch/middleware/callbacks.rb:30:in 'ActionDispatch::Callbacks#call'
9639
+ actionpack (8.0.1) lib/action_dispatch/middleware/executor.rb:16:in 'ActionDispatch::Executor#call'
9640
+ actionpack (8.0.1) lib/action_dispatch/middleware/actionable_exceptions.rb:18:in 'ActionDispatch::ActionableExceptions#call'
9641
+ sentry-rails (5.22.4) lib/sentry/rails/rescued_exception_interceptor.rb:11:in 'Sentry::Rails::RescuedExceptionInterceptor#call'
9642
+ actionpack (8.0.1) lib/action_dispatch/middleware/debug_exceptions.rb:31:in 'ActionDispatch::DebugExceptions#call'
9643
+ sentry-ruby (5.22.4) lib/sentry/rack/capture_exceptions.rb:15:in 'Sentry::Rack::CaptureExceptions#call'
9644
+ actionpack (8.0.1) lib/action_dispatch/middleware/show_exceptions.rb:32:in 'ActionDispatch::ShowExceptions#call'
9645
+ railties (8.0.1) lib/rails/rack/logger.rb:41:in 'Rails::Rack::Logger#call_app'
9646
+ railties (8.0.1) lib/rails/rack/logger.rb:29:in 'Rails::Rack::Logger#call'
9647
+ actionpack (8.0.1) lib/action_dispatch/middleware/remote_ip.rb:96:in 'ActionDispatch::RemoteIp#call'
9648
+ actionpack (8.0.1) lib/action_dispatch/middleware/request_id.rb:34:in 'ActionDispatch::RequestId#call'
9649
+ rack (3.1.10) lib/rack/runtime.rb:24:in 'Rack::Runtime#call'
9650
+ actionpack (8.0.1) lib/action_dispatch/middleware/server_timing.rb:61:in 'block in ActionDispatch::ServerTiming#call'
9651
+ actionpack (8.0.1) lib/action_dispatch/middleware/server_timing.rb:26:in 'ActionDispatch::ServerTiming::Subscriber#collect_events'
9652
+ actionpack (8.0.1) lib/action_dispatch/middleware/server_timing.rb:60:in 'ActionDispatch::ServerTiming#call'
9653
+ actionpack (8.0.1) lib/action_dispatch/middleware/executor.rb:16:in 'ActionDispatch::Executor#call'
9654
+ actionpack (8.0.1) lib/action_dispatch/middleware/static.rb:27:in 'ActionDispatch::Static#call'
9655
+ rack (3.1.10) lib/rack/sendfile.rb:114:in 'Rack::Sendfile#call'
9656
+ actionpack (8.0.1) lib/action_dispatch/middleware/host_authorization.rb:143:in 'ActionDispatch::HostAuthorization#call'
9657
+ railties (8.0.1) lib/rails/engine.rb:535:in 'Rails::Engine#call'
9658
+ puma (6.6.0) lib/puma/configuration.rb:279:in 'Puma::Configuration::ConfigMiddleware#call'
9659
+ puma (6.6.0) lib/puma/request.rb:99:in 'block in Puma::Request#handle_request'
9660
+ puma (6.6.0) lib/puma/thread_pool.rb:390:in 'Puma::ThreadPool#with_force_shutdown'
9661
+ puma (6.6.0) lib/puma/request.rb:98:in 'Puma::Request#handle_request'
9662
+ puma (6.6.0) lib/puma/server.rb:472:in 'Puma::Server#process_client'
9663
+ puma (6.6.0) lib/puma/server.rb:254:in 'block in Puma::Server#run'
9664
+ puma (6.6.0) lib/puma/thread_pool.rb:167:in 'block in Puma::ThreadPool#spawn_thread'
9665
+ Started POST "/snf_core/auth/login" for 127.0.0.1 at 2025-03-17 12:21:28 +0300
9666
+ Processing by SnfCore::AuthController#login as HTML
9667
+ Parameters: {"auth" => {"phone_number" => "+251911223344", "password" => "[FILTERED]"}}
9668
+ SnfCore::User Load (0.6ms) SELECT "snf_core_users".* FROM "snf_core_users" WHERE "snf_core_users"."phone_number" = '+251911223344' LIMIT 1 /*action='login',application='Dummy',controller='auth'*/
9669
+ SnfCore::UserRole Load (0.8ms) SELECT "snf_core_user_roles".* FROM "snf_core_user_roles" WHERE "snf_core_user_roles"."user_id" = 2 LIMIT 1 /*action='login',application='Dummy',controller='auth'*/
9670
+ SnfCore::User Load (0.3ms) SELECT "snf_core_users".* FROM "snf_core_users" WHERE "snf_core_users"."address_id" = 3 LIMIT 1 /*action='login',application='Dummy',controller='auth'*/
9671
+ SnfCore::Role Load (1.1ms) SELECT "snf_core_roles".* FROM "snf_core_roles" WHERE "snf_core_roles"."id" = 1 LIMIT 1 /*action='login',application='Dummy',controller='auth'*/
9672
+ Completed 500 Internal Server Error in 244799ms (Views: 0.1ms | ActiveRecord: 18.1ms (4 queries, 0 cached) | GC: 319.1ms)
9673
+
9674
+
9675
+
9676
+ SystemExit (exit):
9677
+
9678
+ (rdbg)//Users/asrat/HOME/self/mks/BUNNA/snf_core/app/controllers/snf_core/auth_controller.rb:1:in 'Kernel#exit'
9679
+ (rdbg)//Users/asrat/HOME/self/mks/BUNNA/snf_core/app/controllers/snf_core/auth_controller.rb:1:in 'SnfCore::AuthController#login'
9680
+ Started POST "/snf_core/auth/login" for 127.0.0.1 at 2025-03-17 12:25:49 +0300
9681
+ Processing by SnfCore::AuthController#login as HTML
9682
+ Parameters: {"auth" => {"phone_number" => "+251911223344", "password" => "[FILTERED]"}}
9683
+ SnfCore::User Load (1.7ms) SELECT "snf_core_users".* FROM "snf_core_users" WHERE "snf_core_users"."phone_number" = '+251911223344' LIMIT 1 /*action='login',application='Dummy',controller='auth'*/
9684
+ SnfCore::UserRole Load (1.3ms) SELECT "snf_core_user_roles".* FROM "snf_core_user_roles" WHERE "snf_core_user_roles"."user_id" = 2 LIMIT 1 /*action='login',application='Dummy',controller='auth'*/
9685
+ SnfCore::User Load (0.5ms) SELECT "snf_core_users".* FROM "snf_core_users" WHERE "snf_core_users"."address_id" = 3 LIMIT 1 /*action='login',application='Dummy',controller='auth'*/
9686
+ SnfCore::Role Load (0.3ms) SELECT "snf_core_roles".* FROM "snf_core_roles" WHERE "snf_core_roles"."id" = 1 LIMIT 1 /*action='login',application='Dummy',controller='auth'*/
9687
+ Completed 200 OK in 252ms (Views: 0.2ms | ActiveRecord: 3.8ms (4 queries, 0 cached) | GC: 0.0ms)
9688
+
9689
+
9690
+ Started GET "/positions" for ::1 at 2025-03-17 13:20:03 +0300
9691
+
9692
+ ActionController::RoutingError (No route matches [GET] "/positions"):
9693
+
9694
+ Started GET "/favicon.ico" for ::1 at 2025-03-17 13:20:03 +0300
9695
+
9696
+ ActionController::RoutingError (No route matches [GET] "/favicon.ico"):
9697
+
9698
+ Started GET "/apple-touch-icon-precomposed.png" for ::1 at 2025-03-17 13:20:03 +0300
9699
+
9700
+ ActionController::RoutingError (No route matches [GET] "/apple-touch-icon-precomposed.png"):
9701
+
9702
+ Started GET "/apple-touch-icon.png" for ::1 at 2025-03-17 13:20:03 +0300
9703
+
9704
+ ActionController::RoutingError (No route matches [GET] "/apple-touch-icon.png"):
9705
+
9706
+  (29.0ms) SELECT pg_try_advisory_lock(869468062957908540) /*application='Dummy'*/
9707
+ ActiveRecord::SchemaMigration Load (76.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
9708
+ ActiveRecord::InternalMetadata Load (46.3ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/
9709
+ Migrating to AddUserToQuotation (20250317135148)
9710
+ TRANSACTION (0.2ms) BEGIN /*application='Dummy'*/
9711
+  (39.1ms) ALTER TABLE "snf_core_quotations" ADD "user_id" bigint NOT NULL /*application='Dummy'*/
9712
+  (5.7ms) CREATE INDEX "index_snf_core_quotations_on_user_id" ON "snf_core_quotations" ("user_id") /*application='Dummy'*/
9713
+  (9.5ms) ALTER TABLE "snf_core_quotations" ADD CONSTRAINT "fk_rails_1663f9b7d7"
9714
+ FOREIGN KEY ("user_id")
9715
+ REFERENCES "snf_core_users" ("id")
9716
+ /*application='Dummy'*/
9717
+ ActiveRecord::SchemaMigration Create (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20250317135148') RETURNING "version" /*application='Dummy'*/
9718
+ TRANSACTION (1.3ms) COMMIT /*application='Dummy'*/
9719
+  (0.3ms) SELECT pg_advisory_unlock(869468062957908540) /*application='Dummy'*/
9720
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
9721
+ ActiveRecord::SchemaMigration Load (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
9722
+ ActiveRecord::InternalMetadata Load (1.2ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/
9723
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
9724
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/
9725
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
9726
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/
9727
+ SQL (0.1ms) SET search_path TO public /*application='Dummy'*/
9728
+  (64.6ms) DROP DATABASE IF EXISTS "snf_test" /*application='Dummy'*/
9729
+  (123.0ms) CREATE DATABASE "snf_test" ENCODING = 'unicode' /*application='Dummy'*/
9730
+ SQL (15.0ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" SCHEMA pg_catalog /*application='Dummy'*/
9731
+  (0.1ms) DROP TABLE IF EXISTS "active_storage_attachments" CASCADE /*application='Dummy'*/
9732
+  (3.1ms) CREATE TABLE "active_storage_attachments" ("id" bigserial primary key, "name" character varying NOT NULL, "record_type" character varying NOT NULL, "record_id" bigint NOT NULL, "blob_id" bigint NOT NULL, "created_at" timestamp(6) NOT NULL) /*application='Dummy'*/
9733
+  (0.6ms) CREATE INDEX "index_active_storage_attachments_on_blob_id" ON "active_storage_attachments" ("blob_id") /*application='Dummy'*/
9734
+  (0.6ms) CREATE UNIQUE INDEX "index_active_storage_attachments_uniqueness" ON "active_storage_attachments" ("record_type", "record_id", "name", "blob_id") /*application='Dummy'*/
9735
+  (0.1ms) DROP TABLE IF EXISTS "active_storage_blobs" CASCADE /*application='Dummy'*/
9736
+  (1.3ms) CREATE TABLE "active_storage_blobs" ("id" bigserial primary key, "key" character varying NOT NULL, "filename" character varying NOT NULL, "content_type" character varying, "metadata" text, "service_name" character varying NOT NULL, "byte_size" bigint NOT NULL, "checksum" character varying, "created_at" timestamp(6) NOT NULL) /*application='Dummy'*/
9737
+  (0.7ms) CREATE UNIQUE INDEX "index_active_storage_blobs_on_key" ON "active_storage_blobs" ("key") /*application='Dummy'*/
9738
+  (0.1ms) DROP TABLE IF EXISTS "active_storage_variant_records" CASCADE /*application='Dummy'*/
9739
+  (1.5ms) CREATE TABLE "active_storage_variant_records" ("id" bigserial primary key, "blob_id" bigint NOT NULL, "variation_digest" character varying NOT NULL) /*application='Dummy'*/
9740
+  (0.5ms) CREATE UNIQUE INDEX "index_active_storage_variant_records_uniqueness" ON "active_storage_variant_records" ("blob_id", "variation_digest") /*application='Dummy'*/
9741
+  (0.1ms) DROP TABLE IF EXISTS "snf_core_account_transfers" CASCADE /*application='Dummy'*/
9742
+  (1.9ms) CREATE TABLE "snf_core_account_transfers" ("id" bigserial primary key, "source_account_type" character varying NOT NULL, "source_account_id" bigint NOT NULL, "destination_account_type" character varying NOT NULL, "destination_account_id" bigint NOT NULL, "user_id" bigint NOT NULL, "amount" decimal(15,2) NOT NULL, "reference_number" character varying NOT NULL, "status" integer DEFAULT 0 NOT NULL, "transfer_type" integer NOT NULL, "description" text, "failure_reason" text, "completed_at" timestamp(6), "reversal_transfer_id" bigint, "cbs_response_data" jsonb, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/
9743
+  (0.7ms) CREATE INDEX "index_snf_core_account_transfers_on_destination_account" ON "snf_core_account_transfers" ("destination_account_type", "destination_account_id") /*application='Dummy'*/
9744
+  (0.5ms) CREATE UNIQUE INDEX "index_snf_core_account_transfers_on_reference_number" ON "snf_core_account_transfers" ("reference_number") /*application='Dummy'*/
9745
+  (0.5ms) CREATE INDEX "index_snf_core_account_transfers_on_reversal_transfer_id" ON "snf_core_account_transfers" ("reversal_transfer_id") /*application='Dummy'*/
9746
+  (0.5ms) CREATE INDEX "index_snf_core_account_transfers_on_source_account" ON "snf_core_account_transfers" ("source_account_type", "source_account_id") /*application='Dummy'*/
9747
+  (0.7ms) CREATE INDEX "index_snf_core_account_transfers_on_user_id" ON "snf_core_account_transfers" ("user_id") /*application='Dummy'*/
9748
+  (0.2ms) DROP TABLE IF EXISTS "snf_core_addresses" CASCADE /*application='Dummy'*/
9749
+  (3.1ms) CREATE TABLE "snf_core_addresses" ("id" bigserial primary key, "address_type" character varying NOT NULL, "city" character varying NOT NULL, "sub_city" character varying NOT NULL, "woreda" character varying, "latitude" decimal, "longitude" decimal, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL, "house_number" character varying) /*application='Dummy'*/
9750
+  (0.2ms) DROP TABLE IF EXISTS "snf_core_business_documents" CASCADE /*application='Dummy'*/
9751
+  (1.1ms) CREATE TABLE "snf_core_business_documents" ("id" bigserial primary key, "business_id" bigint NOT NULL, "document_type" integer NOT NULL, "verified_at" timestamp(6), "verified_by_id" bigint, "uploaded_at" timestamp(6), "is_verified" boolean DEFAULT FALSE NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/
9752
+  (0.6ms) CREATE INDEX "index_snf_core_business_documents_on_business_id" ON "snf_core_business_documents" ("business_id") /*application='Dummy'*/
9753
+  (0.5ms) CREATE INDEX "index_snf_core_business_documents_on_verified_by_id" ON "snf_core_business_documents" ("verified_by_id") /*application='Dummy'*/
9754
+  (0.2ms) DROP TABLE IF EXISTS "snf_core_businesses" CASCADE /*application='Dummy'*/
9755
+  (1.9ms) CREATE TABLE "snf_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 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'*/
9756
+  (0.7ms) CREATE INDEX "index_snf_core_businesses_on_user_id" ON "snf_core_businesses" ("user_id") /*application='Dummy'*/
9757
+  (0.2ms) DROP TABLE IF EXISTS "snf_core_categories" CASCADE /*application='Dummy'*/
9758
+  (1.7ms) CREATE TABLE "snf_core_categories" ("id" bigserial primary key, "name" character varying NOT NULL, "description" character varying, "parent_id" bigint, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/
9759
+  (0.6ms) CREATE INDEX "index_snf_core_categories_on_parent_id" ON "snf_core_categories" ("parent_id") /*application='Dummy'*/
9760
+  (0.2ms) DROP TABLE IF EXISTS "snf_core_customer_groups" CASCADE /*application='Dummy'*/
9761
+  (1.5ms) CREATE TABLE "snf_core_customer_groups" ("id" bigserial primary key, "discount_code" character varying, "expire_date" timestamp(6), "is_used" boolean, "group_id" bigint NOT NULL, "customer_id" bigint NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/
9762
+  (0.7ms) CREATE INDEX "index_snf_core_customer_groups_on_customer_id" ON "snf_core_customer_groups" ("customer_id") /*application='Dummy'*/
9763
+  (0.7ms) CREATE INDEX "index_snf_core_customer_groups_on_group_id" ON "snf_core_customer_groups" ("group_id") /*application='Dummy'*/
9764
+  (0.2ms) DROP TABLE IF EXISTS "snf_core_delivery_orders" CASCADE /*application='Dummy'*/
9765
+  (1.7ms) CREATE TABLE "snf_core_delivery_orders" ("id" bigserial primary key, "order_id" bigint NOT NULL, "delivery_address" character varying NOT NULL, "contact_phone" character varying NOT NULL, "delivery_notes" text NOT NULL, "estimated_delivery_time" timestamp(6) NOT NULL, "actual_delivery_time" timestamp(6), "status" integer NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/
9766
+  (0.7ms) CREATE INDEX "index_snf_core_delivery_orders_on_order_id" ON "snf_core_delivery_orders" ("order_id") /*application='Dummy'*/
9767
+  (0.2ms) DROP TABLE IF EXISTS "snf_core_groups" CASCADE /*application='Dummy'*/
9768
+  (2.2ms) CREATE TABLE "snf_core_groups" ("id" bigserial primary key, "name" character varying NOT NULL, "business_id" bigint NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/
9769
+  (0.7ms) CREATE INDEX "index_snf_core_groups_on_business_id" ON "snf_core_groups" ("business_id") /*application='Dummy'*/
9770
+  (0.1ms) DROP TABLE IF EXISTS "snf_core_item_requests" CASCADE /*application='Dummy'*/
9771
+  (2.2ms) CREATE TABLE "snf_core_item_requests" ("id" bigserial primary key, "user_id" bigint NOT NULL, "product_id" bigint NOT NULL, "quantity" integer NOT NULL, "requested_delivery_date" date NOT NULL, "notes" text, "status" integer DEFAULT 0 NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL, "unit" character varying) /*application='Dummy'*/
9772
+  (0.8ms) CREATE INDEX "index_snf_core_item_requests_on_product_id" ON "snf_core_item_requests" ("product_id") /*application='Dummy'*/
9773
+  (0.4ms) CREATE INDEX "index_snf_core_item_requests_on_user_id" ON "snf_core_item_requests" ("user_id") /*application='Dummy'*/
9774
+  (0.1ms) DROP TABLE IF EXISTS "snf_core_order_items" CASCADE /*application='Dummy'*/
9775
+  (1.5ms) CREATE TABLE "snf_core_order_items" ("id" bigserial primary key, "order_id" bigint NOT NULL, "store_inventory_id" bigint NOT NULL, "quantity" integer NOT NULL, "unit_price" decimal NOT NULL, "subtotal" decimal NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/
9776
+  (0.9ms) CREATE INDEX "index_snf_core_order_items_on_order_id" ON "snf_core_order_items" ("order_id") /*application='Dummy'*/
9777
+  (0.7ms) CREATE INDEX "index_snf_core_order_items_on_store_inventory_id" ON "snf_core_order_items" ("store_inventory_id") /*application='Dummy'*/
9778
+  (0.2ms) DROP TABLE IF EXISTS "snf_core_orders" CASCADE /*application='Dummy'*/
9779
+  (2.1ms) CREATE TABLE "snf_core_orders" ("id" bigserial primary key, "user_id" bigint NOT NULL, "store_id" bigint NOT NULL, "status" integer DEFAULT 1 NOT NULL, "total_amount" decimal DEFAULT 0.0 NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/
9780
+  (0.6ms) CREATE INDEX "index_snf_core_orders_on_store_id" ON "snf_core_orders" ("store_id") /*application='Dummy'*/
9781
+  (0.7ms) CREATE INDEX "index_snf_core_orders_on_user_id" ON "snf_core_orders" ("user_id") /*application='Dummy'*/
9782
+  (0.1ms) DROP TABLE IF EXISTS "snf_core_products" CASCADE /*application='Dummy'*/
9783
+  (1.8ms) CREATE TABLE "snf_core_products" ("id" bigserial primary key, "sku" character varying NOT NULL, "name" character varying NOT NULL, "description" character varying, "category_id" bigint NOT NULL, "base_price" float, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/
9784
+  (0.9ms) CREATE INDEX "index_snf_core_products_on_category_id" ON "snf_core_products" ("category_id") /*application='Dummy'*/
9785
+  (0.2ms) DROP TABLE IF EXISTS "snf_core_quotations" CASCADE /*application='Dummy'*/
9786
+  (1.8ms) CREATE TABLE "snf_core_quotations" ("id" bigserial primary key, "item_request_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, "user_id" bigint NOT NULL) /*application='Dummy'*/
9787
+  (0.8ms) CREATE INDEX "index_snf_core_quotations_on_item_request_id" ON "snf_core_quotations" ("item_request_id") /*application='Dummy'*/
9788
+  (1.0ms) CREATE INDEX "index_snf_core_quotations_on_user_id" ON "snf_core_quotations" ("user_id") /*application='Dummy'*/
9789
+  (0.1ms) DROP TABLE IF EXISTS "snf_core_roles" CASCADE /*application='Dummy'*/
9790
+  (2.2ms) CREATE TABLE "snf_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'*/
9791
+  (0.3ms) DROP TABLE IF EXISTS "snf_core_store_inventories" CASCADE /*application='Dummy'*/
9792
+  (1.2ms) CREATE TABLE "snf_core_store_inventories" ("id" bigserial primary key, "store_id" bigint NOT NULL, "product_id" bigint NOT NULL, "base_price" decimal(10,2) NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL, "status" integer DEFAULT 0 NOT NULL) /*application='Dummy'*/
9793
+  (0.8ms) CREATE INDEX "index_snf_core_store_inventories_on_product_id" ON "snf_core_store_inventories" ("product_id") /*application='Dummy'*/
9794
+  (0.8ms) CREATE UNIQUE INDEX "index_snf_core_store_inventories_on_store_id_and_product_id" ON "snf_core_store_inventories" ("store_id", "product_id") /*application='Dummy'*/
9795
+  (0.7ms) CREATE INDEX "index_snf_core_store_inventories_on_store_id" ON "snf_core_store_inventories" ("store_id") /*application='Dummy'*/
9796
+  (0.2ms) DROP TABLE IF EXISTS "snf_core_stores" CASCADE /*application='Dummy'*/
9797
+  (2.6ms) CREATE TABLE "snf_core_stores" ("id" bigserial primary key, "name" character varying NOT NULL, "email" character varying, "operational_status" integer DEFAULT 1 NOT NULL, "business_id" bigint NOT NULL, "address_id" bigint NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/
9798
+  (0.9ms) CREATE INDEX "index_snf_core_stores_on_address_id" ON "snf_core_stores" ("address_id") /*application='Dummy'*/
9799
+  (1.0ms) CREATE INDEX "index_snf_core_stores_on_business_id" ON "snf_core_stores" ("business_id") /*application='Dummy'*/
9800
+  (0.2ms) DROP TABLE IF EXISTS "snf_core_user_roles" CASCADE /*application='Dummy'*/
9801
+  (1.6ms) CREATE TABLE "snf_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'*/
9802
+  (0.5ms) CREATE INDEX "index_snf_core_user_roles_on_role_id" ON "snf_core_user_roles" ("role_id") /*application='Dummy'*/
9803
+  (0.9ms) CREATE INDEX "index_snf_core_user_roles_on_user_id" ON "snf_core_user_roles" ("user_id") /*application='Dummy'*/
9804
+  (0.1ms) DROP TABLE IF EXISTS "snf_core_users" CASCADE /*application='Dummy'*/
9805
+  (2.0ms) CREATE TABLE "snf_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, "phone_number" character varying NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL, "password_digest" character varying NOT NULL, "password_changed" boolean DEFAULT TRUE, "reset_password_token" character varying, "date_of_birth" date NOT NULL, "nationality" character varying NOT NULL, "occupation" character varying, "source_of_funds" character varying, "kyc_status" integer, "gender" integer, "verified_at" timestamp(6), "verified_by_id" bigint, "address_id" bigint, "fayda_id" character varying) /*application='Dummy'*/
9806
+  (0.2ms) DROP TABLE IF EXISTS "snf_core_virtual_account_transactions" CASCADE /*application='Dummy'*/
9807
+  (2.6ms) CREATE TABLE "snf_core_virtual_account_transactions" ("id" bigserial primary key, "from_account_id" bigint, "to_account_id" bigint, "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'*/
9808
+  (1.0ms) CREATE INDEX "index_snf_core_virtual_account_transactions_on_created_at" ON "snf_core_virtual_account_transactions" ("created_at") /*application='Dummy'*/
9809
+  (0.7ms) CREATE INDEX "index_snf_core_virtual_account_transactions_on_from_account_id" ON "snf_core_virtual_account_transactions" ("from_account_id") /*application='Dummy'*/
9810
+  (1.0ms) CREATE UNIQUE INDEX "idx_on_reference_number_bd9be00f20" ON "snf_core_virtual_account_transactions" ("reference_number") /*application='Dummy'*/
9811
+  (0.7ms) CREATE INDEX "index_snf_core_virtual_account_transactions_on_to_account_id" ON "snf_core_virtual_account_transactions" ("to_account_id") /*application='Dummy'*/
9812
+  (0.5ms) DROP TABLE IF EXISTS "snf_core_virtual_accounts" CASCADE /*application='Dummy'*/
9813
+  (4.7ms) CREATE TABLE "snf_core_virtual_accounts" ("id" bigserial primary key, "user_id" bigint NOT NULL, "account_number" character varying(11) 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(3) NOT NULL, "product_scheme" character varying(1) NOT NULL, "voucher_type" character varying(1) NOT NULL, "status" integer DEFAULT 0 NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/
9814
+  (0.7ms) CREATE UNIQUE INDEX "index_snf_core_virtual_accounts_on_account_number" ON "snf_core_virtual_accounts" ("account_number") /*application='Dummy'*/
9815
+  (1.1ms) CREATE INDEX "idx_on_branch_code_product_scheme_voucher_type_b7038b3d5f" ON "snf_core_virtual_accounts" ("branch_code", "product_scheme", "voucher_type") /*application='Dummy'*/
9816
+  (1.0ms) CREATE UNIQUE INDEX "index_snf_core_virtual_accounts_on_cbs_account_number" ON "snf_core_virtual_accounts" ("cbs_account_number") /*application='Dummy'*/
9817
+  (0.9ms) CREATE INDEX "index_snf_core_virtual_accounts_on_user_id" ON "snf_core_virtual_accounts" ("user_id") /*application='Dummy'*/
9818
+  (0.2ms) DROP TABLE IF EXISTS "snf_core_wallets" CASCADE /*application='Dummy'*/
9819
+  (3.3ms) CREATE TABLE "snf_core_wallets" ("id" bigserial primary key, "user_id" bigint NOT NULL, "wallet_number" character varying NOT NULL, "balance" decimal NOT NULL, "is_active" boolean DEFAULT TRUE NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/
9820
+  (1.3ms) CREATE INDEX "index_snf_core_wallets_on_user_id" ON "snf_core_wallets" ("user_id") /*application='Dummy'*/
9821
+  (1.3ms) CREATE UNIQUE INDEX "index_snf_core_wallets_on_wallet_number" ON "snf_core_wallets" ("wallet_number") /*application='Dummy'*/
9822
+  (3.6ms) ALTER TABLE "active_storage_attachments" ADD CONSTRAINT "fk_rails_c3b3935057"
9823
+ FOREIGN KEY ("blob_id")
9824
+ REFERENCES "active_storage_blobs" ("id")
9825
+ /*application='Dummy'*/
9826
+  (1.6ms) ALTER TABLE "active_storage_variant_records" ADD CONSTRAINT "fk_rails_993965df05"
9827
+ FOREIGN KEY ("blob_id")
9828
+ REFERENCES "active_storage_blobs" ("id")
9829
+ /*application='Dummy'*/
9830
+  (2.1ms) ALTER TABLE "snf_core_account_transfers" ADD CONSTRAINT "fk_rails_0d109a55ef"
9831
+ FOREIGN KEY ("user_id")
9832
+ REFERENCES "snf_core_users" ("id")
9833
+ /*application='Dummy'*/
9834
+  (1.9ms) ALTER TABLE "snf_core_business_documents" ADD CONSTRAINT "fk_rails_1efd7338ed"
9835
+ FOREIGN KEY ("business_id")
9836
+ REFERENCES "snf_core_businesses" ("id")
9837
+ /*application='Dummy'*/
9838
+  (1.4ms) ALTER TABLE "snf_core_business_documents" ADD CONSTRAINT "fk_rails_a6157021cc"
9839
+ FOREIGN KEY ("verified_by_id")
9840
+ REFERENCES "snf_core_users" ("id")
9841
+ /*application='Dummy'*/
9842
+  (1.3ms) ALTER TABLE "snf_core_businesses" ADD CONSTRAINT "fk_rails_a61edcbd4b"
9843
+ FOREIGN KEY ("user_id")
9844
+ REFERENCES "snf_core_users" ("id")
9845
+ /*application='Dummy'*/
9846
+  (1.6ms) ALTER TABLE "snf_core_categories" ADD CONSTRAINT "fk_rails_26a925b05d"
9847
+ FOREIGN KEY ("parent_id")
9848
+ REFERENCES "snf_core_categories" ("id")
9849
+ /*application='Dummy'*/
9850
+  (1.9ms) ALTER TABLE "snf_core_customer_groups" ADD CONSTRAINT "fk_rails_9c45f4015a"
9851
+ FOREIGN KEY ("group_id")
9852
+ REFERENCES "snf_core_groups" ("id")
9853
+ /*application='Dummy'*/
9854
+  (1.5ms) ALTER TABLE "snf_core_customer_groups" ADD CONSTRAINT "fk_rails_792eb3404d"
9855
+ FOREIGN KEY ("customer_id")
9856
+ REFERENCES "snf_core_users" ("id")
9857
+ /*application='Dummy'*/
9858
+  (1.7ms) ALTER TABLE "snf_core_delivery_orders" ADD CONSTRAINT "fk_rails_450d17b1b2"
9859
+ FOREIGN KEY ("order_id")
9860
+ REFERENCES "snf_core_orders" ("id")
9861
+ /*application='Dummy'*/
9862
+  (1.6ms) ALTER TABLE "snf_core_groups" ADD CONSTRAINT "fk_rails_c52b27ad67"
9863
+ FOREIGN KEY ("business_id")
9864
+ REFERENCES "snf_core_businesses" ("id")
9865
+ /*application='Dummy'*/
9866
+  (2.1ms) ALTER TABLE "snf_core_item_requests" ADD CONSTRAINT "fk_rails_a718316b94"
9867
+ FOREIGN KEY ("product_id")
9868
+ REFERENCES "snf_core_products" ("id")
9869
+ /*application='Dummy'*/
9870
+  (2.1ms) ALTER TABLE "snf_core_item_requests" ADD CONSTRAINT "fk_rails_0aa2ea2057"
9871
+ FOREIGN KEY ("user_id")
9872
+ REFERENCES "snf_core_users" ("id")
9873
+ /*application='Dummy'*/
9874
+  (1.9ms) ALTER TABLE "snf_core_order_items" ADD CONSTRAINT "fk_rails_1f4046ba92"
9875
+ FOREIGN KEY ("order_id")
9876
+ REFERENCES "snf_core_orders" ("id")
9877
+ /*application='Dummy'*/
9878
+  (2.8ms) ALTER TABLE "snf_core_order_items" ADD CONSTRAINT "fk_rails_50419437e9"
9879
+ FOREIGN KEY ("store_inventory_id")
9880
+ REFERENCES "snf_core_store_inventories" ("id")
9881
+ /*application='Dummy'*/
9882
+  (2.3ms) ALTER TABLE "snf_core_orders" ADD CONSTRAINT "fk_rails_400cf2029c"
9883
+ FOREIGN KEY ("store_id")
9884
+ REFERENCES "snf_core_stores" ("id")
9885
+ /*application='Dummy'*/
9886
+  (1.6ms) ALTER TABLE "snf_core_orders" ADD CONSTRAINT "fk_rails_45b78fb6f9"
9887
+ FOREIGN KEY ("user_id")
9888
+ REFERENCES "snf_core_users" ("id")
9889
+ /*application='Dummy'*/
9890
+  (2.4ms) ALTER TABLE "snf_core_products" ADD CONSTRAINT "fk_rails_a0ba3fa883"
9891
+ FOREIGN KEY ("category_id")
9892
+ REFERENCES "snf_core_categories" ("id")
9893
+ /*application='Dummy'*/
9894
+  (2.9ms) ALTER TABLE "snf_core_quotations" ADD CONSTRAINT "fk_rails_3ec8abd328"
9895
+ FOREIGN KEY ("item_request_id")
9896
+ REFERENCES "snf_core_item_requests" ("id")
9897
+ /*application='Dummy'*/
9898
+  (1.9ms) ALTER TABLE "snf_core_quotations" ADD CONSTRAINT "fk_rails_1663f9b7d7"
9899
+ FOREIGN KEY ("user_id")
9900
+ REFERENCES "snf_core_users" ("id")
9901
+ /*application='Dummy'*/
9902
+  (1.8ms) ALTER TABLE "snf_core_store_inventories" ADD CONSTRAINT "fk_rails_15fb263e75"
9903
+ FOREIGN KEY ("product_id")
9904
+ REFERENCES "snf_core_products" ("id")
9905
+ /*application='Dummy'*/
9906
+  (1.9ms) ALTER TABLE "snf_core_store_inventories" ADD CONSTRAINT "fk_rails_2ca88d30e2"
9907
+ FOREIGN KEY ("store_id")
9908
+ REFERENCES "snf_core_stores" ("id")
9909
+ /*application='Dummy'*/
9910
+  (2.5ms) ALTER TABLE "snf_core_stores" ADD CONSTRAINT "fk_rails_421441da8e"
9911
+ FOREIGN KEY ("address_id")
9912
+ REFERENCES "snf_core_addresses" ("id")
9913
+ /*application='Dummy'*/
9914
+  (2.1ms) ALTER TABLE "snf_core_stores" ADD CONSTRAINT "fk_rails_e100fc7454"
9915
+ FOREIGN KEY ("business_id")
9916
+ REFERENCES "snf_core_businesses" ("id")
9917
+ /*application='Dummy'*/
9918
+  (2.6ms) ALTER TABLE "snf_core_user_roles" ADD CONSTRAINT "fk_rails_0e70d7ce00"
9919
+ FOREIGN KEY ("role_id")
9920
+ REFERENCES "snf_core_roles" ("id")
9921
+ /*application='Dummy'*/
9922
+  (2.5ms) ALTER TABLE "snf_core_user_roles" ADD CONSTRAINT "fk_rails_9ad2e78133"
9923
+ FOREIGN KEY ("user_id")
9924
+ REFERENCES "snf_core_users" ("id")
9925
+ /*application='Dummy'*/
9926
+  (2.0ms) ALTER TABLE "snf_core_users" ADD CONSTRAINT "fk_rails_aaf9dcb5a5"
9927
+ FOREIGN KEY ("address_id")
9928
+ REFERENCES "snf_core_addresses" ("id")
9929
+ /*application='Dummy'*/
9930
+  (1.9ms) ALTER TABLE "snf_core_users" ADD CONSTRAINT "fk_rails_e672dea3f8"
9931
+ FOREIGN KEY ("verified_by_id")
9932
+ REFERENCES "snf_core_users" ("id")
9933
+ ON DELETE SET NULL /*application='Dummy'*/
9934
+  (3.7ms) ALTER TABLE "snf_core_virtual_account_transactions" ADD CONSTRAINT "fk_rails_746fa19f46"
9935
+ FOREIGN KEY ("from_account_id")
9936
+ REFERENCES "snf_core_virtual_accounts" ("id")
9937
+ /*application='Dummy'*/
9938
+  (2.0ms) ALTER TABLE "snf_core_virtual_account_transactions" ADD CONSTRAINT "fk_rails_87430c1b60"
9939
+ FOREIGN KEY ("to_account_id")
9940
+ REFERENCES "snf_core_virtual_accounts" ("id")
9941
+ /*application='Dummy'*/
9942
+  (2.0ms) ALTER TABLE "snf_core_virtual_accounts" ADD CONSTRAINT "fk_rails_5b22a265fb"
9943
+ FOREIGN KEY ("user_id")
9944
+ REFERENCES "snf_core_users" ("id")
9945
+ /*application='Dummy'*/
9946
+  (1.8ms) ALTER TABLE "snf_core_wallets" ADD CONSTRAINT "fk_rails_77c94979ce"
9947
+ FOREIGN KEY ("user_id")
9948
+ REFERENCES "snf_core_users" ("id")
9949
+ /*application='Dummy'*/
9950
+  (3.3ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY) /*application='Dummy'*/
9951
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
9952
+  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES (20250317135148) /*application='Dummy'*/
9953
+  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES
9954
+ (20250313103149),
9955
+ (20250312141147),
9956
+ (20250312043359),
9957
+ (20250311000000),
9958
+ (20250310143604),
9959
+ (20250310133249),
9960
+ (20250310123127),
9961
+ (20250310122954),
9962
+ (20250306074713),
9963
+ (20250305232530),
9964
+ (20250305232529),
9965
+ (20250305201008),
9966
+ (20250305170248),
9967
+ (20250305165926),
9968
+ (20250227102833),
9969
+ (20250227075048),
9970
+ (20250226193938),
9971
+ (20250226192104),
9972
+ (20250226190000),
9973
+ (20250226181007),
9974
+ (20250226123213),
9975
+ (20250226115215),
9976
+ (20250226110217),
9977
+ (20250226102931),
9978
+ (20250226080323),
9979
+ (20250226064444),
9980
+ (20250226042622); /*application='Dummy'*/
9981
+  (3.2ms) CREATE 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'*/
9982
+ ActiveRecord::InternalMetadata Load (1.3ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/
9983
+ ActiveRecord::InternalMetadata Create (0.9ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'development', '2025-03-17 13:54:03.243181', '2025-03-17 13:54:03.243182') RETURNING "key" /*application='Dummy'*/
9984
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/
9985
+ ActiveRecord::InternalMetadata Update (0.5ms) UPDATE "ar_internal_metadata" SET "value" = 'test', "updated_at" = '2025-03-17 13:54:03.246175' WHERE "ar_internal_metadata"."key" = 'environment' /*application='Dummy'*/
9986
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'schema_sha1' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/
9987
+ ActiveRecord::InternalMetadata Create (0.7ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('schema_sha1', '33535521abf235cf0efb1532994647d3bfeb1b64', '2025-03-17 13:54:03.247832', '2025-03-17 13:54:03.247833') RETURNING "key" /*application='Dummy'*/