snf_core 0.2.8 → 0.2.92

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 (356) hide show
  1. checksums.yaml +4 -4
  2. data/MIT-LICENSE +0 -0
  3. data/README.md +0 -0
  4. data/Rakefile +0 -0
  5. data/app/controllers/concerns/common.rb +0 -0
  6. data/app/controllers/concerns/pagination.rb +0 -0
  7. data/app/controllers/snf_core/application_controller.rb +33 -0
  8. data/app/controllers/snf_core/auth_controller.rb +70 -0
  9. data/app/jobs/snf_core/application_job.rb +0 -0
  10. data/app/mailers/snf_core/application_mailer.rb +0 -0
  11. data/app/mailers/snf_core/auth_mailer.rb +13 -0
  12. data/app/models/snf_core/address.rb +0 -0
  13. data/app/models/snf_core/application_record.rb +0 -0
  14. data/app/models/snf_core/business.rb +0 -0
  15. data/app/models/snf_core/business_document.rb +15 -15
  16. data/app/models/snf_core/category.rb +0 -0
  17. data/app/models/snf_core/customer_group.rb +0 -0
  18. data/app/models/snf_core/delivery_order.rb +42 -0
  19. data/app/models/snf_core/group.rb +0 -0
  20. data/app/models/snf_core/order.rb +68 -0
  21. data/app/models/snf_core/order_item.rb +30 -0
  22. data/app/models/snf_core/product.rb +0 -0
  23. data/app/models/snf_core/role.rb +8 -0
  24. data/app/models/snf_core/store.rb +0 -0
  25. data/app/models/snf_core/store_inventory.rb +0 -0
  26. data/app/models/snf_core/user.rb +18 -18
  27. data/app/models/snf_core/user_role.rb +6 -0
  28. data/app/models/snf_core/wallet.rb +0 -0
  29. data/app/services/snf_core/token_service.rb +16 -0
  30. data/app/views/layouts/snf_core/mailer.html.erb +64 -0
  31. data/app/views/layouts/snf_core/mailer.text.erb +1 -0
  32. data/app/views/snf_core/auth_mailer/reset_password.html.erb +10 -0
  33. data/config/routes.rb +5 -0
  34. data/db/migrate/20250226042622_create_snf_core_users.rb +13 -14
  35. data/db/migrate/20250226064444_create_snf_core_categories.rb +0 -0
  36. data/db/migrate/20250226080323_create_snf_core_businesses.rb +0 -0
  37. data/db/migrate/20250226102931_create_snf_core_business_documents.rb +0 -0
  38. data/db/migrate/20250226110217_create_snf_core_addresses.rb +0 -0
  39. data/db/migrate/20250226115215_create_snf_core_stores.rb +0 -0
  40. data/db/migrate/20250226181007_create_snf_core_products.rb +0 -0
  41. data/db/migrate/20250226190000_create_snf_core_store_inventories.rb +0 -0
  42. data/db/migrate/20250226192104_create_snf_core_groups.rb +0 -0
  43. data/db/migrate/20250226193938_create_snf_core_customer_groups.rb +0 -0
  44. data/db/migrate/20250227075048_create_snf_core_wallets.rb +0 -0
  45. data/db/migrate/20250227102833_modify_store_inventories.rb +0 -0
  46. data/db/migrate/20250305165926_create_snf_core_orders.rb +12 -0
  47. data/db/migrate/20250305170248_create_snf_core_order_items.rb +13 -0
  48. data/db/migrate/20250305201008_create_snf_core_delivery_orders.rb +15 -0
  49. data/db/migrate/20250305232529_create_snf_core_roles.rb +9 -0
  50. data/db/migrate/20250305232530_create_snf_core_user_roles.rb +10 -0
  51. data/db/migrate/20250306074713_add_password_fields_to_snf_core_users.rb +7 -0
  52. data/lib/snf_core/engine.rb +0 -0
  53. data/lib/snf_core/version.rb +1 -1
  54. data/lib/snf_core.rb +0 -0
  55. data/lib/tasks/snf_core_tasks.rake +0 -0
  56. data/spec/dummy/Rakefile +6 -0
  57. data/spec/dummy/app/assets/stylesheets/application.css +15 -0
  58. data/spec/dummy/app/controllers/application_controller.rb +2 -0
  59. data/spec/dummy/app/jobs/application_job.rb +7 -0
  60. data/spec/dummy/app/mailers/application_mailer.rb +4 -0
  61. data/spec/dummy/app/models/application_record.rb +3 -0
  62. data/spec/dummy/app/views/layouts/mailer.html.erb +13 -0
  63. data/spec/dummy/app/views/layouts/mailer.text.erb +1 -0
  64. data/spec/dummy/bin/dev +2 -0
  65. data/spec/dummy/bin/rails +4 -0
  66. data/spec/dummy/bin/rake +4 -0
  67. data/spec/dummy/bin/setup +34 -0
  68. data/spec/dummy/config/application.rb +43 -0
  69. data/spec/dummy/config/boot.rb +5 -0
  70. data/spec/dummy/config/cable.yml +10 -0
  71. data/spec/dummy/config/database.yml +20 -0
  72. data/spec/dummy/config/environment.rb +5 -0
  73. data/spec/dummy/config/environments/development.rb +86 -0
  74. data/spec/dummy/config/environments/production.rb +86 -0
  75. data/spec/dummy/config/environments/test.rb +53 -0
  76. data/spec/dummy/config/initializers/cors.rb +16 -0
  77. data/spec/dummy/config/initializers/filter_parameter_logging.rb +8 -0
  78. data/spec/dummy/config/initializers/inflections.rb +16 -0
  79. data/spec/dummy/config/locales/en.yml +31 -0
  80. data/spec/dummy/config/puma.rb +38 -0
  81. data/spec/dummy/config/routes.rb +3 -0
  82. data/spec/dummy/config/storage.yml +38 -0
  83. data/spec/dummy/config.ru +6 -0
  84. data/spec/dummy/db/migrate/20250226123213_create_active_storage_tables.active_storage.rb +57 -0
  85. data/spec/dummy/db/schema.rb +242 -0
  86. data/spec/dummy/log/development.log +3026 -0
  87. data/spec/dummy/log/test.log +133760 -0
  88. data/spec/dummy/spec/fixtures/files/sample.pdf +0 -0
  89. data/spec/dummy/tmp/letter_opener/1741263210_267596_73bfefe/rich.html +142 -0
  90. data/spec/dummy/tmp/letter_opener/1741263645_7876108_3edd95c/rich.html +132 -0
  91. data/spec/dummy/tmp/letter_opener/1741263812_8855171_0bf8e2b/rich.html +132 -0
  92. data/spec/dummy/tmp/local_secret.txt +1 -0
  93. data/spec/dummy/tmp/pids/server.pid +1 -0
  94. data/spec/dummy/tmp/restart.txt +0 -0
  95. data/spec/dummy/tmp/storage/05/zb/05zbh3dr63t1ktnsxkwk2ugbglbu +0 -0
  96. data/spec/dummy/tmp/storage/0u/er/0uerkm5uy46p3lvg18c7ond00lih +0 -0
  97. data/spec/dummy/tmp/storage/13/1y/131yod70wqijazn3ix829yvuuvge +0 -0
  98. data/spec/dummy/tmp/storage/16/na/16na9nc1z98jt6fyn3axj3bhudes +0 -0
  99. data/spec/dummy/tmp/storage/17/wb/17wbd1yhh3pyg3j1sko570vsjnpq +0 -0
  100. data/spec/dummy/tmp/storage/1e/s9/1es9g1a309tf4bs04mr0i70usjz1 +0 -0
  101. data/spec/dummy/tmp/storage/1j/tj/1jtjythzzcpbajktrsn08af3x66m +0 -0
  102. data/spec/dummy/tmp/storage/1t/oy/1toyz0i6f9u5xexr4cpwttr04ood +0 -0
  103. data/spec/dummy/tmp/storage/1v/u3/1vu3btk2ukaxgp84qfmk5izonqmi +0 -0
  104. data/spec/dummy/tmp/storage/1x/i3/1xi33eqr5ipoaz0upakb8yy7qc4o +0 -0
  105. data/spec/dummy/tmp/storage/22/xs/22xscg5bqqtdykdaxrbr388lxkmf +0 -0
  106. data/spec/dummy/tmp/storage/24/69/2469t9kpepg4fd8ki960h025li0b +0 -0
  107. data/spec/dummy/tmp/storage/2a/0u/2a0uyihfk1wn5c1fuz09unocwy2m +0 -0
  108. data/spec/dummy/tmp/storage/2e/f9/2ef9j9go5h1v9ain8zq8m9zpjsf3 +0 -0
  109. data/spec/dummy/tmp/storage/2i/e3/2ie3ve4rajer9sx5zf6r45b3r9ar +0 -0
  110. data/spec/dummy/tmp/storage/2n/56/2n569vuf39piqdtbtbxsztn3r6kl +0 -0
  111. data/spec/dummy/tmp/storage/2o/te/2ote6co29576cnoptsem3lhupuxy +0 -0
  112. data/spec/dummy/tmp/storage/32/ur/32ur9eb5d0h01m2oe9kc5avpm31u +0 -0
  113. data/spec/dummy/tmp/storage/35/ov/35ovg8m7ij4fjqy3v4bh28e5hld2 +0 -0
  114. data/spec/dummy/tmp/storage/37/x2/37x2up33wqtrua85c089e6ltr49p +0 -0
  115. data/spec/dummy/tmp/storage/3i/8d/3i8dbcb1dk9ri0kumm3th8wo61gc +0 -0
  116. data/spec/dummy/tmp/storage/3u/jh/3ujhd5drl4t2nfbqw7ij2jzijxn1 +0 -0
  117. data/spec/dummy/tmp/storage/41/ud/41udni7kfampfsa6dwynr7273y3v +0 -0
  118. data/spec/dummy/tmp/storage/44/ww/44wwsc9by5wv1u70y9suhuq92bwi +0 -0
  119. data/spec/dummy/tmp/storage/4b/qe/4bqe6i8rtzlu196bvama05xnumrb +0 -0
  120. data/spec/dummy/tmp/storage/4n/9p/4n9pgwj5byodmx46ffhpvlydbrmh +0 -0
  121. data/spec/dummy/tmp/storage/4t/86/4t862kv9wcz0p7wgdvpmtmczdadt +0 -0
  122. data/spec/dummy/tmp/storage/4t/ke/4tkejzaafw2hopionhrbemj6jrij +0 -0
  123. data/spec/dummy/tmp/storage/4u/gx/4ugxo9x3cqbwg3d58u13xmtgc6f6 +0 -0
  124. data/spec/dummy/tmp/storage/57/kn/57kn4d3oyb3uqr0y0hwq4wl4d80i +0 -0
  125. data/spec/dummy/tmp/storage/5j/ls/5jlsuxajthpnn769oy836amrsavi +0 -0
  126. data/spec/dummy/tmp/storage/5n/ys/5nyszrcfj6fl2spwxjn1yea42ax0 +0 -0
  127. data/spec/dummy/tmp/storage/5s/zb/5szbksq6mg3768g9vtk788gc49gw +0 -0
  128. data/spec/dummy/tmp/storage/5y/zf/5yzft7e8r6cz5pcu78z6jj8dhmbz +0 -0
  129. data/spec/dummy/tmp/storage/62/jx/62jxz09uvpyv1okycwh7mv6z0gz5 +0 -0
  130. data/spec/dummy/tmp/storage/66/ed/66edq851b58dvses2okkafxtn827 +0 -0
  131. data/spec/dummy/tmp/storage/6a/8k/6a8k0jyqprv0z2q3a0p9bwiyy8av +0 -0
  132. data/spec/dummy/tmp/storage/6d/4e/6d4eiwu6oegnp12mwt27bwhkxe8v +0 -0
  133. data/spec/dummy/tmp/storage/6g/dc/6gdc40iivivwbln1zs4dqedt5ni7 +0 -0
  134. data/spec/dummy/tmp/storage/6m/ry/6mrynv03esjb64ohdo4q4xd0wr6t +0 -0
  135. data/spec/dummy/tmp/storage/6o/7a/6o7ax3ihg25bswxp4d601mqo7tl3 +0 -0
  136. data/spec/dummy/tmp/storage/6w/uj/6wujip3kahx619bqpcc4myv7tz5n +0 -0
  137. data/spec/dummy/tmp/storage/6z/86/6z862zpc67sikzl0otbf418t2clj +0 -0
  138. data/spec/dummy/tmp/storage/70/pb/70pbs8mjus3udsitby6gasexg4qz +0 -0
  139. data/spec/dummy/tmp/storage/71/rq/71rqssbyrwzhseipt1ojj2aucm2f +0 -0
  140. data/spec/dummy/tmp/storage/74/nt/74ntaj9azigfadsry359nl8jwbva +0 -0
  141. data/spec/dummy/tmp/storage/76/qk/76qkxksbv7v7meswa7mcnshr777l +0 -0
  142. data/spec/dummy/tmp/storage/7g/z0/7gz0olv00p0i3xqdy3f4fa6e73u2 +0 -0
  143. data/spec/dummy/tmp/storage/82/zv/82zvnds6te3el62i8vxv8rzkc4ms +0 -0
  144. data/spec/dummy/tmp/storage/83/b1/83b1ejivo3bxawg0kv4f1jufwarp +0 -0
  145. data/spec/dummy/tmp/storage/84/xr/84xr5dqonkroxjj0nkf3cznat5qt +0 -0
  146. data/spec/dummy/tmp/storage/8q/oh/8qohqcrf9fh6oc374ewp0lxid5lf +0 -0
  147. data/spec/dummy/tmp/storage/8v/yv/8vyvd9q13xzmav17gvu5tr1mvlws +0 -0
  148. data/spec/dummy/tmp/storage/91/35/9135ona6a51xpv669i6wz75kz8pr +0 -0
  149. data/spec/dummy/tmp/storage/92/hw/92hw9u9j6728qgwpcn7oqphe9tzj +0 -0
  150. data/spec/dummy/tmp/storage/9a/3q/9a3qd5qc7j6dzzmg16wcpvwoowmp +0 -0
  151. data/spec/dummy/tmp/storage/9b/2w/9b2w9oc0quy4lsa7y4zvvq8pfnh5 +0 -0
  152. data/spec/dummy/tmp/storage/9p/cd/9pcdjfvbqndd5dxue0ttlfeew1ht +0 -0
  153. data/spec/dummy/tmp/storage/al/8s/al8szf81ccm4ckpvxh3bv6vlgp0y +0 -0
  154. data/spec/dummy/tmp/storage/ao/tx/aotxomcc2m5ojywmr335fc27br55 +0 -0
  155. data/spec/dummy/tmp/storage/as/3k/as3k29j61efclm810sdnopepmgl2 +0 -0
  156. data/spec/dummy/tmp/storage/b0/wa/b0wa1zer7y7x8udydx3puofxd3fd +0 -0
  157. data/spec/dummy/tmp/storage/b8/8l/b88ln7wuq13v4akgwgc0dgac8887 +0 -0
  158. data/spec/dummy/tmp/storage/bb/iy/bbiyfh0r4f3szj4bmfwp7ptcst6k +0 -0
  159. data/spec/dummy/tmp/storage/bg/h0/bgh0cuyn7744wfbm8zuob9lugpxu +0 -0
  160. data/spec/dummy/tmp/storage/bi/6q/bi6qcv9yadwuy9au0q4vojvtqibp +0 -0
  161. data/spec/dummy/tmp/storage/bm/s6/bms684574m329zo33bmdzw4y05q8 +0 -0
  162. data/spec/dummy/tmp/storage/bn/8g/bn8gi5i69ysnnedgg57lg6r48hc0 +0 -0
  163. data/spec/dummy/tmp/storage/bp/0h/bp0hrk5xcf4q8q4b4ypo17ngqy93 +0 -0
  164. data/spec/dummy/tmp/storage/bs/y9/bsy9t4961ra8hwlq06wjtgrrcflp +0 -0
  165. data/spec/dummy/tmp/storage/ca/u3/cau32ihv1n1onmqmxf9pbpvwwp42 +0 -0
  166. data/spec/dummy/tmp/storage/ck/1p/ck1pqdlwjggav333jasfbrtptqs8 +0 -0
  167. data/spec/dummy/tmp/storage/ck/nb/cknbno5x3oh0nzvrry51ai2c2ce9 +0 -0
  168. data/spec/dummy/tmp/storage/cp/xd/cpxd4pz21lel4kv0463co0i34dyo +0 -0
  169. data/spec/dummy/tmp/storage/cq/25/cq25o59ipbdrfn01mtjvi5dwc8v0 +0 -0
  170. data/spec/dummy/tmp/storage/cq/os/cqosgu11l61u6gdz0c54mr4hasry +0 -0
  171. data/spec/dummy/tmp/storage/cs/x9/csx9mv26ab1lm82a7itryfq4v6rq +0 -0
  172. data/spec/dummy/tmp/storage/d5/aa/d5aag1rh6b9stocz1m1pg5c8mnfw +0 -0
  173. data/spec/dummy/tmp/storage/dm/c1/dmc1zx12pfl41f9br9f1l86953ew +0 -0
  174. data/spec/dummy/tmp/storage/dp/0f/dp0fx9ji1bqvx1najwjgns6n7fhf +0 -0
  175. data/spec/dummy/tmp/storage/dq/04/dq04jlw82vqiecdsxyrspe3y8zhd +0 -0
  176. data/spec/dummy/tmp/storage/dq/p8/dqp8o7eqfob92n81thzhj4mmviwf +0 -0
  177. data/spec/dummy/tmp/storage/dr/1z/dr1z3xxvya5ywessdrhmk05b2apz +0 -0
  178. data/spec/dummy/tmp/storage/dr/6z/dr6z0vwwsxqzw0kfkwl598uciyft +0 -0
  179. data/spec/dummy/tmp/storage/dx/iu/dxiu87gi66esp528s27d805z6b1v +0 -0
  180. data/spec/dummy/tmp/storage/e2/uo/e2uoyhzlaj5538p6rjs37pbl0z9g +0 -0
  181. data/spec/dummy/tmp/storage/ef/ih/efihy3gyspz150a8mpmhvj01xr07 +0 -0
  182. data/spec/dummy/tmp/storage/ej/20/ej20a2w7j929ut3zwo0kk5zyzp96 +0 -0
  183. data/spec/dummy/tmp/storage/ek/3j/ek3jzmz9919dhom6hbmhglq7e64b +0 -0
  184. data/spec/dummy/tmp/storage/em/kc/emkc4tc71k65mfcurv6k8z1ylswl +0 -0
  185. data/spec/dummy/tmp/storage/em/vx/emvx0c15o74mr0nlcvdc7m88j2gi +0 -0
  186. data/spec/dummy/tmp/storage/ew/n0/ewn0vyho1jbc7i76nat14codqc38 +0 -0
  187. data/spec/dummy/tmp/storage/f8/hf/f8hf7vk5c1h8s3upvdsgqbrdkokl +0 -0
  188. data/spec/dummy/tmp/storage/fo/9s/fo9s4w4egoj3qjbwknubsr4m3hca +0 -0
  189. data/spec/dummy/tmp/storage/fq/m7/fqm72ukjmyc0t6mgh73ehovlhm7i +0 -0
  190. data/spec/dummy/tmp/storage/ga/7e/ga7eiyyv0llme2i4xby0kdp4a4h8 +0 -0
  191. data/spec/dummy/tmp/storage/gc/bb/gcbbnsf6rq5xftpvxt4vfo39v2tx +0 -0
  192. data/spec/dummy/tmp/storage/gc/nn/gcnnb8yfz775d91vymz929zy2b7l +0 -0
  193. data/spec/dummy/tmp/storage/gv/kd/gvkd1h6f6qqh334ybfn71lwi6xk0 +0 -0
  194. data/spec/dummy/tmp/storage/gy/t2/gyt2tfjun5ezlgnl6u2ozz2s5wt9 +0 -0
  195. data/spec/dummy/tmp/storage/h0/i7/h0i7pyghnhpzsss74tk1k9k69yo4 +0 -0
  196. data/spec/dummy/tmp/storage/h4/86/h486d2xris442m90oylhhdlj1pjg +0 -0
  197. data/spec/dummy/tmp/storage/h4/vg/h4vgoatz21dhjrztrrbg2hdhkwjb +0 -0
  198. data/spec/dummy/tmp/storage/h5/13/h513cys269xn45jdhxhfyjlq5b3q +0 -0
  199. data/spec/dummy/tmp/storage/hb/yf/hbyf2wemy2azh7k1qhn3to9cpbj1 +0 -0
  200. data/spec/dummy/tmp/storage/hi/9h/hi9ho77symoy2j0ye28fxgnxw3kt +0 -0
  201. data/spec/dummy/tmp/storage/hl/yy/hlyyu150rt2yos1sa9ed1qw49y26 +0 -0
  202. data/spec/dummy/tmp/storage/hm/la/hmlataprq9fsh3126h6zmi19u2u1 +0 -0
  203. data/spec/dummy/tmp/storage/hp/6k/hp6kbroei8cm1chsl2bxhrpbkh1s +0 -0
  204. data/spec/dummy/tmp/storage/hr/mb/hrmb0w1dnyo6750fj1866f5np7sm +0 -0
  205. data/spec/dummy/tmp/storage/i9/6r/i96r6te3tutbwgxgl0maf3tgud51 +0 -0
  206. data/spec/dummy/tmp/storage/ih/xa/ihxalwtv9q6k97ryw0x3di5or5xw +0 -0
  207. data/spec/dummy/tmp/storage/in/jg/injgf3gi3v8yhpjwy4h8s96k0w8x +0 -0
  208. data/spec/dummy/tmp/storage/ir/zq/irzqn6i8886usqy6bcnsghmr01kg +0 -0
  209. data/spec/dummy/tmp/storage/iw/19/iw191t6h61ig4a68n3rk73vjvldc +0 -0
  210. data/spec/dummy/tmp/storage/j0/jz/j0jz8g89xbvv61ou1cj7dztym5k3 +0 -0
  211. data/spec/dummy/tmp/storage/j6/ym/j6ymkvvvhcdf7snmc6cardtsy9nd +0 -0
  212. data/spec/dummy/tmp/storage/j7/6x/j76x0oirv7i4t6p3blseuaknp7pw +0 -0
  213. data/spec/dummy/tmp/storage/jq/95/jq95rqhv5usgucn2d2mmkhjufapu +0 -0
  214. data/spec/dummy/tmp/storage/jr/uw/jruwp015m0chh50nxgkklum2ta3u +0 -0
  215. data/spec/dummy/tmp/storage/jz/ku/jzku30iopsxhh5quij3dov92vpyd +0 -0
  216. data/spec/dummy/tmp/storage/k0/wi/k0wijnkceisaxvkmc3hbr4croete +0 -0
  217. data/spec/dummy/tmp/storage/kk/76/kk76rr3nfbi1r4cmw9rcxuorpv4y +0 -0
  218. data/spec/dummy/tmp/storage/kn/z4/knz4o9yqqnipvbbo2fum9sz2528v +0 -0
  219. data/spec/dummy/tmp/storage/ky/1y/ky1ys68lmat11bxs2395dqugiyig +0 -0
  220. data/spec/dummy/tmp/storage/kz/4h/kz4hr1f97wfp44jkt5i3tvheo2hm +0 -0
  221. data/spec/dummy/tmp/storage/l4/ge/l4gelxdup4epl7lv9x5qyhatk2l6 +0 -0
  222. data/spec/dummy/tmp/storage/l5/3j/l53jq75i2ywyslq3wl999vl2jmyz +0 -0
  223. data/spec/dummy/tmp/storage/la/a6/laa6ye8vmuyl7m1gjpkcx19cdpzq +0 -0
  224. data/spec/dummy/tmp/storage/li/di/lidigrxrlew69ebcfx5ubeb203ck +0 -0
  225. data/spec/dummy/tmp/storage/ln/0f/ln0fz4opsdycu80q7urfez9ar7kn +0 -0
  226. data/spec/dummy/tmp/storage/lr/6l/lr6lqlqemfz0aorfbyot2lo9ck4o +0 -0
  227. data/spec/dummy/tmp/storage/lu/no/lunox74fm54ctc4qbfo2lj9l56sv +0 -0
  228. data/spec/dummy/tmp/storage/lv/o6/lvo6jno7mebvf0hssv20pgwfyum6 +0 -0
  229. data/spec/dummy/tmp/storage/m0/tm/m0tml6mrt7hiab73wgr0m9kaizn6 +0 -0
  230. data/spec/dummy/tmp/storage/mg/z6/mgz6nnkcl4j37w3ev6yolkfxe95o +0 -0
  231. data/spec/dummy/tmp/storage/mk/4w/mk4w528bsn47ewri0odui9s40f87 +0 -0
  232. data/spec/dummy/tmp/storage/ms/l9/msl9xauqjm3xnmfpxuiccmznlvnr +0 -0
  233. data/spec/dummy/tmp/storage/mu/ln/muln4ptnkbcff0s2p54j36goygbx +0 -0
  234. data/spec/dummy/tmp/storage/na/6r/na6rrohinrnjofsq27u95up5rp8k +0 -0
  235. data/spec/dummy/tmp/storage/nd/9y/nd9yeusukf9brbkzbm7af1yygidd +0 -0
  236. data/spec/dummy/tmp/storage/nf/sp/nfspv0s1uw5xo4qtxd8vsvvqy9v7 +0 -0
  237. data/spec/dummy/tmp/storage/nr/f9/nrf9wi6n0guazfp9gluc36do0dx1 +0 -0
  238. data/spec/dummy/tmp/storage/nw/le/nwle0hzkvkdl27fqqtm4nmpgzcvp +0 -0
  239. data/spec/dummy/tmp/storage/nx/64/nx64klyyxu3u3qz5lov4zf23fgco +0 -0
  240. data/spec/dummy/tmp/storage/nz/kd/nzkd3xlsbohxa2dgfyrz26iqb723 +0 -0
  241. data/spec/dummy/tmp/storage/o6/xf/o6xfczmxpom0laekvp59gute2p5d +0 -0
  242. data/spec/dummy/tmp/storage/oc/f8/ocf8zs18lm9fnkpqj6wpshdpyf43 +0 -0
  243. data/spec/dummy/tmp/storage/oc/xk/ocxkae9a9kkycvpfw71sdhnpqn85 +0 -0
  244. data/spec/dummy/tmp/storage/oe/bq/oebq593a6bpwkbxpx6segtwyy0jy +0 -0
  245. data/spec/dummy/tmp/storage/p5/4w/p54wycc6tln36b54yfsz2zk7hcdt +0 -0
  246. data/spec/dummy/tmp/storage/p9/hd/p9hddsr7pgksgl6vuqgtkp1ad7x2 +0 -0
  247. data/spec/dummy/tmp/storage/ph/va/phvajdvl6g28vluah7d38rpaj2el +0 -0
  248. data/spec/dummy/tmp/storage/pi/4i/pi4izeatwyrz6e8zdwvri4f4h4tl +0 -0
  249. data/spec/dummy/tmp/storage/pu/rl/purlhr67132j7c4k548memz2w2q1 +0 -0
  250. data/spec/dummy/tmp/storage/pv/bo/pvboa7wami2p1zjkuytzj9epmj14 +0 -0
  251. data/spec/dummy/tmp/storage/q5/i8/q5i8dg12fdmm5jura53gaw3zj6u4 +0 -0
  252. data/spec/dummy/tmp/storage/qn/1h/qn1hgmvsrnd8dkn4nvcyvqy3q2sb +0 -0
  253. data/spec/dummy/tmp/storage/qp/hi/qphia48836lod6l2ao5ca6ocd8ws +0 -0
  254. data/spec/dummy/tmp/storage/qs/jk/qsjkqiiarr85uobud0qsnnmpraol +0 -0
  255. data/spec/dummy/tmp/storage/qw/7z/qw7zsf91njf7ga6454nrjpvddjn5 +0 -0
  256. data/spec/dummy/tmp/storage/r6/6f/r66f8sxtwvlk8c1ava46bgua5hn0 +0 -0
  257. data/spec/dummy/tmp/storage/ra/6b/ra6b797wpupx6nqkgne3d63j6lh2 +0 -0
  258. data/spec/dummy/tmp/storage/ra/s0/ras0iwcg9lufnjah5yxyola73jsk +0 -0
  259. data/spec/dummy/tmp/storage/rd/e4/rde4tqu10zhrceb4uvvorhse4itt +0 -0
  260. data/spec/dummy/tmp/storage/rh/0h/rh0h80b8er9vp1u8dcocy1u58obf +0 -0
  261. data/spec/dummy/tmp/storage/ro/wb/rowb68g2iif1e8hsbjdjsmxj94h7 +0 -0
  262. data/spec/dummy/tmp/storage/s1/22/s122jwsnbcabv9fxp54nhoaaf34u +0 -0
  263. data/spec/dummy/tmp/storage/s6/on/s6onn1pu2bxcdkeebeu9qaht8i4d +0 -0
  264. data/spec/dummy/tmp/storage/s8/o0/s8o0enbem94835cqjla6onwncqpz +0 -0
  265. data/spec/dummy/tmp/storage/s9/lw/s9lwslyf5co34pvbt3n9ay06ui2w +0 -0
  266. data/spec/dummy/tmp/storage/sb/bo/sbboin8iacxsa7ywl1xp401f7tmj +0 -0
  267. data/spec/dummy/tmp/storage/sd/he/sdhe8pgaioyf7kdmdok21dy8enr3 +0 -0
  268. data/spec/dummy/tmp/storage/si/24/si24loctkg3h900v6vaoxwnruih7 +0 -0
  269. data/spec/dummy/tmp/storage/st/hv/sthv2tx2r8zv6tyn9yxi5am0pgzh +0 -0
  270. data/spec/dummy/tmp/storage/su/ng/sungqllfkjesc0p9c8hz3y2ior41 +0 -0
  271. data/spec/dummy/tmp/storage/sy/wq/sywqphj8vgv0imntn38s286yjjc3 +0 -0
  272. data/spec/dummy/tmp/storage/ta/s3/tas35nm4h81nhaecpeybk8kxzt62 +0 -0
  273. data/spec/dummy/tmp/storage/tc/gu/tcgurel05x9fk9ksm4hxwfla3hg3 +0 -0
  274. data/spec/dummy/tmp/storage/tk/rt/tkrtpgn5p68rqy679q15ab3j7twz +0 -0
  275. data/spec/dummy/tmp/storage/tm/ce/tmce54998rdnz191k02fzowpebvw +0 -0
  276. data/spec/dummy/tmp/storage/tt/pu/ttpumlt7wi54pohcc7ktsl5le777 +0 -0
  277. data/spec/dummy/tmp/storage/u1/vf/u1vfyawqqy7wpkthgardxs358car +0 -0
  278. data/spec/dummy/tmp/storage/u2/xa/u2xaxpjz4fdxtxxinaxq2r7biovv +0 -0
  279. data/spec/dummy/tmp/storage/uf/67/uf67aznvgtom02vj8q4jl60hycfm +0 -0
  280. data/spec/dummy/tmp/storage/ui/xi/uixi7xtks88zuqr4gwi6cjbk4m47 +0 -0
  281. data/spec/dummy/tmp/storage/uq/jk/uqjkltli1s6vz51g6yu551ze48c1 +0 -0
  282. data/spec/dummy/tmp/storage/ux/te/uxtezp2rqztn4cernmn7477gukxe +0 -0
  283. data/spec/dummy/tmp/storage/v4/yi/v4yieu5kcx0jz3ephiptzr46djev +0 -0
  284. data/spec/dummy/tmp/storage/va/sc/vascc4h0c7dv7uwwcn2wdvx6qyhy +0 -0
  285. data/spec/dummy/tmp/storage/vp/ub/vpub3n9dk3ts14cvq9tvkez7crqq +0 -0
  286. data/spec/dummy/tmp/storage/w2/3f/w23f3igzkn7bddqxry5x4wsu2ths +0 -0
  287. data/spec/dummy/tmp/storage/w4/1j/w41judbhn1j3quwhs36myqwnypkz +0 -0
  288. data/spec/dummy/tmp/storage/w4/d3/w4d3qfnguynfuw4oxo5hek8q5w66 +0 -0
  289. data/spec/dummy/tmp/storage/w9/na/w9na14949rr42w928n9srevxecbl +0 -0
  290. data/spec/dummy/tmp/storage/wo/81/wo813rsnwvoa55h0vq0fr79iajuw +0 -0
  291. data/spec/dummy/tmp/storage/wp/zs/wpzs5finp3t36za2bykcoxueu5b6 +0 -0
  292. data/spec/dummy/tmp/storage/wv/9t/wv9t3gxm6dqah7kdq74pimjdb156 +0 -0
  293. data/spec/dummy/tmp/storage/ww/40/ww40d8rykhlpxwfh0ggfs7mrh0jl +0 -0
  294. data/spec/dummy/tmp/storage/wy/14/wy14megn3o5zqplv9xg6u32uwkr6 +0 -0
  295. data/spec/dummy/tmp/storage/xd/4h/xd4h96rdmw5t9pujgz831cnfgj8o +0 -0
  296. data/spec/dummy/tmp/storage/xi/en/xiensi0706n8m0x5lxp0fbwg8ipk +0 -0
  297. data/spec/dummy/tmp/storage/xj/yy/xjyygdd3znvvpt9ufz1vv4lfsx3w +0 -0
  298. data/spec/dummy/tmp/storage/xs/x1/xsx109k9pb83qze3raurxo22dnms +0 -0
  299. data/spec/dummy/tmp/storage/xv/gf/xvgf6x0othqxlxcbgwz4sg7th3p9 +0 -0
  300. data/spec/dummy/tmp/storage/y5/3g/y53gv7ysx4j1y0k71pszym8sdu6b +0 -0
  301. data/spec/dummy/tmp/storage/ya/yf/yayfpxlrbtz0578nl9tlourrwe27 +0 -0
  302. data/spec/dummy/tmp/storage/yd/x8/ydx8jm52rnl3b7mpvmmxlilenllw +0 -0
  303. data/spec/dummy/tmp/storage/ye/bu/yebu3imdihqdatzktkubhkto82xo +0 -0
  304. data/spec/dummy/tmp/storage/yf/49/yf49a4ydheqf3cqs0u49sanbl4ms +0 -0
  305. data/spec/dummy/tmp/storage/yh/q1/yhq1muao2dpuykmj12bxhd0x4ntk +0 -0
  306. data/spec/dummy/tmp/storage/ym/5n/ym5ndg2m03vfnoeryvb9tex8xj72 +0 -0
  307. data/spec/dummy/tmp/storage/yx/jp/yxjpumjyo1jysjpg20qaxgsqg4fw +0 -0
  308. data/spec/dummy/tmp/storage/z1/gr/z1grp34d5vw7mi4g8vw8yfu91ny2 +0 -0
  309. data/spec/dummy/tmp/storage/z5/qs/z5qs5fq00igr3xv5izgcyhhsdw7y +0 -0
  310. data/spec/dummy/tmp/storage/z5/sg/z5sgd1au9gcfkqb3kq82f3yry6a6 +0 -0
  311. data/spec/dummy/tmp/storage/z7/8n/z78nuzozxx53c7cpp3e4kt3nghaa +0 -0
  312. data/spec/dummy/tmp/storage/zk/3v/zk3vlz1al2rba9wlkzoa6p8wpli0 +0 -0
  313. data/spec/dummy/tmp/storage/zk/xs/zkxsr1zywhaydz0cep4eh8mmos46 +0 -0
  314. data/spec/dummy/tmp/storage/zx/ur/zxuraz59df480azmknqbfeb37ktm +0 -0
  315. data/spec/examples.txt +126 -0
  316. data/spec/factories/snf_core/addresses.rb +10 -0
  317. data/spec/factories/snf_core/business_documents.rb +18 -0
  318. data/spec/factories/snf_core/businesses.rb +10 -0
  319. data/spec/factories/snf_core/categories.rb +7 -0
  320. data/spec/factories/snf_core/customer_groups.rb +9 -0
  321. data/spec/factories/snf_core/delivery_orders.rb +36 -0
  322. data/spec/factories/snf_core/groups.rb +6 -0
  323. data/spec/factories/snf_core/order_items.rb +9 -0
  324. data/spec/factories/snf_core/orders.rb +33 -0
  325. data/spec/factories/snf_core/products.rb +9 -0
  326. data/spec/factories/snf_core/roles.rb +5 -0
  327. data/spec/factories/snf_core/store_inventories.rb +8 -0
  328. data/spec/factories/snf_core/stores.rb +9 -0
  329. data/spec/factories/snf_core/user_roles.rb +6 -0
  330. data/spec/factories/snf_core/users.rb +12 -0
  331. data/spec/factories/snf_core/wallets.rb +7 -0
  332. data/spec/mailers/previews/snf_core/auth_mailer_preview.rb +6 -0
  333. data/spec/mailers/snf_core/auth_mailer_spec.rb +7 -0
  334. data/spec/models/snf_core/address_spec.rb +15 -0
  335. data/spec/models/snf_core/business_document_spec.rb +20 -0
  336. data/spec/models/snf_core/business_spec.rb +14 -0
  337. data/spec/models/snf_core/category_spec.rb +12 -0
  338. data/spec/models/snf_core/customer_group_spec.rb +11 -0
  339. data/spec/models/snf_core/delivery_order_spec.rb +70 -0
  340. data/spec/models/snf_core/group_spec.rb +11 -0
  341. data/spec/models/snf_core/order_item_spec.rb +64 -0
  342. data/spec/models/snf_core/order_spec.rb +81 -0
  343. data/spec/models/snf_core/product_spec.rb +17 -0
  344. data/spec/models/snf_core/role_spec.rb +12 -0
  345. data/spec/models/snf_core/store_inventory_spec.rb +24 -0
  346. data/spec/models/snf_core/store_spec.rb +13 -0
  347. data/spec/models/snf_core/user_role_spec.rb +11 -0
  348. data/spec/models/snf_core/user_spec.rb +22 -0
  349. data/spec/models/snf_core/wallet_spec.rb +28 -0
  350. data/spec/rails_helper.rb +46 -0
  351. data/spec/requests/snf_core/auth_spec.rb +139 -0
  352. data/spec/sample_spec.rb +5 -0
  353. data/spec/spec_helper.rb +36 -0
  354. data/spec/support/models/shared_examples.rb +49 -0
  355. data/spec/support/requests/shared_requests.rb +130 -0
  356. metadata +320 -3
@@ -0,0 +1,3026 @@
1
+ SQL (0.4ms) SET search_path TO public /*application='Dummy'*/
2
+  (1104.0ms) CREATE DATABASE "snf_dev" ENCODING = 'unicode' /*application='Dummy'*/
3
+ SQL (0.1ms) SET search_path TO public /*application='Dummy'*/
4
+  (108.4ms) CREATE DATABASE "snf_test" ENCODING = 'unicode' /*application='Dummy'*/
5
+  (27.7ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY) /*application='Dummy'*/
6
+  (9.7ms) 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'*/
7
+  (0.6ms) SELECT pg_try_advisory_lock(869468062957908540) /*application='Dummy'*/
8
+ ActiveRecord::SchemaMigration Load (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
9
+ ActiveRecord::InternalMetadata Load (4.7ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/
10
+ ActiveRecord::InternalMetadata Create (2.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'development', '2025-02-26 03:51:44.895920', '2025-02-26 03:51:44.895922') RETURNING "key" /*application='Dummy'*/
11
+ Migrating to CreateSnfCorePeople (20250226035137)
12
+ TRANSACTION (0.1ms) BEGIN /*application='Dummy'*/
13
+  (10.6ms) CREATE TABLE "snf_core_people" ("id" bigserial primary key, "name" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/
14
+ ActiveRecord::SchemaMigration Create (0.8ms) INSERT INTO "schema_migrations" ("version") VALUES ('20250226035137') RETURNING "version" /*application='Dummy'*/
15
+ TRANSACTION (0.9ms) COMMIT /*application='Dummy'*/
16
+  (3.6ms) SELECT pg_advisory_unlock(869468062957908540) /*application='Dummy'*/
17
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
18
+  (1.4ms) SELECT pg_try_advisory_lock(869468062957908540) /*application='Dummy'*/
19
+ ActiveRecord::SchemaMigration Load (2.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
20
+ ActiveRecord::InternalMetadata Load (2.9ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/
21
+ Migrating to CreateSnfCoreUsers (20250226042622)
22
+ TRANSACTION (0.2ms) BEGIN /*application='Dummy'*/
23
+  (19.3ms) 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, "role" integer NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/
24
+ ActiveRecord::SchemaMigration Create (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ('20250226042622') RETURNING "version" /*application='Dummy'*/
25
+ TRANSACTION (0.7ms) COMMIT /*application='Dummy'*/
26
+  (0.4ms) SELECT pg_advisory_unlock(869468062957908540) /*application='Dummy'*/
27
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
28
+ ActiveRecord::SchemaMigration Load (22.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
29
+ ActiveRecord::InternalMetadata Load (14.5ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/
30
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
31
+ 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'*/
32
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
33
+ 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'*/
34
+ SQL (0.2ms) SET search_path TO public /*application='Dummy'*/
35
+  (284.4ms) DROP DATABASE IF EXISTS "snf_dev" /*application='Dummy'*/
36
+ SQL (0.1ms) SET search_path TO public /*application='Dummy'*/
37
+  (52.5ms) DROP DATABASE IF EXISTS "snf_test" /*application='Dummy'*/
38
+ SQL (0.1ms) SET search_path TO public /*application='Dummy'*/
39
+  (185.1ms) CREATE DATABASE "snf_dev" ENCODING = 'unicode' /*application='Dummy'*/
40
+ SQL (0.1ms) SET search_path TO public /*application='Dummy'*/
41
+  (101.2ms) CREATE DATABASE "snf_test" ENCODING = 'unicode' /*application='Dummy'*/
42
+ SQL (2.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" SCHEMA pg_catalog /*application='Dummy'*/
43
+  (6.5ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY) /*application='Dummy'*/
44
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
45
+  (1.9ms) INSERT INTO "schema_migrations" (version) VALUES (0) /*application='Dummy'*/
46
+  (1.6ms) 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'*/
47
+ ActiveRecord::InternalMetadata Load (0.6ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/
48
+ ActiveRecord::InternalMetadata Create (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'development', '2025-02-26 06:01:35.957790', '2025-02-26 06:01:35.957793') RETURNING "key" /*application='Dummy'*/
49
+ 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'*/
50
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'schema_sha1' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/
51
+ ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('schema_sha1', '9c6777daaa6ce85cc74b26c38000144a7834a947', '2025-02-26 06:01:35.961754', '2025-02-26 06:01:35.961756') RETURNING "key" /*application='Dummy'*/
52
+  (0.1ms) SELECT pg_try_advisory_lock(869468062957908540) /*application='Dummy'*/
53
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
54
+ 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'*/
55
+ Migrating to CreateSnfCoreUsers (20250226042622)
56
+ TRANSACTION (0.2ms) BEGIN /*application='Dummy'*/
57
+  (4.1ms) 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, "role" integer NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/
58
+ ActiveRecord::SchemaMigration Create (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20250226042622') RETURNING "version" /*application='Dummy'*/
59
+ TRANSACTION (0.2ms) COMMIT /*application='Dummy'*/
60
+  (0.3ms) SELECT pg_advisory_unlock(869468062957908540) /*application='Dummy'*/
61
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
62
+  (0.6ms) SELECT pg_try_advisory_lock(869468062957908540) /*application='Dummy'*/
63
+ ActiveRecord::SchemaMigration Load (1.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
64
+ ActiveRecord::InternalMetadata Load (2.0ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/
65
+ Migrating to CreateSnfCoreCategories (20250226064444)
66
+ TRANSACTION (0.1ms) BEGIN /*application='Dummy'*/
67
+  (20.5ms) 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, CONSTRAINT "fk_rails_26a925b05d"
68
+ FOREIGN KEY ("parent_id")
69
+ REFERENCES "snf_core_categories" ("id")
70
+ ) /*application='Dummy'*/
71
+  (1.8ms) CREATE INDEX "index_snf_core_categories_on_parent_id" ON "snf_core_categories" ("parent_id") /*application='Dummy'*/
72
+ ActiveRecord::SchemaMigration Create (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ('20250226064444') RETURNING "version" /*application='Dummy'*/
73
+ TRANSACTION (0.4ms) COMMIT /*application='Dummy'*/
74
+  (0.7ms) SELECT pg_advisory_unlock(869468062957908540) /*application='Dummy'*/
75
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
76
+  (0.2ms) SELECT pg_try_advisory_lock(869468062957908540) /*application='Dummy'*/
77
+ ActiveRecord::SchemaMigration Load (1.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
78
+ ActiveRecord::InternalMetadata Load (1.1ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/
79
+  (0.2ms) SELECT pg_advisory_unlock(869468062957908540) /*application='Dummy'*/
80
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
81
+ ActiveRecord::SchemaMigration Load (1.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
82
+ ActiveRecord::InternalMetadata Load (1.4ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/
83
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
84
+ 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'*/
85
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
86
+ 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'*/
87
+ SQL (0.2ms) SET search_path TO public /*application='Dummy'*/
88
+  (84.3ms) DROP DATABASE IF EXISTS "snf_dev" /*application='Dummy'*/
89
+ SQL (0.1ms) SET search_path TO public /*application='Dummy'*/
90
+  (40.4ms) DROP DATABASE IF EXISTS "snf_test" /*application='Dummy'*/
91
+ SQL (0.1ms) SET search_path TO public /*application='Dummy'*/
92
+  (172.9ms) CREATE DATABASE "snf_dev" ENCODING = 'unicode' /*application='Dummy'*/
93
+ SQL (0.1ms) SET search_path TO public /*application='Dummy'*/
94
+  (89.2ms) CREATE DATABASE "snf_test" ENCODING = 'unicode' /*application='Dummy'*/
95
+ SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" SCHEMA pg_catalog /*application='Dummy'*/
96
+  (2.8ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY) /*application='Dummy'*/
97
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
98
+  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES (0) /*application='Dummy'*/
99
+  (1.9ms) 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'*/
100
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/
101
+ ActiveRecord::InternalMetadata Create (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'development', '2025-02-26 07:03:25.974685', '2025-02-26 07:03:25.974687') RETURNING "key" /*application='Dummy'*/
102
+ 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'*/
103
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'schema_sha1' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/
104
+ ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('schema_sha1', '9c6777daaa6ce85cc74b26c38000144a7834a947', '2025-02-26 07:03:25.977781', '2025-02-26 07:03:25.977782') RETURNING "key" /*application='Dummy'*/
105
+  (0.1ms) SELECT pg_try_advisory_lock(869468062957908540) /*application='Dummy'*/
106
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
107
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/
108
+ Migrating to CreateSnfCoreUsers (20250226042622)
109
+ TRANSACTION (0.1ms) BEGIN /*application='Dummy'*/
110
+  (2.7ms) 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, "role" integer NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/
111
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20250226042622') RETURNING "version" /*application='Dummy'*/
112
+ TRANSACTION (0.1ms) COMMIT /*application='Dummy'*/
113
+ Migrating to CreateSnfCoreCategories (20250226064444)
114
+ TRANSACTION (0.3ms) BEGIN /*application='Dummy'*/
115
+  (3.2ms) 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, CONSTRAINT "fk_rails_26a925b05d"
116
+ FOREIGN KEY ("parent_id")
117
+ REFERENCES "snf_core_categories" ("id")
118
+ ) /*application='Dummy'*/
119
+  (0.5ms) CREATE INDEX "index_snf_core_categories_on_parent_id" ON "snf_core_categories" ("parent_id") /*application='Dummy'*/
120
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20250226064444') RETURNING "version" /*application='Dummy'*/
121
+ TRANSACTION (0.4ms) COMMIT /*application='Dummy'*/
122
+  (0.3ms) SELECT pg_advisory_unlock(869468062957908540) /*application='Dummy'*/
123
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
124
+  (0.2ms) SELECT pg_try_advisory_lock(869468062957908540) /*application='Dummy'*/
125
+ ActiveRecord::SchemaMigration Load (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
126
+ ActiveRecord::InternalMetadata Load (1.1ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/
127
+  (0.2ms) SELECT pg_advisory_unlock(869468062957908540) /*application='Dummy'*/
128
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
129
+ ActiveRecord::SchemaMigration Load (1.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
130
+ ActiveRecord::InternalMetadata Load (1.4ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/
131
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
132
+ 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'*/
133
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
134
+ 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'*/
135
+ SQL (0.1ms) SET search_path TO public /*application='Dummy'*/
136
+  (83.6ms) DROP DATABASE IF EXISTS "snf_dev" /*application='Dummy'*/
137
+ SQL (0.1ms) SET search_path TO public /*application='Dummy'*/
138
+  (41.2ms) DROP DATABASE IF EXISTS "snf_test" /*application='Dummy'*/
139
+ SQL (0.1ms) SET search_path TO public /*application='Dummy'*/
140
+  (158.0ms) CREATE DATABASE "snf_dev" ENCODING = 'unicode' /*application='Dummy'*/
141
+ SQL (0.1ms) SET search_path TO public /*application='Dummy'*/
142
+  (86.1ms) CREATE DATABASE "snf_test" ENCODING = 'unicode' /*application='Dummy'*/
143
+ SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" SCHEMA pg_catalog /*application='Dummy'*/
144
+  (2.7ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY) /*application='Dummy'*/
145
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
146
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES (0) /*application='Dummy'*/
147
+  (1.3ms) 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'*/
148
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/
149
+ ActiveRecord::InternalMetadata Create (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'development', '2025-02-26 07:05:03.401042', '2025-02-26 07:05:03.401045') RETURNING "key" /*application='Dummy'*/
150
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/
151
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'schema_sha1' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/
152
+ ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('schema_sha1', '9c6777daaa6ce85cc74b26c38000144a7834a947', '2025-02-26 07:05:03.404749', '2025-02-26 07:05:03.404751') RETURNING "key" /*application='Dummy'*/
153
+  (0.1ms) SELECT pg_try_advisory_lock(869468062957908540) /*application='Dummy'*/
154
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
155
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/
156
+ Migrating to CreateSnfCoreUsers (20250226042622)
157
+ TRANSACTION (0.1ms) BEGIN /*application='Dummy'*/
158
+  (3.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, "role" integer NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/
159
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20250226042622') RETURNING "version" /*application='Dummy'*/
160
+ TRANSACTION (0.3ms) COMMIT /*application='Dummy'*/
161
+ Migrating to CreateSnfCoreCategories (20250226064444)
162
+ TRANSACTION (0.3ms) BEGIN /*application='Dummy'*/
163
+  (3.2ms) 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, CONSTRAINT "fk_rails_26a925b05d"
164
+ FOREIGN KEY ("parent_id")
165
+ REFERENCES "snf_core_categories" ("id")
166
+ ) /*application='Dummy'*/
167
+  (0.5ms) CREATE INDEX "index_snf_core_categories_on_parent_id" ON "snf_core_categories" ("parent_id") /*application='Dummy'*/
168
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20250226064444') RETURNING "version" /*application='Dummy'*/
169
+ TRANSACTION (0.2ms) COMMIT /*application='Dummy'*/
170
+  (0.3ms) SELECT pg_advisory_unlock(869468062957908540) /*application='Dummy'*/
171
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
172
+  (0.2ms) SELECT pg_try_advisory_lock(869468062957908540) /*application='Dummy'*/
173
+ ActiveRecord::SchemaMigration Load (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
174
+ ActiveRecord::InternalMetadata Load (4.1ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/
175
+  (0.2ms) SELECT pg_advisory_unlock(869468062957908540) /*application='Dummy'*/
176
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
177
+ ActiveRecord::SchemaMigration Load (1.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
178
+ 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'*/
179
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
180
+ 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'*/
181
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
182
+ 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'*/
183
+ SQL (0.2ms) SET search_path TO public /*application='Dummy'*/
184
+  (93.8ms) DROP DATABASE IF EXISTS "snf_dev" /*application='Dummy'*/
185
+ SQL (0.1ms) SET search_path TO public /*application='Dummy'*/
186
+  (40.8ms) DROP DATABASE IF EXISTS "snf_test" /*application='Dummy'*/
187
+ SQL (0.1ms) SET search_path TO public /*application='Dummy'*/
188
+  (156.0ms) CREATE DATABASE "snf_dev" ENCODING = 'unicode' /*application='Dummy'*/
189
+ SQL (0.1ms) SET search_path TO public /*application='Dummy'*/
190
+  (82.2ms) CREATE DATABASE "snf_test" ENCODING = 'unicode' /*application='Dummy'*/
191
+ SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" SCHEMA pg_catalog /*application='Dummy'*/
192
+  (4.8ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY) /*application='Dummy'*/
193
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
194
+  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES (0) /*application='Dummy'*/
195
+  (1.4ms) 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'*/
196
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/
197
+ ActiveRecord::InternalMetadata Create (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'development', '2025-02-26 07:06:55.368902', '2025-02-26 07:06:55.368904') RETURNING "key" /*application='Dummy'*/
198
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/
199
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'schema_sha1' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/
200
+ ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('schema_sha1', '9c6777daaa6ce85cc74b26c38000144a7834a947', '2025-02-26 07:06:55.371226', '2025-02-26 07:06:55.371227') RETURNING "key" /*application='Dummy'*/
201
+  (0.1ms) SELECT pg_try_advisory_lock(869468062957908540) /*application='Dummy'*/
202
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
203
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/
204
+ Migrating to CreateSnfCoreUsers (20250226042622)
205
+ TRANSACTION (0.1ms) BEGIN /*application='Dummy'*/
206
+  (2.5ms) 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, "role" integer NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/
207
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20250226042622') RETURNING "version" /*application='Dummy'*/
208
+ TRANSACTION (0.4ms) COMMIT /*application='Dummy'*/
209
+ Migrating to CreateSnfCoreCategories (20250226064444)
210
+ TRANSACTION (0.3ms) BEGIN /*application='Dummy'*/
211
+  (2.9ms) 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, CONSTRAINT "fk_rails_26a925b05d"
212
+ FOREIGN KEY ("parent_id")
213
+ REFERENCES "snf_core_categories" ("id")
214
+ ) /*application='Dummy'*/
215
+  (0.4ms) CREATE INDEX "index_snf_core_categories_on_parent_id" ON "snf_core_categories" ("parent_id") /*application='Dummy'*/
216
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20250226064444') RETURNING "version" /*application='Dummy'*/
217
+ TRANSACTION (0.3ms) COMMIT /*application='Dummy'*/
218
+  (0.2ms) SELECT pg_advisory_unlock(869468062957908540) /*application='Dummy'*/
219
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
220
+ ActiveRecord::SchemaMigration Load (1.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
221
+ ActiveRecord::SchemaMigration Load (1.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
222
+ 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'*/
223
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
224
+ 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'*/
225
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
226
+ 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'*/
227
+ SQL (0.2ms) SET search_path TO public /*application='Dummy'*/
228
+  (95.7ms) DROP DATABASE IF EXISTS "snf_dev" /*application='Dummy'*/
229
+ SQL (0.1ms) SET search_path TO public /*application='Dummy'*/
230
+  (40.8ms) DROP DATABASE IF EXISTS "snf_test" /*application='Dummy'*/
231
+ SQL (0.1ms) SET search_path TO public /*application='Dummy'*/
232
+  (10.8ms) DROP DATABASE IF EXISTS "snf_prod" /*application='Dummy'*/
233
+ SQL (0.1ms) SET search_path TO public /*application='Dummy'*/
234
+  (21.0ms) DROP DATABASE IF EXISTS "snf_test" /*application='Dummy'*/
235
+  (187.1ms) CREATE DATABASE "snf_test" ENCODING = 'unicode' /*application='Dummy'*/
236
+ SQL (42.9ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" SCHEMA pg_catalog /*application='Dummy'*/
237
+  (0.3ms) DROP TABLE IF EXISTS "snf_core_categories" CASCADE /*application='Dummy'*/
238
+  (14.8ms) 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'*/
239
+  (2.4ms) CREATE INDEX "index_snf_core_categories_on_parent_id" ON "snf_core_categories" ("parent_id") /*application='Dummy'*/
240
+  (0.2ms) DROP TABLE IF EXISTS "snf_core_users" CASCADE /*application='Dummy'*/
241
+  (4.7ms) 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, "role" integer NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/
242
+  (4.2ms) ALTER TABLE "snf_core_categories" ADD CONSTRAINT "fk_rails_26a925b05d"
243
+ FOREIGN KEY ("parent_id")
244
+ REFERENCES "snf_core_categories" ("id")
245
+ /*application='Dummy'*/
246
+  (4.2ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY) /*application='Dummy'*/
247
+ ActiveRecord::SchemaMigration Load (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
248
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES (20250226064444) /*application='Dummy'*/
249
+  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES
250
+ (20250226042622); /*application='Dummy'*/
251
+  (4.8ms) 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'*/
252
+ 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'*/
253
+ ActiveRecord::InternalMetadata Create (0.7ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'development', '2025-02-26 07:08:44.690987', '2025-02-26 07:08:44.690988') RETURNING "key" /*application='Dummy'*/
254
+ 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'*/
255
+ ActiveRecord::InternalMetadata Update (0.4ms) UPDATE "ar_internal_metadata" SET "value" = 'test', "updated_at" = '2025-02-26 07:08:44.693480' WHERE "ar_internal_metadata"."key" = 'environment' /*application='Dummy'*/
256
+ 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'*/
257
+ ActiveRecord::InternalMetadata Create (0.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('schema_sha1', '74231a680550f2b4150bcfcc8a582c913086503c', '2025-02-26 07:08:44.694951', '2025-02-26 07:08:44.694952') RETURNING "key" /*application='Dummy'*/
258
+ SQL (0.2ms) SET search_path TO public /*application='Dummy'*/
259
+  (25.5ms) DROP DATABASE IF EXISTS "snf_dev" /*application='Dummy'*/
260
+ SQL (0.1ms) SET search_path TO public /*application='Dummy'*/
261
+  (56.6ms) DROP DATABASE IF EXISTS "snf_test" /*application='Dummy'*/
262
+ SQL (0.1ms) SET search_path TO public /*application='Dummy'*/
263
+  (155.1ms) CREATE DATABASE "snf_dev" ENCODING = 'unicode' /*application='Dummy'*/
264
+ SQL (0.1ms) SET search_path TO public /*application='Dummy'*/
265
+  (75.2ms) CREATE DATABASE "snf_test" ENCODING = 'unicode' /*application='Dummy'*/
266
+ SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" SCHEMA pg_catalog /*application='Dummy'*/
267
+  (4.7ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY) /*application='Dummy'*/
268
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
269
+  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES (0) /*application='Dummy'*/
270
+  (1.6ms) 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'*/
271
+ 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'*/
272
+ ActiveRecord::InternalMetadata Create (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'development', '2025-02-26 10:22:51.984997', '2025-02-26 10:22:51.984999') RETURNING "key" /*application='Dummy'*/
273
+ 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'*/
274
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'schema_sha1' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/
275
+ ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('schema_sha1', '9c6777daaa6ce85cc74b26c38000144a7834a947', '2025-02-26 10:22:51.987347', '2025-02-26 10:22:51.987348') RETURNING "key" /*application='Dummy'*/
276
+  (0.1ms) SELECT pg_try_advisory_lock(869468062957908540) /*application='Dummy'*/
277
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
278
+ 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'*/
279
+ Migrating to CreateSnfCoreUsers (20250226042622)
280
+ TRANSACTION (0.1ms) BEGIN /*application='Dummy'*/
281
+  (2.6ms) 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, "role" integer NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/
282
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20250226042622') RETURNING "version" /*application='Dummy'*/
283
+ TRANSACTION (0.1ms) COMMIT /*application='Dummy'*/
284
+ Migrating to CreateSnfCoreCategories (20250226064444)
285
+ TRANSACTION (0.2ms) BEGIN /*application='Dummy'*/
286
+  (2.5ms) 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, CONSTRAINT "fk_rails_26a925b05d"
287
+ FOREIGN KEY ("parent_id")
288
+ REFERENCES "snf_core_categories" ("id")
289
+ ) /*application='Dummy'*/
290
+  (0.5ms) CREATE INDEX "index_snf_core_categories_on_parent_id" ON "snf_core_categories" ("parent_id") /*application='Dummy'*/
291
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20250226064444') RETURNING "version" /*application='Dummy'*/
292
+ TRANSACTION (0.2ms) COMMIT /*application='Dummy'*/
293
+ Migrating to CreateSnfCoreBusinesses (20250226080323)
294
+ TRANSACTION (0.2ms) BEGIN /*application='Dummy'*/
295
+  (2.3ms) 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 NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL, CONSTRAINT "fk_rails_a61edcbd4b"
296
+ FOREIGN KEY ("user_id")
297
+ REFERENCES "snf_core_users" ("id")
298
+ ) /*application='Dummy'*/
299
+  (0.4ms) CREATE INDEX "index_snf_core_businesses_on_user_id" ON "snf_core_businesses" ("user_id") /*application='Dummy'*/
300
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20250226080323') RETURNING "version" /*application='Dummy'*/
301
+ TRANSACTION (0.2ms) COMMIT /*application='Dummy'*/
302
+  (0.3ms) SELECT pg_advisory_unlock(869468062957908540) /*application='Dummy'*/
303
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
304
+ ActiveRecord::SchemaMigration Load (4.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
305
+ ActiveRecord::InternalMetadata Load (1.4ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/
306
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
307
+ 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'*/
308
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
309
+ 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'*/
310
+ SQL (0.1ms) SET search_path TO public /*application='Dummy'*/
311
+  (99.2ms) DROP DATABASE IF EXISTS "snf_dev" /*application='Dummy'*/
312
+ SQL (0.1ms) SET search_path TO public /*application='Dummy'*/
313
+  (43.4ms) DROP DATABASE IF EXISTS "snf_test" /*application='Dummy'*/
314
+ SQL (0.1ms) SET search_path TO public /*application='Dummy'*/
315
+  (11.8ms) DROP DATABASE IF EXISTS "snf_prod" /*application='Dummy'*/
316
+ SQL (0.5ms) SET search_path TO public /*application='Dummy'*/
317
+  (218.9ms) CREATE DATABASE "snf_dev" ENCODING = 'unicode' /*application='Dummy'*/
318
+ SQL (2.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" SCHEMA pg_catalog /*application='Dummy'*/
319
+  (0.1ms) DROP TABLE IF EXISTS "snf_core_businesses" CASCADE /*application='Dummy'*/
320
+  (7.7ms) 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 NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/
321
+  (1.3ms) CREATE INDEX "index_snf_core_businesses_on_user_id" ON "snf_core_businesses" ("user_id") /*application='Dummy'*/
322
+  (0.2ms) DROP TABLE IF EXISTS "snf_core_categories" CASCADE /*application='Dummy'*/
323
+  (3.6ms) 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'*/
324
+  (1.2ms) CREATE INDEX "index_snf_core_categories_on_parent_id" ON "snf_core_categories" ("parent_id") /*application='Dummy'*/
325
+  (0.2ms) DROP TABLE IF EXISTS "snf_core_users" CASCADE /*application='Dummy'*/
326
+  (2.9ms) 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, "role" integer NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/
327
+  (2.7ms) ALTER TABLE "snf_core_businesses" ADD CONSTRAINT "fk_rails_a61edcbd4b"
328
+ FOREIGN KEY ("user_id")
329
+ REFERENCES "snf_core_users" ("id")
330
+ /*application='Dummy'*/
331
+  (1.8ms) ALTER TABLE "snf_core_categories" ADD CONSTRAINT "fk_rails_26a925b05d"
332
+ FOREIGN KEY ("parent_id")
333
+ REFERENCES "snf_core_categories" ("id")
334
+ /*application='Dummy'*/
335
+  (3.1ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY) /*application='Dummy'*/
336
+ ActiveRecord::SchemaMigration Load (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
337
+  (2.0ms) INSERT INTO "schema_migrations" (version) VALUES (20250226080323) /*application='Dummy'*/
338
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES
339
+ (20250226064444),
340
+ (20250226042622); /*application='Dummy'*/
341
+  (5.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'*/
342
+ ActiveRecord::InternalMetadata Load (1.4ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/
343
+ ActiveRecord::InternalMetadata Create (1.0ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'development', '2025-02-26 10:34:38.756229', '2025-02-26 10:34:38.756230') RETURNING "key" /*application='Dummy'*/
344
+ 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'*/
345
+ 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'*/
346
+ ActiveRecord::InternalMetadata Create (0.5ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('schema_sha1', '3c14d9554d563060827ae5b0b9656435bf73e37b', '2025-02-26 10:34:38.760206', '2025-02-26 10:34:38.760206') RETURNING "key" /*application='Dummy'*/
347
+  (0.3ms) SELECT pg_try_advisory_lock(869468062957908540) /*application='Dummy'*/
348
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
349
+ 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'*/
350
+  (0.3ms) SELECT pg_advisory_unlock(869468062957908540) /*application='Dummy'*/
351
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
352
+ ActiveRecord::SchemaMigration Load (1.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
353
+ 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'*/
354
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
355
+ 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'*/
356
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
357
+ 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'*/
358
+ SQL (0.2ms) SET search_path TO public /*application='Dummy'*/
359
+  (59.2ms) DROP DATABASE IF EXISTS "snf_dev" /*application='Dummy'*/
360
+ SQL (0.1ms) SET search_path TO public /*application='Dummy'*/
361
+  (10.2ms) DROP DATABASE IF EXISTS "snf_test" /*application='Dummy'*/
362
+ SQL (0.1ms) SET search_path TO public /*application='Dummy'*/
363
+  (148.4ms) CREATE DATABASE "snf_dev" ENCODING = 'unicode' /*application='Dummy'*/
364
+ SQL (0.1ms) SET search_path TO public /*application='Dummy'*/
365
+  (85.0ms) CREATE DATABASE "snf_test" ENCODING = 'unicode' /*application='Dummy'*/
366
+ SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" SCHEMA pg_catalog /*application='Dummy'*/
367
+  (9.0ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY) /*application='Dummy'*/
368
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
369
+  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES (0) /*application='Dummy'*/
370
+  (1.3ms) 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'*/
371
+ ActiveRecord::InternalMetadata Load (0.5ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/
372
+ ActiveRecord::InternalMetadata Create (0.7ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'development', '2025-02-26 10:34:49.532783', '2025-02-26 10:34:49.532785') RETURNING "key" /*application='Dummy'*/
373
+ 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'*/
374
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'schema_sha1' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/
375
+ ActiveRecord::InternalMetadata Create (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('schema_sha1', '9c6777daaa6ce85cc74b26c38000144a7834a947', '2025-02-26 10:34:49.535702', '2025-02-26 10:34:49.535703') RETURNING "key" /*application='Dummy'*/
376
+  (0.1ms) SELECT pg_try_advisory_lock(869468062957908540) /*application='Dummy'*/
377
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
378
+ 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'*/
379
+ Migrating to CreateSnfCoreUsers (20250226042622)
380
+ TRANSACTION (0.1ms) BEGIN /*application='Dummy'*/
381
+  (24.4ms) 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, "role" integer NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/
382
+ ActiveRecord::SchemaMigration Create (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20250226042622') RETURNING "version" /*application='Dummy'*/
383
+ TRANSACTION (21.0ms) COMMIT /*application='Dummy'*/
384
+ Migrating to CreateSnfCoreCategories (20250226064444)
385
+ TRANSACTION (0.3ms) BEGIN /*application='Dummy'*/
386
+  (23.8ms) 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, CONSTRAINT "fk_rails_26a925b05d"
387
+ FOREIGN KEY ("parent_id")
388
+ REFERENCES "snf_core_categories" ("id")
389
+ ) /*application='Dummy'*/
390
+  (0.5ms) CREATE INDEX "index_snf_core_categories_on_parent_id" ON "snf_core_categories" ("parent_id") /*application='Dummy'*/
391
+ ActiveRecord::SchemaMigration Create (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20250226064444') RETURNING "version" /*application='Dummy'*/
392
+ TRANSACTION (0.4ms) COMMIT /*application='Dummy'*/
393
+ Migrating to CreateSnfCoreBusinesses (20250226080323)
394
+ TRANSACTION (0.5ms) BEGIN /*application='Dummy'*/
395
+  (4.4ms) 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 NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL, CONSTRAINT "fk_rails_a61edcbd4b"
396
+ FOREIGN KEY ("user_id")
397
+ REFERENCES "snf_core_users" ("id")
398
+ ) /*application='Dummy'*/
399
+  (0.9ms) CREATE INDEX "index_snf_core_businesses_on_user_id" ON "snf_core_businesses" ("user_id") /*application='Dummy'*/
400
+ ActiveRecord::SchemaMigration Create (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20250226080323') RETURNING "version" /*application='Dummy'*/
401
+ TRANSACTION (22.6ms) COMMIT /*application='Dummy'*/
402
+  (4.8ms) SELECT pg_advisory_unlock(869468062957908540) /*application='Dummy'*/
403
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
404
+  (0.2ms) SELECT pg_try_advisory_lock(869468062957908540) /*application='Dummy'*/
405
+ ActiveRecord::SchemaMigration Load (1.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
406
+ 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'*/
407
+  (0.2ms) SELECT pg_advisory_unlock(869468062957908540) /*application='Dummy'*/
408
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
409
+ ActiveRecord::SchemaMigration Load (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
410
+ ActiveRecord::InternalMetadata Load (0.7ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/
411
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
412
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/
413
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
414
+ 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'*/
415
+ SQL (0.1ms) SET search_path TO public /*application='Dummy'*/
416
+  (72.0ms) DROP DATABASE IF EXISTS "snf_dev" /*application='Dummy'*/
417
+ SQL (0.1ms) SET search_path TO public /*application='Dummy'*/
418
+  (43.1ms) DROP DATABASE IF EXISTS "snf_test" /*application='Dummy'*/
419
+ SQL (0.1ms) SET search_path TO public /*application='Dummy'*/
420
+  (139.4ms) CREATE DATABASE "snf_dev" ENCODING = 'unicode' /*application='Dummy'*/
421
+ SQL (0.1ms) SET search_path TO public /*application='Dummy'*/
422
+  (71.3ms) CREATE DATABASE "snf_test" ENCODING = 'unicode' /*application='Dummy'*/
423
+ SQL (13.9ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" SCHEMA pg_catalog /*application='Dummy'*/
424
+  (29.9ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY) /*application='Dummy'*/
425
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
426
+  (6.1ms) INSERT INTO "schema_migrations" (version) VALUES (0) /*application='Dummy'*/
427
+  (44.5ms) 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'*/
428
+ ActiveRecord::InternalMetadata Load (0.5ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/
429
+ ActiveRecord::InternalMetadata Create (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'development', '2025-02-26 10:42:02.473752', '2025-02-26 10:42:02.473758') RETURNING "key" /*application='Dummy'*/
430
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/
431
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'schema_sha1' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/
432
+ ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('schema_sha1', '9c6777daaa6ce85cc74b26c38000144a7834a947', '2025-02-26 10:42:02.477768', '2025-02-26 10:42:02.477770') RETURNING "key" /*application='Dummy'*/
433
+  (0.2ms) SELECT pg_try_advisory_lock(869468062957908540) /*application='Dummy'*/
434
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
435
+ 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'*/
436
+ Migrating to CreateSnfCoreUsers (20250226042622)
437
+ TRANSACTION (0.1ms) BEGIN /*application='Dummy'*/
438
+  (33.3ms) 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, "role" integer NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/
439
+ ActiveRecord::SchemaMigration Create (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20250226042622') RETURNING "version" /*application='Dummy'*/
440
+ TRANSACTION (0.3ms) COMMIT /*application='Dummy'*/
441
+ Migrating to CreateSnfCoreCategories (20250226064444)
442
+ TRANSACTION (0.6ms) BEGIN /*application='Dummy'*/
443
+  (7.4ms) 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, CONSTRAINT "fk_rails_26a925b05d"
444
+ FOREIGN KEY ("parent_id")
445
+ REFERENCES "snf_core_categories" ("id")
446
+ ) /*application='Dummy'*/
447
+  (1.4ms) CREATE INDEX "index_snf_core_categories_on_parent_id" ON "snf_core_categories" ("parent_id") /*application='Dummy'*/
448
+ ActiveRecord::SchemaMigration Create (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20250226064444') RETURNING "version" /*application='Dummy'*/
449
+ TRANSACTION (0.4ms) COMMIT /*application='Dummy'*/
450
+ Migrating to CreateSnfCoreBusinesses (20250226080323)
451
+ TRANSACTION (0.5ms) BEGIN /*application='Dummy'*/
452
+  (6.1ms) 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 NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL, CONSTRAINT "fk_rails_a61edcbd4b"
453
+ FOREIGN KEY ("user_id")
454
+ REFERENCES "snf_core_users" ("id")
455
+ ) /*application='Dummy'*/
456
+  (1.3ms) CREATE INDEX "index_snf_core_businesses_on_user_id" ON "snf_core_businesses" ("user_id") /*application='Dummy'*/
457
+ ActiveRecord::SchemaMigration Create (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20250226080323') RETURNING "version" /*application='Dummy'*/
458
+ TRANSACTION (0.5ms) COMMIT /*application='Dummy'*/
459
+  (0.6ms) SELECT pg_advisory_unlock(869468062957908540) /*application='Dummy'*/
460
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
461
+ ActiveRecord::SchemaMigration Load (2.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
462
+ ActiveRecord::SchemaMigration Load (1.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
463
+ ActiveRecord::InternalMetadata Load (2.2ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/
464
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
465
+ 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'*/
466
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
467
+ 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'*/
468
+ SQL (0.2ms) SET search_path TO public /*application='Dummy'*/
469
+  (78.0ms) DROP DATABASE IF EXISTS "snf_test" /*application='Dummy'*/
470
+  (141.0ms) CREATE DATABASE "snf_test" ENCODING = 'unicode' /*application='Dummy'*/
471
+ SQL (21.5ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" SCHEMA pg_catalog /*application='Dummy'*/
472
+  (0.4ms) DROP TABLE IF EXISTS "snf_core_businesses" CASCADE /*application='Dummy'*/
473
+  (7.5ms) 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 NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/
474
+  (1.3ms) CREATE INDEX "index_snf_core_businesses_on_user_id" ON "snf_core_businesses" ("user_id") /*application='Dummy'*/
475
+  (0.2ms) DROP TABLE IF EXISTS "snf_core_categories" CASCADE /*application='Dummy'*/
476
+  (2.1ms) 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'*/
477
+  (0.8ms) CREATE INDEX "index_snf_core_categories_on_parent_id" ON "snf_core_categories" ("parent_id") /*application='Dummy'*/
478
+  (0.2ms) DROP TABLE IF EXISTS "snf_core_users" CASCADE /*application='Dummy'*/
479
+  (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, "role" integer NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/
480
+  (2.4ms) ALTER TABLE "snf_core_businesses" ADD CONSTRAINT "fk_rails_a61edcbd4b"
481
+ FOREIGN KEY ("user_id")
482
+ REFERENCES "snf_core_users" ("id")
483
+ /*application='Dummy'*/
484
+  (0.7ms) ALTER TABLE "snf_core_categories" ADD CONSTRAINT "fk_rails_26a925b05d"
485
+ FOREIGN KEY ("parent_id")
486
+ REFERENCES "snf_core_categories" ("id")
487
+ /*application='Dummy'*/
488
+  (1.7ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY) /*application='Dummy'*/
489
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
490
+  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES (20250226080323) /*application='Dummy'*/
491
+  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES
492
+ (20250226064444),
493
+ (20250226042622); /*application='Dummy'*/
494
+  (2.4ms) 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'*/
495
+ ActiveRecord::InternalMetadata Load (0.6ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/
496
+ ActiveRecord::InternalMetadata Create (0.5ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'development', '2025-02-26 10:44:07.645723', '2025-02-26 10:44:07.645725') RETURNING "key" /*application='Dummy'*/
497
+ 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'*/
498
+ ActiveRecord::InternalMetadata Update (0.3ms) UPDATE "ar_internal_metadata" SET "value" = 'test', "updated_at" = '2025-02-26 10:44:07.648078' WHERE "ar_internal_metadata"."key" = 'environment' /*application='Dummy'*/
499
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'schema_sha1' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/
500
+ ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('schema_sha1', '3c14d9554d563060827ae5b0b9656435bf73e37b', '2025-02-26 10:44:07.649697', '2025-02-26 10:44:07.649697') RETURNING "key" /*application='Dummy'*/
501
+  (0.3ms) SELECT pg_try_advisory_lock(869468062957908540) /*application='Dummy'*/
502
+ ActiveRecord::SchemaMigration Load (2.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
503
+ Migrating to CreateSnfCoreBusinesses (20250226080323)
504
+ TRANSACTION (0.1ms) BEGIN /*application='Dummy'*/
505
+  (5.5ms) DROP TABLE "snf_core_businesses" /*application='Dummy'*/
506
+ ActiveRecord::SchemaMigration Destroy (0.5ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20250226080323' /*application='Dummy'*/
507
+ TRANSACTION (3.3ms) COMMIT /*application='Dummy'*/
508
+  (0.3ms) SELECT pg_advisory_unlock(869468062957908540) /*application='Dummy'*/
509
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
510
+  (0.2ms) SELECT pg_try_advisory_lock(869468062957908540) /*application='Dummy'*/
511
+ ActiveRecord::SchemaMigration Load (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
512
+ ActiveRecord::InternalMetadata Load (1.4ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/
513
+  (0.3ms) SELECT pg_advisory_unlock(869468062957908540) /*application='Dummy'*/
514
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
515
+ ActiveRecord::SchemaMigration Load (1.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
516
+  (0.2ms) SELECT pg_try_advisory_lock(869468062957908540) /*application='Dummy'*/
517
+ ActiveRecord::SchemaMigration Load (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
518
+ ActiveRecord::InternalMetadata Load (1.1ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/
519
+ Migrating to CreateSnfCoreBusinesses (20250226080323)
520
+ TRANSACTION (0.1ms) BEGIN /*application='Dummy'*/
521
+  (10.2ms) 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 NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL, CONSTRAINT "fk_rails_a61edcbd4b"
522
+ FOREIGN KEY ("user_id")
523
+ REFERENCES "snf_core_users" ("id")
524
+ ) /*application='Dummy'*/
525
+  (1.3ms) CREATE INDEX "index_snf_core_businesses_on_user_id" ON "snf_core_businesses" ("user_id") /*application='Dummy'*/
526
+ ActiveRecord::SchemaMigration Create (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20250226080323') RETURNING "version" /*application='Dummy'*/
527
+ TRANSACTION (0.5ms) COMMIT /*application='Dummy'*/
528
+  (0.5ms) SELECT pg_advisory_unlock(869468062957908540) /*application='Dummy'*/
529
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
530
+  (1.2ms) SELECT pg_try_advisory_lock(869468062957908540) /*application='Dummy'*/
531
+ ActiveRecord::SchemaMigration Load (4.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
532
+ ActiveRecord::InternalMetadata Load (3.7ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/
533
+ Migrating to CreateSnfCoreAddresses (20250226110217)
534
+ TRANSACTION (0.1ms) BEGIN /*application='Dummy'*/
535
+  (21.6ms) 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 NOT NULL, "longitude" decimal NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/
536
+ ActiveRecord::SchemaMigration Create (1.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20250226110217') RETURNING "version" /*application='Dummy'*/
537
+ TRANSACTION (2.4ms) COMMIT /*application='Dummy'*/
538
+  (0.8ms) SELECT pg_advisory_unlock(869468062957908540) /*application='Dummy'*/
539
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
540
+ ActiveRecord::SchemaMigration Load (5.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
541
+  (0.2ms) SELECT pg_try_advisory_lock(869468062957908540) /*application='Dummy'*/
542
+ ActiveRecord::SchemaMigration Load (1.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
543
+ ActiveRecord::InternalMetadata Load (1.4ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/
544
+  (0.3ms) SELECT pg_advisory_unlock(869468062957908540) /*application='Dummy'*/
545
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
546
+ ActiveRecord::SchemaMigration Load (1.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
547
+ 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'*/
548
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
549
+ 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'*/
550
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
551
+ 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'*/
552
+ SQL (0.2ms) SET search_path TO public /*application='Dummy'*/
553
+  (81.0ms) DROP DATABASE IF EXISTS "snf_dev" /*application='Dummy'*/
554
+ SQL (0.1ms) SET search_path TO public /*application='Dummy'*/
555
+  (42.1ms) DROP DATABASE IF EXISTS "snf_test" /*application='Dummy'*/
556
+ SQL (0.1ms) SET search_path TO public /*application='Dummy'*/
557
+  (11.7ms) DROP DATABASE IF EXISTS "snf_prod" /*application='Dummy'*/
558
+ SQL (0.2ms) SET search_path TO public /*application='Dummy'*/
559
+  (203.7ms) CREATE DATABASE "snf_dev" ENCODING = 'unicode' /*application='Dummy'*/
560
+ SQL (0.1ms) SET search_path TO public /*application='Dummy'*/
561
+  (83.6ms) CREATE DATABASE "snf_test" ENCODING = 'unicode' /*application='Dummy'*/
562
+  (20.4ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY) /*application='Dummy'*/
563
+  (4.0ms) 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'*/
564
+  (0.1ms) SELECT pg_try_advisory_lock(869468062957908540) /*application='Dummy'*/
565
+ ActiveRecord::SchemaMigration Load (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
566
+ ActiveRecord::InternalMetadata Load (3.1ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/
567
+ ActiveRecord::InternalMetadata Create (1.0ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'development', '2025-02-26 11:27:15.618066', '2025-02-26 11:27:15.618068') RETURNING "key" /*application='Dummy'*/
568
+ Migrating to CreateSnfCoreUsers (20250226042622)
569
+ TRANSACTION (0.2ms) BEGIN /*application='Dummy'*/
570
+  (7.1ms) 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, "role" integer NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/
571
+ ActiveRecord::SchemaMigration Create (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ('20250226042622') RETURNING "version" /*application='Dummy'*/
572
+ TRANSACTION (0.2ms) COMMIT /*application='Dummy'*/
573
+  (0.4ms) SELECT pg_advisory_unlock(869468062957908540) /*application='Dummy'*/
574
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
575
+ ActiveRecord::SchemaMigration Load (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
576
+ 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'*/
577
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
578
+ 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'*/
579
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
580
+ 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'*/
581
+ SQL (0.1ms) SET search_path TO public /*application='Dummy'*/
582
+  (86.6ms) DROP DATABASE IF EXISTS "snf_dev" /*application='Dummy'*/
583
+ SQL (0.1ms) SET search_path TO public /*application='Dummy'*/
584
+  (43.1ms) DROP DATABASE IF EXISTS "snf_test" /*application='Dummy'*/
585
+ SQL (0.1ms) SET search_path TO public /*application='Dummy'*/
586
+  (11.7ms) DROP DATABASE IF EXISTS "snf_prod" /*application='Dummy'*/
587
+ SQL (0.2ms) SET search_path TO public /*application='Dummy'*/
588
+  (187.7ms) CREATE DATABASE "snf_dev" ENCODING = 'unicode' /*application='Dummy'*/
589
+ SQL (0.1ms) SET search_path TO public /*application='Dummy'*/
590
+  (78.4ms) CREATE DATABASE "snf_test" ENCODING = 'unicode' /*application='Dummy'*/
591
+ SQL (2.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" SCHEMA pg_catalog /*application='Dummy'*/
592
+  (0.1ms) DROP TABLE IF EXISTS "snf_core_addresses" CASCADE /*application='Dummy'*/
593
+  (20.2ms) 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 NOT NULL, "longitude" decimal NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/
594
+  (0.5ms) DROP TABLE IF EXISTS "snf_core_businesses" CASCADE /*application='Dummy'*/
595
+  (4.7ms) 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 NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/
596
+  (1.8ms) CREATE INDEX "index_snf_core_businesses_on_user_id" ON "snf_core_businesses" ("user_id") /*application='Dummy'*/
597
+  (0.2ms) DROP TABLE IF EXISTS "snf_core_categories" CASCADE /*application='Dummy'*/
598
+  (4.4ms) 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'*/
599
+  (1.9ms) CREATE INDEX "index_snf_core_categories_on_parent_id" ON "snf_core_categories" ("parent_id") /*application='Dummy'*/
600
+  (0.2ms) DROP TABLE IF EXISTS "snf_core_users" CASCADE /*application='Dummy'*/
601
+  (4.8ms) 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, "role" integer NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/
602
+  (4.2ms) ALTER TABLE "snf_core_businesses" ADD CONSTRAINT "fk_rails_a61edcbd4b"
603
+ FOREIGN KEY ("user_id")
604
+ REFERENCES "snf_core_users" ("id")
605
+ /*application='Dummy'*/
606
+  (1.7ms) ALTER TABLE "snf_core_categories" ADD CONSTRAINT "fk_rails_26a925b05d"
607
+ FOREIGN KEY ("parent_id")
608
+ REFERENCES "snf_core_categories" ("id")
609
+ /*application='Dummy'*/
610
+  (4.7ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY) /*application='Dummy'*/
611
+ ActiveRecord::SchemaMigration Load (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
612
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES (20250226110217) /*application='Dummy'*/
613
+  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES
614
+ (20250226080323),
615
+ (20250226064444),
616
+ (20250226042622); /*application='Dummy'*/
617
+  (4.3ms) 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'*/
618
+ ActiveRecord::InternalMetadata Load (1.8ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/
619
+ ActiveRecord::InternalMetadata Create (0.6ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'development', '2025-02-26 11:29:04.213317', '2025-02-26 11:29:04.213318') RETURNING "key" /*application='Dummy'*/
620
+ 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'*/
621
+ 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'*/
622
+ ActiveRecord::InternalMetadata Create (0.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('schema_sha1', '6acb7773df341c11aaff06cdc73c9d697e967a14', '2025-02-26 11:29:04.216145', '2025-02-26 11:29:04.216146') RETURNING "key" /*application='Dummy'*/
623
+  (0.3ms) SELECT pg_try_advisory_lock(869468062957908540) /*application='Dummy'*/
624
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
625
+ ActiveRecord::InternalMetadata Load (0.5ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/
626
+  (0.2ms) SELECT pg_advisory_unlock(869468062957908540) /*application='Dummy'*/
627
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
628
+ ActiveRecord::SchemaMigration Load (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
629
+ 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'*/
630
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
631
+ 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'*/
632
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
633
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/
634
+ SQL (0.2ms) SET search_path TO public /*application='Dummy'*/
635
+  (78.5ms) DROP DATABASE IF EXISTS "snf_dev" /*application='Dummy'*/
636
+ SQL (0.1ms) SET search_path TO public /*application='Dummy'*/
637
+  (33.3ms) DROP DATABASE IF EXISTS "snf_test" /*application='Dummy'*/
638
+ SQL (0.1ms) SET search_path TO public /*application='Dummy'*/
639
+  (119.3ms) CREATE DATABASE "snf_dev" ENCODING = 'unicode' /*application='Dummy'*/
640
+ SQL (0.1ms) SET search_path TO public /*application='Dummy'*/
641
+  (67.9ms) CREATE DATABASE "snf_test" ENCODING = 'unicode' /*application='Dummy'*/
642
+ SQL (0.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" SCHEMA pg_catalog /*application='Dummy'*/
643
+  (3.7ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY) /*application='Dummy'*/
644
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
645
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES (0) /*application='Dummy'*/
646
+  (1.5ms) 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'*/
647
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/
648
+ ActiveRecord::InternalMetadata Create (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'development', '2025-02-26 11:29:13.452625', '2025-02-26 11:29:13.452628') RETURNING "key" /*application='Dummy'*/
649
+ 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'*/
650
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'schema_sha1' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/
651
+ ActiveRecord::InternalMetadata Create (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('schema_sha1', '9c6777daaa6ce85cc74b26c38000144a7834a947', '2025-02-26 11:29:13.456964', '2025-02-26 11:29:13.456967') RETURNING "key" /*application='Dummy'*/
652
+  (0.1ms) SELECT pg_try_advisory_lock(869468062957908540) /*application='Dummy'*/
653
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
654
+ 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'*/
655
+ Migrating to CreateSnfCoreUsers (20250226042622)
656
+ TRANSACTION (0.2ms) BEGIN /*application='Dummy'*/
657
+  (3.2ms) 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, "role" integer NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/
658
+ ActiveRecord::SchemaMigration Create (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20250226042622') RETURNING "version" /*application='Dummy'*/
659
+ TRANSACTION (0.4ms) COMMIT /*application='Dummy'*/
660
+ Migrating to CreateSnfCoreCategories (20250226064444)
661
+ TRANSACTION (0.3ms) BEGIN /*application='Dummy'*/
662
+  (3.0ms) 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, CONSTRAINT "fk_rails_26a925b05d"
663
+ FOREIGN KEY ("parent_id")
664
+ REFERENCES "snf_core_categories" ("id")
665
+ ) /*application='Dummy'*/
666
+  (0.4ms) CREATE INDEX "index_snf_core_categories_on_parent_id" ON "snf_core_categories" ("parent_id") /*application='Dummy'*/
667
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20250226064444') RETURNING "version" /*application='Dummy'*/
668
+ TRANSACTION (0.4ms) COMMIT /*application='Dummy'*/
669
+ Migrating to CreateSnfCoreBusinesses (20250226080323)
670
+ TRANSACTION (0.3ms) BEGIN /*application='Dummy'*/
671
+  (2.3ms) 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 NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL, CONSTRAINT "fk_rails_a61edcbd4b"
672
+ FOREIGN KEY ("user_id")
673
+ REFERENCES "snf_core_users" ("id")
674
+ ) /*application='Dummy'*/
675
+  (0.5ms) CREATE INDEX "index_snf_core_businesses_on_user_id" ON "snf_core_businesses" ("user_id") /*application='Dummy'*/
676
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20250226080323') RETURNING "version" /*application='Dummy'*/
677
+ TRANSACTION (0.5ms) COMMIT /*application='Dummy'*/
678
+ Migrating to CreateSnfCoreAddresses (20250226110217)
679
+ TRANSACTION (0.3ms) BEGIN /*application='Dummy'*/
680
+  (2.4ms) 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 NOT NULL, "longitude" decimal NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/
681
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20250226110217') RETURNING "version" /*application='Dummy'*/
682
+ TRANSACTION (0.3ms) COMMIT /*application='Dummy'*/
683
+  (0.3ms) SELECT pg_advisory_unlock(869468062957908540) /*application='Dummy'*/
684
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
685
+  (23.7ms) SELECT pg_try_advisory_lock(869468062957908540) /*application='Dummy'*/
686
+ ActiveRecord::SchemaMigration Load (59.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
687
+ ActiveRecord::InternalMetadata Load (32.6ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/
688
+ Migrating to CreateSnfCoreStores (20250226115215)
689
+ TRANSACTION (0.1ms) BEGIN /*application='Dummy'*/
690
+  (19.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, CONSTRAINT "fk_rails_e100fc7454"
691
+ FOREIGN KEY ("business_id")
692
+ REFERENCES "snf_core_businesses" ("id")
693
+ , CONSTRAINT "fk_rails_421441da8e"
694
+ FOREIGN KEY ("address_id")
695
+ REFERENCES "snf_core_addresses" ("id")
696
+ ) /*application='Dummy'*/
697
+  (1.1ms) CREATE INDEX "index_snf_core_stores_on_business_id" ON "snf_core_stores" ("business_id") /*application='Dummy'*/
698
+  (24.1ms) CREATE INDEX "index_snf_core_stores_on_address_id" ON "snf_core_stores" ("address_id") /*application='Dummy'*/
699
+ ActiveRecord::SchemaMigration Create (22.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20250226115215') RETURNING "version" /*application='Dummy'*/
700
+ TRANSACTION (0.7ms) COMMIT /*application='Dummy'*/
701
+  (4.7ms) SELECT pg_advisory_unlock(869468062957908540) /*application='Dummy'*/
702
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
703
+ ActiveRecord::SchemaMigration Load (1.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
704
+ ActiveRecord::SchemaMigration Load (1.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
705
+ ActiveRecord::InternalMetadata Load (2.5ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'schema_sha1' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/
706
+ ActiveRecord::SchemaMigration Load (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
707
+ ActiveRecord::InternalMetadata Load (1.4ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/
708
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
709
+ 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'*/
710
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
711
+ 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'*/
712
+ SQL (0.1ms) SET search_path TO public /*application='Dummy'*/
713
+  (70.1ms) DROP DATABASE IF EXISTS "snf_test" /*application='Dummy'*/
714
+  (144.8ms) CREATE DATABASE "snf_test" ENCODING = 'unicode' /*application='Dummy'*/
715
+ SQL (30.0ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" SCHEMA pg_catalog /*application='Dummy'*/
716
+  (0.2ms) DROP TABLE IF EXISTS "snf_core_addresses" CASCADE /*application='Dummy'*/
717
+  (7.7ms) 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 NOT NULL, "longitude" decimal NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/
718
+  (0.4ms) DROP TABLE IF EXISTS "snf_core_businesses" CASCADE /*application='Dummy'*/
719
+  (2.2ms) 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 NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/
720
+  (0.9ms) CREATE INDEX "index_snf_core_businesses_on_user_id" ON "snf_core_businesses" ("user_id") /*application='Dummy'*/
721
+  (0.2ms) DROP TABLE IF EXISTS "snf_core_categories" CASCADE /*application='Dummy'*/
722
+  (2.2ms) 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'*/
723
+  (0.9ms) CREATE INDEX "index_snf_core_categories_on_parent_id" ON "snf_core_categories" ("parent_id") /*application='Dummy'*/
724
+  (0.1ms) DROP TABLE IF EXISTS "snf_core_stores" CASCADE /*application='Dummy'*/
725
+  (2.2ms) 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'*/
726
+  (1.0ms) CREATE INDEX "index_snf_core_stores_on_address_id" ON "snf_core_stores" ("address_id") /*application='Dummy'*/
727
+  (1.7ms) CREATE INDEX "index_snf_core_stores_on_business_id" ON "snf_core_stores" ("business_id") /*application='Dummy'*/
728
+  (0.2ms) DROP TABLE IF EXISTS "snf_core_users" CASCADE /*application='Dummy'*/
729
+  (2.5ms) 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, "role" integer NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/
730
+  (2.1ms) ALTER TABLE "snf_core_businesses" ADD CONSTRAINT "fk_rails_a61edcbd4b"
731
+ FOREIGN KEY ("user_id")
732
+ REFERENCES "snf_core_users" ("id")
733
+ /*application='Dummy'*/
734
+  (0.8ms) ALTER TABLE "snf_core_categories" ADD CONSTRAINT "fk_rails_26a925b05d"
735
+ FOREIGN KEY ("parent_id")
736
+ REFERENCES "snf_core_categories" ("id")
737
+ /*application='Dummy'*/
738
+  (1.1ms) ALTER TABLE "snf_core_stores" ADD CONSTRAINT "fk_rails_421441da8e"
739
+ FOREIGN KEY ("address_id")
740
+ REFERENCES "snf_core_addresses" ("id")
741
+ /*application='Dummy'*/
742
+  (0.6ms) ALTER TABLE "snf_core_stores" ADD CONSTRAINT "fk_rails_e100fc7454"
743
+ FOREIGN KEY ("business_id")
744
+ REFERENCES "snf_core_businesses" ("id")
745
+ /*application='Dummy'*/
746
+  (2.2ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY) /*application='Dummy'*/
747
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
748
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES (20250226115215) /*application='Dummy'*/
749
+  (2.9ms) 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'*/
750
+ ActiveRecord::InternalMetadata Load (0.8ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/
751
+ ActiveRecord::InternalMetadata Create (0.5ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'development', '2025-02-26 12:27:44.365998', '2025-02-26 12:27:44.366000') RETURNING "key" /*application='Dummy'*/
752
+ 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'*/
753
+ ActiveRecord::InternalMetadata Update (0.3ms) UPDATE "ar_internal_metadata" SET "value" = 'test', "updated_at" = '2025-02-26 12:27:44.368089' WHERE "ar_internal_metadata"."key" = 'environment' /*application='Dummy'*/
754
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'schema_sha1' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/
755
+ ActiveRecord::InternalMetadata Create (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('schema_sha1', 'eb67dd810a8ab5c40a526b7a622ef256705e37f7', '2025-02-26 12:27:44.369287', '2025-02-26 12:27:44.369288') RETURNING "key" /*application='Dummy'*/
756
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
757
+ TRANSACTION (0.2ms) BEGIN /*application='Dummy'*/
758
+  (1.5ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "snf_core_addresses" DISABLE TRIGGER ALL;ALTER TABLE "snf_core_categories" DISABLE TRIGGER ALL;ALTER TABLE "snf_core_users" DISABLE TRIGGER ALL;ALTER TABLE "snf_core_businesses" DISABLE TRIGGER ALL;ALTER TABLE "snf_core_stores" DISABLE TRIGGER ALL /*application='Dummy'*/
759
+ TRANSACTION (0.4ms) COMMIT /*application='Dummy'*/
760
+  (7.6ms)  SELECT schemaname || '.' || tablename
761
+ FROM pg_tables
762
+ WHERE
763
+ tablename !~ '_prt_' AND
764
+ tablename <> 'schema_migrations'
765
+ AND tablename <> 'ar_internal_metadata'
766
+ AND
767
+ schemaname = ANY (current_schemas(false))
768
+ /*application='Dummy'*/
769
+  (3.5ms) select table_name from information_schema.views where table_schema = 'snf_dev' /*application='Dummy'*/
770
+  (27.9ms) TRUNCATE TABLE "snf_core_addresses", "snf_core_categories", "snf_core_users", "snf_core_businesses", "snf_core_stores" RESTART IDENTITY RESTRICT; /*application='Dummy'*/
771
+ TRANSACTION (1.2ms) BEGIN /*application='Dummy'*/
772
+  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "snf_core_addresses" ENABLE TRIGGER ALL;ALTER TABLE "snf_core_categories" ENABLE TRIGGER ALL;ALTER TABLE "snf_core_users" ENABLE TRIGGER ALL;ALTER TABLE "snf_core_stores" ENABLE TRIGGER ALL;ALTER TABLE "snf_core_businesses" ENABLE TRIGGER ALL /*application='Dummy'*/
773
+ TRANSACTION (0.4ms) COMMIT /*application='Dummy'*/
774
+ TRANSACTION (0.1ms) BEGIN /*application='Dummy'*/
775
+ TRANSACTION (0.8ms) ROLLBACK /*application='Dummy'*/
776
+ TRANSACTION (0.2ms) BEGIN /*application='Dummy'*/
777
+ TRANSACTION (0.1ms) ROLLBACK /*application='Dummy'*/
778
+ TRANSACTION (0.2ms) BEGIN /*application='Dummy'*/
779
+ TRANSACTION (0.2ms) ROLLBACK /*application='Dummy'*/
780
+ TRANSACTION (0.2ms) BEGIN /*application='Dummy'*/
781
+ TRANSACTION (0.2ms) ROLLBACK /*application='Dummy'*/
782
+ TRANSACTION (0.1ms) BEGIN /*application='Dummy'*/
783
+ TRANSACTION (0.1ms) ROLLBACK /*application='Dummy'*/
784
+ TRANSACTION (0.1ms) BEGIN /*application='Dummy'*/
785
+ TRANSACTION (0.2ms) ROLLBACK /*application='Dummy'*/
786
+ TRANSACTION (0.1ms) BEGIN /*application='Dummy'*/
787
+ TRANSACTION (0.3ms) ROLLBACK /*application='Dummy'*/
788
+ TRANSACTION (0.1ms) BEGIN /*application='Dummy'*/
789
+ TRANSACTION (0.2ms) ROLLBACK /*application='Dummy'*/
790
+ TRANSACTION (0.2ms) BEGIN /*application='Dummy'*/
791
+ TRANSACTION (0.2ms) ROLLBACK /*application='Dummy'*/
792
+ TRANSACTION (0.1ms) BEGIN /*application='Dummy'*/
793
+ TRANSACTION (0.2ms) ROLLBACK /*application='Dummy'*/
794
+ TRANSACTION (0.1ms) BEGIN /*application='Dummy'*/
795
+ TRANSACTION (0.2ms) ROLLBACK /*application='Dummy'*/
796
+ TRANSACTION (0.1ms) BEGIN /*application='Dummy'*/
797
+ TRANSACTION (0.1ms) ROLLBACK /*application='Dummy'*/
798
+ TRANSACTION (0.1ms) BEGIN /*application='Dummy'*/
799
+ TRANSACTION (0.1ms) ROLLBACK /*application='Dummy'*/
800
+ TRANSACTION (0.1ms) BEGIN /*application='Dummy'*/
801
+ TRANSACTION (0.1ms) ROLLBACK /*application='Dummy'*/
802
+ TRANSACTION (0.1ms) BEGIN /*application='Dummy'*/
803
+ TRANSACTION (0.1ms) ROLLBACK /*application='Dummy'*/
804
+ TRANSACTION (0.1ms) BEGIN /*application='Dummy'*/
805
+ TRANSACTION (0.1ms) ROLLBACK /*application='Dummy'*/
806
+ TRANSACTION (0.1ms) BEGIN /*application='Dummy'*/
807
+ TRANSACTION (0.1ms) ROLLBACK /*application='Dummy'*/
808
+ TRANSACTION (0.1ms) BEGIN /*application='Dummy'*/
809
+ TRANSACTION (0.1ms) ROLLBACK /*application='Dummy'*/
810
+ TRANSACTION (0.1ms) BEGIN /*application='Dummy'*/
811
+ TRANSACTION (0.1ms) ROLLBACK /*application='Dummy'*/
812
+ TRANSACTION (0.1ms) BEGIN /*application='Dummy'*/
813
+ TRANSACTION (0.1ms) ROLLBACK /*application='Dummy'*/
814
+ TRANSACTION (0.1ms) BEGIN /*application='Dummy'*/
815
+ TRANSACTION (0.1ms) ROLLBACK /*application='Dummy'*/
816
+ TRANSACTION (0.1ms) BEGIN /*application='Dummy'*/
817
+ TRANSACTION (0.1ms) ROLLBACK /*application='Dummy'*/
818
+ TRANSACTION (0.1ms) BEGIN /*application='Dummy'*/
819
+ TRANSACTION (0.1ms) ROLLBACK /*application='Dummy'*/
820
+ TRANSACTION (0.1ms) BEGIN /*application='Dummy'*/
821
+ TRANSACTION (0.1ms) ROLLBACK /*application='Dummy'*/
822
+ TRANSACTION (0.1ms) BEGIN /*application='Dummy'*/
823
+ TRANSACTION (0.1ms) ROLLBACK /*application='Dummy'*/
824
+ TRANSACTION (0.1ms) BEGIN /*application='Dummy'*/
825
+ TRANSACTION (0.1ms) ROLLBACK /*application='Dummy'*/
826
+ TRANSACTION (0.1ms) BEGIN /*application='Dummy'*/
827
+ TRANSACTION (0.1ms) ROLLBACK /*application='Dummy'*/
828
+ TRANSACTION (0.1ms) BEGIN /*application='Dummy'*/
829
+ TRANSACTION (0.1ms) ROLLBACK /*application='Dummy'*/
830
+ TRANSACTION (0.1ms) BEGIN /*application='Dummy'*/
831
+ TRANSACTION (0.1ms) ROLLBACK /*application='Dummy'*/
832
+ TRANSACTION (0.1ms) BEGIN /*application='Dummy'*/
833
+ TRANSACTION (0.1ms) ROLLBACK /*application='Dummy'*/
834
+ TRANSACTION (0.1ms) BEGIN /*application='Dummy'*/
835
+ TRANSACTION (0.1ms) ROLLBACK /*application='Dummy'*/
836
+ TRANSACTION (0.1ms) BEGIN /*application='Dummy'*/
837
+ TRANSACTION (0.1ms) ROLLBACK /*application='Dummy'*/
838
+  (0.2ms) SELECT pg_try_advisory_lock(869468062957908540) /*application='Dummy'*/
839
+ ActiveRecord::SchemaMigration Load (3.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
840
+ ActiveRecord::InternalMetadata Load (3.2ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/
841
+ Migrating to CreateSnfCoreBusinessDocuments (20250226102931)
842
+ TRANSACTION (0.1ms) BEGIN /*application='Dummy'*/
843
+  (21.5ms) 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, CONSTRAINT "fk_rails_1efd7338ed"
844
+ FOREIGN KEY ("business_id")
845
+ REFERENCES "snf_core_businesses" ("id")
846
+ , CONSTRAINT "fk_rails_a6157021cc"
847
+ FOREIGN KEY ("verified_by_id")
848
+ REFERENCES "snf_core_users" ("id")
849
+ ) /*application='Dummy'*/
850
+  (1.9ms) CREATE INDEX "index_snf_core_business_documents_on_business_id" ON "snf_core_business_documents" ("business_id") /*application='Dummy'*/
851
+  (1.4ms) CREATE INDEX "index_snf_core_business_documents_on_verified_by_id" ON "snf_core_business_documents" ("verified_by_id") /*application='Dummy'*/
852
+ ActiveRecord::SchemaMigration Create (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ('20250226102931') RETURNING "version" /*application='Dummy'*/
853
+ TRANSACTION (0.6ms) COMMIT /*application='Dummy'*/
854
+ Migrating to CreateActiveStorageTables (20250226123213)
855
+ TRANSACTION (0.5ms) BEGIN /*application='Dummy'*/
856
+  (11.4ms) 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'*/
857
+  (1.0ms) CREATE UNIQUE INDEX "index_active_storage_blobs_on_key" ON "active_storage_blobs" ("key") /*application='Dummy'*/
858
+  (4.7ms) 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, CONSTRAINT "fk_rails_c3b3935057"
859
+ FOREIGN KEY ("blob_id")
860
+ REFERENCES "active_storage_blobs" ("id")
861
+ ) /*application='Dummy'*/
862
+  (1.6ms) CREATE INDEX "index_active_storage_attachments_on_blob_id" ON "active_storage_attachments" ("blob_id") /*application='Dummy'*/
863
+  (2.9ms) CREATE UNIQUE INDEX "index_active_storage_attachments_uniqueness" ON "active_storage_attachments" ("record_type", "record_id", "name", "blob_id") /*application='Dummy'*/
864
+  (6.2ms) CREATE TABLE "active_storage_variant_records" ("id" bigserial primary key, "blob_id" bigint NOT NULL, "variation_digest" character varying NOT NULL, CONSTRAINT "fk_rails_993965df05"
865
+ FOREIGN KEY ("blob_id")
866
+ REFERENCES "active_storage_blobs" ("id")
867
+ ) /*application='Dummy'*/
868
+  (1.5ms) CREATE UNIQUE INDEX "index_active_storage_variant_records_uniqueness" ON "active_storage_variant_records" ("blob_id", "variation_digest") /*application='Dummy'*/
869
+ ActiveRecord::SchemaMigration Create (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20250226123213') RETURNING "version" /*application='Dummy'*/
870
+ TRANSACTION (0.3ms) COMMIT /*application='Dummy'*/
871
+  (0.7ms) SELECT pg_advisory_unlock(869468062957908540) /*application='Dummy'*/
872
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
873
+ ActiveRecord::SchemaMigration Load (1.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
874
+  (0.2ms) SELECT pg_try_advisory_lock(869468062957908540) /*application='Dummy'*/
875
+ ActiveRecord::SchemaMigration Load (2.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
876
+ ActiveRecord::InternalMetadata Load (3.1ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/
877
+ Migrating to CreateSnfCoreProducts (20250226181007)
878
+ TRANSACTION (0.1ms) BEGIN /*application='Dummy'*/
879
+  (22.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, CONSTRAINT "fk_rails_a0ba3fa883"
880
+ FOREIGN KEY ("category_id")
881
+ REFERENCES "snf_core_categories" ("id")
882
+ ) /*application='Dummy'*/
883
+  (1.3ms) CREATE INDEX "index_snf_core_products_on_category_id" ON "snf_core_products" ("category_id") /*application='Dummy'*/
884
+ ActiveRecord::SchemaMigration Create (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20250226181007') RETURNING "version" /*application='Dummy'*/
885
+ TRANSACTION (0.6ms) COMMIT /*application='Dummy'*/
886
+ Migrating to CreateSnfCoreStoreInventories (20250226190000)
887
+ TRANSACTION (0.3ms) BEGIN /*application='Dummy'*/
888
+  (3.4ms) CREATE TABLE "snf_core_store_inventories" ("id" bigserial primary key, "store_id" bigint NOT NULL, "product_id" bigint NOT NULL, "stock_quantity" integer DEFAULT 0 NOT NULL, "base_price" decimal(10,2) NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL, CONSTRAINT "fk_rails_2ca88d30e2"
889
+ FOREIGN KEY ("store_id")
890
+ REFERENCES "snf_core_stores" ("id")
891
+ , CONSTRAINT "fk_rails_15fb263e75"
892
+ FOREIGN KEY ("product_id")
893
+ REFERENCES "snf_core_products" ("id")
894
+ ) /*application='Dummy'*/
895
+  (1.2ms) CREATE INDEX "index_snf_core_store_inventories_on_store_id" ON "snf_core_store_inventories" ("store_id") /*application='Dummy'*/
896
+  (1.2ms) CREATE INDEX "index_snf_core_store_inventories_on_product_id" ON "snf_core_store_inventories" ("product_id") /*application='Dummy'*/
897
+  (0.9ms) 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'*/
898
+ ActiveRecord::SchemaMigration Create (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20250226190000') RETURNING "version" /*application='Dummy'*/
899
+ TRANSACTION (0.4ms) COMMIT /*application='Dummy'*/
900
+  (0.5ms) SELECT pg_advisory_unlock(869468062957908540) /*application='Dummy'*/
901
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
902
+  (0.2ms) SELECT pg_try_advisory_lock(869468062957908540) /*application='Dummy'*/
903
+ ActiveRecord::SchemaMigration Load (4.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
904
+ ActiveRecord::InternalMetadata Load (3.5ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/
905
+ Migrating to CreateSnfCoreGroups (20250226192104)
906
+ TRANSACTION (0.2ms) BEGIN /*application='Dummy'*/
907
+  (28.9ms) 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, CONSTRAINT "fk_rails_c52b27ad67"
908
+ FOREIGN KEY ("business_id")
909
+ REFERENCES "snf_core_businesses" ("id")
910
+ ) /*application='Dummy'*/
911
+  (1.4ms) CREATE INDEX "index_snf_core_groups_on_business_id" ON "snf_core_groups" ("business_id") /*application='Dummy'*/
912
+ ActiveRecord::SchemaMigration Create (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20250226192104') RETURNING "version" /*application='Dummy'*/
913
+ TRANSACTION (1.5ms) COMMIT /*application='Dummy'*/
914
+ Migrating to CreateSnfCoreCustomerGroups (20250226193938)
915
+ TRANSACTION (0.4ms) BEGIN /*application='Dummy'*/
916
+  (6.4ms) 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, CONSTRAINT "fk_rails_9c45f4015a"
917
+ FOREIGN KEY ("group_id")
918
+ REFERENCES "snf_core_groups" ("id")
919
+ , CONSTRAINT "fk_rails_792eb3404d"
920
+ FOREIGN KEY ("customer_id")
921
+ REFERENCES "snf_core_users" ("id")
922
+ ) /*application='Dummy'*/
923
+  (1.3ms) CREATE INDEX "index_snf_core_customer_groups_on_group_id" ON "snf_core_customer_groups" ("group_id") /*application='Dummy'*/
924
+  (1.3ms) CREATE INDEX "index_snf_core_customer_groups_on_customer_id" ON "snf_core_customer_groups" ("customer_id") /*application='Dummy'*/
925
+ ActiveRecord::SchemaMigration Create (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20250226193938') RETURNING "version" /*application='Dummy'*/
926
+ TRANSACTION (0.2ms) COMMIT /*application='Dummy'*/
927
+ Migrating to CreateSnfCoreWallets (20250227075048)
928
+ TRANSACTION (0.7ms) BEGIN /*application='Dummy'*/
929
+  (5.9ms) 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, CONSTRAINT "fk_rails_77c94979ce"
930
+ FOREIGN KEY ("user_id")
931
+ REFERENCES "snf_core_users" ("id")
932
+ ) /*application='Dummy'*/
933
+  (1.3ms) CREATE INDEX "index_snf_core_wallets_on_user_id" ON "snf_core_wallets" ("user_id") /*application='Dummy'*/
934
+  (1.3ms) CREATE UNIQUE INDEX "index_snf_core_wallets_on_wallet_number" ON "snf_core_wallets" ("wallet_number") /*application='Dummy'*/
935
+ ActiveRecord::SchemaMigration Create (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20250227075048') RETURNING "version" /*application='Dummy'*/
936
+ TRANSACTION (0.4ms) COMMIT /*application='Dummy'*/
937
+ Migrating to ModifyStoreInventories (20250227102833)
938
+ TRANSACTION (0.4ms) BEGIN /*application='Dummy'*/
939
+  (7.2ms) ALTER TABLE "snf_core_store_inventories" DROP COLUMN "stock_quantity" /*application='Dummy'*/
940
+  (3.3ms) ALTER TABLE "snf_core_store_inventories" ADD "status" integer DEFAULT 0 NOT NULL /*application='Dummy'*/
941
+ ActiveRecord::SchemaMigration Create (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20250227102833') RETURNING "version" /*application='Dummy'*/
942
+ TRANSACTION (0.2ms) COMMIT /*application='Dummy'*/
943
+  (0.1ms) SELECT pg_advisory_unlock(869468062957908540) /*application='Dummy'*/
944
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
945
+  (1.0ms) SELECT pg_try_advisory_lock(869468062957908540) /*application='Dummy'*/
946
+ ActiveRecord::SchemaMigration Load (2.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
947
+ ActiveRecord::InternalMetadata Load (3.8ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/
948
+ Migrating to CreateSnfCoreRoles (20250305232529)
949
+ TRANSACTION (0.1ms) BEGIN /*application='Dummy'*/
950
+  (19.6ms) 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'*/
951
+ ActiveRecord::SchemaMigration Create (0.7ms) INSERT INTO "schema_migrations" ("version") VALUES ('20250305232529') RETURNING "version" /*application='Dummy'*/
952
+ TRANSACTION (0.7ms) COMMIT /*application='Dummy'*/
953
+ Migrating to CreateSnfCoreUserRoles (20250305232530)
954
+  (2.0ms) SELECT pg_advisory_unlock(869468062957908540) /*application='Dummy'*/
955
+  (0.2ms) SELECT pg_try_advisory_lock(869468062957908540) /*application='Dummy'*/
956
+ ActiveRecord::SchemaMigration Load (1.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
957
+ ActiveRecord::InternalMetadata Load (1.5ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/
958
+ Migrating to CreateSnfCoreUserRoles (20250305232530)
959
+ TRANSACTION (0.1ms) BEGIN /*application='Dummy'*/
960
+ TRANSACTION (0.1ms) ROLLBACK /*application='Dummy'*/
961
+  (0.1ms) SELECT pg_advisory_unlock(869468062957908540) /*application='Dummy'*/
962
+ ActiveRecord::SchemaMigration Load (1.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
963
+  (0.3ms) SELECT pg_try_advisory_lock(869468062957908540) /*application='Dummy'*/
964
+ ActiveRecord::SchemaMigration Load (1.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
965
+ ActiveRecord::InternalMetadata Load (1.4ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/
966
+ Migrating to CreateSnfCoreUserRoles (20250305232530)
967
+ TRANSACTION (0.1ms) BEGIN /*application='Dummy'*/
968
+  (11.0ms) 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, CONSTRAINT "fk_rails_9ad2e78133"
969
+ FOREIGN KEY ("user_id")
970
+ REFERENCES "snf_core_users" ("id")
971
+ , CONSTRAINT "fk_rails_0e70d7ce00"
972
+ FOREIGN KEY ("role_id")
973
+ REFERENCES "snf_core_roles" ("id")
974
+ ) /*application='Dummy'*/
975
+  (2.3ms) CREATE INDEX "index_snf_core_user_roles_on_user_id" ON "snf_core_user_roles" ("user_id") /*application='Dummy'*/
976
+  (1.1ms) CREATE INDEX "index_snf_core_user_roles_on_role_id" ON "snf_core_user_roles" ("role_id") /*application='Dummy'*/
977
+ ActiveRecord::SchemaMigration Create (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20250305232530') RETURNING "version" /*application='Dummy'*/
978
+ TRANSACTION (0.4ms) COMMIT /*application='Dummy'*/
979
+  (1.4ms) SELECT pg_advisory_unlock(869468062957908540) /*application='Dummy'*/
980
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
981
+  (0.2ms) SELECT pg_try_advisory_lock(869468062957908540) /*application='Dummy'*/
982
+ ActiveRecord::SchemaMigration Load (1.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
983
+ ActiveRecord::InternalMetadata Load (1.0ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/
984
+  (0.1ms) SELECT pg_advisory_unlock(869468062957908540) /*application='Dummy'*/
985
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
986
+ ActiveRecord::SchemaMigration Load (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
987
+ ActiveRecord::InternalMetadata Load (1.1ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/
988
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
989
+ 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'*/
990
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
991
+ 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'*/
992
+ SQL (0.2ms) SET search_path TO public /*application='Dummy'*/
993
+  (92.3ms) DROP DATABASE IF EXISTS "snf_dev" /*application='Dummy'*/
994
+ SQL (0.1ms) SET search_path TO public /*application='Dummy'*/
995
+  (53.2ms) DROP DATABASE IF EXISTS "snf_test" /*application='Dummy'*/
996
+ SQL (0.2ms) SET search_path TO public /*application='Dummy'*/
997
+  (212.0ms) CREATE DATABASE "snf_dev" ENCODING = 'unicode' /*application='Dummy'*/
998
+ SQL (1.8ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" SCHEMA pg_catalog /*application='Dummy'*/
999
+  (0.1ms) DROP TABLE IF EXISTS "active_storage_attachments" CASCADE /*application='Dummy'*/
1000
+  (3.4ms) 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'*/
1001
+  (0.6ms) CREATE INDEX "index_active_storage_attachments_on_blob_id" ON "active_storage_attachments" ("blob_id") /*application='Dummy'*/
1002
+  (1.3ms) CREATE UNIQUE INDEX "index_active_storage_attachments_uniqueness" ON "active_storage_attachments" ("record_type", "record_id", "name", "blob_id") /*application='Dummy'*/
1003
+  (0.1ms) DROP TABLE IF EXISTS "active_storage_blobs" CASCADE /*application='Dummy'*/
1004
+  (2.4ms) 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'*/
1005
+  (1.0ms) CREATE UNIQUE INDEX "index_active_storage_blobs_on_key" ON "active_storage_blobs" ("key") /*application='Dummy'*/
1006
+  (0.1ms) DROP TABLE IF EXISTS "active_storage_variant_records" CASCADE /*application='Dummy'*/
1007
+  (2.1ms) CREATE TABLE "active_storage_variant_records" ("id" bigserial primary key, "blob_id" bigint NOT NULL, "variation_digest" character varying NOT NULL) /*application='Dummy'*/
1008
+  (0.8ms) CREATE UNIQUE INDEX "index_active_storage_variant_records_uniqueness" ON "active_storage_variant_records" ("blob_id", "variation_digest") /*application='Dummy'*/
1009
+  (0.1ms) DROP TABLE IF EXISTS "snf_core_addresses" CASCADE /*application='Dummy'*/
1010
+  (2.8ms) 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 NOT NULL, "longitude" decimal NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/
1011
+  (0.3ms) DROP TABLE IF EXISTS "snf_core_business_documents" CASCADE /*application='Dummy'*/
1012
+  (2.0ms) 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'*/
1013
+  (1.0ms) CREATE INDEX "index_snf_core_business_documents_on_business_id" ON "snf_core_business_documents" ("business_id") /*application='Dummy'*/
1014
+  (0.8ms) CREATE INDEX "index_snf_core_business_documents_on_verified_by_id" ON "snf_core_business_documents" ("verified_by_id") /*application='Dummy'*/
1015
+  (0.1ms) DROP TABLE IF EXISTS "snf_core_businesses" CASCADE /*application='Dummy'*/
1016
+  (2.5ms) 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 NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/
1017
+  (1.0ms) CREATE INDEX "index_snf_core_businesses_on_user_id" ON "snf_core_businesses" ("user_id") /*application='Dummy'*/
1018
+  (0.1ms) DROP TABLE IF EXISTS "snf_core_categories" CASCADE /*application='Dummy'*/
1019
+  (2.3ms) 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'*/
1020
+  (1.0ms) CREATE INDEX "index_snf_core_categories_on_parent_id" ON "snf_core_categories" ("parent_id") /*application='Dummy'*/
1021
+  (0.1ms) DROP TABLE IF EXISTS "snf_core_customer_groups" CASCADE /*application='Dummy'*/
1022
+  (2.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'*/
1023
+  (0.8ms) CREATE INDEX "index_snf_core_customer_groups_on_customer_id" ON "snf_core_customer_groups" ("customer_id") /*application='Dummy'*/
1024
+  (0.7ms) CREATE INDEX "index_snf_core_customer_groups_on_group_id" ON "snf_core_customer_groups" ("group_id") /*application='Dummy'*/
1025
+  (0.1ms) DROP TABLE IF EXISTS "snf_core_groups" CASCADE /*application='Dummy'*/
1026
+  (2.7ms) 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'*/
1027
+  (1.2ms) CREATE INDEX "index_snf_core_groups_on_business_id" ON "snf_core_groups" ("business_id") /*application='Dummy'*/
1028
+  (0.1ms) DROP TABLE IF EXISTS "snf_core_products" CASCADE /*application='Dummy'*/
1029
+  (2.7ms) 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'*/
1030
+  (1.0ms) CREATE INDEX "index_snf_core_products_on_category_id" ON "snf_core_products" ("category_id") /*application='Dummy'*/
1031
+  (0.2ms) DROP TABLE IF EXISTS "snf_core_roles" CASCADE /*application='Dummy'*/
1032
+  (2.6ms) 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'*/
1033
+  (0.3ms) DROP TABLE IF EXISTS "snf_core_store_inventories" CASCADE /*application='Dummy'*/
1034
+  (2.1ms) 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'*/
1035
+  (1.0ms) CREATE INDEX "index_snf_core_store_inventories_on_product_id" ON "snf_core_store_inventories" ("product_id") /*application='Dummy'*/
1036
+  (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'*/
1037
+  (1.0ms) CREATE INDEX "index_snf_core_store_inventories_on_store_id" ON "snf_core_store_inventories" ("store_id") /*application='Dummy'*/
1038
+  (0.2ms) DROP TABLE IF EXISTS "snf_core_stores" CASCADE /*application='Dummy'*/
1039
+  (2.9ms) 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'*/
1040
+  (1.1ms) CREATE INDEX "index_snf_core_stores_on_address_id" ON "snf_core_stores" ("address_id") /*application='Dummy'*/
1041
+  (0.9ms) CREATE INDEX "index_snf_core_stores_on_business_id" ON "snf_core_stores" ("business_id") /*application='Dummy'*/
1042
+  (0.2ms) DROP TABLE IF EXISTS "snf_core_user_roles" CASCADE /*application='Dummy'*/
1043
+  (1.9ms) 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'*/
1044
+  (1.0ms) CREATE INDEX "index_snf_core_user_roles_on_role_id" ON "snf_core_user_roles" ("role_id") /*application='Dummy'*/
1045
+  (0.9ms) CREATE INDEX "index_snf_core_user_roles_on_user_id" ON "snf_core_user_roles" ("user_id") /*application='Dummy'*/
1046
+  (0.2ms) DROP TABLE IF EXISTS "snf_core_users" CASCADE /*application='Dummy'*/
1047
+  (3.3ms) 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, "role" integer NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/
1048
+  (0.4ms) DROP TABLE IF EXISTS "snf_core_wallets" CASCADE /*application='Dummy'*/
1049
+  (3.1ms) 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'*/
1050
+  (1.2ms) CREATE INDEX "index_snf_core_wallets_on_user_id" ON "snf_core_wallets" ("user_id") /*application='Dummy'*/
1051
+  (1.2ms) CREATE UNIQUE INDEX "index_snf_core_wallets_on_wallet_number" ON "snf_core_wallets" ("wallet_number") /*application='Dummy'*/
1052
+  (3.7ms) ALTER TABLE "active_storage_attachments" ADD CONSTRAINT "fk_rails_c3b3935057"
1053
+ FOREIGN KEY ("blob_id")
1054
+ REFERENCES "active_storage_blobs" ("id")
1055
+ /*application='Dummy'*/
1056
+  (1.6ms) ALTER TABLE "active_storage_variant_records" ADD CONSTRAINT "fk_rails_993965df05"
1057
+ FOREIGN KEY ("blob_id")
1058
+ REFERENCES "active_storage_blobs" ("id")
1059
+ /*application='Dummy'*/
1060
+  (1.9ms) ALTER TABLE "snf_core_business_documents" ADD CONSTRAINT "fk_rails_1efd7338ed"
1061
+ FOREIGN KEY ("business_id")
1062
+ REFERENCES "snf_core_businesses" ("id")
1063
+ /*application='Dummy'*/
1064
+  (2.2ms) ALTER TABLE "snf_core_business_documents" ADD CONSTRAINT "fk_rails_a6157021cc"
1065
+ FOREIGN KEY ("verified_by_id")
1066
+ REFERENCES "snf_core_users" ("id")
1067
+ /*application='Dummy'*/
1068
+  (1.5ms) ALTER TABLE "snf_core_businesses" ADD CONSTRAINT "fk_rails_a61edcbd4b"
1069
+ FOREIGN KEY ("user_id")
1070
+ REFERENCES "snf_core_users" ("id")
1071
+ /*application='Dummy'*/
1072
+  (1.3ms) ALTER TABLE "snf_core_categories" ADD CONSTRAINT "fk_rails_26a925b05d"
1073
+ FOREIGN KEY ("parent_id")
1074
+ REFERENCES "snf_core_categories" ("id")
1075
+ /*application='Dummy'*/
1076
+  (2.1ms) ALTER TABLE "snf_core_customer_groups" ADD CONSTRAINT "fk_rails_9c45f4015a"
1077
+ FOREIGN KEY ("group_id")
1078
+ REFERENCES "snf_core_groups" ("id")
1079
+ /*application='Dummy'*/
1080
+  (1.3ms) ALTER TABLE "snf_core_customer_groups" ADD CONSTRAINT "fk_rails_792eb3404d"
1081
+ FOREIGN KEY ("customer_id")
1082
+ REFERENCES "snf_core_users" ("id")
1083
+ /*application='Dummy'*/
1084
+  (1.3ms) ALTER TABLE "snf_core_groups" ADD CONSTRAINT "fk_rails_c52b27ad67"
1085
+ FOREIGN KEY ("business_id")
1086
+ REFERENCES "snf_core_businesses" ("id")
1087
+ /*application='Dummy'*/
1088
+  (1.7ms) ALTER TABLE "snf_core_products" ADD CONSTRAINT "fk_rails_a0ba3fa883"
1089
+ FOREIGN KEY ("category_id")
1090
+ REFERENCES "snf_core_categories" ("id")
1091
+ /*application='Dummy'*/
1092
+  (2.4ms) ALTER TABLE "snf_core_store_inventories" ADD CONSTRAINT "fk_rails_15fb263e75"
1093
+ FOREIGN KEY ("product_id")
1094
+ REFERENCES "snf_core_products" ("id")
1095
+ /*application='Dummy'*/
1096
+  (1.9ms) ALTER TABLE "snf_core_store_inventories" ADD CONSTRAINT "fk_rails_2ca88d30e2"
1097
+ FOREIGN KEY ("store_id")
1098
+ REFERENCES "snf_core_stores" ("id")
1099
+ /*application='Dummy'*/
1100
+  (2.1ms) ALTER TABLE "snf_core_stores" ADD CONSTRAINT "fk_rails_421441da8e"
1101
+ FOREIGN KEY ("address_id")
1102
+ REFERENCES "snf_core_addresses" ("id")
1103
+ /*application='Dummy'*/
1104
+  (1.6ms) ALTER TABLE "snf_core_stores" ADD CONSTRAINT "fk_rails_e100fc7454"
1105
+ FOREIGN KEY ("business_id")
1106
+ REFERENCES "snf_core_businesses" ("id")
1107
+ /*application='Dummy'*/
1108
+  (2.5ms) ALTER TABLE "snf_core_user_roles" ADD CONSTRAINT "fk_rails_0e70d7ce00"
1109
+ FOREIGN KEY ("role_id")
1110
+ REFERENCES "snf_core_roles" ("id")
1111
+ /*application='Dummy'*/
1112
+  (1.8ms) ALTER TABLE "snf_core_user_roles" ADD CONSTRAINT "fk_rails_9ad2e78133"
1113
+ FOREIGN KEY ("user_id")
1114
+ REFERENCES "snf_core_users" ("id")
1115
+ /*application='Dummy'*/
1116
+  (2.5ms) ALTER TABLE "snf_core_wallets" ADD CONSTRAINT "fk_rails_77c94979ce"
1117
+ FOREIGN KEY ("user_id")
1118
+ REFERENCES "snf_core_users" ("id")
1119
+ /*application='Dummy'*/
1120
+  (4.0ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY) /*application='Dummy'*/
1121
+ ActiveRecord::SchemaMigration Load (1.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
1122
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES (20250305232530) /*application='Dummy'*/
1123
+  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES
1124
+ (20250305232529),
1125
+ (20250227102833),
1126
+ (20250227075048),
1127
+ (20250226193938),
1128
+ (20250226192104),
1129
+ (20250226190000),
1130
+ (20250226181007),
1131
+ (20250226123213),
1132
+ (20250226115215),
1133
+ (20250226110217),
1134
+ (20250226102931),
1135
+ (20250226080323),
1136
+ (20250226064444),
1137
+ (20250226042622); /*application='Dummy'*/
1138
+  (4.3ms) 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'*/
1139
+ 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'*/
1140
+ ActiveRecord::InternalMetadata Create (0.8ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'development', '2025-03-06 00:01:01.625495', '2025-03-06 00:01:01.625497') RETURNING "key" /*application='Dummy'*/
1141
+ 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'*/
1142
+ 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'*/
1143
+ ActiveRecord::InternalMetadata Create (0.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('schema_sha1', 'f164983db40540ac20b9f048ccfeb860da70173c', '2025-03-06 00:01:01.629860', '2025-03-06 00:01:01.629861') RETURNING "key" /*application='Dummy'*/
1144
+  (0.3ms) SELECT pg_try_advisory_lock(869468062957908540) /*application='Dummy'*/
1145
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
1146
+ 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'*/
1147
+  (0.3ms) SELECT pg_advisory_unlock(869468062957908540) /*application='Dummy'*/
1148
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
1149
+ ActiveRecord::SchemaMigration Load (1.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
1150
+ ActiveRecord::InternalMetadata Load (1.5ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/
1151
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
1152
+ 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'*/
1153
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
1154
+ 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'*/
1155
+ SQL (0.2ms) SET search_path TO public /*application='Dummy'*/
1156
+  (77.1ms) DROP DATABASE IF EXISTS "snf_dev" /*application='Dummy'*/
1157
+ SQL (0.1ms) SET search_path TO public /*application='Dummy'*/
1158
+  (12.2ms) DROP DATABASE IF EXISTS "snf_test" /*application='Dummy'*/
1159
+ SQL (0.1ms) SET search_path TO public /*application='Dummy'*/
1160
+  (11.6ms) DROP DATABASE IF EXISTS "snf_prod" /*application='Dummy'*/
1161
+ SQL (0.2ms) SET search_path TO public /*application='Dummy'*/
1162
+  (224.3ms) CREATE DATABASE "snf_dev" ENCODING = 'unicode' /*application='Dummy'*/
1163
+ SQL (0.1ms) SET search_path TO public /*application='Dummy'*/
1164
+  (79.8ms) CREATE DATABASE "snf_test" ENCODING = 'unicode' /*application='Dummy'*/
1165
+ SQL (1.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" SCHEMA pg_catalog /*application='Dummy'*/
1166
+  (0.4ms) DROP TABLE IF EXISTS "active_storage_attachments" CASCADE /*application='Dummy'*/
1167
+  (14.5ms) 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'*/
1168
+  (1.4ms) CREATE INDEX "index_active_storage_attachments_on_blob_id" ON "active_storage_attachments" ("blob_id") /*application='Dummy'*/
1169
+  (1.5ms) CREATE UNIQUE INDEX "index_active_storage_attachments_uniqueness" ON "active_storage_attachments" ("record_type", "record_id", "name", "blob_id") /*application='Dummy'*/
1170
+  (0.2ms) DROP TABLE IF EXISTS "active_storage_blobs" CASCADE /*application='Dummy'*/
1171
+  (4.4ms) 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'*/
1172
+  (2.1ms) CREATE UNIQUE INDEX "index_active_storage_blobs_on_key" ON "active_storage_blobs" ("key") /*application='Dummy'*/
1173
+  (0.2ms) DROP TABLE IF EXISTS "active_storage_variant_records" CASCADE /*application='Dummy'*/
1174
+  (4.6ms) CREATE TABLE "active_storage_variant_records" ("id" bigserial primary key, "blob_id" bigint NOT NULL, "variation_digest" character varying NOT NULL) /*application='Dummy'*/
1175
+  (1.9ms) CREATE UNIQUE INDEX "index_active_storage_variant_records_uniqueness" ON "active_storage_variant_records" ("blob_id", "variation_digest") /*application='Dummy'*/
1176
+  (0.3ms) DROP TABLE IF EXISTS "snf_core_addresses" CASCADE /*application='Dummy'*/
1177
+  (5.5ms) 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 NOT NULL, "longitude" decimal NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/
1178
+  (2.6ms) DROP TABLE IF EXISTS "snf_core_business_documents" CASCADE /*application='Dummy'*/
1179
+  (3.5ms) 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'*/
1180
+  (1.5ms) CREATE INDEX "index_snf_core_business_documents_on_business_id" ON "snf_core_business_documents" ("business_id") /*application='Dummy'*/
1181
+  (0.9ms) CREATE INDEX "index_snf_core_business_documents_on_verified_by_id" ON "snf_core_business_documents" ("verified_by_id") /*application='Dummy'*/
1182
+  (0.1ms) DROP TABLE IF EXISTS "snf_core_businesses" CASCADE /*application='Dummy'*/
1183
+  (3.1ms) 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 NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/
1184
+  (1.1ms) CREATE INDEX "index_snf_core_businesses_on_user_id" ON "snf_core_businesses" ("user_id") /*application='Dummy'*/
1185
+  (0.1ms) DROP TABLE IF EXISTS "snf_core_categories" CASCADE /*application='Dummy'*/
1186
+  (2.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'*/
1187
+  (1.0ms) CREATE INDEX "index_snf_core_categories_on_parent_id" ON "snf_core_categories" ("parent_id") /*application='Dummy'*/
1188
+  (0.1ms) DROP TABLE IF EXISTS "snf_core_customer_groups" CASCADE /*application='Dummy'*/
1189
+  (3.6ms) 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'*/
1190
+  (1.2ms) CREATE INDEX "index_snf_core_customer_groups_on_customer_id" ON "snf_core_customer_groups" ("customer_id") /*application='Dummy'*/
1191
+  (1.0ms) CREATE INDEX "index_snf_core_customer_groups_on_group_id" ON "snf_core_customer_groups" ("group_id") /*application='Dummy'*/
1192
+  (0.2ms) DROP TABLE IF EXISTS "snf_core_groups" CASCADE /*application='Dummy'*/
1193
+  (3.9ms) 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'*/
1194
+  (1.1ms) CREATE INDEX "index_snf_core_groups_on_business_id" ON "snf_core_groups" ("business_id") /*application='Dummy'*/
1195
+  (0.2ms) DROP TABLE IF EXISTS "snf_core_products" CASCADE /*application='Dummy'*/
1196
+  (4.0ms) 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'*/
1197
+  (1.3ms) CREATE INDEX "index_snf_core_products_on_category_id" ON "snf_core_products" ("category_id") /*application='Dummy'*/
1198
+  (0.2ms) DROP TABLE IF EXISTS "snf_core_roles" CASCADE /*application='Dummy'*/
1199
+  (4.4ms) 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'*/
1200
+  (0.4ms) DROP TABLE IF EXISTS "snf_core_store_inventories" CASCADE /*application='Dummy'*/
1201
+  (3.4ms) 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'*/
1202
+  (1.6ms) CREATE INDEX "index_snf_core_store_inventories_on_product_id" ON "snf_core_store_inventories" ("product_id") /*application='Dummy'*/
1203
+  (1.4ms) 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'*/
1204
+  (2.6ms) CREATE INDEX "index_snf_core_store_inventories_on_store_id" ON "snf_core_store_inventories" ("store_id") /*application='Dummy'*/
1205
+  (0.2ms) DROP TABLE IF EXISTS "snf_core_stores" CASCADE /*application='Dummy'*/
1206
+  (6.0ms) 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'*/
1207
+  (1.9ms) CREATE INDEX "index_snf_core_stores_on_address_id" ON "snf_core_stores" ("address_id") /*application='Dummy'*/
1208
+  (1.5ms) CREATE INDEX "index_snf_core_stores_on_business_id" ON "snf_core_stores" ("business_id") /*application='Dummy'*/
1209
+  (0.2ms) DROP TABLE IF EXISTS "snf_core_user_roles" CASCADE /*application='Dummy'*/
1210
+  (4.0ms) 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'*/
1211
+  (1.9ms) CREATE INDEX "index_snf_core_user_roles_on_role_id" ON "snf_core_user_roles" ("role_id") /*application='Dummy'*/
1212
+  (1.5ms) CREATE INDEX "index_snf_core_user_roles_on_user_id" ON "snf_core_user_roles" ("user_id") /*application='Dummy'*/
1213
+  (0.2ms) DROP TABLE IF EXISTS "snf_core_users" CASCADE /*application='Dummy'*/
1214
+  (6.2ms) 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, "role" integer NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/
1215
+  (0.5ms) DROP TABLE IF EXISTS "snf_core_wallets" CASCADE /*application='Dummy'*/
1216
+  (4.2ms) 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'*/
1217
+  (1.6ms) CREATE INDEX "index_snf_core_wallets_on_user_id" ON "snf_core_wallets" ("user_id") /*application='Dummy'*/
1218
+  (1.3ms) CREATE UNIQUE INDEX "index_snf_core_wallets_on_wallet_number" ON "snf_core_wallets" ("wallet_number") /*application='Dummy'*/
1219
+  (5.1ms) ALTER TABLE "active_storage_attachments" ADD CONSTRAINT "fk_rails_c3b3935057"
1220
+ FOREIGN KEY ("blob_id")
1221
+ REFERENCES "active_storage_blobs" ("id")
1222
+ /*application='Dummy'*/
1223
+  (2.2ms) ALTER TABLE "active_storage_variant_records" ADD CONSTRAINT "fk_rails_993965df05"
1224
+ FOREIGN KEY ("blob_id")
1225
+ REFERENCES "active_storage_blobs" ("id")
1226
+ /*application='Dummy'*/
1227
+  (2.1ms) ALTER TABLE "snf_core_business_documents" ADD CONSTRAINT "fk_rails_1efd7338ed"
1228
+ FOREIGN KEY ("business_id")
1229
+ REFERENCES "snf_core_businesses" ("id")
1230
+ /*application='Dummy'*/
1231
+  (1.6ms) ALTER TABLE "snf_core_business_documents" ADD CONSTRAINT "fk_rails_a6157021cc"
1232
+ FOREIGN KEY ("verified_by_id")
1233
+ REFERENCES "snf_core_users" ("id")
1234
+ /*application='Dummy'*/
1235
+  (1.2ms) ALTER TABLE "snf_core_businesses" ADD CONSTRAINT "fk_rails_a61edcbd4b"
1236
+ FOREIGN KEY ("user_id")
1237
+ REFERENCES "snf_core_users" ("id")
1238
+ /*application='Dummy'*/
1239
+  (1.3ms) ALTER TABLE "snf_core_categories" ADD CONSTRAINT "fk_rails_26a925b05d"
1240
+ FOREIGN KEY ("parent_id")
1241
+ REFERENCES "snf_core_categories" ("id")
1242
+ /*application='Dummy'*/
1243
+  (1.7ms) ALTER TABLE "snf_core_customer_groups" ADD CONSTRAINT "fk_rails_9c45f4015a"
1244
+ FOREIGN KEY ("group_id")
1245
+ REFERENCES "snf_core_groups" ("id")
1246
+ /*application='Dummy'*/
1247
+  (1.3ms) ALTER TABLE "snf_core_customer_groups" ADD CONSTRAINT "fk_rails_792eb3404d"
1248
+ FOREIGN KEY ("customer_id")
1249
+ REFERENCES "snf_core_users" ("id")
1250
+ /*application='Dummy'*/
1251
+  (1.0ms) ALTER TABLE "snf_core_groups" ADD CONSTRAINT "fk_rails_c52b27ad67"
1252
+ FOREIGN KEY ("business_id")
1253
+ REFERENCES "snf_core_businesses" ("id")
1254
+ /*application='Dummy'*/
1255
+  (1.4ms) ALTER TABLE "snf_core_products" ADD CONSTRAINT "fk_rails_a0ba3fa883"
1256
+ FOREIGN KEY ("category_id")
1257
+ REFERENCES "snf_core_categories" ("id")
1258
+ /*application='Dummy'*/
1259
+  (2.1ms) ALTER TABLE "snf_core_store_inventories" ADD CONSTRAINT "fk_rails_15fb263e75"
1260
+ FOREIGN KEY ("product_id")
1261
+ REFERENCES "snf_core_products" ("id")
1262
+ /*application='Dummy'*/
1263
+  (1.6ms) ALTER TABLE "snf_core_store_inventories" ADD CONSTRAINT "fk_rails_2ca88d30e2"
1264
+ FOREIGN KEY ("store_id")
1265
+ REFERENCES "snf_core_stores" ("id")
1266
+ /*application='Dummy'*/
1267
+  (2.4ms) ALTER TABLE "snf_core_stores" ADD CONSTRAINT "fk_rails_421441da8e"
1268
+ FOREIGN KEY ("address_id")
1269
+ REFERENCES "snf_core_addresses" ("id")
1270
+ /*application='Dummy'*/
1271
+  (1.4ms) ALTER TABLE "snf_core_stores" ADD CONSTRAINT "fk_rails_e100fc7454"
1272
+ FOREIGN KEY ("business_id")
1273
+ REFERENCES "snf_core_businesses" ("id")
1274
+ /*application='Dummy'*/
1275
+  (2.3ms) ALTER TABLE "snf_core_user_roles" ADD CONSTRAINT "fk_rails_0e70d7ce00"
1276
+ FOREIGN KEY ("role_id")
1277
+ REFERENCES "snf_core_roles" ("id")
1278
+ /*application='Dummy'*/
1279
+  (1.5ms) ALTER TABLE "snf_core_user_roles" ADD CONSTRAINT "fk_rails_9ad2e78133"
1280
+ FOREIGN KEY ("user_id")
1281
+ REFERENCES "snf_core_users" ("id")
1282
+ /*application='Dummy'*/
1283
+  (1.9ms) ALTER TABLE "snf_core_wallets" ADD CONSTRAINT "fk_rails_77c94979ce"
1284
+ FOREIGN KEY ("user_id")
1285
+ REFERENCES "snf_core_users" ("id")
1286
+ /*application='Dummy'*/
1287
+  (5.1ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY) /*application='Dummy'*/
1288
+ ActiveRecord::SchemaMigration Load (1.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
1289
+  (2.4ms) INSERT INTO "schema_migrations" (version) VALUES (20250305232530) /*application='Dummy'*/
1290
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES
1291
+ (20250305232529),
1292
+ (20250227102833),
1293
+ (20250227075048),
1294
+ (20250226193938),
1295
+ (20250226192104),
1296
+ (20250226190000),
1297
+ (20250226181007),
1298
+ (20250226123213),
1299
+ (20250226115215),
1300
+ (20250226110217),
1301
+ (20250226102931),
1302
+ (20250226080323),
1303
+ (20250226064444),
1304
+ (20250226042622); /*application='Dummy'*/
1305
+  (5.4ms) 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'*/
1306
+ 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'*/
1307
+ ActiveRecord::InternalMetadata Create (0.7ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'development', '2025-03-06 00:24:04.849161', '2025-03-06 00:24:04.849163') RETURNING "key" /*application='Dummy'*/
1308
+ 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'*/
1309
+ 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'*/
1310
+ ActiveRecord::InternalMetadata Create (0.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('schema_sha1', 'f164983db40540ac20b9f048ccfeb860da70173c', '2025-03-06 00:24:04.852905', '2025-03-06 00:24:04.852906') RETURNING "key" /*application='Dummy'*/
1311
+  (0.3ms) SELECT pg_try_advisory_lock(869468062957908540) /*application='Dummy'*/
1312
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
1313
+ 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'*/
1314
+  (0.3ms) SELECT pg_advisory_unlock(869468062957908540) /*application='Dummy'*/
1315
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
1316
+  (0.2ms) SELECT pg_try_advisory_lock(869468062957908540) /*application='Dummy'*/
1317
+ ActiveRecord::SchemaMigration Load (2.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
1318
+ ActiveRecord::InternalMetadata Load (0.7ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/
1319
+ Migrating to RemoveRoleFromSnfCoreUsers (20250306002531)
1320
+ TRANSACTION (0.1ms) BEGIN /*application='Dummy'*/
1321
+ ActiveRecord::SchemaMigration Create (1.5ms) INSERT INTO "schema_migrations" ("version") VALUES ('20250306002531') RETURNING "version" /*application='Dummy'*/
1322
+ TRANSACTION (0.5ms) COMMIT /*application='Dummy'*/
1323
+  (0.3ms) SELECT pg_advisory_unlock(869468062957908540) /*application='Dummy'*/
1324
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
1325
+ ActiveRecord::SchemaMigration Load (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
1326
+ ActiveRecord::InternalMetadata Load (0.8ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/
1327
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
1328
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/
1329
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
1330
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/
1331
+ SQL (0.1ms) SET search_path TO public /*application='Dummy'*/
1332
+  (68.6ms) DROP DATABASE IF EXISTS "snf_dev" /*application='Dummy'*/
1333
+ SQL (0.1ms) SET search_path TO public /*application='Dummy'*/
1334
+  (11.1ms) DROP DATABASE IF EXISTS "snf_test" /*application='Dummy'*/
1335
+ SQL (0.1ms) SET search_path TO public /*application='Dummy'*/
1336
+  (11.0ms) DROP DATABASE IF EXISTS "snf_prod" /*application='Dummy'*/
1337
+ SQL (0.1ms) SET search_path TO public /*application='Dummy'*/
1338
+  (174.3ms) CREATE DATABASE "snf_dev" ENCODING = 'unicode' /*application='Dummy'*/
1339
+ SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" SCHEMA pg_catalog /*application='Dummy'*/
1340
+  (0.1ms) DROP TABLE IF EXISTS "active_storage_attachments" CASCADE /*application='Dummy'*/
1341
+  (3.9ms) 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'*/
1342
+  (0.4ms) CREATE INDEX "index_active_storage_attachments_on_blob_id" ON "active_storage_attachments" ("blob_id") /*application='Dummy'*/
1343
+  (0.7ms) CREATE UNIQUE INDEX "index_active_storage_attachments_uniqueness" ON "active_storage_attachments" ("record_type", "record_id", "name", "blob_id") /*application='Dummy'*/
1344
+  (0.1ms) DROP TABLE IF EXISTS "active_storage_blobs" CASCADE /*application='Dummy'*/
1345
+  (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'*/
1346
+  (0.6ms) CREATE UNIQUE INDEX "index_active_storage_blobs_on_key" ON "active_storage_blobs" ("key") /*application='Dummy'*/
1347
+  (0.1ms) DROP TABLE IF EXISTS "active_storage_variant_records" CASCADE /*application='Dummy'*/
1348
+  (1.3ms) CREATE TABLE "active_storage_variant_records" ("id" bigserial primary key, "blob_id" bigint NOT NULL, "variation_digest" character varying NOT NULL) /*application='Dummy'*/
1349
+  (0.4ms) CREATE UNIQUE INDEX "index_active_storage_variant_records_uniqueness" ON "active_storage_variant_records" ("blob_id", "variation_digest") /*application='Dummy'*/
1350
+  (0.1ms) DROP TABLE IF EXISTS "snf_core_addresses" CASCADE /*application='Dummy'*/
1351
+  (1.6ms) 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 NOT NULL, "longitude" decimal NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/
1352
+  (0.4ms) DROP TABLE IF EXISTS "snf_core_business_documents" CASCADE /*application='Dummy'*/
1353
+  (1.5ms) 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'*/
1354
+  (0.5ms) CREATE INDEX "index_snf_core_business_documents_on_business_id" ON "snf_core_business_documents" ("business_id") /*application='Dummy'*/
1355
+  (0.4ms) CREATE INDEX "index_snf_core_business_documents_on_verified_by_id" ON "snf_core_business_documents" ("verified_by_id") /*application='Dummy'*/
1356
+  (0.1ms) DROP TABLE IF EXISTS "snf_core_businesses" CASCADE /*application='Dummy'*/
1357
+  (1.5ms) 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 NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/
1358
+  (0.4ms) CREATE INDEX "index_snf_core_businesses_on_user_id" ON "snf_core_businesses" ("user_id") /*application='Dummy'*/
1359
+  (0.1ms) DROP TABLE IF EXISTS "snf_core_categories" CASCADE /*application='Dummy'*/
1360
+  (1.5ms) 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'*/
1361
+  (0.5ms) CREATE INDEX "index_snf_core_categories_on_parent_id" ON "snf_core_categories" ("parent_id") /*application='Dummy'*/
1362
+  (0.1ms) DROP TABLE IF EXISTS "snf_core_customer_groups" CASCADE /*application='Dummy'*/
1363
+  (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'*/
1364
+  (0.5ms) CREATE INDEX "index_snf_core_customer_groups_on_customer_id" ON "snf_core_customer_groups" ("customer_id") /*application='Dummy'*/
1365
+  (0.4ms) CREATE INDEX "index_snf_core_customer_groups_on_group_id" ON "snf_core_customer_groups" ("group_id") /*application='Dummy'*/
1366
+  (0.1ms) DROP TABLE IF EXISTS "snf_core_groups" CASCADE /*application='Dummy'*/
1367
+  (1.7ms) 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'*/
1368
+  (0.5ms) CREATE INDEX "index_snf_core_groups_on_business_id" ON "snf_core_groups" ("business_id") /*application='Dummy'*/
1369
+  (0.1ms) DROP TABLE IF EXISTS "snf_core_products" CASCADE /*application='Dummy'*/
1370
+  (1.4ms) 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'*/
1371
+  (0.4ms) CREATE INDEX "index_snf_core_products_on_category_id" ON "snf_core_products" ("category_id") /*application='Dummy'*/
1372
+  (0.1ms) DROP TABLE IF EXISTS "snf_core_roles" CASCADE /*application='Dummy'*/
1373
+  (1.6ms) 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'*/
1374
+  (0.1ms) DROP TABLE IF EXISTS "snf_core_store_inventories" CASCADE /*application='Dummy'*/
1375
+  (1.4ms) 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'*/
1376
+  (0.8ms) CREATE INDEX "index_snf_core_store_inventories_on_product_id" ON "snf_core_store_inventories" ("product_id") /*application='Dummy'*/
1377
+  (0.5ms) 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'*/
1378
+  (0.7ms) CREATE INDEX "index_snf_core_store_inventories_on_store_id" ON "snf_core_store_inventories" ("store_id") /*application='Dummy'*/
1379
+  (0.1ms) DROP TABLE IF EXISTS "snf_core_stores" CASCADE /*application='Dummy'*/
1380
+  (1.5ms) 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'*/
1381
+  (0.5ms) CREATE INDEX "index_snf_core_stores_on_address_id" ON "snf_core_stores" ("address_id") /*application='Dummy'*/
1382
+  (0.4ms) CREATE INDEX "index_snf_core_stores_on_business_id" ON "snf_core_stores" ("business_id") /*application='Dummy'*/
1383
+  (0.1ms) DROP TABLE IF EXISTS "snf_core_user_roles" CASCADE /*application='Dummy'*/
1384
+  (1.0ms) 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'*/
1385
+  (0.5ms) CREATE INDEX "index_snf_core_user_roles_on_role_id" ON "snf_core_user_roles" ("role_id") /*application='Dummy'*/
1386
+  (0.4ms) CREATE INDEX "index_snf_core_user_roles_on_user_id" ON "snf_core_user_roles" ("user_id") /*application='Dummy'*/
1387
+  (0.1ms) DROP TABLE IF EXISTS "snf_core_users" CASCADE /*application='Dummy'*/
1388
+  (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, "role" integer NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/
1389
+  (0.2ms) DROP TABLE IF EXISTS "snf_core_wallets" CASCADE /*application='Dummy'*/
1390
+  (1.8ms) 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'*/
1391
+  (0.8ms) CREATE INDEX "index_snf_core_wallets_on_user_id" ON "snf_core_wallets" ("user_id") /*application='Dummy'*/
1392
+  (0.5ms) CREATE UNIQUE INDEX "index_snf_core_wallets_on_wallet_number" ON "snf_core_wallets" ("wallet_number") /*application='Dummy'*/
1393
+  (1.4ms) ALTER TABLE "active_storage_attachments" ADD CONSTRAINT "fk_rails_c3b3935057"
1394
+ FOREIGN KEY ("blob_id")
1395
+ REFERENCES "active_storage_blobs" ("id")
1396
+ /*application='Dummy'*/
1397
+  (0.6ms) ALTER TABLE "active_storage_variant_records" ADD CONSTRAINT "fk_rails_993965df05"
1398
+ FOREIGN KEY ("blob_id")
1399
+ REFERENCES "active_storage_blobs" ("id")
1400
+ /*application='Dummy'*/
1401
+  (0.7ms) ALTER TABLE "snf_core_business_documents" ADD CONSTRAINT "fk_rails_1efd7338ed"
1402
+ FOREIGN KEY ("business_id")
1403
+ REFERENCES "snf_core_businesses" ("id")
1404
+ /*application='Dummy'*/
1405
+  (0.8ms) ALTER TABLE "snf_core_business_documents" ADD CONSTRAINT "fk_rails_a6157021cc"
1406
+ FOREIGN KEY ("verified_by_id")
1407
+ REFERENCES "snf_core_users" ("id")
1408
+ /*application='Dummy'*/
1409
+  (0.5ms) ALTER TABLE "snf_core_businesses" ADD CONSTRAINT "fk_rails_a61edcbd4b"
1410
+ FOREIGN KEY ("user_id")
1411
+ REFERENCES "snf_core_users" ("id")
1412
+ /*application='Dummy'*/
1413
+  (0.5ms) ALTER TABLE "snf_core_categories" ADD CONSTRAINT "fk_rails_26a925b05d"
1414
+ FOREIGN KEY ("parent_id")
1415
+ REFERENCES "snf_core_categories" ("id")
1416
+ /*application='Dummy'*/
1417
+  (0.7ms) ALTER TABLE "snf_core_customer_groups" ADD CONSTRAINT "fk_rails_9c45f4015a"
1418
+ FOREIGN KEY ("group_id")
1419
+ REFERENCES "snf_core_groups" ("id")
1420
+ /*application='Dummy'*/
1421
+  (0.9ms) ALTER TABLE "snf_core_customer_groups" ADD CONSTRAINT "fk_rails_792eb3404d"
1422
+ FOREIGN KEY ("customer_id")
1423
+ REFERENCES "snf_core_users" ("id")
1424
+ /*application='Dummy'*/
1425
+  (0.7ms) ALTER TABLE "snf_core_groups" ADD CONSTRAINT "fk_rails_c52b27ad67"
1426
+ FOREIGN KEY ("business_id")
1427
+ REFERENCES "snf_core_businesses" ("id")
1428
+ /*application='Dummy'*/
1429
+  (0.8ms) ALTER TABLE "snf_core_products" ADD CONSTRAINT "fk_rails_a0ba3fa883"
1430
+ FOREIGN KEY ("category_id")
1431
+ REFERENCES "snf_core_categories" ("id")
1432
+ /*application='Dummy'*/
1433
+  (2.2ms) ALTER TABLE "snf_core_store_inventories" ADD CONSTRAINT "fk_rails_15fb263e75"
1434
+ FOREIGN KEY ("product_id")
1435
+ REFERENCES "snf_core_products" ("id")
1436
+ /*application='Dummy'*/
1437
+  (1.0ms) ALTER TABLE "snf_core_store_inventories" ADD CONSTRAINT "fk_rails_2ca88d30e2"
1438
+ FOREIGN KEY ("store_id")
1439
+ REFERENCES "snf_core_stores" ("id")
1440
+ /*application='Dummy'*/
1441
+  (1.0ms) ALTER TABLE "snf_core_stores" ADD CONSTRAINT "fk_rails_421441da8e"
1442
+ FOREIGN KEY ("address_id")
1443
+ REFERENCES "snf_core_addresses" ("id")
1444
+ /*application='Dummy'*/
1445
+  (0.7ms) ALTER TABLE "snf_core_stores" ADD CONSTRAINT "fk_rails_e100fc7454"
1446
+ FOREIGN KEY ("business_id")
1447
+ REFERENCES "snf_core_businesses" ("id")
1448
+ /*application='Dummy'*/
1449
+  (2.1ms) ALTER TABLE "snf_core_user_roles" ADD CONSTRAINT "fk_rails_0e70d7ce00"
1450
+ FOREIGN KEY ("role_id")
1451
+ REFERENCES "snf_core_roles" ("id")
1452
+ /*application='Dummy'*/
1453
+  (0.8ms) ALTER TABLE "snf_core_user_roles" ADD CONSTRAINT "fk_rails_9ad2e78133"
1454
+ FOREIGN KEY ("user_id")
1455
+ REFERENCES "snf_core_users" ("id")
1456
+ /*application='Dummy'*/
1457
+  (1.2ms) ALTER TABLE "snf_core_wallets" ADD CONSTRAINT "fk_rails_77c94979ce"
1458
+ FOREIGN KEY ("user_id")
1459
+ REFERENCES "snf_core_users" ("id")
1460
+ /*application='Dummy'*/
1461
+  (2.0ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY) /*application='Dummy'*/
1462
+ ActiveRecord::SchemaMigration Load (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
1463
+  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES (20250306002531) /*application='Dummy'*/
1464
+  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES
1465
+ (20250305232530),
1466
+ (20250305232529),
1467
+ (20250227102833),
1468
+ (20250227075048),
1469
+ (20250226193938),
1470
+ (20250226192104),
1471
+ (20250226190000),
1472
+ (20250226181007),
1473
+ (20250226123213),
1474
+ (20250226115215),
1475
+ (20250226110217),
1476
+ (20250226102931),
1477
+ (20250226080323),
1478
+ (20250226064444),
1479
+ (20250226042622); /*application='Dummy'*/
1480
+  (2.5ms) 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'*/
1481
+ ActiveRecord::InternalMetadata Load (0.8ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/
1482
+ ActiveRecord::InternalMetadata Create (0.6ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'development', '2025-03-06 00:28:27.494712', '2025-03-06 00:28:27.494714') RETURNING "key" /*application='Dummy'*/
1483
+ 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'*/
1484
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'schema_sha1' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/
1485
+ ActiveRecord::InternalMetadata Create (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('schema_sha1', '021a6a75a4c37979a31a7934032087b3e04a5f86', '2025-03-06 00:28:27.497831', '2025-03-06 00:28:27.497832') RETURNING "key" /*application='Dummy'*/
1486
+  (0.2ms) SELECT pg_try_advisory_lock(869468062957908540) /*application='Dummy'*/
1487
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
1488
+ 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'*/
1489
+  (0.2ms) SELECT pg_advisory_unlock(869468062957908540) /*application='Dummy'*/
1490
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
1491
+  (0.2ms) SELECT pg_try_advisory_lock(869468062957908540) /*application='Dummy'*/
1492
+ ActiveRecord::SchemaMigration Load (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
1493
+ 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'*/
1494
+  (0.2ms) SELECT pg_advisory_unlock(869468062957908540) /*application='Dummy'*/
1495
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
1496
+ ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
1497
+ ActiveRecord::SchemaMigration Load (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
1498
+ 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'*/
1499
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
1500
+ 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'*/
1501
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
1502
+ 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'*/
1503
+ SQL (0.2ms) SET search_path TO public /*application='Dummy'*/
1504
+  (69.9ms) DROP DATABASE IF EXISTS "snf_dev" /*application='Dummy'*/
1505
+ SQL (0.1ms) SET search_path TO public /*application='Dummy'*/
1506
+  (10.9ms) DROP DATABASE IF EXISTS "snf_test" /*application='Dummy'*/
1507
+ SQL (0.1ms) SET search_path TO public /*application='Dummy'*/
1508
+  (10.4ms) DROP DATABASE IF EXISTS "snf_prod" /*application='Dummy'*/
1509
+ SQL (0.2ms) SET search_path TO public /*application='Dummy'*/
1510
+  (182.5ms) CREATE DATABASE "snf_dev" ENCODING = 'unicode' /*application='Dummy'*/
1511
+ SQL (0.2ms) SET search_path TO public /*application='Dummy'*/
1512
+  (93.3ms) CREATE DATABASE "snf_test" ENCODING = 'unicode' /*application='Dummy'*/
1513
+ SQL (0.1ms) SET search_path TO public /*application='Dummy'*/
1514
+  (58.7ms) CREATE DATABASE "snf_prod" ENCODING = 'unicode' /*application='Dummy'*/
1515
+ SQL (2.0ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" SCHEMA pg_catalog /*application='Dummy'*/
1516
+  (0.2ms) DROP TABLE IF EXISTS "active_storage_attachments" CASCADE /*application='Dummy'*/
1517
+  (21.7ms) 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'*/
1518
+  (1.3ms) CREATE INDEX "index_active_storage_attachments_on_blob_id" ON "active_storage_attachments" ("blob_id") /*application='Dummy'*/
1519
+  (1.2ms) CREATE UNIQUE INDEX "index_active_storage_attachments_uniqueness" ON "active_storage_attachments" ("record_type", "record_id", "name", "blob_id") /*application='Dummy'*/
1520
+  (0.1ms) DROP TABLE IF EXISTS "active_storage_blobs" CASCADE /*application='Dummy'*/
1521
+  (3.4ms) 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'*/
1522
+  (1.1ms) CREATE UNIQUE INDEX "index_active_storage_blobs_on_key" ON "active_storage_blobs" ("key") /*application='Dummy'*/
1523
+  (0.1ms) DROP TABLE IF EXISTS "active_storage_variant_records" CASCADE /*application='Dummy'*/
1524
+  (3.7ms) CREATE TABLE "active_storage_variant_records" ("id" bigserial primary key, "blob_id" bigint NOT NULL, "variation_digest" character varying NOT NULL) /*application='Dummy'*/
1525
+  (1.2ms) CREATE UNIQUE INDEX "index_active_storage_variant_records_uniqueness" ON "active_storage_variant_records" ("blob_id", "variation_digest") /*application='Dummy'*/
1526
+  (0.2ms) DROP TABLE IF EXISTS "snf_core_addresses" CASCADE /*application='Dummy'*/
1527
+  (3.6ms) 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 NOT NULL, "longitude" decimal NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/
1528
+  (0.3ms) DROP TABLE IF EXISTS "snf_core_business_documents" CASCADE /*application='Dummy'*/
1529
+  (3.7ms) 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'*/
1530
+  (1.7ms) CREATE INDEX "index_snf_core_business_documents_on_business_id" ON "snf_core_business_documents" ("business_id") /*application='Dummy'*/
1531
+  (1.6ms) CREATE INDEX "index_snf_core_business_documents_on_verified_by_id" ON "snf_core_business_documents" ("verified_by_id") /*application='Dummy'*/
1532
+  (0.2ms) DROP TABLE IF EXISTS "snf_core_businesses" CASCADE /*application='Dummy'*/
1533
+  (4.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 NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/
1534
+  (1.6ms) CREATE INDEX "index_snf_core_businesses_on_user_id" ON "snf_core_businesses" ("user_id") /*application='Dummy'*/
1535
+  (0.2ms) DROP TABLE IF EXISTS "snf_core_categories" CASCADE /*application='Dummy'*/
1536
+  (5.1ms) 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'*/
1537
+  (2.0ms) CREATE INDEX "index_snf_core_categories_on_parent_id" ON "snf_core_categories" ("parent_id") /*application='Dummy'*/
1538
+  (0.2ms) DROP TABLE IF EXISTS "snf_core_customer_groups" CASCADE /*application='Dummy'*/
1539
+  (7.2ms) 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'*/
1540
+  (1.8ms) CREATE INDEX "index_snf_core_customer_groups_on_customer_id" ON "snf_core_customer_groups" ("customer_id") /*application='Dummy'*/
1541
+  (1.4ms) CREATE INDEX "index_snf_core_customer_groups_on_group_id" ON "snf_core_customer_groups" ("group_id") /*application='Dummy'*/
1542
+  (0.2ms) DROP TABLE IF EXISTS "snf_core_groups" CASCADE /*application='Dummy'*/
1543
+  (5.1ms) 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'*/
1544
+  (1.7ms) CREATE INDEX "index_snf_core_groups_on_business_id" ON "snf_core_groups" ("business_id") /*application='Dummy'*/
1545
+  (0.2ms) DROP TABLE IF EXISTS "snf_core_products" CASCADE /*application='Dummy'*/
1546
+  (5.4ms) 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'*/
1547
+  (2.2ms) CREATE INDEX "index_snf_core_products_on_category_id" ON "snf_core_products" ("category_id") /*application='Dummy'*/
1548
+  (0.2ms) DROP TABLE IF EXISTS "snf_core_roles" CASCADE /*application='Dummy'*/
1549
+  (5.0ms) 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'*/
1550
+  (0.4ms) DROP TABLE IF EXISTS "snf_core_store_inventories" CASCADE /*application='Dummy'*/
1551
+  (4.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'*/
1552
+  (1.6ms) CREATE INDEX "index_snf_core_store_inventories_on_product_id" ON "snf_core_store_inventories" ("product_id") /*application='Dummy'*/
1553
+  (1.2ms) 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'*/
1554
+  (1.5ms) CREATE INDEX "index_snf_core_store_inventories_on_store_id" ON "snf_core_store_inventories" ("store_id") /*application='Dummy'*/
1555
+  (0.2ms) DROP TABLE IF EXISTS "snf_core_stores" CASCADE /*application='Dummy'*/
1556
+  (5.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'*/
1557
+  (1.3ms) CREATE INDEX "index_snf_core_stores_on_address_id" ON "snf_core_stores" ("address_id") /*application='Dummy'*/
1558
+  (1.4ms) CREATE INDEX "index_snf_core_stores_on_business_id" ON "snf_core_stores" ("business_id") /*application='Dummy'*/
1559
+  (0.2ms) DROP TABLE IF EXISTS "snf_core_user_roles" CASCADE /*application='Dummy'*/
1560
+  (3.0ms) 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'*/
1561
+  (1.3ms) CREATE INDEX "index_snf_core_user_roles_on_role_id" ON "snf_core_user_roles" ("role_id") /*application='Dummy'*/
1562
+  (1.0ms) CREATE INDEX "index_snf_core_user_roles_on_user_id" ON "snf_core_user_roles" ("user_id") /*application='Dummy'*/
1563
+  (0.2ms) DROP TABLE IF EXISTS "snf_core_users" CASCADE /*application='Dummy'*/
1564
+  (3.8ms) 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) /*application='Dummy'*/
1565
+  (0.4ms) DROP TABLE IF EXISTS "snf_core_wallets" CASCADE /*application='Dummy'*/
1566
+  (5.1ms) 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'*/
1567
+  (2.0ms) CREATE INDEX "index_snf_core_wallets_on_user_id" ON "snf_core_wallets" ("user_id") /*application='Dummy'*/
1568
+  (1.7ms) CREATE UNIQUE INDEX "index_snf_core_wallets_on_wallet_number" ON "snf_core_wallets" ("wallet_number") /*application='Dummy'*/
1569
+  (6.1ms) ALTER TABLE "active_storage_attachments" ADD CONSTRAINT "fk_rails_c3b3935057"
1570
+ FOREIGN KEY ("blob_id")
1571
+ REFERENCES "active_storage_blobs" ("id")
1572
+ /*application='Dummy'*/
1573
+  (2.1ms) ALTER TABLE "active_storage_variant_records" ADD CONSTRAINT "fk_rails_993965df05"
1574
+ FOREIGN KEY ("blob_id")
1575
+ REFERENCES "active_storage_blobs" ("id")
1576
+ /*application='Dummy'*/
1577
+  (2.2ms) ALTER TABLE "snf_core_business_documents" ADD CONSTRAINT "fk_rails_1efd7338ed"
1578
+ FOREIGN KEY ("business_id")
1579
+ REFERENCES "snf_core_businesses" ("id")
1580
+ /*application='Dummy'*/
1581
+  (1.5ms) ALTER TABLE "snf_core_business_documents" ADD CONSTRAINT "fk_rails_a6157021cc"
1582
+ FOREIGN KEY ("verified_by_id")
1583
+ REFERENCES "snf_core_users" ("id")
1584
+ /*application='Dummy'*/
1585
+  (1.4ms) ALTER TABLE "snf_core_businesses" ADD CONSTRAINT "fk_rails_a61edcbd4b"
1586
+ FOREIGN KEY ("user_id")
1587
+ REFERENCES "snf_core_users" ("id")
1588
+ /*application='Dummy'*/
1589
+  (1.7ms) ALTER TABLE "snf_core_categories" ADD CONSTRAINT "fk_rails_26a925b05d"
1590
+ FOREIGN KEY ("parent_id")
1591
+ REFERENCES "snf_core_categories" ("id")
1592
+ /*application='Dummy'*/
1593
+  (2.2ms) ALTER TABLE "snf_core_customer_groups" ADD CONSTRAINT "fk_rails_9c45f4015a"
1594
+ FOREIGN KEY ("group_id")
1595
+ REFERENCES "snf_core_groups" ("id")
1596
+ /*application='Dummy'*/
1597
+  (1.1ms) ALTER TABLE "snf_core_customer_groups" ADD CONSTRAINT "fk_rails_792eb3404d"
1598
+ FOREIGN KEY ("customer_id")
1599
+ REFERENCES "snf_core_users" ("id")
1600
+ /*application='Dummy'*/
1601
+  (5.0ms) ALTER TABLE "snf_core_groups" ADD CONSTRAINT "fk_rails_c52b27ad67"
1602
+ FOREIGN KEY ("business_id")
1603
+ REFERENCES "snf_core_businesses" ("id")
1604
+ /*application='Dummy'*/
1605
+  (1.4ms) ALTER TABLE "snf_core_products" ADD CONSTRAINT "fk_rails_a0ba3fa883"
1606
+ FOREIGN KEY ("category_id")
1607
+ REFERENCES "snf_core_categories" ("id")
1608
+ /*application='Dummy'*/
1609
+  (1.3ms) ALTER TABLE "snf_core_store_inventories" ADD CONSTRAINT "fk_rails_15fb263e75"
1610
+ FOREIGN KEY ("product_id")
1611
+ REFERENCES "snf_core_products" ("id")
1612
+ /*application='Dummy'*/
1613
+  (1.8ms) ALTER TABLE "snf_core_store_inventories" ADD CONSTRAINT "fk_rails_2ca88d30e2"
1614
+ FOREIGN KEY ("store_id")
1615
+ REFERENCES "snf_core_stores" ("id")
1616
+ /*application='Dummy'*/
1617
+  (2.7ms) ALTER TABLE "snf_core_stores" ADD CONSTRAINT "fk_rails_421441da8e"
1618
+ FOREIGN KEY ("address_id")
1619
+ REFERENCES "snf_core_addresses" ("id")
1620
+ /*application='Dummy'*/
1621
+  (0.9ms) ALTER TABLE "snf_core_stores" ADD CONSTRAINT "fk_rails_e100fc7454"
1622
+ FOREIGN KEY ("business_id")
1623
+ REFERENCES "snf_core_businesses" ("id")
1624
+ /*application='Dummy'*/
1625
+  (1.3ms) ALTER TABLE "snf_core_user_roles" ADD CONSTRAINT "fk_rails_0e70d7ce00"
1626
+ FOREIGN KEY ("role_id")
1627
+ REFERENCES "snf_core_roles" ("id")
1628
+ /*application='Dummy'*/
1629
+  (0.9ms) ALTER TABLE "snf_core_user_roles" ADD CONSTRAINT "fk_rails_9ad2e78133"
1630
+ FOREIGN KEY ("user_id")
1631
+ REFERENCES "snf_core_users" ("id")
1632
+ /*application='Dummy'*/
1633
+  (1.6ms) ALTER TABLE "snf_core_wallets" ADD CONSTRAINT "fk_rails_77c94979ce"
1634
+ FOREIGN KEY ("user_id")
1635
+ REFERENCES "snf_core_users" ("id")
1636
+ /*application='Dummy'*/
1637
+  (4.8ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY) /*application='Dummy'*/
1638
+ ActiveRecord::SchemaMigration Load (1.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
1639
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES (20250306002531) /*application='Dummy'*/
1640
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES
1641
+ (20250305232530),
1642
+ (20250305232529),
1643
+ (20250227102833),
1644
+ (20250227075048),
1645
+ (20250226193938),
1646
+ (20250226192104),
1647
+ (20250226190000),
1648
+ (20250226181007),
1649
+ (20250226123213),
1650
+ (20250226115215),
1651
+ (20250226110217),
1652
+ (20250226102931),
1653
+ (20250226080323),
1654
+ (20250226064444),
1655
+ (20250226042622); /*application='Dummy'*/
1656
+  (5.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'*/
1657
+ ActiveRecord::InternalMetadata Load (2.2ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/
1658
+ ActiveRecord::InternalMetadata Create (0.9ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'development', '2025-03-06 00:30:44.093416', '2025-03-06 00:30:44.093418') RETURNING "key" /*application='Dummy'*/
1659
+ 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'*/
1660
+ 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'*/
1661
+ ActiveRecord::InternalMetadata Create (0.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('schema_sha1', '9957146b262222059c63df09506b24e866b79403', '2025-03-06 00:30:44.097496', '2025-03-06 00:30:44.097498') RETURNING "key" /*application='Dummy'*/
1662
+  (0.3ms) SELECT pg_try_advisory_lock(869468062957908540) /*application='Dummy'*/
1663
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
1664
+ 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'*/
1665
+  (0.3ms) SELECT pg_advisory_unlock(869468062957908540) /*application='Dummy'*/
1666
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
1667
+ ActiveRecord::SchemaMigration Load (1.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
1668
+ ActiveRecord::SchemaMigration Load (1.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
1669
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
1670
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
1671
+  (0.2ms) SELECT pg_try_advisory_lock(869468062957908540) /*application='Dummy'*/
1672
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
1673
+ Migrating to RemoveRoleFromSnfCoreUsers (20250306002531)
1674
+ TRANSACTION (0.2ms) BEGIN /*application='Dummy'*/
1675
+  (1.6ms) ALTER TABLE "snf_core_users" ADD "role" integer /*application='Dummy'*/
1676
+ ActiveRecord::SchemaMigration Destroy (0.4ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20250306002531' /*application='Dummy'*/
1677
+ TRANSACTION (0.5ms) COMMIT /*application='Dummy'*/
1678
+  (0.2ms) SELECT pg_advisory_unlock(869468062957908540) /*application='Dummy'*/
1679
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
1680
+ ActiveRecord::SchemaMigration Load (2.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
1681
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
1682
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
1683
+  (0.2ms) SELECT pg_try_advisory_lock(869468062957908540) /*application='Dummy'*/
1684
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
1685
+ Migrating to CreateSnfCoreUserRoles (20250305232530)
1686
+ TRANSACTION (0.1ms) BEGIN /*application='Dummy'*/
1687
+  (8.4ms) DROP TABLE "snf_core_user_roles" /*application='Dummy'*/
1688
+ ActiveRecord::SchemaMigration Destroy (0.6ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20250305232530' /*application='Dummy'*/
1689
+ TRANSACTION (4.2ms) COMMIT /*application='Dummy'*/
1690
+  (0.2ms) SELECT pg_advisory_unlock(869468062957908540) /*application='Dummy'*/
1691
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
1692
+  (0.3ms) SELECT pg_try_advisory_lock(869468062957908540) /*application='Dummy'*/
1693
+ ActiveRecord::SchemaMigration Load (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
1694
+ ActiveRecord::InternalMetadata Load (1.4ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/
1695
+ Migrating to CreateSnfCoreUserRoles (20250305232530)
1696
+ TRANSACTION (0.1ms) BEGIN /*application='Dummy'*/
1697
+  (7.7ms) 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, CONSTRAINT "fk_rails_9ad2e78133"
1698
+ FOREIGN KEY ("user_id")
1699
+ REFERENCES "snf_core_users" ("id")
1700
+ , CONSTRAINT "fk_rails_0e70d7ce00"
1701
+ FOREIGN KEY ("role_id")
1702
+ REFERENCES "snf_core_roles" ("id")
1703
+ ) /*application='Dummy'*/
1704
+  (0.9ms) CREATE INDEX "index_snf_core_user_roles_on_user_id" ON "snf_core_user_roles" ("user_id") /*application='Dummy'*/
1705
+  (0.8ms) CREATE INDEX "index_snf_core_user_roles_on_role_id" ON "snf_core_user_roles" ("role_id") /*application='Dummy'*/
1706
+ ActiveRecord::SchemaMigration Create (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20250305232530') RETURNING "version" /*application='Dummy'*/
1707
+ TRANSACTION (1.1ms) COMMIT /*application='Dummy'*/
1708
+ Migrating to RemoveRoleFromSnfCoreUsers (20250306002531)
1709
+ TRANSACTION (0.5ms) BEGIN /*application='Dummy'*/
1710
+  (1.5ms) ALTER TABLE "snf_core_users" DROP COLUMN "role" /*application='Dummy'*/
1711
+ ActiveRecord::SchemaMigration Create (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20250306002531') RETURNING "version" /*application='Dummy'*/
1712
+ TRANSACTION (0.2ms) COMMIT /*application='Dummy'*/
1713
+  (0.2ms) SELECT pg_advisory_unlock(869468062957908540) /*application='Dummy'*/
1714
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
1715
+  (0.1ms) SELECT pg_try_advisory_lock(869468062957908540) /*application='Dummy'*/
1716
+ ActiveRecord::SchemaMigration Load (2.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
1717
+ ActiveRecord::InternalMetadata Load (3.2ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/
1718
+ Migrating to AddPasswordFieldsToSnfCoreUsers (20250306074713)
1719
+ TRANSACTION (0.2ms) BEGIN /*application='Dummy'*/
1720
+  (14.6ms) ALTER TABLE "snf_core_users" ADD "password_digest" character varying NOT NULL /*application='Dummy'*/
1721
+  (1.5ms) ALTER TABLE "snf_core_users" ADD "password_changed" boolean DEFAULT FALSE /*application='Dummy'*/
1722
+  (0.2ms) ALTER TABLE "snf_core_users" ADD "reset_password_token" character varying /*application='Dummy'*/
1723
+ ActiveRecord::SchemaMigration Create (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20250306074713') RETURNING "version" /*application='Dummy'*/
1724
+ TRANSACTION (0.7ms) COMMIT /*application='Dummy'*/
1725
+  (0.2ms) SELECT pg_advisory_unlock(869468062957908540) /*application='Dummy'*/
1726
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
1727
+ ActiveRecord::SchemaMigration Load (2.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
1728
+ 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'*/
1729
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
1730
+ 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'*/
1731
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
1732
+ 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'*/
1733
+ SQL (0.1ms) SET search_path TO public /*application='Dummy'*/
1734
+  (92.3ms) DROP DATABASE IF EXISTS "snf_dev" /*application='Dummy'*/
1735
+ SQL (0.1ms) SET search_path TO public /*application='Dummy'*/
1736
+  (11.6ms) DROP DATABASE IF EXISTS "snf_test" /*application='Dummy'*/
1737
+ SQL (0.2ms) SET search_path TO public /*application='Dummy'*/
1738
+  (186.1ms) CREATE DATABASE "snf_dev" ENCODING = 'unicode' /*application='Dummy'*/
1739
+ SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" SCHEMA pg_catalog /*application='Dummy'*/
1740
+  (0.1ms) DROP TABLE IF EXISTS "active_storage_attachments" CASCADE /*application='Dummy'*/
1741
+  (4.5ms) 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'*/
1742
+  (0.5ms) CREATE INDEX "index_active_storage_attachments_on_blob_id" ON "active_storage_attachments" ("blob_id") /*application='Dummy'*/
1743
+  (0.7ms) CREATE UNIQUE INDEX "index_active_storage_attachments_uniqueness" ON "active_storage_attachments" ("record_type", "record_id", "name", "blob_id") /*application='Dummy'*/
1744
+  (0.1ms) DROP TABLE IF EXISTS "active_storage_blobs" CASCADE /*application='Dummy'*/
1745
+  (1.4ms) 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'*/
1746
+  (0.6ms) CREATE UNIQUE INDEX "index_active_storage_blobs_on_key" ON "active_storage_blobs" ("key") /*application='Dummy'*/
1747
+  (0.1ms) DROP TABLE IF EXISTS "active_storage_variant_records" CASCADE /*application='Dummy'*/
1748
+  (1.1ms) CREATE TABLE "active_storage_variant_records" ("id" bigserial primary key, "blob_id" bigint NOT NULL, "variation_digest" character varying NOT NULL) /*application='Dummy'*/
1749
+  (0.4ms) CREATE UNIQUE INDEX "index_active_storage_variant_records_uniqueness" ON "active_storage_variant_records" ("blob_id", "variation_digest") /*application='Dummy'*/
1750
+  (0.1ms) DROP TABLE IF EXISTS "snf_core_addresses" CASCADE /*application='Dummy'*/
1751
+  (1.5ms) 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 NOT NULL, "longitude" decimal NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/
1752
+  (0.1ms) DROP TABLE IF EXISTS "snf_core_business_documents" CASCADE /*application='Dummy'*/
1753
+  (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'*/
1754
+  (0.6ms) CREATE INDEX "index_snf_core_business_documents_on_business_id" ON "snf_core_business_documents" ("business_id") /*application='Dummy'*/
1755
+  (0.4ms) CREATE INDEX "index_snf_core_business_documents_on_verified_by_id" ON "snf_core_business_documents" ("verified_by_id") /*application='Dummy'*/
1756
+  (0.1ms) DROP TABLE IF EXISTS "snf_core_businesses" CASCADE /*application='Dummy'*/
1757
+  (1.3ms) 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 NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/
1758
+  (0.6ms) CREATE INDEX "index_snf_core_businesses_on_user_id" ON "snf_core_businesses" ("user_id") /*application='Dummy'*/
1759
+  (0.1ms) DROP TABLE IF EXISTS "snf_core_categories" CASCADE /*application='Dummy'*/
1760
+  (1.5ms) 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'*/
1761
+  (0.4ms) CREATE INDEX "index_snf_core_categories_on_parent_id" ON "snf_core_categories" ("parent_id") /*application='Dummy'*/
1762
+  (0.1ms) DROP TABLE IF EXISTS "snf_core_customer_groups" CASCADE /*application='Dummy'*/
1763
+  (1.6ms) 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'*/
1764
+  (0.4ms) CREATE INDEX "index_snf_core_customer_groups_on_customer_id" ON "snf_core_customer_groups" ("customer_id") /*application='Dummy'*/
1765
+  (0.4ms) CREATE INDEX "index_snf_core_customer_groups_on_group_id" ON "snf_core_customer_groups" ("group_id") /*application='Dummy'*/
1766
+  (0.1ms) DROP TABLE IF EXISTS "snf_core_groups" CASCADE /*application='Dummy'*/
1767
+  (1.7ms) 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'*/
1768
+  (0.7ms) CREATE INDEX "index_snf_core_groups_on_business_id" ON "snf_core_groups" ("business_id") /*application='Dummy'*/
1769
+  (0.1ms) DROP TABLE IF EXISTS "snf_core_products" CASCADE /*application='Dummy'*/
1770
+  (1.5ms) 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'*/
1771
+  (0.4ms) CREATE INDEX "index_snf_core_products_on_category_id" ON "snf_core_products" ("category_id") /*application='Dummy'*/
1772
+  (0.1ms) DROP TABLE IF EXISTS "snf_core_roles" CASCADE /*application='Dummy'*/
1773
+  (1.5ms) 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'*/
1774
+  (0.1ms) DROP TABLE IF EXISTS "snf_core_store_inventories" CASCADE /*application='Dummy'*/
1775
+  (0.9ms) 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'*/
1776
+  (0.4ms) CREATE INDEX "index_snf_core_store_inventories_on_product_id" ON "snf_core_store_inventories" ("product_id") /*application='Dummy'*/
1777
+  (0.4ms) 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'*/
1778
+  (0.4ms) CREATE INDEX "index_snf_core_store_inventories_on_store_id" ON "snf_core_store_inventories" ("store_id") /*application='Dummy'*/
1779
+  (0.1ms) DROP TABLE IF EXISTS "snf_core_stores" CASCADE /*application='Dummy'*/
1780
+  (2.1ms) 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'*/
1781
+  (0.5ms) CREATE INDEX "index_snf_core_stores_on_address_id" ON "snf_core_stores" ("address_id") /*application='Dummy'*/
1782
+  (0.4ms) CREATE INDEX "index_snf_core_stores_on_business_id" ON "snf_core_stores" ("business_id") /*application='Dummy'*/
1783
+  (0.1ms) DROP TABLE IF EXISTS "snf_core_user_roles" CASCADE /*application='Dummy'*/
1784
+  (0.8ms) 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'*/
1785
+  (0.4ms) CREATE INDEX "index_snf_core_user_roles_on_role_id" ON "snf_core_user_roles" ("role_id") /*application='Dummy'*/
1786
+  (0.4ms) CREATE INDEX "index_snf_core_user_roles_on_user_id" ON "snf_core_user_roles" ("user_id") /*application='Dummy'*/
1787
+  (0.1ms) DROP TABLE IF EXISTS "snf_core_users" CASCADE /*application='Dummy'*/
1788
+  (1.8ms) 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 FALSE, "reset_password_token" character varying) /*application='Dummy'*/
1789
+  (0.1ms) DROP TABLE IF EXISTS "snf_core_wallets" CASCADE /*application='Dummy'*/
1790
+  (1.6ms) 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'*/
1791
+  (0.4ms) CREATE INDEX "index_snf_core_wallets_on_user_id" ON "snf_core_wallets" ("user_id") /*application='Dummy'*/
1792
+  (0.4ms) CREATE UNIQUE INDEX "index_snf_core_wallets_on_wallet_number" ON "snf_core_wallets" ("wallet_number") /*application='Dummy'*/
1793
+  (1.5ms) ALTER TABLE "active_storage_attachments" ADD CONSTRAINT "fk_rails_c3b3935057"
1794
+ FOREIGN KEY ("blob_id")
1795
+ REFERENCES "active_storage_blobs" ("id")
1796
+ /*application='Dummy'*/
1797
+  (0.5ms) ALTER TABLE "active_storage_variant_records" ADD CONSTRAINT "fk_rails_993965df05"
1798
+ FOREIGN KEY ("blob_id")
1799
+ REFERENCES "active_storage_blobs" ("id")
1800
+ /*application='Dummy'*/
1801
+  (0.7ms) ALTER TABLE "snf_core_business_documents" ADD CONSTRAINT "fk_rails_1efd7338ed"
1802
+ FOREIGN KEY ("business_id")
1803
+ REFERENCES "snf_core_businesses" ("id")
1804
+ /*application='Dummy'*/
1805
+  (0.8ms) ALTER TABLE "snf_core_business_documents" ADD CONSTRAINT "fk_rails_a6157021cc"
1806
+ FOREIGN KEY ("verified_by_id")
1807
+ REFERENCES "snf_core_users" ("id")
1808
+ /*application='Dummy'*/
1809
+  (0.5ms) ALTER TABLE "snf_core_businesses" ADD CONSTRAINT "fk_rails_a61edcbd4b"
1810
+ FOREIGN KEY ("user_id")
1811
+ REFERENCES "snf_core_users" ("id")
1812
+ /*application='Dummy'*/
1813
+  (0.5ms) ALTER TABLE "snf_core_categories" ADD CONSTRAINT "fk_rails_26a925b05d"
1814
+ FOREIGN KEY ("parent_id")
1815
+ REFERENCES "snf_core_categories" ("id")
1816
+ /*application='Dummy'*/
1817
+  (0.7ms) ALTER TABLE "snf_core_customer_groups" ADD CONSTRAINT "fk_rails_9c45f4015a"
1818
+ FOREIGN KEY ("group_id")
1819
+ REFERENCES "snf_core_groups" ("id")
1820
+ /*application='Dummy'*/
1821
+  (0.7ms) ALTER TABLE "snf_core_customer_groups" ADD CONSTRAINT "fk_rails_792eb3404d"
1822
+ FOREIGN KEY ("customer_id")
1823
+ REFERENCES "snf_core_users" ("id")
1824
+ /*application='Dummy'*/
1825
+  (0.4ms) ALTER TABLE "snf_core_groups" ADD CONSTRAINT "fk_rails_c52b27ad67"
1826
+ FOREIGN KEY ("business_id")
1827
+ REFERENCES "snf_core_businesses" ("id")
1828
+ /*application='Dummy'*/
1829
+  (1.2ms) ALTER TABLE "snf_core_products" ADD CONSTRAINT "fk_rails_a0ba3fa883"
1830
+ FOREIGN KEY ("category_id")
1831
+ REFERENCES "snf_core_categories" ("id")
1832
+ /*application='Dummy'*/
1833
+  (2.5ms) ALTER TABLE "snf_core_store_inventories" ADD CONSTRAINT "fk_rails_15fb263e75"
1834
+ FOREIGN KEY ("product_id")
1835
+ REFERENCES "snf_core_products" ("id")
1836
+ /*application='Dummy'*/
1837
+  (1.3ms) ALTER TABLE "snf_core_store_inventories" ADD CONSTRAINT "fk_rails_2ca88d30e2"
1838
+ FOREIGN KEY ("store_id")
1839
+ REFERENCES "snf_core_stores" ("id")
1840
+ /*application='Dummy'*/
1841
+  (1.2ms) ALTER TABLE "snf_core_stores" ADD CONSTRAINT "fk_rails_421441da8e"
1842
+ FOREIGN KEY ("address_id")
1843
+ REFERENCES "snf_core_addresses" ("id")
1844
+ /*application='Dummy'*/
1845
+  (0.9ms) ALTER TABLE "snf_core_stores" ADD CONSTRAINT "fk_rails_e100fc7454"
1846
+ FOREIGN KEY ("business_id")
1847
+ REFERENCES "snf_core_businesses" ("id")
1848
+ /*application='Dummy'*/
1849
+  (1.3ms) ALTER TABLE "snf_core_user_roles" ADD CONSTRAINT "fk_rails_0e70d7ce00"
1850
+ FOREIGN KEY ("role_id")
1851
+ REFERENCES "snf_core_roles" ("id")
1852
+ /*application='Dummy'*/
1853
+  (1.0ms) ALTER TABLE "snf_core_user_roles" ADD CONSTRAINT "fk_rails_9ad2e78133"
1854
+ FOREIGN KEY ("user_id")
1855
+ REFERENCES "snf_core_users" ("id")
1856
+ /*application='Dummy'*/
1857
+  (1.2ms) ALTER TABLE "snf_core_wallets" ADD CONSTRAINT "fk_rails_77c94979ce"
1858
+ FOREIGN KEY ("user_id")
1859
+ REFERENCES "snf_core_users" ("id")
1860
+ /*application='Dummy'*/
1861
+  (2.3ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY) /*application='Dummy'*/
1862
+ ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
1863
+  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES (20250306074713) /*application='Dummy'*/
1864
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES
1865
+ (20250306002531),
1866
+ (20250305232530),
1867
+ (20250305232529),
1868
+ (20250305201008),
1869
+ (20250305170248),
1870
+ (20250305165926),
1871
+ (20250227102833),
1872
+ (20250227075048),
1873
+ (20250226193938),
1874
+ (20250226192104),
1875
+ (20250226190000),
1876
+ (20250226181007),
1877
+ (20250226123213),
1878
+ (20250226115215),
1879
+ (20250226110217),
1880
+ (20250226102931),
1881
+ (20250226080323),
1882
+ (20250226064444),
1883
+ (20250226042622); /*application='Dummy'*/
1884
+  (3.3ms) 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'*/
1885
+ ActiveRecord::InternalMetadata Load (1.0ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/
1886
+ ActiveRecord::InternalMetadata Create (0.6ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'development', '2025-03-06 08:41:48.964500', '2025-03-06 08:41:48.964501') RETURNING "key" /*application='Dummy'*/
1887
+ 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'*/
1888
+ 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'*/
1889
+ ActiveRecord::InternalMetadata Create (0.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('schema_sha1', 'e23c23720d93c79a3ae28ccc49537fc23aff5b6f', '2025-03-06 08:41:48.968157', '2025-03-06 08:41:48.968158') RETURNING "key" /*application='Dummy'*/
1890
+  (0.3ms) SELECT pg_try_advisory_lock(869468062957908540) /*application='Dummy'*/
1891
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
1892
+ 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'*/
1893
+  (0.3ms) SELECT pg_advisory_unlock(869468062957908540) /*application='Dummy'*/
1894
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
1895
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
1896
+ ActiveRecord::SchemaMigration Load (2.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
1897
+ 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'*/
1898
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
1899
+ 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'*/
1900
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
1901
+ 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'*/
1902
+ SQL (0.2ms) SET search_path TO public /*application='Dummy'*/
1903
+  (98.8ms) DROP DATABASE IF EXISTS "snf_dev" /*application='Dummy'*/
1904
+ SQL (0.1ms) SET search_path TO public /*application='Dummy'*/
1905
+  (44.9ms) DROP DATABASE IF EXISTS "snf_test" /*application='Dummy'*/
1906
+ SQL (0.1ms) SET search_path TO public /*application='Dummy'*/
1907
+  (196.2ms) CREATE DATABASE "snf_dev" ENCODING = 'unicode' /*application='Dummy'*/
1908
+ SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" SCHEMA pg_catalog /*application='Dummy'*/
1909
+  (1.6ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY) /*application='Dummy'*/
1910
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
1911
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES (0) /*application='Dummy'*/
1912
+  (0.9ms) 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'*/
1913
+ 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'*/
1914
+ ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'development', '2025-03-06 08:45:37.787213', '2025-03-06 08:45:37.787214') RETURNING "key" /*application='Dummy'*/
1915
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/
1916
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'schema_sha1' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/
1917
+ ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('schema_sha1', '9c6777daaa6ce85cc74b26c38000144a7834a947', '2025-03-06 08:45:37.788751', '2025-03-06 08:45:37.788751') RETURNING "key" /*application='Dummy'*/
1918
+  (0.1ms) SELECT pg_try_advisory_lock(869468062957908540) /*application='Dummy'*/
1919
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
1920
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/
1921
+ Migrating to CreateSnfCoreUsers (20250226042622)
1922
+ TRANSACTION (0.1ms) BEGIN /*application='Dummy'*/
1923
+  (2.3ms) 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) /*application='Dummy'*/
1924
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20250226042622') RETURNING "version" /*application='Dummy'*/
1925
+ TRANSACTION (0.1ms) COMMIT /*application='Dummy'*/
1926
+ Migrating to CreateSnfCoreCategories (20250226064444)
1927
+ TRANSACTION (0.1ms) BEGIN /*application='Dummy'*/
1928
+  (2.0ms) 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, CONSTRAINT "fk_rails_26a925b05d"
1929
+ FOREIGN KEY ("parent_id")
1930
+ REFERENCES "snf_core_categories" ("id")
1931
+ ) /*application='Dummy'*/
1932
+  (0.3ms) CREATE INDEX "index_snf_core_categories_on_parent_id" ON "snf_core_categories" ("parent_id") /*application='Dummy'*/
1933
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20250226064444') RETURNING "version" /*application='Dummy'*/
1934
+ TRANSACTION (0.1ms) COMMIT /*application='Dummy'*/
1935
+ Migrating to CreateSnfCoreBusinesses (20250226080323)
1936
+ TRANSACTION (0.1ms) BEGIN /*application='Dummy'*/
1937
+  (1.7ms) 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 NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL, CONSTRAINT "fk_rails_a61edcbd4b"
1938
+ FOREIGN KEY ("user_id")
1939
+ REFERENCES "snf_core_users" ("id")
1940
+ ) /*application='Dummy'*/
1941
+  (0.9ms) CREATE INDEX "index_snf_core_businesses_on_user_id" ON "snf_core_businesses" ("user_id") /*application='Dummy'*/
1942
+ ActiveRecord::SchemaMigration Create (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20250226080323') RETURNING "version" /*application='Dummy'*/
1943
+ TRANSACTION (0.2ms) COMMIT /*application='Dummy'*/
1944
+ Migrating to CreateSnfCoreBusinessDocuments (20250226102931)
1945
+ TRANSACTION (0.2ms) BEGIN /*application='Dummy'*/
1946
+  (2.9ms) 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, CONSTRAINT "fk_rails_1efd7338ed"
1947
+ FOREIGN KEY ("business_id")
1948
+ REFERENCES "snf_core_businesses" ("id")
1949
+ , CONSTRAINT "fk_rails_a6157021cc"
1950
+ FOREIGN KEY ("verified_by_id")
1951
+ REFERENCES "snf_core_users" ("id")
1952
+ ) /*application='Dummy'*/
1953
+  (0.6ms) CREATE INDEX "index_snf_core_business_documents_on_business_id" ON "snf_core_business_documents" ("business_id") /*application='Dummy'*/
1954
+  (0.5ms) CREATE INDEX "index_snf_core_business_documents_on_verified_by_id" ON "snf_core_business_documents" ("verified_by_id") /*application='Dummy'*/
1955
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20250226102931') RETURNING "version" /*application='Dummy'*/
1956
+ TRANSACTION (0.2ms) COMMIT /*application='Dummy'*/
1957
+ Migrating to CreateSnfCoreAddresses (20250226110217)
1958
+ TRANSACTION (0.2ms) BEGIN /*application='Dummy'*/
1959
+  (2.8ms) 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 NOT NULL, "longitude" decimal NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/
1960
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20250226110217') RETURNING "version" /*application='Dummy'*/
1961
+ TRANSACTION (0.2ms) COMMIT /*application='Dummy'*/
1962
+ Migrating to CreateSnfCoreStores (20250226115215)
1963
+ TRANSACTION (0.2ms) BEGIN /*application='Dummy'*/
1964
+  (3.0ms) 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, CONSTRAINT "fk_rails_e100fc7454"
1965
+ FOREIGN KEY ("business_id")
1966
+ REFERENCES "snf_core_businesses" ("id")
1967
+ , CONSTRAINT "fk_rails_421441da8e"
1968
+ FOREIGN KEY ("address_id")
1969
+ REFERENCES "snf_core_addresses" ("id")
1970
+ ) /*application='Dummy'*/
1971
+  (0.7ms) CREATE INDEX "index_snf_core_stores_on_business_id" ON "snf_core_stores" ("business_id") /*application='Dummy'*/
1972
+  (0.8ms) CREATE INDEX "index_snf_core_stores_on_address_id" ON "snf_core_stores" ("address_id") /*application='Dummy'*/
1973
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20250226115215') RETURNING "version" /*application='Dummy'*/
1974
+ TRANSACTION (0.2ms) COMMIT /*application='Dummy'*/
1975
+ Migrating to CreateActiveStorageTables (20250226123213)
1976
+ TRANSACTION (0.2ms) BEGIN /*application='Dummy'*/
1977
+  (3.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'*/
1978
+  (0.6ms) CREATE UNIQUE INDEX "index_active_storage_blobs_on_key" ON "active_storage_blobs" ("key") /*application='Dummy'*/
1979
+  (2.4ms) 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, CONSTRAINT "fk_rails_c3b3935057"
1980
+ FOREIGN KEY ("blob_id")
1981
+ REFERENCES "active_storage_blobs" ("id")
1982
+ ) /*application='Dummy'*/
1983
+  (0.7ms) CREATE INDEX "index_active_storage_attachments_on_blob_id" ON "active_storage_attachments" ("blob_id") /*application='Dummy'*/
1984
+  (1.0ms) CREATE UNIQUE INDEX "index_active_storage_attachments_uniqueness" ON "active_storage_attachments" ("record_type", "record_id", "name", "blob_id") /*application='Dummy'*/
1985
+  (2.9ms) CREATE TABLE "active_storage_variant_records" ("id" bigserial primary key, "blob_id" bigint NOT NULL, "variation_digest" character varying NOT NULL, CONSTRAINT "fk_rails_993965df05"
1986
+ FOREIGN KEY ("blob_id")
1987
+ REFERENCES "active_storage_blobs" ("id")
1988
+ ) /*application='Dummy'*/
1989
+  (0.9ms) CREATE UNIQUE INDEX "index_active_storage_variant_records_uniqueness" ON "active_storage_variant_records" ("blob_id", "variation_digest") /*application='Dummy'*/
1990
+ ActiveRecord::SchemaMigration Create (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20250226123213') RETURNING "version" /*application='Dummy'*/
1991
+ TRANSACTION (0.3ms) COMMIT /*application='Dummy'*/
1992
+ Migrating to CreateSnfCoreProducts (20250226181007)
1993
+ TRANSACTION (0.3ms) BEGIN /*application='Dummy'*/
1994
+  (4.1ms) 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, CONSTRAINT "fk_rails_a0ba3fa883"
1995
+ FOREIGN KEY ("category_id")
1996
+ REFERENCES "snf_core_categories" ("id")
1997
+ ) /*application='Dummy'*/
1998
+  (0.8ms) CREATE INDEX "index_snf_core_products_on_category_id" ON "snf_core_products" ("category_id") /*application='Dummy'*/
1999
+ ActiveRecord::SchemaMigration Create (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20250226181007') RETURNING "version" /*application='Dummy'*/
2000
+ TRANSACTION (0.2ms) COMMIT /*application='Dummy'*/
2001
+ Migrating to CreateSnfCoreStoreInventories (20250226190000)
2002
+ TRANSACTION (0.2ms) BEGIN /*application='Dummy'*/
2003
+  (2.7ms) CREATE TABLE "snf_core_store_inventories" ("id" bigserial primary key, "store_id" bigint NOT NULL, "product_id" bigint NOT NULL, "stock_quantity" integer DEFAULT 0 NOT NULL, "base_price" decimal(10,2) NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL, CONSTRAINT "fk_rails_2ca88d30e2"
2004
+ FOREIGN KEY ("store_id")
2005
+ REFERENCES "snf_core_stores" ("id")
2006
+ , CONSTRAINT "fk_rails_15fb263e75"
2007
+ FOREIGN KEY ("product_id")
2008
+ REFERENCES "snf_core_products" ("id")
2009
+ ) /*application='Dummy'*/
2010
+  (0.7ms) CREATE INDEX "index_snf_core_store_inventories_on_store_id" ON "snf_core_store_inventories" ("store_id") /*application='Dummy'*/
2011
+  (0.9ms) CREATE INDEX "index_snf_core_store_inventories_on_product_id" ON "snf_core_store_inventories" ("product_id") /*application='Dummy'*/
2012
+  (0.6ms) 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'*/
2013
+ ActiveRecord::SchemaMigration Create (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20250226190000') RETURNING "version" /*application='Dummy'*/
2014
+ TRANSACTION (0.2ms) COMMIT /*application='Dummy'*/
2015
+ Migrating to CreateSnfCoreGroups (20250226192104)
2016
+ TRANSACTION (0.2ms) BEGIN /*application='Dummy'*/
2017
+  (3.7ms) 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, CONSTRAINT "fk_rails_c52b27ad67"
2018
+ FOREIGN KEY ("business_id")
2019
+ REFERENCES "snf_core_businesses" ("id")
2020
+ ) /*application='Dummy'*/
2021
+  (0.7ms) CREATE INDEX "index_snf_core_groups_on_business_id" ON "snf_core_groups" ("business_id") /*application='Dummy'*/
2022
+ ActiveRecord::SchemaMigration Create (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20250226192104') RETURNING "version" /*application='Dummy'*/
2023
+ TRANSACTION (0.4ms) COMMIT /*application='Dummy'*/
2024
+ Migrating to CreateSnfCoreCustomerGroups (20250226193938)
2025
+ TRANSACTION (0.2ms) BEGIN /*application='Dummy'*/
2026
+  (3.9ms) 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, CONSTRAINT "fk_rails_9c45f4015a"
2027
+ FOREIGN KEY ("group_id")
2028
+ REFERENCES "snf_core_groups" ("id")
2029
+ , CONSTRAINT "fk_rails_792eb3404d"
2030
+ FOREIGN KEY ("customer_id")
2031
+ REFERENCES "snf_core_users" ("id")
2032
+ ) /*application='Dummy'*/
2033
+  (1.1ms) CREATE INDEX "index_snf_core_customer_groups_on_group_id" ON "snf_core_customer_groups" ("group_id") /*application='Dummy'*/
2034
+  (1.0ms) CREATE INDEX "index_snf_core_customer_groups_on_customer_id" ON "snf_core_customer_groups" ("customer_id") /*application='Dummy'*/
2035
+ ActiveRecord::SchemaMigration Create (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20250226193938') RETURNING "version" /*application='Dummy'*/
2036
+ TRANSACTION (0.4ms) COMMIT /*application='Dummy'*/
2037
+ Migrating to CreateSnfCoreWallets (20250227075048)
2038
+ TRANSACTION (0.2ms) BEGIN /*application='Dummy'*/
2039
+  (3.6ms) 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, CONSTRAINT "fk_rails_77c94979ce"
2040
+ FOREIGN KEY ("user_id")
2041
+ REFERENCES "snf_core_users" ("id")
2042
+ ) /*application='Dummy'*/
2043
+  (0.9ms) CREATE INDEX "index_snf_core_wallets_on_user_id" ON "snf_core_wallets" ("user_id") /*application='Dummy'*/
2044
+  (0.9ms) CREATE UNIQUE INDEX "index_snf_core_wallets_on_wallet_number" ON "snf_core_wallets" ("wallet_number") /*application='Dummy'*/
2045
+ ActiveRecord::SchemaMigration Create (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20250227075048') RETURNING "version" /*application='Dummy'*/
2046
+ TRANSACTION (0.4ms) COMMIT /*application='Dummy'*/
2047
+ Migrating to ModifyStoreInventories (20250227102833)
2048
+ TRANSACTION (0.3ms) BEGIN /*application='Dummy'*/
2049
+  (2.0ms) ALTER TABLE "snf_core_store_inventories" DROP COLUMN "stock_quantity" /*application='Dummy'*/
2050
+  (0.2ms) ALTER TABLE "snf_core_store_inventories" ADD "status" integer DEFAULT 0 NOT NULL /*application='Dummy'*/
2051
+ ActiveRecord::SchemaMigration Create (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20250227102833') RETURNING "version" /*application='Dummy'*/
2052
+ TRANSACTION (0.2ms) COMMIT /*application='Dummy'*/
2053
+ Migrating to CreateSnfCoreOrders (20250305165926)
2054
+ TRANSACTION (0.1ms) BEGIN /*application='Dummy'*/
2055
+  (4.2ms) 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, CONSTRAINT "fk_rails_45b78fb6f9"
2056
+ FOREIGN KEY ("user_id")
2057
+ REFERENCES "snf_core_users" ("id")
2058
+ , CONSTRAINT "fk_rails_400cf2029c"
2059
+ FOREIGN KEY ("store_id")
2060
+ REFERENCES "snf_core_stores" ("id")
2061
+ ) /*application='Dummy'*/
2062
+  (0.9ms) CREATE INDEX "index_snf_core_orders_on_user_id" ON "snf_core_orders" ("user_id") /*application='Dummy'*/
2063
+  (1.1ms) CREATE INDEX "index_snf_core_orders_on_store_id" ON "snf_core_orders" ("store_id") /*application='Dummy'*/
2064
+ ActiveRecord::SchemaMigration Create (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20250305165926') RETURNING "version" /*application='Dummy'*/
2065
+ TRANSACTION (0.2ms) COMMIT /*application='Dummy'*/
2066
+ Migrating to CreateSnfCoreOrderItems (20250305170248)
2067
+ TRANSACTION (0.2ms) BEGIN /*application='Dummy'*/
2068
+  (7.7ms) 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, CONSTRAINT "fk_rails_1f4046ba92"
2069
+ FOREIGN KEY ("order_id")
2070
+ REFERENCES "snf_core_orders" ("id")
2071
+ , CONSTRAINT "fk_rails_50419437e9"
2072
+ FOREIGN KEY ("store_inventory_id")
2073
+ REFERENCES "snf_core_store_inventories" ("id")
2074
+ ) /*application='Dummy'*/
2075
+  (0.7ms) CREATE INDEX "index_snf_core_order_items_on_order_id" ON "snf_core_order_items" ("order_id") /*application='Dummy'*/
2076
+  (0.9ms) CREATE INDEX "index_snf_core_order_items_on_store_inventory_id" ON "snf_core_order_items" ("store_inventory_id") /*application='Dummy'*/
2077
+ ActiveRecord::SchemaMigration Create (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20250305170248') RETURNING "version" /*application='Dummy'*/
2078
+ TRANSACTION (0.4ms) COMMIT /*application='Dummy'*/
2079
+ Migrating to CreateSnfCoreDeliveryOrders (20250305201008)
2080
+ TRANSACTION (0.2ms) BEGIN /*application='Dummy'*/
2081
+  (5.4ms) 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) NOT NULL, "status" integer NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL, CONSTRAINT "fk_rails_450d17b1b2"
2082
+ FOREIGN KEY ("order_id")
2083
+ REFERENCES "snf_core_orders" ("id")
2084
+ ) /*application='Dummy'*/
2085
+  (0.9ms) CREATE INDEX "index_snf_core_delivery_orders_on_order_id" ON "snf_core_delivery_orders" ("order_id") /*application='Dummy'*/
2086
+ ActiveRecord::SchemaMigration Create (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20250305201008') RETURNING "version" /*application='Dummy'*/
2087
+ TRANSACTION (0.4ms) COMMIT /*application='Dummy'*/
2088
+ Migrating to CreateSnfCoreRoles (20250305232529)
2089
+ TRANSACTION (0.2ms) BEGIN /*application='Dummy'*/
2090
+  (5.0ms) 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'*/
2091
+ ActiveRecord::SchemaMigration Create (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20250305232529') RETURNING "version" /*application='Dummy'*/
2092
+ TRANSACTION (0.4ms) COMMIT /*application='Dummy'*/
2093
+ Migrating to CreateSnfCoreUserRoles (20250305232530)
2094
+ TRANSACTION (0.2ms) BEGIN /*application='Dummy'*/
2095
+  (6.5ms) 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, CONSTRAINT "fk_rails_9ad2e78133"
2096
+ FOREIGN KEY ("user_id")
2097
+ REFERENCES "snf_core_users" ("id")
2098
+ , CONSTRAINT "fk_rails_0e70d7ce00"
2099
+ FOREIGN KEY ("role_id")
2100
+ REFERENCES "snf_core_roles" ("id")
2101
+ ) /*application='Dummy'*/
2102
+  (1.4ms) CREATE INDEX "index_snf_core_user_roles_on_user_id" ON "snf_core_user_roles" ("user_id") /*application='Dummy'*/
2103
+  (1.0ms) CREATE INDEX "index_snf_core_user_roles_on_role_id" ON "snf_core_user_roles" ("role_id") /*application='Dummy'*/
2104
+ ActiveRecord::SchemaMigration Create (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20250305232530') RETURNING "version" /*application='Dummy'*/
2105
+ TRANSACTION (0.3ms) COMMIT /*application='Dummy'*/
2106
+ Migrating to RemoveRoleFromSnfCoreUsers (20250306002531)
2107
+ TRANSACTION (0.4ms) BEGIN /*application='Dummy'*/
2108
+  (1.7ms) ALTER TABLE "snf_core_users" DROP COLUMN "role" /*application='Dummy'*/
2109
+ TRANSACTION (0.2ms) ROLLBACK /*application='Dummy'*/
2110
+  (0.3ms) SELECT pg_advisory_unlock(869468062957908540) /*application='Dummy'*/
2111
+  (0.2ms) SELECT pg_try_advisory_lock(869468062957908540) /*application='Dummy'*/
2112
+ ActiveRecord::SchemaMigration Load (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
2113
+ 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'*/
2114
+ Migrating to AddPasswordFieldsToSnfCoreUsers (20250306074713)
2115
+ TRANSACTION (0.1ms) BEGIN /*application='Dummy'*/
2116
+  (1.0ms) ALTER TABLE "snf_core_users" ADD "password_digest" character varying NOT NULL /*application='Dummy'*/
2117
+  (0.5ms) ALTER TABLE "snf_core_users" ADD "password_changed" boolean DEFAULT FALSE /*application='Dummy'*/
2118
+  (0.3ms) ALTER TABLE "snf_core_users" ADD "reset_password_token" character varying /*application='Dummy'*/
2119
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20250306074713') RETURNING "version" /*application='Dummy'*/
2120
+ TRANSACTION (0.2ms) COMMIT /*application='Dummy'*/
2121
+  (0.1ms) SELECT pg_advisory_unlock(869468062957908540) /*application='Dummy'*/
2122
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
2123
+ ActiveRecord::SchemaMigration Load (2.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
2124
+ ActiveRecord::InternalMetadata Load (2.4ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/
2125
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
2126
+ 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'*/
2127
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
2128
+ 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'*/
2129
+ SQL (0.1ms) SET search_path TO public /*application='Dummy'*/
2130
+  (102.1ms) DROP DATABASE IF EXISTS "snf_test" /*application='Dummy'*/
2131
+  (144.9ms) CREATE DATABASE "snf_test" ENCODING = 'unicode' /*application='Dummy'*/
2132
+ SQL (18.0ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" SCHEMA pg_catalog /*application='Dummy'*/
2133
+  (0.1ms) DROP TABLE IF EXISTS "active_storage_attachments" CASCADE /*application='Dummy'*/
2134
+  (6.4ms) 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'*/
2135
+  (0.6ms) CREATE INDEX "index_active_storage_attachments_on_blob_id" ON "active_storage_attachments" ("blob_id") /*application='Dummy'*/
2136
+  (0.8ms) CREATE UNIQUE INDEX "index_active_storage_attachments_uniqueness" ON "active_storage_attachments" ("record_type", "record_id", "name", "blob_id") /*application='Dummy'*/
2137
+  (0.1ms) DROP TABLE IF EXISTS "active_storage_blobs" CASCADE /*application='Dummy'*/
2138
+  (3.1ms) 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'*/
2139
+  (0.7ms) CREATE UNIQUE INDEX "index_active_storage_blobs_on_key" ON "active_storage_blobs" ("key") /*application='Dummy'*/
2140
+  (0.1ms) DROP TABLE IF EXISTS "active_storage_variant_records" CASCADE /*application='Dummy'*/
2141
+  (1.7ms) CREATE TABLE "active_storage_variant_records" ("id" bigserial primary key, "blob_id" bigint NOT NULL, "variation_digest" character varying NOT NULL) /*application='Dummy'*/
2142
+  (0.7ms) CREATE UNIQUE INDEX "index_active_storage_variant_records_uniqueness" ON "active_storage_variant_records" ("blob_id", "variation_digest") /*application='Dummy'*/
2143
+  (0.1ms) DROP TABLE IF EXISTS "snf_core_addresses" CASCADE /*application='Dummy'*/
2144
+  (2.0ms) 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 NOT NULL, "longitude" decimal NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/
2145
+  (0.3ms) DROP TABLE IF EXISTS "snf_core_business_documents" CASCADE /*application='Dummy'*/
2146
+  (1.8ms) 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'*/
2147
+  (0.7ms) CREATE INDEX "index_snf_core_business_documents_on_business_id" ON "snf_core_business_documents" ("business_id") /*application='Dummy'*/
2148
+  (0.6ms) CREATE INDEX "index_snf_core_business_documents_on_verified_by_id" ON "snf_core_business_documents" ("verified_by_id") /*application='Dummy'*/
2149
+  (0.1ms) DROP TABLE IF EXISTS "snf_core_businesses" CASCADE /*application='Dummy'*/
2150
+  (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 NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/
2151
+  (0.8ms) CREATE INDEX "index_snf_core_businesses_on_user_id" ON "snf_core_businesses" ("user_id") /*application='Dummy'*/
2152
+  (0.2ms) DROP TABLE IF EXISTS "snf_core_categories" CASCADE /*application='Dummy'*/
2153
+  (41.4ms) 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'*/
2154
+  (1.8ms) CREATE INDEX "index_snf_core_categories_on_parent_id" ON "snf_core_categories" ("parent_id") /*application='Dummy'*/
2155
+  (0.2ms) DROP TABLE IF EXISTS "snf_core_customer_groups" CASCADE /*application='Dummy'*/
2156
+  (4.1ms) 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'*/
2157
+  (1.4ms) CREATE INDEX "index_snf_core_customer_groups_on_customer_id" ON "snf_core_customer_groups" ("customer_id") /*application='Dummy'*/
2158
+  (1.5ms) CREATE INDEX "index_snf_core_customer_groups_on_group_id" ON "snf_core_customer_groups" ("group_id") /*application='Dummy'*/
2159
+  (0.2ms) DROP TABLE IF EXISTS "snf_core_delivery_orders" CASCADE /*application='Dummy'*/
2160
+  (5.0ms) 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'*/
2161
+  (9.8ms) CREATE INDEX "index_snf_core_delivery_orders_on_order_id" ON "snf_core_delivery_orders" ("order_id") /*application='Dummy'*/
2162
+  (0.2ms) DROP TABLE IF EXISTS "snf_core_groups" CASCADE /*application='Dummy'*/
2163
+  (4.7ms) 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'*/
2164
+  (1.5ms) CREATE INDEX "index_snf_core_groups_on_business_id" ON "snf_core_groups" ("business_id") /*application='Dummy'*/
2165
+  (0.2ms) DROP TABLE IF EXISTS "snf_core_order_items" CASCADE /*application='Dummy'*/
2166
+  (4.3ms) 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'*/
2167
+  (1.3ms) CREATE INDEX "index_snf_core_order_items_on_order_id" ON "snf_core_order_items" ("order_id") /*application='Dummy'*/
2168
+  (1.2ms) CREATE INDEX "index_snf_core_order_items_on_store_inventory_id" ON "snf_core_order_items" ("store_inventory_id") /*application='Dummy'*/
2169
+  (0.2ms) DROP TABLE IF EXISTS "snf_core_orders" CASCADE /*application='Dummy'*/
2170
+  (5.8ms) 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'*/
2171
+  (1.5ms) CREATE INDEX "index_snf_core_orders_on_store_id" ON "snf_core_orders" ("store_id") /*application='Dummy'*/
2172
+  (1.2ms) CREATE INDEX "index_snf_core_orders_on_user_id" ON "snf_core_orders" ("user_id") /*application='Dummy'*/
2173
+  (0.2ms) DROP TABLE IF EXISTS "snf_core_products" CASCADE /*application='Dummy'*/
2174
+  (5.0ms) 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'*/
2175
+  (1.9ms) CREATE INDEX "index_snf_core_products_on_category_id" ON "snf_core_products" ("category_id") /*application='Dummy'*/
2176
+  (0.2ms) DROP TABLE IF EXISTS "snf_core_roles" CASCADE /*application='Dummy'*/
2177
+  (6.4ms) 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'*/
2178
+  (0.4ms) DROP TABLE IF EXISTS "snf_core_store_inventories" CASCADE /*application='Dummy'*/
2179
+  (3.0ms) 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'*/
2180
+  (1.5ms) CREATE INDEX "index_snf_core_store_inventories_on_product_id" ON "snf_core_store_inventories" ("product_id") /*application='Dummy'*/
2181
+  (1.3ms) 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'*/
2182
+  (1.3ms) CREATE INDEX "index_snf_core_store_inventories_on_store_id" ON "snf_core_store_inventories" ("store_id") /*application='Dummy'*/
2183
+  (0.2ms) DROP TABLE IF EXISTS "snf_core_stores" CASCADE /*application='Dummy'*/
2184
+  (5.3ms) 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'*/
2185
+  (1.6ms) CREATE INDEX "index_snf_core_stores_on_address_id" ON "snf_core_stores" ("address_id") /*application='Dummy'*/
2186
+  (1.6ms) CREATE INDEX "index_snf_core_stores_on_business_id" ON "snf_core_stores" ("business_id") /*application='Dummy'*/
2187
+  (0.3ms) DROP TABLE IF EXISTS "snf_core_user_roles" CASCADE /*application='Dummy'*/
2188
+  (4.4ms) 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'*/
2189
+  (2.2ms) CREATE INDEX "index_snf_core_user_roles_on_role_id" ON "snf_core_user_roles" ("role_id") /*application='Dummy'*/
2190
+  (1.6ms) CREATE INDEX "index_snf_core_user_roles_on_user_id" ON "snf_core_user_roles" ("user_id") /*application='Dummy'*/
2191
+  (0.3ms) DROP TABLE IF EXISTS "snf_core_users" CASCADE /*application='Dummy'*/
2192
+  (4.3ms) 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 FALSE, "reset_password_token" character varying) /*application='Dummy'*/
2193
+  (0.6ms) DROP TABLE IF EXISTS "snf_core_wallets" CASCADE /*application='Dummy'*/
2194
+  (5.2ms) 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'*/
2195
+  (2.1ms) CREATE INDEX "index_snf_core_wallets_on_user_id" ON "snf_core_wallets" ("user_id") /*application='Dummy'*/
2196
+  (1.3ms) CREATE UNIQUE INDEX "index_snf_core_wallets_on_wallet_number" ON "snf_core_wallets" ("wallet_number") /*application='Dummy'*/
2197
+  (5.7ms) ALTER TABLE "active_storage_attachments" ADD CONSTRAINT "fk_rails_c3b3935057"
2198
+ FOREIGN KEY ("blob_id")
2199
+ REFERENCES "active_storage_blobs" ("id")
2200
+ /*application='Dummy'*/
2201
+  (2.5ms) ALTER TABLE "active_storage_variant_records" ADD CONSTRAINT "fk_rails_993965df05"
2202
+ FOREIGN KEY ("blob_id")
2203
+ REFERENCES "active_storage_blobs" ("id")
2204
+ /*application='Dummy'*/
2205
+  (2.8ms) ALTER TABLE "snf_core_business_documents" ADD CONSTRAINT "fk_rails_1efd7338ed"
2206
+ FOREIGN KEY ("business_id")
2207
+ REFERENCES "snf_core_businesses" ("id")
2208
+ /*application='Dummy'*/
2209
+  (1.7ms) ALTER TABLE "snf_core_business_documents" ADD CONSTRAINT "fk_rails_a6157021cc"
2210
+ FOREIGN KEY ("verified_by_id")
2211
+ REFERENCES "snf_core_users" ("id")
2212
+ /*application='Dummy'*/
2213
+  (1.5ms) ALTER TABLE "snf_core_businesses" ADD CONSTRAINT "fk_rails_a61edcbd4b"
2214
+ FOREIGN KEY ("user_id")
2215
+ REFERENCES "snf_core_users" ("id")
2216
+ /*application='Dummy'*/
2217
+  (1.8ms) ALTER TABLE "snf_core_categories" ADD CONSTRAINT "fk_rails_26a925b05d"
2218
+ FOREIGN KEY ("parent_id")
2219
+ REFERENCES "snf_core_categories" ("id")
2220
+ /*application='Dummy'*/
2221
+  (2.6ms) ALTER TABLE "snf_core_customer_groups" ADD CONSTRAINT "fk_rails_9c45f4015a"
2222
+ FOREIGN KEY ("group_id")
2223
+ REFERENCES "snf_core_groups" ("id")
2224
+ /*application='Dummy'*/
2225
+  (2.2ms) ALTER TABLE "snf_core_customer_groups" ADD CONSTRAINT "fk_rails_792eb3404d"
2226
+ FOREIGN KEY ("customer_id")
2227
+ REFERENCES "snf_core_users" ("id")
2228
+ /*application='Dummy'*/
2229
+  (2.3ms) ALTER TABLE "snf_core_delivery_orders" ADD CONSTRAINT "fk_rails_450d17b1b2"
2230
+ FOREIGN KEY ("order_id")
2231
+ REFERENCES "snf_core_orders" ("id")
2232
+ /*application='Dummy'*/
2233
+  (2.0ms) ALTER TABLE "snf_core_groups" ADD CONSTRAINT "fk_rails_c52b27ad67"
2234
+ FOREIGN KEY ("business_id")
2235
+ REFERENCES "snf_core_businesses" ("id")
2236
+ /*application='Dummy'*/
2237
+  (2.7ms) ALTER TABLE "snf_core_order_items" ADD CONSTRAINT "fk_rails_1f4046ba92"
2238
+ FOREIGN KEY ("order_id")
2239
+ REFERENCES "snf_core_orders" ("id")
2240
+ /*application='Dummy'*/
2241
+  (2.8ms) ALTER TABLE "snf_core_order_items" ADD CONSTRAINT "fk_rails_50419437e9"
2242
+ FOREIGN KEY ("store_inventory_id")
2243
+ REFERENCES "snf_core_store_inventories" ("id")
2244
+ /*application='Dummy'*/
2245
+  (3.0ms) ALTER TABLE "snf_core_orders" ADD CONSTRAINT "fk_rails_400cf2029c"
2246
+ FOREIGN KEY ("store_id")
2247
+ REFERENCES "snf_core_stores" ("id")
2248
+ /*application='Dummy'*/
2249
+  (1.5ms) ALTER TABLE "snf_core_orders" ADD CONSTRAINT "fk_rails_45b78fb6f9"
2250
+ FOREIGN KEY ("user_id")
2251
+ REFERENCES "snf_core_users" ("id")
2252
+ /*application='Dummy'*/
2253
+  (2.0ms) ALTER TABLE "snf_core_products" ADD CONSTRAINT "fk_rails_a0ba3fa883"
2254
+ FOREIGN KEY ("category_id")
2255
+ REFERENCES "snf_core_categories" ("id")
2256
+ /*application='Dummy'*/
2257
+  (2.3ms) ALTER TABLE "snf_core_store_inventories" ADD CONSTRAINT "fk_rails_15fb263e75"
2258
+ FOREIGN KEY ("product_id")
2259
+ REFERENCES "snf_core_products" ("id")
2260
+ /*application='Dummy'*/
2261
+  (1.9ms) ALTER TABLE "snf_core_store_inventories" ADD CONSTRAINT "fk_rails_2ca88d30e2"
2262
+ FOREIGN KEY ("store_id")
2263
+ REFERENCES "snf_core_stores" ("id")
2264
+ /*application='Dummy'*/
2265
+  (1.9ms) ALTER TABLE "snf_core_stores" ADD CONSTRAINT "fk_rails_421441da8e"
2266
+ FOREIGN KEY ("address_id")
2267
+ REFERENCES "snf_core_addresses" ("id")
2268
+ /*application='Dummy'*/
2269
+  (1.9ms) ALTER TABLE "snf_core_stores" ADD CONSTRAINT "fk_rails_e100fc7454"
2270
+ FOREIGN KEY ("business_id")
2271
+ REFERENCES "snf_core_businesses" ("id")
2272
+ /*application='Dummy'*/
2273
+  (2.6ms) ALTER TABLE "snf_core_user_roles" ADD CONSTRAINT "fk_rails_0e70d7ce00"
2274
+ FOREIGN KEY ("role_id")
2275
+ REFERENCES "snf_core_roles" ("id")
2276
+ /*application='Dummy'*/
2277
+  (1.8ms) ALTER TABLE "snf_core_user_roles" ADD CONSTRAINT "fk_rails_9ad2e78133"
2278
+ FOREIGN KEY ("user_id")
2279
+ REFERENCES "snf_core_users" ("id")
2280
+ /*application='Dummy'*/
2281
+  (2.2ms) ALTER TABLE "snf_core_wallets" ADD CONSTRAINT "fk_rails_77c94979ce"
2282
+ FOREIGN KEY ("user_id")
2283
+ REFERENCES "snf_core_users" ("id")
2284
+ /*application='Dummy'*/
2285
+  (5.4ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY) /*application='Dummy'*/
2286
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
2287
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES (20250306074713) /*application='Dummy'*/
2288
+  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES
2289
+ (20250305232530),
2290
+ (20250305232529),
2291
+ (20250305201008),
2292
+ (20250305170248),
2293
+ (20250305165926),
2294
+ (20250227102833),
2295
+ (20250227075048),
2296
+ (20250226193938),
2297
+ (20250226192104),
2298
+ (20250226190000),
2299
+ (20250226181007),
2300
+ (20250226123213),
2301
+ (20250226115215),
2302
+ (20250226110217),
2303
+ (20250226102931),
2304
+ (20250226080323),
2305
+ (20250226064444),
2306
+ (20250226042622); /*application='Dummy'*/
2307
+  (4.8ms) 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'*/
2308
+ ActiveRecord::InternalMetadata Load (0.9ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/
2309
+ ActiveRecord::InternalMetadata Create (0.6ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'development', '2025-03-06 11:04:06.533524', '2025-03-06 11:04:06.533530') RETURNING "key" /*application='Dummy'*/
2310
+ 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'*/
2311
+ ActiveRecord::InternalMetadata Update (0.5ms) UPDATE "ar_internal_metadata" SET "value" = 'test', "updated_at" = '2025-03-06 11:04:06.537725' WHERE "ar_internal_metadata"."key" = 'environment' /*application='Dummy'*/
2312
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'schema_sha1' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/
2313
+ ActiveRecord::InternalMetadata Create (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('schema_sha1', '476467cdce57999d212ace289479cf71210a32c5', '2025-03-06 11:04:06.540898', '2025-03-06 11:04:06.540901') RETURNING "key" /*application='Dummy'*/
2314
+ Started GET "/" for 127.0.0.1 at 2025-03-06 15:06:20 +0300
2315
+ ActiveRecord::SchemaMigration Load (9.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
2316
+ Processing by Rails::WelcomeController#index as HTML
2317
+ Rendering /Users/asrat/.rbenv/versions/3.4.2/lib/ruby/gems/3.4.0/gems/railties-8.0.1/lib/rails/templates/rails/welcome/index.html.erb
2318
+ Rendered /Users/asrat/.rbenv/versions/3.4.2/lib/ruby/gems/3.4.0/gems/railties-8.0.1/lib/rails/templates/rails/welcome/index.html.erb (Duration: 0.4ms | GC: 0.0ms)
2319
+ Completed 200 OK in 626ms (Views: 2.7ms | ActiveRecord: 0.0ms (0 queries, 0 cached) | GC: 99.1ms)
2320
+
2321
+
2322
+ Started GET "/icon.png" for 127.0.0.1 at 2025-03-06 15:06:21 +0300
2323
+
2324
+ ActionController::RoutingError (No route matches [GET] "/icon.png"):
2325
+
2326
+ Started GET "/apple-touch-icon-precomposed.png" for 127.0.0.1 at 2025-03-06 15:06:21 +0300
2327
+
2328
+ ActionController::RoutingError (No route matches [GET] "/apple-touch-icon-precomposed.png"):
2329
+
2330
+ Started GET "/apple-touch-icon.png" for 127.0.0.1 at 2025-03-06 15:06:21 +0300
2331
+
2332
+ ActionController::RoutingError (No route matches [GET] "/apple-touch-icon.png"):
2333
+
2334
+ Started GET "/" for 127.0.0.1 at 2025-03-06 15:06:41 +0300
2335
+ Processing by Rails::WelcomeController#index as HTML
2336
+ Rendering /Users/asrat/.rbenv/versions/3.4.2/lib/ruby/gems/3.4.0/gems/railties-8.0.1/lib/rails/templates/rails/welcome/index.html.erb
2337
+ Rendered /Users/asrat/.rbenv/versions/3.4.2/lib/ruby/gems/3.4.0/gems/railties-8.0.1/lib/rails/templates/rails/welcome/index.html.erb (Duration: 0.2ms | GC: 0.0ms)
2338
+ Completed 200 OK in 16ms (Views: 0.8ms | ActiveRecord: 0.0ms (0 queries, 0 cached) | GC: 0.0ms)
2339
+
2340
+
2341
+ Started GET "/location/bole" for 127.0.0.1 at 2025-03-06 15:06:42 +0300
2342
+
2343
+ ActionController::RoutingError (No route matches [GET] "/location/bole"):
2344
+
2345
+ Started GET "/letter" for 127.0.0.1 at 2025-03-06 15:06:48 +0300
2346
+
2347
+ ActionController::RoutingError (No route matches [GET] "/letter"):
2348
+
2349
+ Started GET "/letter_opener" for ::1 at 2025-03-06 15:07:49 +0300
2350
+
2351
+ ActionController::RoutingError (No route matches [GET] "/letter_opener"):
2352
+
2353
+ Started GET "/favicon.ico" for ::1 at 2025-03-06 15:07:50 +0300
2354
+
2355
+ ActionController::RoutingError (No route matches [GET] "/favicon.ico"):
2356
+
2357
+ Started GET "//rails/conductor/action_mailbox/inbound_emails" for ::1 at 2025-03-06 15:08:21 +0300
2358
+ Processing by Rails::Conductor::ActionMailbox::InboundEmailsController#index as HTML
2359
+ Completed 500 Internal Server Error in 51ms (ActiveRecord: 0.0ms (0 queries, 0 cached) | GC: 7.3ms)
2360
+
2361
+
2362
+
2363
+ RuntimeError (Missing service adapter for "S3")
2364
+ Caused by: Gem::LoadError (aws-sdk-s3 is not part of the bundle. Add it to your Gemfile.)
2365
+
2366
+ Information for: RuntimeError (Missing service adapter for "S3"):
2367
+
2368
+ activestorage (8.0.1) lib/active_storage/service/configurator.rb:33:in 'ActiveStorage::Service::Configurator#resolve'
2369
+ activestorage (8.0.1) lib/active_storage/service/configurator.rb:17:in 'ActiveStorage::Service::Configurator#build'
2370
+ activestorage (8.0.1) lib/active_storage/service/registry.rb:13:in 'block in ActiveStorage::Service::Registry#fetch'
2371
+ activestorage (8.0.1) lib/active_storage/service/registry.rb:11:in 'Hash#fetch'
2372
+ activestorage (8.0.1) lib/active_storage/service/registry.rb:11:in 'ActiveStorage::Service::Registry#fetch'
2373
+ activestorage (8.0.1) lib/active_storage/engine.rb:153:in 'block (2 levels) in <class:Engine>'
2374
+ activesupport (8.0.1) lib/active_support/lazy_load_hooks.rb:97:in 'Module#class_eval'
2375
+ activesupport (8.0.1) lib/active_support/lazy_load_hooks.rb:97:in 'block in ActiveSupport::LazyLoadHooks#execute_hook'
2376
+ activesupport (8.0.1) lib/active_support/lazy_load_hooks.rb:87:in 'ActiveSupport::LazyLoadHooks#with_execution_control'
2377
+ activesupport (8.0.1) lib/active_support/lazy_load_hooks.rb:92:in 'ActiveSupport::LazyLoadHooks#execute_hook'
2378
+ activesupport (8.0.1) lib/active_support/lazy_load_hooks.rb:78:in 'block in ActiveSupport::LazyLoadHooks#run_load_hooks'
2379
+ activesupport (8.0.1) lib/active_support/lazy_load_hooks.rb:77:in 'Array#each'
2380
+ activesupport (8.0.1) lib/active_support/lazy_load_hooks.rb:77:in 'ActiveSupport::LazyLoadHooks#run_load_hooks'
2381
+ activestorage (8.0.1) app/models/active_storage/blob.rb:396:in '<top (required)>'
2382
+ /Users/asrat/.rbenv/versions/3.4.2/lib/ruby/3.4.0/bundled_gems.rb:82:in 'Kernel.require'
2383
+ /Users/asrat/.rbenv/versions/3.4.2/lib/ruby/3.4.0/bundled_gems.rb:82:in 'block (2 levels) in Kernel#replace_require'
2384
+ zeitwerk (2.7.2) lib/zeitwerk/core_ext/kernel.rb:26:in 'Kernel#require'
2385
+ activestorage (8.0.1) lib/active_storage/attached/model.rb:109:in 'ActiveStorage::Attached::Model::ClassMethods#has_one_attached'
2386
+ actionmailbox (8.0.1) app/models/action_mailbox/inbound_email.rb:30:in '<class:InboundEmail>'
2387
+ actionmailbox (8.0.1) app/models/action_mailbox/inbound_email.rb:27:in '<module:ActionMailbox>'
2388
+ actionmailbox (8.0.1) app/models/action_mailbox/inbound_email.rb:5:in '<top (required)>'
2389
+ /Users/asrat/.rbenv/versions/3.4.2/lib/ruby/3.4.0/bundled_gems.rb:82:in 'Kernel.require'
2390
+ /Users/asrat/.rbenv/versions/3.4.2/lib/ruby/3.4.0/bundled_gems.rb:82:in 'block (2 levels) in Kernel#replace_require'
2391
+ zeitwerk (2.7.2) lib/zeitwerk/core_ext/kernel.rb:26:in 'Kernel#require'
2392
+ actionmailbox (8.0.1) app/controllers/rails/conductor/action_mailbox/inbound_emails_controller.rb:8:in 'Rails::Conductor::ActionMailbox::InboundEmailsController#index'
2393
+ actionpack (8.0.1) lib/action_controller/metal/basic_implicit_render.rb:8:in 'ActionController::BasicImplicitRender#send_action'
2394
+ actionpack (8.0.1) lib/abstract_controller/base.rb:226:in 'AbstractController::Base#process_action'
2395
+ actionpack (8.0.1) lib/action_controller/metal/rendering.rb:193:in 'ActionController::Rendering#process_action'
2396
+ actionpack (8.0.1) lib/abstract_controller/callbacks.rb:261:in 'block in AbstractController::Callbacks#process_action'
2397
+ activesupport (8.0.1) lib/active_support/callbacks.rb:120:in 'block in ActiveSupport::Callbacks#run_callbacks'
2398
+ actiontext (8.0.1) lib/action_text/rendering.rb:25:in 'ActionText::Rendering::ClassMethods#with_renderer'
2399
+ actiontext (8.0.1) lib/action_text/engine.rb:71:in 'block (4 levels) in <class:Engine>'
2400
+ activesupport (8.0.1) lib/active_support/callbacks.rb:129:in 'BasicObject#instance_exec'
2401
+ activesupport (8.0.1) lib/active_support/callbacks.rb:129:in 'block in ActiveSupport::Callbacks#run_callbacks'
2402
+ activesupport (8.0.1) lib/active_support/callbacks.rb:140:in 'ActiveSupport::Callbacks#run_callbacks'
2403
+ actionpack (8.0.1) lib/abstract_controller/callbacks.rb:260:in 'AbstractController::Callbacks#process_action'
2404
+ actionpack (8.0.1) lib/action_controller/metal/rescue.rb:27:in 'ActionController::Rescue#process_action'
2405
+ actionpack (8.0.1) lib/action_controller/metal/instrumentation.rb:76:in 'block in ActionController::Instrumentation#process_action'
2406
+ activesupport (8.0.1) lib/active_support/notifications.rb:210:in 'block in ActiveSupport::Notifications.instrument'
2407
+ activesupport (8.0.1) lib/active_support/notifications/instrumenter.rb:58:in 'ActiveSupport::Notifications::Instrumenter#instrument'
2408
+ activesupport (8.0.1) lib/active_support/notifications.rb:210:in 'ActiveSupport::Notifications.instrument'
2409
+ actionpack (8.0.1) lib/action_controller/metal/instrumentation.rb:75:in 'ActionController::Instrumentation#process_action'
2410
+ actionpack (8.0.1) lib/action_controller/metal/params_wrapper.rb:259:in 'ActionController::ParamsWrapper#process_action'
2411
+ activerecord (8.0.1) lib/active_record/railties/controller_runtime.rb:39:in 'ActiveRecord::Railties::ControllerRuntime#process_action'
2412
+ actionpack (8.0.1) lib/abstract_controller/base.rb:163:in 'AbstractController::Base#process'
2413
+ actionview (8.0.1) lib/action_view/rendering.rb:40:in 'ActionView::Rendering#process'
2414
+ actionpack (8.0.1) lib/action_controller/metal.rb:252:in 'ActionController::Metal#dispatch'
2415
+ actionpack (8.0.1) lib/action_controller/metal.rb:335:in 'ActionController::Metal.dispatch'
2416
+ actionpack (8.0.1) lib/action_dispatch/routing/route_set.rb:67:in 'ActionDispatch::Routing::RouteSet::Dispatcher#dispatch'
2417
+ actionpack (8.0.1) lib/action_dispatch/routing/route_set.rb:50:in 'ActionDispatch::Routing::RouteSet::Dispatcher#serve'
2418
+ actionpack (8.0.1) lib/action_dispatch/journey/router.rb:53:in 'block in ActionDispatch::Journey::Router#serve'
2419
+ actionpack (8.0.1) lib/action_dispatch/journey/router.rb:133:in 'block in ActionDispatch::Journey::Router#find_routes'
2420
+ actionpack (8.0.1) lib/action_dispatch/journey/router.rb:126:in 'Array#each'
2421
+ actionpack (8.0.1) lib/action_dispatch/journey/router.rb:126:in 'ActionDispatch::Journey::Router#find_routes'
2422
+ actionpack (8.0.1) lib/action_dispatch/journey/router.rb:34:in 'ActionDispatch::Journey::Router#serve'
2423
+ actionpack (8.0.1) lib/action_dispatch/routing/route_set.rb:908:in 'ActionDispatch::Routing::RouteSet#call'
2424
+ railties (8.0.1) lib/rails/engine/lazy_route_set.rb:68:in 'Rails::Engine::LazyRouteSet#call'
2425
+ rack (3.1.10) lib/rack/etag.rb:29:in 'Rack::ETag#call'
2426
+ rack (3.1.10) lib/rack/conditional_get.rb:31:in 'Rack::ConditionalGet#call'
2427
+ rack (3.1.10) lib/rack/head.rb:15:in 'Rack::Head#call'
2428
+ activerecord (8.0.1) lib/active_record/migration.rb:671:in 'ActiveRecord::Migration::CheckPending#call'
2429
+ actionpack (8.0.1) lib/action_dispatch/middleware/callbacks.rb:31:in 'block in ActionDispatch::Callbacks#call'
2430
+ activesupport (8.0.1) lib/active_support/callbacks.rb:100:in 'ActiveSupport::Callbacks#run_callbacks'
2431
+ actionpack (8.0.1) lib/action_dispatch/middleware/callbacks.rb:30:in 'ActionDispatch::Callbacks#call'
2432
+ actionpack (8.0.1) lib/action_dispatch/middleware/executor.rb:16:in 'ActionDispatch::Executor#call'
2433
+ actionpack (8.0.1) lib/action_dispatch/middleware/actionable_exceptions.rb:18:in 'ActionDispatch::ActionableExceptions#call'
2434
+ sentry-rails (5.22.4) lib/sentry/rails/rescued_exception_interceptor.rb:11:in 'Sentry::Rails::RescuedExceptionInterceptor#call'
2435
+ actionpack (8.0.1) lib/action_dispatch/middleware/debug_exceptions.rb:31:in 'ActionDispatch::DebugExceptions#call'
2436
+ sentry-ruby (5.22.4) lib/sentry/rack/capture_exceptions.rb:15:in 'Sentry::Rack::CaptureExceptions#call'
2437
+ actionpack (8.0.1) lib/action_dispatch/middleware/show_exceptions.rb:32:in 'ActionDispatch::ShowExceptions#call'
2438
+ railties (8.0.1) lib/rails/rack/logger.rb:41:in 'Rails::Rack::Logger#call_app'
2439
+ railties (8.0.1) lib/rails/rack/logger.rb:29:in 'Rails::Rack::Logger#call'
2440
+ actionpack (8.0.1) lib/action_dispatch/middleware/remote_ip.rb:96:in 'ActionDispatch::RemoteIp#call'
2441
+ actionpack (8.0.1) lib/action_dispatch/middleware/request_id.rb:34:in 'ActionDispatch::RequestId#call'
2442
+ rack (3.1.10) lib/rack/runtime.rb:24:in 'Rack::Runtime#call'
2443
+ actionpack (8.0.1) lib/action_dispatch/middleware/server_timing.rb:61:in 'block in ActionDispatch::ServerTiming#call'
2444
+ actionpack (8.0.1) lib/action_dispatch/middleware/server_timing.rb:26:in 'ActionDispatch::ServerTiming::Subscriber#collect_events'
2445
+ actionpack (8.0.1) lib/action_dispatch/middleware/server_timing.rb:60:in 'ActionDispatch::ServerTiming#call'
2446
+ actionpack (8.0.1) lib/action_dispatch/middleware/executor.rb:16:in 'ActionDispatch::Executor#call'
2447
+ actionpack (8.0.1) lib/action_dispatch/middleware/static.rb:27:in 'ActionDispatch::Static#call'
2448
+ rack (3.1.10) lib/rack/sendfile.rb:114:in 'Rack::Sendfile#call'
2449
+ actionpack (8.0.1) lib/action_dispatch/middleware/host_authorization.rb:143:in 'ActionDispatch::HostAuthorization#call'
2450
+ railties (8.0.1) lib/rails/engine.rb:535:in 'Rails::Engine#call'
2451
+ puma (6.6.0) lib/puma/configuration.rb:279:in 'Puma::Configuration::ConfigMiddleware#call'
2452
+ puma (6.6.0) lib/puma/request.rb:99:in 'block in Puma::Request#handle_request'
2453
+ puma (6.6.0) lib/puma/thread_pool.rb:390:in 'Puma::ThreadPool#with_force_shutdown'
2454
+ puma (6.6.0) lib/puma/request.rb:98:in 'Puma::Request#handle_request'
2455
+ puma (6.6.0) lib/puma/server.rb:472:in 'Puma::Server#process_client'
2456
+ puma (6.6.0) lib/puma/server.rb:254:in 'block in Puma::Server#run'
2457
+ puma (6.6.0) lib/puma/thread_pool.rb:167:in 'block in Puma::ThreadPool#spawn_thread'
2458
+
2459
+ Information for cause: Gem::LoadError (aws-sdk-s3 is not part of the bundle. Add it to your Gemfile.):
2460
+
2461
+ bundler (2.6.4) lib/bundler/rubygems_integration.rb:215:in 'block (2 levels) in Kernel#replace_gem'
2462
+ activestorage (8.0.1) lib/active_storage/service/s3_service.rb:3:in '<top (required)>'
2463
+ /Users/asrat/.rbenv/versions/3.4.2/lib/ruby/3.4.0/bundled_gems.rb:82:in 'Kernel.require'
2464
+ /Users/asrat/.rbenv/versions/3.4.2/lib/ruby/3.4.0/bundled_gems.rb:82:in 'block (2 levels) in Kernel#replace_require'
2465
+ zeitwerk (2.7.2) lib/zeitwerk/core_ext/kernel.rb:34:in 'Kernel#require'
2466
+ activestorage (8.0.1) lib/active_storage/service/configurator.rb:30:in 'ActiveStorage::Service::Configurator#resolve'
2467
+ activestorage (8.0.1) lib/active_storage/service/configurator.rb:17:in 'ActiveStorage::Service::Configurator#build'
2468
+ activestorage (8.0.1) lib/active_storage/service/registry.rb:13:in 'block in ActiveStorage::Service::Registry#fetch'
2469
+ activestorage (8.0.1) lib/active_storage/service/registry.rb:11:in 'Hash#fetch'
2470
+ activestorage (8.0.1) lib/active_storage/service/registry.rb:11:in 'ActiveStorage::Service::Registry#fetch'
2471
+ activestorage (8.0.1) lib/active_storage/engine.rb:153:in 'block (2 levels) in <class:Engine>'
2472
+ activesupport (8.0.1) lib/active_support/lazy_load_hooks.rb:97:in 'Module#class_eval'
2473
+ activesupport (8.0.1) lib/active_support/lazy_load_hooks.rb:97:in 'block in ActiveSupport::LazyLoadHooks#execute_hook'
2474
+ activesupport (8.0.1) lib/active_support/lazy_load_hooks.rb:87:in 'ActiveSupport::LazyLoadHooks#with_execution_control'
2475
+ activesupport (8.0.1) lib/active_support/lazy_load_hooks.rb:92:in 'ActiveSupport::LazyLoadHooks#execute_hook'
2476
+ activesupport (8.0.1) lib/active_support/lazy_load_hooks.rb:78:in 'block in ActiveSupport::LazyLoadHooks#run_load_hooks'
2477
+ activesupport (8.0.1) lib/active_support/lazy_load_hooks.rb:77:in 'Array#each'
2478
+ activesupport (8.0.1) lib/active_support/lazy_load_hooks.rb:77:in 'ActiveSupport::LazyLoadHooks#run_load_hooks'
2479
+ activestorage (8.0.1) app/models/active_storage/blob.rb:396:in '<top (required)>'
2480
+ /Users/asrat/.rbenv/versions/3.4.2/lib/ruby/3.4.0/bundled_gems.rb:82:in 'Kernel.require'
2481
+ /Users/asrat/.rbenv/versions/3.4.2/lib/ruby/3.4.0/bundled_gems.rb:82:in 'block (2 levels) in Kernel#replace_require'
2482
+ zeitwerk (2.7.2) lib/zeitwerk/core_ext/kernel.rb:26:in 'Kernel#require'
2483
+ activestorage (8.0.1) lib/active_storage/attached/model.rb:109:in 'ActiveStorage::Attached::Model::ClassMethods#has_one_attached'
2484
+ actionmailbox (8.0.1) app/models/action_mailbox/inbound_email.rb:30:in '<class:InboundEmail>'
2485
+ actionmailbox (8.0.1) app/models/action_mailbox/inbound_email.rb:27:in '<module:ActionMailbox>'
2486
+ actionmailbox (8.0.1) app/models/action_mailbox/inbound_email.rb:5:in '<top (required)>'
2487
+ /Users/asrat/.rbenv/versions/3.4.2/lib/ruby/3.4.0/bundled_gems.rb:82:in 'Kernel.require'
2488
+ /Users/asrat/.rbenv/versions/3.4.2/lib/ruby/3.4.0/bundled_gems.rb:82:in 'block (2 levels) in Kernel#replace_require'
2489
+ zeitwerk (2.7.2) lib/zeitwerk/core_ext/kernel.rb:26:in 'Kernel#require'
2490
+ actionmailbox (8.0.1) app/controllers/rails/conductor/action_mailbox/inbound_emails_controller.rb:8:in 'Rails::Conductor::ActionMailbox::InboundEmailsController#index'
2491
+ actionpack (8.0.1) lib/action_controller/metal/basic_implicit_render.rb:8:in 'ActionController::BasicImplicitRender#send_action'
2492
+ actionpack (8.0.1) lib/abstract_controller/base.rb:226:in 'AbstractController::Base#process_action'
2493
+ actionpack (8.0.1) lib/action_controller/metal/rendering.rb:193:in 'ActionController::Rendering#process_action'
2494
+ actionpack (8.0.1) lib/abstract_controller/callbacks.rb:261:in 'block in AbstractController::Callbacks#process_action'
2495
+ activesupport (8.0.1) lib/active_support/callbacks.rb:120:in 'block in ActiveSupport::Callbacks#run_callbacks'
2496
+ actiontext (8.0.1) lib/action_text/rendering.rb:25:in 'ActionText::Rendering::ClassMethods#with_renderer'
2497
+ actiontext (8.0.1) lib/action_text/engine.rb:71:in 'block (4 levels) in <class:Engine>'
2498
+ activesupport (8.0.1) lib/active_support/callbacks.rb:129:in 'BasicObject#instance_exec'
2499
+ activesupport (8.0.1) lib/active_support/callbacks.rb:129:in 'block in ActiveSupport::Callbacks#run_callbacks'
2500
+ activesupport (8.0.1) lib/active_support/callbacks.rb:140:in 'ActiveSupport::Callbacks#run_callbacks'
2501
+ actionpack (8.0.1) lib/abstract_controller/callbacks.rb:260:in 'AbstractController::Callbacks#process_action'
2502
+ actionpack (8.0.1) lib/action_controller/metal/rescue.rb:27:in 'ActionController::Rescue#process_action'
2503
+ actionpack (8.0.1) lib/action_controller/metal/instrumentation.rb:76:in 'block in ActionController::Instrumentation#process_action'
2504
+ activesupport (8.0.1) lib/active_support/notifications.rb:210:in 'block in ActiveSupport::Notifications.instrument'
2505
+ activesupport (8.0.1) lib/active_support/notifications/instrumenter.rb:58:in 'ActiveSupport::Notifications::Instrumenter#instrument'
2506
+ activesupport (8.0.1) lib/active_support/notifications.rb:210:in 'ActiveSupport::Notifications.instrument'
2507
+ actionpack (8.0.1) lib/action_controller/metal/instrumentation.rb:75:in 'ActionController::Instrumentation#process_action'
2508
+ actionpack (8.0.1) lib/action_controller/metal/params_wrapper.rb:259:in 'ActionController::ParamsWrapper#process_action'
2509
+ activerecord (8.0.1) lib/active_record/railties/controller_runtime.rb:39:in 'ActiveRecord::Railties::ControllerRuntime#process_action'
2510
+ actionpack (8.0.1) lib/abstract_controller/base.rb:163:in 'AbstractController::Base#process'
2511
+ actionview (8.0.1) lib/action_view/rendering.rb:40:in 'ActionView::Rendering#process'
2512
+ actionpack (8.0.1) lib/action_controller/metal.rb:252:in 'ActionController::Metal#dispatch'
2513
+ actionpack (8.0.1) lib/action_controller/metal.rb:335:in 'ActionController::Metal.dispatch'
2514
+ actionpack (8.0.1) lib/action_dispatch/routing/route_set.rb:67:in 'ActionDispatch::Routing::RouteSet::Dispatcher#dispatch'
2515
+ actionpack (8.0.1) lib/action_dispatch/routing/route_set.rb:50:in 'ActionDispatch::Routing::RouteSet::Dispatcher#serve'
2516
+ actionpack (8.0.1) lib/action_dispatch/journey/router.rb:53:in 'block in ActionDispatch::Journey::Router#serve'
2517
+ actionpack (8.0.1) lib/action_dispatch/journey/router.rb:133:in 'block in ActionDispatch::Journey::Router#find_routes'
2518
+ actionpack (8.0.1) lib/action_dispatch/journey/router.rb:126:in 'Array#each'
2519
+ actionpack (8.0.1) lib/action_dispatch/journey/router.rb:126:in 'ActionDispatch::Journey::Router#find_routes'
2520
+ actionpack (8.0.1) lib/action_dispatch/journey/router.rb:34:in 'ActionDispatch::Journey::Router#serve'
2521
+ actionpack (8.0.1) lib/action_dispatch/routing/route_set.rb:908:in 'ActionDispatch::Routing::RouteSet#call'
2522
+ railties (8.0.1) lib/rails/engine/lazy_route_set.rb:68:in 'Rails::Engine::LazyRouteSet#call'
2523
+ rack (3.1.10) lib/rack/etag.rb:29:in 'Rack::ETag#call'
2524
+ rack (3.1.10) lib/rack/conditional_get.rb:31:in 'Rack::ConditionalGet#call'
2525
+ rack (3.1.10) lib/rack/head.rb:15:in 'Rack::Head#call'
2526
+ activerecord (8.0.1) lib/active_record/migration.rb:671:in 'ActiveRecord::Migration::CheckPending#call'
2527
+ actionpack (8.0.1) lib/action_dispatch/middleware/callbacks.rb:31:in 'block in ActionDispatch::Callbacks#call'
2528
+ activesupport (8.0.1) lib/active_support/callbacks.rb:100:in 'ActiveSupport::Callbacks#run_callbacks'
2529
+ actionpack (8.0.1) lib/action_dispatch/middleware/callbacks.rb:30:in 'ActionDispatch::Callbacks#call'
2530
+ actionpack (8.0.1) lib/action_dispatch/middleware/executor.rb:16:in 'ActionDispatch::Executor#call'
2531
+ actionpack (8.0.1) lib/action_dispatch/middleware/actionable_exceptions.rb:18:in 'ActionDispatch::ActionableExceptions#call'
2532
+ sentry-rails (5.22.4) lib/sentry/rails/rescued_exception_interceptor.rb:11:in 'Sentry::Rails::RescuedExceptionInterceptor#call'
2533
+ actionpack (8.0.1) lib/action_dispatch/middleware/debug_exceptions.rb:31:in 'ActionDispatch::DebugExceptions#call'
2534
+ sentry-ruby (5.22.4) lib/sentry/rack/capture_exceptions.rb:15:in 'Sentry::Rack::CaptureExceptions#call'
2535
+ actionpack (8.0.1) lib/action_dispatch/middleware/show_exceptions.rb:32:in 'ActionDispatch::ShowExceptions#call'
2536
+ railties (8.0.1) lib/rails/rack/logger.rb:41:in 'Rails::Rack::Logger#call_app'
2537
+ railties (8.0.1) lib/rails/rack/logger.rb:29:in 'Rails::Rack::Logger#call'
2538
+ actionpack (8.0.1) lib/action_dispatch/middleware/remote_ip.rb:96:in 'ActionDispatch::RemoteIp#call'
2539
+ actionpack (8.0.1) lib/action_dispatch/middleware/request_id.rb:34:in 'ActionDispatch::RequestId#call'
2540
+ rack (3.1.10) lib/rack/runtime.rb:24:in 'Rack::Runtime#call'
2541
+ actionpack (8.0.1) lib/action_dispatch/middleware/server_timing.rb:61:in 'block in ActionDispatch::ServerTiming#call'
2542
+ actionpack (8.0.1) lib/action_dispatch/middleware/server_timing.rb:26:in 'ActionDispatch::ServerTiming::Subscriber#collect_events'
2543
+ actionpack (8.0.1) lib/action_dispatch/middleware/server_timing.rb:60:in 'ActionDispatch::ServerTiming#call'
2544
+ actionpack (8.0.1) lib/action_dispatch/middleware/executor.rb:16:in 'ActionDispatch::Executor#call'
2545
+ actionpack (8.0.1) lib/action_dispatch/middleware/static.rb:27:in 'ActionDispatch::Static#call'
2546
+ rack (3.1.10) lib/rack/sendfile.rb:114:in 'Rack::Sendfile#call'
2547
+ actionpack (8.0.1) lib/action_dispatch/middleware/host_authorization.rb:143:in 'ActionDispatch::HostAuthorization#call'
2548
+ railties (8.0.1) lib/rails/engine.rb:535:in 'Rails::Engine#call'
2549
+ puma (6.6.0) lib/puma/configuration.rb:279:in 'Puma::Configuration::ConfigMiddleware#call'
2550
+ puma (6.6.0) lib/puma/request.rb:99:in 'block in Puma::Request#handle_request'
2551
+ puma (6.6.0) lib/puma/thread_pool.rb:390:in 'Puma::ThreadPool#with_force_shutdown'
2552
+ puma (6.6.0) lib/puma/request.rb:98:in 'Puma::Request#handle_request'
2553
+ puma (6.6.0) lib/puma/server.rb:472:in 'Puma::Server#process_client'
2554
+ puma (6.6.0) lib/puma/server.rb:254:in 'block in Puma::Server#run'
2555
+ puma (6.6.0) lib/puma/thread_pool.rb:167:in 'block in Puma::ThreadPool#spawn_thread'
2556
+ Started GET "//rails/conductor/action_mailbox/inbound_emails" for ::1 at 2025-03-06 15:08:38 +0300
2557
+ Processing by Rails::Conductor::ActionMailbox::InboundEmailsController#index as HTML
2558
+ Completed 500 Internal Server Error in 87ms (ActiveRecord: 22.3ms (0 queries, 0 cached) | GC: 0.0ms)
2559
+
2560
+
2561
+
2562
+ ActiveRecord::StatementInvalid (PG::UndefinedTable: ERROR: relation "action_mailbox_inbound_emails" does not exist
2563
+ LINE 10: WHERE a.attrelid = '"action_mailbox_inbound_emails"'::regcl...
2564
+ ^
2565
+ )
2566
+ Caused by: PG::UndefinedTable (ERROR: relation "action_mailbox_inbound_emails" does not exist
2567
+ LINE 10: WHERE a.attrelid = '"action_mailbox_inbound_emails"'::regcl...
2568
+ ^
2569
+ )
2570
+
2571
+ Information for: ActiveRecord::StatementInvalid (PG::UndefinedTable: ERROR: relation "action_mailbox_inbound_emails" does not exist
2572
+ LINE 10: WHERE a.attrelid = '"action_mailbox_inbound_emails"'::regcl...
2573
+ ^
2574
+ ):
2575
+
2576
+
2577
+ Information for cause: PG::UndefinedTable (ERROR: relation "action_mailbox_inbound_emails" does not exist
2578
+ LINE 10: WHERE a.attrelid = '"action_mailbox_inbound_emails"'::regcl...
2579
+ ^
2580
+ ):
2581
+
2582
+ activerecord (8.0.1) lib/active_record/connection_adapters/postgresql/database_statements.rb:160:in 'PG::Connection#exec'
2583
+ activerecord (8.0.1) lib/active_record/connection_adapters/postgresql/database_statements.rb:160:in 'ActiveRecord::ConnectionAdapters::PostgreSQL::DatabaseStatements#perform_query'
2584
+ activerecord (8.0.1) lib/active_record/connection_adapters/abstract/database_statements.rb:556:in 'block (2 levels) in ActiveRecord::ConnectionAdapters::DatabaseStatements#raw_execute'
2585
+ activerecord (8.0.1) lib/active_record/connection_adapters/abstract_adapter.rb:1011:in 'block in ActiveRecord::ConnectionAdapters::AbstractAdapter#with_raw_connection'
2586
+ activesupport (8.0.1) lib/active_support/concurrency/null_lock.rb:9:in 'ActiveSupport::Concurrency::NullLock#synchronize'
2587
+ activerecord (8.0.1) lib/active_record/connection_adapters/abstract_adapter.rb:983:in 'ActiveRecord::ConnectionAdapters::AbstractAdapter#with_raw_connection'
2588
+ activerecord (8.0.1) lib/active_record/connection_adapters/abstract/database_statements.rb:555:in 'block in ActiveRecord::ConnectionAdapters::DatabaseStatements#raw_execute'
2589
+ activesupport (8.0.1) lib/active_support/notifications/instrumenter.rb:58:in 'ActiveSupport::Notifications::Instrumenter#instrument'
2590
+ activerecord (8.0.1) lib/active_record/connection_adapters/abstract_adapter.rb:1129:in 'ActiveRecord::ConnectionAdapters::AbstractAdapter#log'
2591
+ activerecord (8.0.1) lib/active_record/connection_adapters/abstract/database_statements.rb:554:in 'ActiveRecord::ConnectionAdapters::DatabaseStatements#raw_execute'
2592
+ activerecord (8.0.1) lib/active_record/connection_adapters/abstract/database_statements.rb:591:in 'ActiveRecord::ConnectionAdapters::DatabaseStatements#internal_execute'
2593
+ activerecord (8.0.1) lib/active_record/connection_adapters/postgresql/database_statements.rb:15:in 'ActiveRecord::ConnectionAdapters::PostgreSQL::DatabaseStatements#query'
2594
+ activerecord (8.0.1) lib/active_record/connection_adapters/postgresql_adapter.rb:1030:in 'ActiveRecord::ConnectionAdapters::PostgreSQLAdapter#column_definitions'
2595
+ activerecord (8.0.1) lib/active_record/connection_adapters/abstract/schema_statements.rb:109:in 'ActiveRecord::ConnectionAdapters::SchemaStatements#columns'
2596
+ activerecord (8.0.1) lib/active_record/connection_adapters/schema_cache.rb:345:in 'block (2 levels) in ActiveRecord::ConnectionAdapters::SchemaCache#columns'
2597
+ activerecord (8.0.1) lib/active_record/connection_adapters/abstract/connection_pool.rb:418:in 'ActiveRecord::ConnectionAdapters::ConnectionPool#with_connection'
2598
+ activerecord (8.0.1) lib/active_record/connection_adapters/schema_cache.rb:344:in 'block in ActiveRecord::ConnectionAdapters::SchemaCache#columns'
2599
+ activerecord (8.0.1) lib/active_record/connection_adapters/schema_cache.rb:343:in 'Hash#fetch'
2600
+ activerecord (8.0.1) lib/active_record/connection_adapters/schema_cache.rb:343:in 'ActiveRecord::ConnectionAdapters::SchemaCache#columns'
2601
+ activerecord (8.0.1) lib/active_record/connection_adapters/schema_cache.rb:354:in 'block in ActiveRecord::ConnectionAdapters::SchemaCache#columns_hash'
2602
+ activerecord (8.0.1) lib/active_record/connection_adapters/schema_cache.rb:353:in 'Hash#fetch'
2603
+ activerecord (8.0.1) lib/active_record/connection_adapters/schema_cache.rb:353:in 'ActiveRecord::ConnectionAdapters::SchemaCache#columns_hash'
2604
+ activerecord (8.0.1) lib/active_record/connection_adapters/schema_cache.rb:54:in 'ActiveRecord::ConnectionAdapters::SchemaReflection#columns_hash'
2605
+ activerecord (8.0.1) lib/active_record/connection_adapters/schema_cache.rb:198:in 'ActiveRecord::ConnectionAdapters::BoundSchemaReflection#columns_hash'
2606
+ activerecord (8.0.1) lib/active_record/model_schema.rb:592:in 'ActiveRecord::ModelSchema::ClassMethods#load_schema!'
2607
+ activerecord (8.0.1) lib/active_record/counter_cache.rb:187:in 'ActiveRecord::CounterCache::ClassMethods#load_schema!'
2608
+ activerecord (8.0.1) lib/active_record/encryption/encryptable_record.rb:127:in 'ActiveRecord::Encryption::EncryptableRecord::ClassMethods#load_schema!'
2609
+ activerecord (8.0.1) lib/active_record/model_schema.rb:539:in 'block in ActiveRecord::ModelSchema::ClassMethods#load_schema'
2610
+ activerecord (8.0.1) lib/active_record/model_schema.rb:536:in 'Monitor#synchronize'
2611
+ activerecord (8.0.1) lib/active_record/model_schema.rb:536:in 'ActiveRecord::ModelSchema::ClassMethods#load_schema'
2612
+ activerecord (8.0.1) lib/active_record/model_schema.rb:428:in 'ActiveRecord::ModelSchema::ClassMethods#columns_hash'
2613
+ activerecord (8.0.1) lib/active_record/relation/query_methods.rb:1996:in 'ActiveRecord::QueryMethods#arel_column'
2614
+ activerecord (8.0.1) lib/active_record/relation/query_methods.rb:2154:in 'ActiveRecord::QueryMethods#order_column'
2615
+ activerecord (8.0.1) lib/active_record/relation/query_methods.rb:2108:in 'block (2 levels) in ActiveRecord::QueryMethods#preprocess_order_args'
2616
+ activerecord (8.0.1) lib/active_record/relation/query_methods.rb:2098:in 'Hash#each'
2617
+ activerecord (8.0.1) lib/active_record/relation/query_methods.rb:2098:in 'Enumerable#map'
2618
+ activerecord (8.0.1) lib/active_record/relation/query_methods.rb:2098:in 'block in ActiveRecord::QueryMethods#preprocess_order_args'
2619
+ activerecord (8.0.1) lib/active_record/relation/query_methods.rb:2093:in 'Array#map!'
2620
+ activerecord (8.0.1) lib/active_record/relation/query_methods.rb:2093:in 'ActiveRecord::QueryMethods#preprocess_order_args'
2621
+ activerecord (8.0.1) lib/active_record/relation/query_methods.rb:665:in 'ActiveRecord::QueryMethods#order!'
2622
+ activerecord (8.0.1) lib/active_record/relation/query_methods.rb:660:in 'ActiveRecord::QueryMethods#order'
2623
+ activerecord (8.0.1) lib/active_record/querying.rb:24:in 'ActiveRecord::Querying#order'
2624
+ actionmailbox (8.0.1) app/controllers/rails/conductor/action_mailbox/inbound_emails_controller.rb:8:in 'Rails::Conductor::ActionMailbox::InboundEmailsController#index'
2625
+ actionpack (8.0.1) lib/action_controller/metal/basic_implicit_render.rb:8:in 'ActionController::BasicImplicitRender#send_action'
2626
+ actionpack (8.0.1) lib/abstract_controller/base.rb:226:in 'AbstractController::Base#process_action'
2627
+ actionpack (8.0.1) lib/action_controller/metal/rendering.rb:193:in 'ActionController::Rendering#process_action'
2628
+ actionpack (8.0.1) lib/abstract_controller/callbacks.rb:261:in 'block in AbstractController::Callbacks#process_action'
2629
+ activesupport (8.0.1) lib/active_support/callbacks.rb:120:in 'block in ActiveSupport::Callbacks#run_callbacks'
2630
+ actiontext (8.0.1) lib/action_text/rendering.rb:25:in 'ActionText::Rendering::ClassMethods#with_renderer'
2631
+ actiontext (8.0.1) lib/action_text/engine.rb:71:in 'block (4 levels) in <class:Engine>'
2632
+ activesupport (8.0.1) lib/active_support/callbacks.rb:129:in 'BasicObject#instance_exec'
2633
+ activesupport (8.0.1) lib/active_support/callbacks.rb:129:in 'block in ActiveSupport::Callbacks#run_callbacks'
2634
+ activesupport (8.0.1) lib/active_support/callbacks.rb:140:in 'ActiveSupport::Callbacks#run_callbacks'
2635
+ actionpack (8.0.1) lib/abstract_controller/callbacks.rb:260:in 'AbstractController::Callbacks#process_action'
2636
+ actionpack (8.0.1) lib/action_controller/metal/rescue.rb:27:in 'ActionController::Rescue#process_action'
2637
+ actionpack (8.0.1) lib/action_controller/metal/instrumentation.rb:76:in 'block in ActionController::Instrumentation#process_action'
2638
+ activesupport (8.0.1) lib/active_support/notifications.rb:210:in 'block in ActiveSupport::Notifications.instrument'
2639
+ activesupport (8.0.1) lib/active_support/notifications/instrumenter.rb:58:in 'ActiveSupport::Notifications::Instrumenter#instrument'
2640
+ activesupport (8.0.1) lib/active_support/notifications.rb:210:in 'ActiveSupport::Notifications.instrument'
2641
+ actionpack (8.0.1) lib/action_controller/metal/instrumentation.rb:75:in 'ActionController::Instrumentation#process_action'
2642
+ actionpack (8.0.1) lib/action_controller/metal/params_wrapper.rb:259:in 'ActionController::ParamsWrapper#process_action'
2643
+ activerecord (8.0.1) lib/active_record/railties/controller_runtime.rb:39:in 'ActiveRecord::Railties::ControllerRuntime#process_action'
2644
+ actionpack (8.0.1) lib/abstract_controller/base.rb:163:in 'AbstractController::Base#process'
2645
+ actionview (8.0.1) lib/action_view/rendering.rb:40:in 'ActionView::Rendering#process'
2646
+ actionpack (8.0.1) lib/action_controller/metal.rb:252:in 'ActionController::Metal#dispatch'
2647
+ actionpack (8.0.1) lib/action_controller/metal.rb:335:in 'ActionController::Metal.dispatch'
2648
+ actionpack (8.0.1) lib/action_dispatch/routing/route_set.rb:67:in 'ActionDispatch::Routing::RouteSet::Dispatcher#dispatch'
2649
+ actionpack (8.0.1) lib/action_dispatch/routing/route_set.rb:50:in 'ActionDispatch::Routing::RouteSet::Dispatcher#serve'
2650
+ actionpack (8.0.1) lib/action_dispatch/journey/router.rb:53:in 'block in ActionDispatch::Journey::Router#serve'
2651
+ actionpack (8.0.1) lib/action_dispatch/journey/router.rb:133:in 'block in ActionDispatch::Journey::Router#find_routes'
2652
+ actionpack (8.0.1) lib/action_dispatch/journey/router.rb:126:in 'Array#each'
2653
+ actionpack (8.0.1) lib/action_dispatch/journey/router.rb:126:in 'ActionDispatch::Journey::Router#find_routes'
2654
+ actionpack (8.0.1) lib/action_dispatch/journey/router.rb:34:in 'ActionDispatch::Journey::Router#serve'
2655
+ actionpack (8.0.1) lib/action_dispatch/routing/route_set.rb:908:in 'ActionDispatch::Routing::RouteSet#call'
2656
+ railties (8.0.1) lib/rails/engine/lazy_route_set.rb:68:in 'Rails::Engine::LazyRouteSet#call'
2657
+ rack (3.1.10) lib/rack/etag.rb:29:in 'Rack::ETag#call'
2658
+ rack (3.1.10) lib/rack/conditional_get.rb:31:in 'Rack::ConditionalGet#call'
2659
+ rack (3.1.10) lib/rack/head.rb:15:in 'Rack::Head#call'
2660
+ activerecord (8.0.1) lib/active_record/migration.rb:671:in 'ActiveRecord::Migration::CheckPending#call'
2661
+ actionpack (8.0.1) lib/action_dispatch/middleware/callbacks.rb:31:in 'block in ActionDispatch::Callbacks#call'
2662
+ activesupport (8.0.1) lib/active_support/callbacks.rb:100:in 'ActiveSupport::Callbacks#run_callbacks'
2663
+ actionpack (8.0.1) lib/action_dispatch/middleware/callbacks.rb:30:in 'ActionDispatch::Callbacks#call'
2664
+ actionpack (8.0.1) lib/action_dispatch/middleware/executor.rb:16:in 'ActionDispatch::Executor#call'
2665
+ actionpack (8.0.1) lib/action_dispatch/middleware/actionable_exceptions.rb:18:in 'ActionDispatch::ActionableExceptions#call'
2666
+ sentry-rails (5.22.4) lib/sentry/rails/rescued_exception_interceptor.rb:11:in 'Sentry::Rails::RescuedExceptionInterceptor#call'
2667
+ actionpack (8.0.1) lib/action_dispatch/middleware/debug_exceptions.rb:31:in 'ActionDispatch::DebugExceptions#call'
2668
+ sentry-ruby (5.22.4) lib/sentry/rack/capture_exceptions.rb:15:in 'Sentry::Rack::CaptureExceptions#call'
2669
+ actionpack (8.0.1) lib/action_dispatch/middleware/show_exceptions.rb:32:in 'ActionDispatch::ShowExceptions#call'
2670
+ railties (8.0.1) lib/rails/rack/logger.rb:41:in 'Rails::Rack::Logger#call_app'
2671
+ railties (8.0.1) lib/rails/rack/logger.rb:29:in 'Rails::Rack::Logger#call'
2672
+ actionpack (8.0.1) lib/action_dispatch/middleware/remote_ip.rb:96:in 'ActionDispatch::RemoteIp#call'
2673
+ actionpack (8.0.1) lib/action_dispatch/middleware/request_id.rb:34:in 'ActionDispatch::RequestId#call'
2674
+ rack (3.1.10) lib/rack/runtime.rb:24:in 'Rack::Runtime#call'
2675
+ actionpack (8.0.1) lib/action_dispatch/middleware/server_timing.rb:61:in 'block in ActionDispatch::ServerTiming#call'
2676
+ actionpack (8.0.1) lib/action_dispatch/middleware/server_timing.rb:26:in 'ActionDispatch::ServerTiming::Subscriber#collect_events'
2677
+ actionpack (8.0.1) lib/action_dispatch/middleware/server_timing.rb:60:in 'ActionDispatch::ServerTiming#call'
2678
+ actionpack (8.0.1) lib/action_dispatch/middleware/executor.rb:16:in 'ActionDispatch::Executor#call'
2679
+ actionpack (8.0.1) lib/action_dispatch/middleware/static.rb:27:in 'ActionDispatch::Static#call'
2680
+ rack (3.1.10) lib/rack/sendfile.rb:114:in 'Rack::Sendfile#call'
2681
+ actionpack (8.0.1) lib/action_dispatch/middleware/host_authorization.rb:143:in 'ActionDispatch::HostAuthorization#call'
2682
+ railties (8.0.1) lib/rails/engine.rb:535:in 'Rails::Engine#call'
2683
+ puma (6.6.0) lib/puma/configuration.rb:279:in 'Puma::Configuration::ConfigMiddleware#call'
2684
+ puma (6.6.0) lib/puma/request.rb:99:in 'block in Puma::Request#handle_request'
2685
+ puma (6.6.0) lib/puma/thread_pool.rb:390:in 'Puma::ThreadPool#with_force_shutdown'
2686
+ puma (6.6.0) lib/puma/request.rb:98:in 'Puma::Request#handle_request'
2687
+ puma (6.6.0) lib/puma/server.rb:472:in 'Puma::Server#process_client'
2688
+ puma (6.6.0) lib/puma/server.rb:254:in 'block in Puma::Server#run'
2689
+ puma (6.6.0) lib/puma/thread_pool.rb:167:in 'block in Puma::ThreadPool#spawn_thread'
2690
+ Started GET "/" for ::1 at 2025-03-06 15:08:41 +0300
2691
+ Processing by Rails::WelcomeController#index as HTML
2692
+ Rendering /Users/asrat/.rbenv/versions/3.4.2/lib/ruby/gems/3.4.0/gems/railties-8.0.1/lib/rails/templates/rails/welcome/index.html.erb
2693
+ Rendered /Users/asrat/.rbenv/versions/3.4.2/lib/ruby/gems/3.4.0/gems/railties-8.0.1/lib/rails/templates/rails/welcome/index.html.erb (Duration: 0.2ms | GC: 0.0ms)
2694
+ Completed 200 OK in 24ms (Views: 0.6ms | ActiveRecord: 0.0ms (0 queries, 0 cached) | GC: 0.0ms)
2695
+
2696
+
2697
+ Started GET "/icon.png" for ::1 at 2025-03-06 15:08:41 +0300
2698
+
2699
+ ActionController::RoutingError (No route matches [GET] "/icon.png"):
2700
+
2701
+ Started GET "/users/new" for ::1 at 2025-03-06 15:08:42 +0300
2702
+
2703
+ ActionController::RoutingError (No route matches [GET] "/users/new"):
2704
+
2705
+ Started GET "/users/" for ::1 at 2025-03-06 15:08:44 +0300
2706
+
2707
+ ActionController::RoutingError (No route matches [GET] "/users"):
2708
+
2709
+ Started GET "/users/1/api_keys" for ::1 at 2025-03-06 15:08:49 +0300
2710
+
2711
+ ActionController::RoutingError (No route matches [GET] "/users/1/api_keys"):
2712
+
2713
+ Started GET "/users/1/" for ::1 at 2025-03-06 15:08:59 +0300
2714
+
2715
+ ActionController::RoutingError (No route matches [GET] "/users/1"):
2716
+
2717
+ Started POST "/snf_core/auth/reset_password_request" for ::1 at 2025-03-06 15:10:29 +0300
2718
+ Processing by SnfCore::AuthController#reset_password_request as */*
2719
+ Parameters: {"auth" => {"phone_number" => "user_phone_number"}}
2720
+ SnfCore::User Load (1.6ms) SELECT "snf_core_users".* FROM "snf_core_users" WHERE "snf_core_users"."phone_number" = 'user_phone_number' LIMIT 1 /*action='reset_password_request',application='Dummy',controller='auth'*/
2721
+ Completed 401 Unauthorized in 72ms (Views: 0.4ms | ActiveRecord: 27.9ms (1 query, 0 cached) | GC: 0.0ms)
2722
+
2723
+
2724
+ TRANSACTION (0.2ms) BEGIN /*application='Dummy'*/
2725
+ SnfCore::User Exists? (3.0ms) SELECT 1 AS one FROM "snf_core_users" WHERE "snf_core_users"."phone_number" = '123456789' LIMIT 1 /*application='Dummy'*/
2726
+ SnfCore::User Exists? (0.3ms) SELECT 1 AS one FROM "snf_core_users" WHERE "snf_core_users"."email" = 'test@example.com' LIMIT 1 /*application='Dummy'*/
2727
+ SnfCore::User Create (1.7ms) 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") VALUES ('Test', 'User', 'Account', 'test@example.com', '123456789', '2025-03-06 12:11:21.225746', '2025-03-06 12:11:21.225746', '$2a$12$meh2m9vxJvw2MpvAGDPKKOMyXqcvjbn3rqbENsISx6NKSBLLzRYeW', FALSE, NULL) RETURNING "id" /*application='Dummy'*/
2728
+ SnfCore::Wallet Exists? (3.8ms) SELECT 1 AS one FROM "snf_core_wallets" WHERE "snf_core_wallets"."wallet_number" = 'BB2086175593' LIMIT 1 /*application='Dummy'*/
2729
+ SnfCore::Wallet Exists? (0.9ms) SELECT 1 AS one FROM "snf_core_wallets" WHERE LOWER("snf_core_wallets"."wallet_number") = LOWER('BB2086175593') LIMIT 1 /*application='Dummy'*/
2730
+ SnfCore::Wallet Create (2.0ms) INSERT INTO "snf_core_wallets" ("user_id", "wallet_number", "balance", "is_active", "created_at", "updated_at") VALUES (1, 'BB2086175593', 0.0, TRUE, '2025-03-06 12:11:21.252241', '2025-03-06 12:11:21.252241') RETURNING "id" /*application='Dummy'*/
2731
+ SnfCore::Wallet Load (0.3ms) SELECT "snf_core_wallets".* FROM "snf_core_wallets" WHERE "snf_core_wallets"."user_id" = 1 LIMIT 1 /*application='Dummy'*/
2732
+ TRANSACTION (0.4ms) COMMIT /*application='Dummy'*/
2733
+ Started POST "/snf_core/auth/reset_password_request" for ::1 at 2025-03-06 15:11:30 +0300
2734
+ Processing by SnfCore::AuthController#reset_password_request as */*
2735
+ Parameters: {"auth" => {"phone_number" => "123456789"}}
2736
+ SnfCore::User Load (3.4ms) SELECT "snf_core_users".* FROM "snf_core_users" WHERE "snf_core_users"."phone_number" = '123456789' LIMIT 1 /*action='reset_password_request',application='Dummy',controller='auth'*/
2737
+ TRANSACTION (0.5ms) BEGIN /*action='reset_password_request',application='Dummy',controller='auth'*/
2738
+ SnfCore::User Exists? (0.6ms) SELECT 1 AS one FROM "snf_core_users" WHERE "snf_core_users"."phone_number" = '123456789' AND "snf_core_users"."id" != 1 LIMIT 1 /*action='reset_password_request',application='Dummy',controller='auth'*/
2739
+ SnfCore::User Exists? (0.1ms) SELECT 1 AS one FROM "snf_core_users" WHERE "snf_core_users"."email" = 'test@example.com' AND "snf_core_users"."id" != 1 LIMIT 1 /*action='reset_password_request',application='Dummy',controller='auth'*/
2740
+ SnfCore::User Update (2.1ms) UPDATE "snf_core_users" SET "updated_at" = '2025-03-06 12:11:30.972896', "reset_password_token" = '3c64bbd7f89caf5f935bc2aea0cb4c27' WHERE "snf_core_users"."id" = 1 /*action='reset_password_request',application='Dummy',controller='auth'*/
2741
+ TRANSACTION (5.3ms) COMMIT /*action='reset_password_request',application='Dummy',controller='auth'*/
2742
+ SnfCore::AuthMailer#reset_password: processed outbound mail in 1.0ms
2743
+ Completed 500 Internal Server Error in 894ms (ActiveRecord: 115.9ms (4 queries, 0 cached) | GC: 0.0ms)
2744
+
2745
+
2746
+
2747
+ NoMethodError (undefined method '+' for nil):
2748
+
2749
+ /Users/asrat/HOME/self/mks/BUNNA/snf_core/app/mailers/snf_core/auth_mailer.rb:5:in 'SnfCore::AuthMailer#reset_password'
2750
+ actionpack (8.0.1) lib/abstract_controller/base.rb:226:in 'AbstractController::Base#process_action'
2751
+ actionpack (8.0.1) lib/abstract_controller/callbacks.rb:261:in 'block in AbstractController::Callbacks#process_action'
2752
+ activesupport (8.0.1) lib/active_support/callbacks.rb:120:in 'block in ActiveSupport::Callbacks#run_callbacks'
2753
+ actiontext (8.0.1) lib/action_text/rendering.rb:25:in 'ActionText::Rendering::ClassMethods#with_renderer'
2754
+ actiontext (8.0.1) lib/action_text/engine.rb:71:in 'block (4 levels) in <class:Engine>'
2755
+ activesupport (8.0.1) lib/active_support/callbacks.rb:129:in 'BasicObject#instance_exec'
2756
+ activesupport (8.0.1) lib/active_support/callbacks.rb:129:in 'block in ActiveSupport::Callbacks#run_callbacks'
2757
+ activesupport (8.0.1) lib/active_support/callbacks.rb:140:in 'ActiveSupport::Callbacks#run_callbacks'
2758
+ actionpack (8.0.1) lib/abstract_controller/callbacks.rb:260:in 'AbstractController::Callbacks#process_action'
2759
+ actionpack (8.0.1) lib/abstract_controller/base.rb:163:in 'AbstractController::Base#process'
2760
+ actionmailer (8.0.1) lib/action_mailer/rescuable.rb:29:in 'block in ActionMailer::Rescuable#process'
2761
+ actionmailer (8.0.1) lib/action_mailer/rescuable.rb:21:in 'ActionMailer::Rescuable#handle_exceptions'
2762
+ actionmailer (8.0.1) lib/action_mailer/rescuable.rb:28:in 'ActionMailer::Rescuable#process'
2763
+ actionview (8.0.1) lib/action_view/rendering.rb:40:in 'ActionView::Rendering#process'
2764
+ actionmailer (8.0.1) lib/action_mailer/base.rb:657:in 'block in ActionMailer::Base#process'
2765
+ activesupport (8.0.1) lib/active_support/notifications.rb:210:in 'block in ActiveSupport::Notifications.instrument'
2766
+ activesupport (8.0.1) lib/active_support/notifications/instrumenter.rb:58:in 'ActiveSupport::Notifications::Instrumenter#instrument'
2767
+ activesupport (8.0.1) lib/active_support/notifications.rb:210:in 'ActiveSupport::Notifications.instrument'
2768
+ actionmailer (8.0.1) lib/action_mailer/base.rb:656:in 'ActionMailer::Base#process'
2769
+ actionmailer (8.0.1) lib/action_mailer/parameterized.rb:140:in 'block in ActionMailer::Parameterized::MessageDelivery#processed_mailer'
2770
+ <internal:kernel>:91:in 'Kernel#tap'
2771
+ actionmailer (8.0.1) lib/action_mailer/parameterized.rb:138:in 'ActionMailer::Parameterized::MessageDelivery#processed_mailer'
2772
+ actionmailer (8.0.1) lib/action_mailer/message_delivery.rb:124:in 'ActionMailer::MessageDelivery#deliver_now'
2773
+ /Users/asrat/HOME/self/mks/BUNNA/snf_core/app/controllers/snf_core/auth_controller.rb:23:in 'SnfCore::AuthController#reset_password_request'
2774
+ actionpack (8.0.1) lib/action_controller/metal/basic_implicit_render.rb:8:in 'ActionController::BasicImplicitRender#send_action'
2775
+ actionpack (8.0.1) lib/abstract_controller/base.rb:226:in 'AbstractController::Base#process_action'
2776
+ actionpack (8.0.1) lib/action_controller/metal/rendering.rb:193:in 'ActionController::Rendering#process_action'
2777
+ actionpack (8.0.1) lib/abstract_controller/callbacks.rb:261:in 'block in AbstractController::Callbacks#process_action'
2778
+ activesupport (8.0.1) lib/active_support/callbacks.rb:109:in 'ActiveSupport::Callbacks#run_callbacks'
2779
+ actionpack (8.0.1) lib/abstract_controller/callbacks.rb:260:in 'AbstractController::Callbacks#process_action'
2780
+ actionpack (8.0.1) lib/action_controller/metal/rescue.rb:27:in 'ActionController::Rescue#process_action'
2781
+ actionpack (8.0.1) lib/action_controller/metal/instrumentation.rb:76:in 'block in ActionController::Instrumentation#process_action'
2782
+ activesupport (8.0.1) lib/active_support/notifications.rb:210:in 'block in ActiveSupport::Notifications.instrument'
2783
+ activesupport (8.0.1) lib/active_support/notifications/instrumenter.rb:58:in 'ActiveSupport::Notifications::Instrumenter#instrument'
2784
+ activesupport (8.0.1) lib/active_support/notifications.rb:210:in 'ActiveSupport::Notifications.instrument'
2785
+ actionpack (8.0.1) lib/action_controller/metal/instrumentation.rb:75:in 'ActionController::Instrumentation#process_action'
2786
+ actionpack (8.0.1) lib/action_controller/metal/params_wrapper.rb:259:in 'ActionController::ParamsWrapper#process_action'
2787
+ activerecord (8.0.1) lib/active_record/railties/controller_runtime.rb:39:in 'ActiveRecord::Railties::ControllerRuntime#process_action'
2788
+ actionpack (8.0.1) lib/abstract_controller/base.rb:163:in 'AbstractController::Base#process'
2789
+ actionpack (8.0.1) lib/action_controller/metal.rb:252:in 'ActionController::Metal#dispatch'
2790
+ actionpack (8.0.1) lib/action_controller/metal.rb:335:in 'ActionController::Metal.dispatch'
2791
+ actionpack (8.0.1) lib/action_dispatch/routing/route_set.rb:67:in 'ActionDispatch::Routing::RouteSet::Dispatcher#dispatch'
2792
+ actionpack (8.0.1) lib/action_dispatch/routing/route_set.rb:50:in 'ActionDispatch::Routing::RouteSet::Dispatcher#serve'
2793
+ actionpack (8.0.1) lib/action_dispatch/journey/router.rb:53:in 'block in ActionDispatch::Journey::Router#serve'
2794
+ actionpack (8.0.1) lib/action_dispatch/journey/router.rb:133:in 'block in ActionDispatch::Journey::Router#find_routes'
2795
+ actionpack (8.0.1) lib/action_dispatch/journey/router.rb:126:in 'Array#each'
2796
+ actionpack (8.0.1) lib/action_dispatch/journey/router.rb:126:in 'ActionDispatch::Journey::Router#find_routes'
2797
+ actionpack (8.0.1) lib/action_dispatch/journey/router.rb:34:in 'ActionDispatch::Journey::Router#serve'
2798
+ actionpack (8.0.1) lib/action_dispatch/routing/route_set.rb:908:in 'ActionDispatch::Routing::RouteSet#call'
2799
+ railties (8.0.1) lib/rails/engine/lazy_route_set.rb:68:in 'Rails::Engine::LazyRouteSet#call'
2800
+ railties (8.0.1) lib/rails/engine.rb:535:in 'Rails::Engine#call'
2801
+ railties (8.0.1) lib/rails/railtie.rb:226:in 'Kernel#public_send'
2802
+ railties (8.0.1) lib/rails/railtie.rb:226:in 'Rails::Railtie.method_missing'
2803
+ actionpack (8.0.1) lib/action_dispatch/routing/mapper.rb:33:in 'block in <class:Constraints>'
2804
+ actionpack (8.0.1) lib/action_dispatch/routing/mapper.rb:62:in 'ActionDispatch::Routing::Mapper::Constraints#serve'
2805
+ actionpack (8.0.1) lib/action_dispatch/journey/router.rb:53:in 'block in ActionDispatch::Journey::Router#serve'
2806
+ actionpack (8.0.1) lib/action_dispatch/journey/router.rb:133:in 'block in ActionDispatch::Journey::Router#find_routes'
2807
+ actionpack (8.0.1) lib/action_dispatch/journey/router.rb:126:in 'Array#each'
2808
+ actionpack (8.0.1) lib/action_dispatch/journey/router.rb:126:in 'ActionDispatch::Journey::Router#find_routes'
2809
+ actionpack (8.0.1) lib/action_dispatch/journey/router.rb:34:in 'ActionDispatch::Journey::Router#serve'
2810
+ actionpack (8.0.1) lib/action_dispatch/routing/route_set.rb:908:in 'ActionDispatch::Routing::RouteSet#call'
2811
+ railties (8.0.1) lib/rails/engine/lazy_route_set.rb:68:in 'Rails::Engine::LazyRouteSet#call'
2812
+ rack (3.1.10) lib/rack/etag.rb:29:in 'Rack::ETag#call'
2813
+ rack (3.1.10) lib/rack/conditional_get.rb:43:in 'Rack::ConditionalGet#call'
2814
+ rack (3.1.10) lib/rack/head.rb:15:in 'Rack::Head#call'
2815
+ activerecord (8.0.1) lib/active_record/migration.rb:671:in 'ActiveRecord::Migration::CheckPending#call'
2816
+ actionpack (8.0.1) lib/action_dispatch/middleware/callbacks.rb:31:in 'block in ActionDispatch::Callbacks#call'
2817
+ activesupport (8.0.1) lib/active_support/callbacks.rb:100:in 'ActiveSupport::Callbacks#run_callbacks'
2818
+ actionpack (8.0.1) lib/action_dispatch/middleware/callbacks.rb:30:in 'ActionDispatch::Callbacks#call'
2819
+ actionpack (8.0.1) lib/action_dispatch/middleware/executor.rb:16:in 'ActionDispatch::Executor#call'
2820
+ actionpack (8.0.1) lib/action_dispatch/middleware/actionable_exceptions.rb:18:in 'ActionDispatch::ActionableExceptions#call'
2821
+ sentry-rails (5.22.4) lib/sentry/rails/rescued_exception_interceptor.rb:11:in 'Sentry::Rails::RescuedExceptionInterceptor#call'
2822
+ actionpack (8.0.1) lib/action_dispatch/middleware/debug_exceptions.rb:31:in 'ActionDispatch::DebugExceptions#call'
2823
+ sentry-ruby (5.22.4) lib/sentry/rack/capture_exceptions.rb:15:in 'Sentry::Rack::CaptureExceptions#call'
2824
+ actionpack (8.0.1) lib/action_dispatch/middleware/show_exceptions.rb:32:in 'ActionDispatch::ShowExceptions#call'
2825
+ railties (8.0.1) lib/rails/rack/logger.rb:41:in 'Rails::Rack::Logger#call_app'
2826
+ railties (8.0.1) lib/rails/rack/logger.rb:29:in 'Rails::Rack::Logger#call'
2827
+ actionpack (8.0.1) lib/action_dispatch/middleware/remote_ip.rb:96:in 'ActionDispatch::RemoteIp#call'
2828
+ actionpack (8.0.1) lib/action_dispatch/middleware/request_id.rb:34:in 'ActionDispatch::RequestId#call'
2829
+ rack (3.1.10) lib/rack/runtime.rb:24:in 'Rack::Runtime#call'
2830
+ actionpack (8.0.1) lib/action_dispatch/middleware/server_timing.rb:61:in 'block in ActionDispatch::ServerTiming#call'
2831
+ actionpack (8.0.1) lib/action_dispatch/middleware/server_timing.rb:26:in 'ActionDispatch::ServerTiming::Subscriber#collect_events'
2832
+ actionpack (8.0.1) lib/action_dispatch/middleware/server_timing.rb:60:in 'ActionDispatch::ServerTiming#call'
2833
+ actionpack (8.0.1) lib/action_dispatch/middleware/executor.rb:16:in 'ActionDispatch::Executor#call'
2834
+ actionpack (8.0.1) lib/action_dispatch/middleware/static.rb:27:in 'ActionDispatch::Static#call'
2835
+ rack (3.1.10) lib/rack/sendfile.rb:114:in 'Rack::Sendfile#call'
2836
+ actionpack (8.0.1) lib/action_dispatch/middleware/host_authorization.rb:143:in 'ActionDispatch::HostAuthorization#call'
2837
+ railties (8.0.1) lib/rails/engine.rb:535:in 'Rails::Engine#call'
2838
+ puma (6.6.0) lib/puma/configuration.rb:279:in 'Puma::Configuration::ConfigMiddleware#call'
2839
+ puma (6.6.0) lib/puma/request.rb:99:in 'block in Puma::Request#handle_request'
2840
+ puma (6.6.0) lib/puma/thread_pool.rb:390:in 'Puma::ThreadPool#with_force_shutdown'
2841
+ puma (6.6.0) lib/puma/request.rb:98:in 'Puma::Request#handle_request'
2842
+ puma (6.6.0) lib/puma/server.rb:472:in 'Puma::Server#process_client'
2843
+ puma (6.6.0) lib/puma/server.rb:254:in 'block in Puma::Server#run'
2844
+ puma (6.6.0) lib/puma/thread_pool.rb:167:in 'block in Puma::ThreadPool#spawn_thread'
2845
+ Started POST "/snf_core/auth/reset_password_request" for ::1 at 2025-03-06 15:13:30 +0300
2846
+ Processing by SnfCore::AuthController#reset_password_request as */*
2847
+ Parameters: {"auth" => {"phone_number" => "123456789"}, "reset_url" => "http://localhost:3000/reset-password"}
2848
+ SnfCore::User Load (0.8ms) SELECT "snf_core_users".* FROM "snf_core_users" WHERE "snf_core_users"."phone_number" = '123456789' LIMIT 1 /*action='reset_password_request',application='Dummy',controller='auth'*/
2849
+ TRANSACTION (0.1ms) BEGIN /*action='reset_password_request',application='Dummy',controller='auth'*/
2850
+ SnfCore::User Exists? (0.1ms) SELECT 1 AS one FROM "snf_core_users" WHERE "snf_core_users"."phone_number" = '123456789' AND "snf_core_users"."id" != 1 LIMIT 1 /*action='reset_password_request',application='Dummy',controller='auth'*/
2851
+ SnfCore::User Exists? (0.1ms) SELECT 1 AS one FROM "snf_core_users" WHERE "snf_core_users"."email" = 'test@example.com' AND "snf_core_users"."id" != 1 LIMIT 1 /*action='reset_password_request',application='Dummy',controller='auth'*/
2852
+ SnfCore::User Update (2.7ms) UPDATE "snf_core_users" SET "updated_at" = '2025-03-06 12:13:30.232475', "reset_password_token" = 'd13c6c009524cafa8d7453bea288e819' WHERE "snf_core_users"."id" = 1 /*action='reset_password_request',application='Dummy',controller='auth'*/
2853
+ TRANSACTION (2.4ms) COMMIT /*action='reset_password_request',application='Dummy',controller='auth'*/
2854
+ Rendering layout layouts/mailer.html.erb
2855
+ Rendering /Users/asrat/HOME/self/mks/BUNNA/snf_core/app/views/snf_core/auth_mailer/reset_password.html.erb within layouts/mailer
2856
+ Rendered /Users/asrat/HOME/self/mks/BUNNA/snf_core/app/views/snf_core/auth_mailer/reset_password.html.erb within layouts/mailer (Duration: 0.3ms | GC: 0.0ms)
2857
+ Rendered layout layouts/mailer.html.erb (Duration: 0.5ms | GC: 0.0ms)
2858
+ SnfCore::AuthMailer#reset_password: processed outbound mail in 19.4ms
2859
+ Delivered mail 67c9916a4002f_c2481660-465@Asrats-MacBook-Air.local.mail (23.2ms)
2860
+ Date: Thu, 06 Mar 2025 15:13:30 +0300
2861
+ From: from@example.com
2862
+ To: test@example.com
2863
+ Message-ID: <67c9916a4002f_c2481660-465@Asrats-MacBook-Air.local.mail>
2864
+ Subject: Reset Your Password
2865
+ Mime-Version: 1.0
2866
+ Content-Type: text/html;
2867
+ charset=UTF-8
2868
+ Content-Transfer-Encoding: 7bit
2869
+
2870
+ <!-- BEGIN app/views/layouts/mailer.html.erb --><!DOCTYPE html>
2871
+ <html>
2872
+ <head>
2873
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
2874
+ <style>
2875
+ /* Email styles need to be inline */
2876
+ </style>
2877
+ </head>
2878
+
2879
+ <body>
2880
+ <!-- BEGIN /Users/asrat/HOME/self/mks/BUNNA/snf_core/app/views/snf_core/auth_mailer/reset_password.html.erb --><p>Hello,</p>
2881
+
2882
+ <p>Someone has requested a link to change your password. You can change your password by clicking the link below.</p>
2883
+
2884
+ <p><a href="http://localhost:3000/reset-password/d13c6c009524cafa8d7453bea288e819">Change my password</a></p>
2885
+
2886
+ <p>If you didn't request this, please ignore this email.</p>
2887
+
2888
+ <p>Your password won't change until you access the link above and create a new password.</p>
2889
+
2890
+ <div class="content">
2891
+ <h2>Reset Your Password</h2>
2892
+ <p>Hello Test,</p>
2893
+ <p>You have requested to reset your password. Click the link below to set a new password:</p>
2894
+
2895
+ <p><a href="http://localhost:3000/reset-password/d13c6c009524cafa8d7453bea288e819">Reset Password</a></p>
2896
+
2897
+ <p>If you didn't request this, please ignore this email.</p>
2898
+ <p>This link will expire in 24 hours.</p>
2899
+ </div>
2900
+ <!-- END /Users/asrat/HOME/self/mks/BUNNA/snf_core/app/views/snf_core/auth_mailer/reset_password.html.erb -->
2901
+ </body>
2902
+ </html>
2903
+ <!-- END app/views/layouts/mailer.html.erb -->
2904
+ Completed 200 OK in 88ms (Views: 0.2ms | ActiveRecord: 33.2ms (4 queries, 0 cached) | GC: 2.5ms)
2905
+
2906
+
2907
+ Started GET "/reset-password/d13c6c009524cafa8d7453bea288e819" for ::1 at 2025-03-06 15:14:03 +0300
2908
+
2909
+ ActionController::RoutingError (No route matches [GET] "/reset-password/d13c6c009524cafa8d7453bea288e819"):
2910
+
2911
+ Started GET "/reset-password/d13c6c009524cafa8d7453bea288e819" for ::1 at 2025-03-06 15:14:10 +0300
2912
+
2913
+ ActionController::RoutingError (No route matches [GET] "/reset-password/d13c6c009524cafa8d7453bea288e819"):
2914
+
2915
+ Started GET "/reset-password/d13c6c009524cafa8d7453bea288e819" for ::1 at 2025-03-06 15:17:45 +0300
2916
+
2917
+ ActionController::RoutingError (No route matches [GET] "/reset-password/d13c6c009524cafa8d7453bea288e819"):
2918
+
2919
+ Started POST "/snf_core/auth/reset_password_request" for ::1 at 2025-03-06 15:20:45 +0300
2920
+ Processing by SnfCore::AuthController#reset_password_request as */*
2921
+ Parameters: {"auth" => {"phone_number" => "123456789"}, "reset_url" => "http://localhost:3000/reset-password"}
2922
+ SnfCore::User Load (3.8ms) SELECT "snf_core_users".* FROM "snf_core_users" WHERE "snf_core_users"."phone_number" = '123456789' LIMIT 1 /*action='reset_password_request',application='Dummy',controller='auth'*/
2923
+ TRANSACTION (0.2ms) BEGIN /*action='reset_password_request',application='Dummy',controller='auth'*/
2924
+ SnfCore::User Exists? (1.4ms) SELECT 1 AS one FROM "snf_core_users" WHERE "snf_core_users"."phone_number" = '123456789' AND "snf_core_users"."id" != 1 LIMIT 1 /*action='reset_password_request',application='Dummy',controller='auth'*/
2925
+ SnfCore::User Exists? (0.1ms) SELECT 1 AS one FROM "snf_core_users" WHERE "snf_core_users"."email" = 'test@example.com' AND "snf_core_users"."id" != 1 LIMIT 1 /*action='reset_password_request',application='Dummy',controller='auth'*/
2926
+ SnfCore::User Update (2.1ms) UPDATE "snf_core_users" SET "updated_at" = '2025-03-06 12:20:45.777264', "reset_password_token" = '32af24c9b86c8c3717618d06b252db10' WHERE "snf_core_users"."id" = 1 /*action='reset_password_request',application='Dummy',controller='auth'*/
2927
+ TRANSACTION (0.8ms) COMMIT /*action='reset_password_request',application='Dummy',controller='auth'*/
2928
+ Rendering layout layouts/mailer.html.erb
2929
+ Rendering /Users/asrat/HOME/self/mks/BUNNA/snf_core/app/views/snf_core/auth_mailer/reset_password.html.erb within layouts/mailer
2930
+ Rendered /Users/asrat/HOME/self/mks/BUNNA/snf_core/app/views/snf_core/auth_mailer/reset_password.html.erb within layouts/mailer (Duration: 0.3ms | GC: 0.0ms)
2931
+ Rendered layout layouts/mailer.html.erb (Duration: 0.5ms | GC: 0.0ms)
2932
+ SnfCore::AuthMailer#reset_password: processed outbound mail in 3.2ms
2933
+ Delivered mail 67c9931dc032a_c2481660-3c3@Asrats-MacBook-Air.local.mail (14.5ms)
2934
+ Date: Thu, 06 Mar 2025 15:20:45 +0300
2935
+ From: from@example.com
2936
+ To: test@example.com
2937
+ Message-ID: <67c9931dc032a_c2481660-3c3@Asrats-MacBook-Air.local.mail>
2938
+ Subject: Reset Your Password
2939
+ Mime-Version: 1.0
2940
+ Content-Type: text/html;
2941
+ charset=UTF-8
2942
+ Content-Transfer-Encoding: 7bit
2943
+
2944
+ <!-- BEGIN app/views/layouts/mailer.html.erb --><!DOCTYPE html>
2945
+ <html>
2946
+ <head>
2947
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
2948
+ <style>
2949
+ /* Email styles need to be inline */
2950
+ </style>
2951
+ </head>
2952
+
2953
+ <body>
2954
+ <!-- BEGIN /Users/asrat/HOME/self/mks/BUNNA/snf_core/app/views/snf_core/auth_mailer/reset_password.html.erb --><div class="content">
2955
+ <h2>Reset Your Password</h2>
2956
+ <p>Hello Test,</p>
2957
+ <p>You have requested to reset your password. Click the link below to set a new password:</p>
2958
+
2959
+ <p><a href="http://localhost:3000/reset-password/32af24c9b86c8c3717618d06b252db10">Reset Password</a></p>
2960
+
2961
+ <p>If you didn't request this, please ignore this email.</p>
2962
+ <p>This link will expire in 24 hours.</p>
2963
+ </div>
2964
+ <!-- END /Users/asrat/HOME/self/mks/BUNNA/snf_core/app/views/snf_core/auth_mailer/reset_password.html.erb -->
2965
+ </body>
2966
+ </html>
2967
+ <!-- END app/views/layouts/mailer.html.erb -->
2968
+ Completed 200 OK in 92ms (Views: 0.1ms | ActiveRecord: 28.7ms (4 queries, 0 cached) | GC: 0.0ms)
2969
+
2970
+
2971
+ Started GET "/reset-password/32af24c9b86c8c3717618d06b252db10" for ::1 at 2025-03-06 15:20:52 +0300
2972
+
2973
+ ActionController::RoutingError (No route matches [GET] "/reset-password/32af24c9b86c8c3717618d06b252db10"):
2974
+
2975
+ Started POST "/snf_core/auth/reset_password_request" for ::1 at 2025-03-06 15:23:32 +0300
2976
+ Processing by SnfCore::AuthController#reset_password_request as */*
2977
+ Parameters: {"auth" => {"phone_number" => "123456789"}, "reset_url" => "http://localhost:3000/reset-password"}
2978
+ SnfCore::User Load (0.8ms) SELECT "snf_core_users".* FROM "snf_core_users" WHERE "snf_core_users"."phone_number" = '123456789' LIMIT 1 /*action='reset_password_request',application='Dummy',controller='auth'*/
2979
+ TRANSACTION (0.1ms) BEGIN /*action='reset_password_request',application='Dummy',controller='auth'*/
2980
+ SnfCore::User Exists? (0.2ms) SELECT 1 AS one FROM "snf_core_users" WHERE "snf_core_users"."phone_number" = '123456789' AND "snf_core_users"."id" != 1 LIMIT 1 /*action='reset_password_request',application='Dummy',controller='auth'*/
2981
+ SnfCore::User Exists? (0.3ms) SELECT 1 AS one FROM "snf_core_users" WHERE "snf_core_users"."email" = 'test@example.com' AND "snf_core_users"."id" != 1 LIMIT 1 /*action='reset_password_request',application='Dummy',controller='auth'*/
2982
+ SnfCore::User Update (2.8ms) UPDATE "snf_core_users" SET "updated_at" = '2025-03-06 12:23:32.859617', "reset_password_token" = 'add5f7ef131a29bf54bb47c172da396f' WHERE "snf_core_users"."id" = 1 /*action='reset_password_request',application='Dummy',controller='auth'*/
2983
+ TRANSACTION (1.5ms) COMMIT /*action='reset_password_request',application='Dummy',controller='auth'*/
2984
+ Rendering layout layouts/mailer.html.erb
2985
+ Rendering /Users/asrat/HOME/self/mks/BUNNA/snf_core/app/views/snf_core/auth_mailer/reset_password.html.erb within layouts/mailer
2986
+ Rendered /Users/asrat/HOME/self/mks/BUNNA/snf_core/app/views/snf_core/auth_mailer/reset_password.html.erb within layouts/mailer (Duration: 13.3ms | GC: 0.0ms)
2987
+ Rendered layout layouts/mailer.html.erb (Duration: 13.6ms | GC: 0.0ms)
2988
+ SnfCore::AuthMailer#reset_password: processed outbound mail in 17.8ms
2989
+ Delivered mail 67c993c4d81dd_c2481660-2ae@Asrats-MacBook-Air.local.mail (11.3ms)
2990
+ Date: Thu, 06 Mar 2025 15:23:32 +0300
2991
+ From: from@example.com
2992
+ To: test@example.com
2993
+ Message-ID: <67c993c4d81dd_c2481660-2ae@Asrats-MacBook-Air.local.mail>
2994
+ Subject: Reset Your Password
2995
+ Mime-Version: 1.0
2996
+ Content-Type: text/html;
2997
+ charset=UTF-8
2998
+ Content-Transfer-Encoding: 7bit
2999
+
3000
+ <!-- BEGIN app/views/layouts/mailer.html.erb --><!DOCTYPE html>
3001
+ <html>
3002
+ <head>
3003
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
3004
+ <style>
3005
+ /* Email styles need to be inline */
3006
+ </style>
3007
+ </head>
3008
+
3009
+ <body>
3010
+ <!-- BEGIN /Users/asrat/HOME/self/mks/BUNNA/snf_core/app/views/snf_core/auth_mailer/reset_password.html.erb --><div class="content">
3011
+ <h2>Reset Your Password</h2>
3012
+ <p>Hello Test,</p>
3013
+ <p>You have requested to reset your password. Click the link below to set a new password:</p>
3014
+
3015
+ <p><a href="/snf_core/reset-password/add5f7ef131a29bf54bb47c172da396f">Reset Password</a></p>
3016
+
3017
+ <p>If you didn't request this, please ignore this email.</p>
3018
+ <p>This link will expire in 24 hours.</p>
3019
+ </div>
3020
+ <!-- END /Users/asrat/HOME/self/mks/BUNNA/snf_core/app/views/snf_core/auth_mailer/reset_password.html.erb -->
3021
+ </body>
3022
+ </html>
3023
+ <!-- END app/views/layouts/mailer.html.erb -->
3024
+ Completed 200 OK in 87ms (Views: 0.2ms | ActiveRecord: 42.4ms (4 queries, 0 cached) | GC: 5.0ms)
3025
+
3026
+