snf_core 0.2.93 → 0.2.94
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/controllers/snf_core/auth_controller.rb +33 -0
- data/config/routes.rb +1 -1
- data/db/migrate/20250226080323_create_snf_core_businesses.rb +1 -1
- data/db/migrate/20250305232530_create_snf_core_user_roles.rb +2 -2
- data/lib/snf_core/version.rb +1 -1
- data/spec/dummy/config/environments/development.rb +8 -10
- data/spec/dummy/db/schema.rb +27 -27
- data/spec/dummy/log/development.log +442 -0
- data/spec/dummy/log/test.log +71052 -0
- data/spec/dummy/tmp/storage/0d/06/0d06loox3k7eov84ctxqlr7es62y +0 -0
- data/spec/dummy/tmp/storage/0f/mg/0fmgfbcjx3062446r5sb74i1yaop +0 -0
- data/spec/dummy/tmp/storage/0g/42/0g42chjo4kjajnwuko4pxh65xioi +0 -0
- data/spec/dummy/tmp/storage/0j/yl/0jylvdj86zcf9py4jreuxm4jd27y +0 -0
- data/spec/dummy/tmp/storage/0l/au/0lauwyvh2jz4cb7crwjdi4dalw6o +0 -0
- data/spec/dummy/tmp/storage/1n/sv/1nsv43xgjo50ouaifq757ef6gy5f +0 -0
- data/spec/dummy/tmp/storage/1r/lw/1rlwjla8z1riqvrga2a3rvms670e +0 -0
- data/spec/dummy/tmp/storage/20/p4/20p4ymzjd3qy3sh9f9bbpxw2a8h2 +0 -0
- data/spec/dummy/tmp/storage/2n/r6/2nr6p9wt4jgsyk0pbvf7vagvrh8t +0 -0
- data/spec/dummy/tmp/storage/2r/ny/2rnybicjbrsw6pdmaoyj8f9sxxaq +0 -0
- data/spec/dummy/tmp/storage/38/wp/38wpttcqfkmm1sqh4rugrsli6arz +0 -0
- data/spec/dummy/tmp/storage/3t/1f/3t1fhar9eatf4oh3kh5ne77wjlo8 +0 -0
- data/spec/dummy/tmp/storage/42/cf/42cf3l7nla3bl64wezbhwd5yc6yi +0 -0
- data/spec/dummy/tmp/storage/52/ed/52ed6pa5bayxu966bnzd4r7vfr5i +0 -0
- data/spec/dummy/tmp/storage/5c/1i/5c1i8vfr81kibsmy2id9plp74oc5 +0 -0
- data/spec/dummy/tmp/storage/5g/4k/5g4kyd9z59me1jqxw94tcdijfy6u +0 -0
- data/spec/dummy/tmp/storage/5l/n8/5ln8h3958owro1x84wkcgdnu0jqc +0 -0
- data/spec/dummy/tmp/storage/5o/sq/5osq7rdic48at5pkcoqdpf0ios2p +0 -0
- data/spec/dummy/tmp/storage/60/ap/60apljsclrdokzuqhu179rt7obh2 +0 -0
- data/spec/dummy/tmp/storage/66/fc/66fcsnze3roffkv3kn82p1i1jihe +0 -0
- data/spec/dummy/tmp/storage/68/45/68451e6tuxl501pub9n9uvcxye8d +0 -0
- data/spec/dummy/tmp/storage/6x/o7/6xo7qmei42tzx4fkkos3vansvfm6 +0 -0
- data/spec/dummy/tmp/storage/7f/uh/7fuhzmriza5m3agsu0l0yovug7xi +0 -0
- data/spec/dummy/tmp/storage/83/ks/83ksy3z3h9c3zbtkdys99orqxnel +0 -0
- data/spec/dummy/tmp/storage/84/44/8444l1dt5w3csoc2jwnrnke5ug7p +0 -0
- data/spec/dummy/tmp/storage/86/ca/86calk6vmutaxfekc7egxnnca43l +0 -0
- data/spec/dummy/tmp/storage/8h/c8/8hc8rt6dfy91bjewm7tsybana0u6 +0 -0
- data/spec/dummy/tmp/storage/96/2l/962l3tf45ebi2ji3gj2vm6puqi8g +0 -0
- data/spec/dummy/tmp/storage/9r/pj/9rpjb9yprd0r2l3jxcdef35mkste +0 -0
- data/spec/dummy/tmp/storage/a5/od/a5odckpcox2euydeaq71bxrjrewq +0 -0
- data/spec/dummy/tmp/storage/ap/d0/apd00py96d0r36yugx13tpd5zbwx +0 -0
- data/spec/dummy/tmp/storage/ax/ci/axci3ungck10rkvktcx9qtvawrrp +0 -0
- data/spec/dummy/tmp/storage/b9/6v/b96v26bb40vjk7rzeqh5pakid6br +0 -0
- data/spec/dummy/tmp/storage/bd/qj/bdqj5lortwlvne25ff3yyalbb36s +0 -0
- data/spec/dummy/tmp/storage/c3/qp/c3qp7hmde07vm5h6l6knks723882 +0 -0
- data/spec/dummy/tmp/storage/c4/34/c434kxxkpwr1tu5bbxdw9gnaojcc +0 -0
- data/spec/dummy/tmp/storage/cf/gf/cfgfauaxy8972di6j3j7jhw5wnfl +0 -0
- data/spec/dummy/tmp/storage/ci/3u/ci3ujw5b51cm3av9ng0p65eglpsg +0 -0
- data/spec/dummy/tmp/storage/cp/86/cp866po3l9kro8r4nljypf7ity8n +0 -0
- data/spec/dummy/tmp/storage/cr/04/cr04d10tkfv52ktqgv5rw7gat9iw +0 -0
- data/spec/dummy/tmp/storage/d9/cf/d9cfyu98zmmi511iwma09ovl6com +0 -0
- data/spec/dummy/tmp/storage/df/bm/dfbmp6rymaqlly3dbpc24gh664gy +0 -0
- data/spec/dummy/tmp/storage/dn/0t/dn0t6pcrja6cjxglc7g30ir7yk64 +0 -0
- data/spec/dummy/tmp/storage/dz/8f/dz8ftt7idroaj4i1e6dlwnmtuu9y +0 -0
- data/spec/dummy/tmp/storage/fa/1u/fa1ugjfxcd8hrm98brl062qgxcq3 +0 -0
- data/spec/dummy/tmp/storage/fj/ou/fjougong6j06e046zrn8fskuhq5p +0 -0
- data/spec/dummy/tmp/storage/fl/aw/flawxyrk6bepl9e4qybqwhq3otea +0 -0
- data/spec/dummy/tmp/storage/fr/6y/fr6yhpy998uho3r0db4prsqfd30u +0 -0
- data/spec/dummy/tmp/storage/fr/cc/frccz5in1239kncwgb50cfcs8ujo +0 -0
- data/spec/dummy/tmp/storage/gh/4e/gh4eted2i4uuijdb99yug70e5oho +0 -0
- data/spec/dummy/tmp/storage/ho/cx/hocx3wofwlpt45jsn4hajeub2629 +0 -0
- data/spec/dummy/tmp/storage/i7/q5/i7q5v5qq4zfexcpe0x9jfw5iwi6e +0 -0
- data/spec/dummy/tmp/storage/iu/p5/iup5sduqqzumtymzw6g75kmtj4kq +0 -0
- data/spec/dummy/tmp/storage/ja/gd/jagd3s4q6qfpo12dhrit2p49dyic +0 -0
- data/spec/dummy/tmp/storage/k9/8i/k98igdz816l8eodso61imb4dvqx3 +0 -0
- data/spec/dummy/tmp/storage/km/5u/km5uprp4d8w6l4h7yzix3dono3pl +0 -0
- data/spec/dummy/tmp/storage/ko/j0/koj0d9vpwacdvxlzb68kllhfx2kv +0 -0
- data/spec/dummy/tmp/storage/l0/4j/l04jyb0j5ak89dqnliwqx1wyzftu +0 -0
- data/spec/dummy/tmp/storage/l1/f8/l1f8gfo9kkiv8cq3ag179j24dntk +0 -0
- data/spec/dummy/tmp/storage/l2/rf/l2rfsult7ix6hrssrjn7ntsk4ln2 +0 -0
- data/spec/dummy/tmp/storage/l7/kw/l7kwoq4oqz0m8cr0i3y8gdjk7r33 +0 -0
- data/spec/dummy/tmp/storage/lf/za/lfza3dsbodpk6z7iy09qbpl40frd +0 -0
- data/spec/dummy/tmp/storage/lp/v0/lpv0oveyj4fimz5qnr3m00qxto1y +0 -0
- data/spec/dummy/tmp/storage/m1/5t/m15t6klkta6age0fefcmjovfle8o +0 -0
- data/spec/dummy/tmp/storage/m5/kb/m5kb1ipzihfx7zp95bd9ycxj6bqr +0 -0
- data/spec/dummy/tmp/storage/mg/j1/mgj1jsli6wiilzm3jobz59s35pow +0 -0
- data/spec/dummy/tmp/storage/mh/fj/mhfj18ll8xk1a6torxs7qvp2aa4l +0 -0
- data/spec/dummy/tmp/storage/n2/ve/n2ve8ei20je4jmgn9j0gg2chgnxp +0 -0
- data/spec/dummy/tmp/storage/na/ft/naft1014ecwdt1jycd5ytz6xb71v +0 -0
- data/spec/dummy/tmp/storage/nn/32/nn32kv58hv553251wquaguwave7c +0 -0
- data/spec/dummy/tmp/storage/qj/cu/qjcun2xcpf24hyilgh4s0wmw2e4p +0 -0
- data/spec/dummy/tmp/storage/r7/zp/r7zpfxlptww5orr9moeadoj0g3kg +0 -0
- data/spec/dummy/tmp/storage/ra/d6/rad620vsvw8q9n9vvx8i6wljyfjz +0 -0
- data/spec/dummy/tmp/storage/rf/po/rfpocvfi81i4au539e67w8o94bbr +0 -0
- data/spec/dummy/tmp/storage/rz/9e/rz9e1eck0jk7ponsnlwi1gav505a +0 -0
- data/spec/dummy/tmp/storage/sg/30/sg30putzvuc4p01earzjr0u7f65i +0 -0
- data/spec/dummy/tmp/storage/sl/2u/sl2ufrosy5wej3jghaj8zmb0xiz8 +0 -0
- data/spec/dummy/tmp/storage/t7/bd/t7bdp3p4o9z3bmmla22dr2sej9le +0 -0
- data/spec/dummy/tmp/storage/t8/3p/t83p5pkfd8ageym4qcdzvwbg8i3h +0 -0
- data/spec/dummy/tmp/storage/u0/sz/u0szro8mpff4scduzbn9sm4q9mpo +0 -0
- data/spec/dummy/tmp/storage/u6/8m/u68mm1ppbb9zuk1w8cpgwq4fxnfl +0 -0
- data/spec/dummy/tmp/storage/ue/i3/uei37wn7tdo938m1ih3jponomr7k +0 -0
- data/spec/dummy/tmp/storage/up/86/up86jhycgirblh2hop31nskoj6h2 +0 -0
- data/spec/dummy/tmp/storage/ur/f0/urf0ml010ripl9eks0kitboy5hko +0 -0
- data/spec/dummy/tmp/storage/v1/a2/v1a2h0c0xy9cuejexqy3a8ix794i +0 -0
- data/spec/dummy/tmp/storage/y6/u6/y6u622dz88furl064b7ixmdrx0y1 +0 -0
- data/spec/dummy/tmp/storage/yh/lt/yhlt1d30zxc5e074164sw9f2lwtb +0 -0
- data/spec/dummy/tmp/storage/ys/kt/yskt9vfrlpw90zaqxorq9pfa383r +0 -0
- data/spec/dummy/tmp/storage/zb/ke/zbkeh8j7fx7u3fqu28anb6mso6xz +0 -0
- data/spec/dummy/tmp/storage/zf/bm/zfbmpgsfvuwwpvsa2i11z5x5usgp +0 -0
- data/spec/examples.txt +125 -123
- data/spec/factories/snf_core/users.rb +1 -1
- data/spec/mailers/previews/snf_core/auth_mailer_preview.rb +0 -1
- data/spec/models/snf_core/order_item_spec.rb +64 -64
- data/spec/models/snf_core/user_role_spec.rb +1 -1
- data/spec/requests/snf_core/auth_spec.rb +43 -1
- metadata +92 -3
- data/spec/dummy/tmp/pids/server.pid +0 -1
@@ -3024,3 +3024,445 @@ Content-Transfer-Encoding: 7bit
|
|
3024
3024
|
Completed 200 OK in 87ms (Views: 0.2ms | ActiveRecord: 42.4ms (4 queries, 0 cached) | GC: 5.0ms)
|
3025
3025
|
|
3026
3026
|
|
3027
|
+
[1m[36mActiveRecord::SchemaMigration Load (2.9ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
3028
|
+
[1m[36mActiveRecord::InternalMetadata Load (2.6ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
3029
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
3030
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
3031
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
3032
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
3033
|
+
[1m[35mSQL (0.2ms)[0m [1m[35mSET search_path TO public /*application='Dummy'*/[0m
|
3034
|
+
[1m[35m (142.3ms)[0m [1m[35mDROP DATABASE IF EXISTS "snf_dev" /*application='Dummy'*/[0m
|
3035
|
+
[1m[35mSQL (0.1ms)[0m [1m[35mSET search_path TO public /*application='Dummy'*/[0m
|
3036
|
+
[1m[35m (48.4ms)[0m [1m[35mDROP DATABASE IF EXISTS "snf_test" /*application='Dummy'*/[0m
|
3037
|
+
[1m[35mSQL (0.1ms)[0m [1m[35mSET search_path TO public /*application='Dummy'*/[0m
|
3038
|
+
[1m[35m (125.0ms)[0m [1m[35mCREATE DATABASE "snf_dev" ENCODING = 'unicode' /*application='Dummy'*/[0m
|
3039
|
+
[1m[35mSQL (0.1ms)[0m [1m[35mSET search_path TO public /*application='Dummy'*/[0m
|
3040
|
+
[1m[35m (70.0ms)[0m [1m[35mCREATE DATABASE "snf_test" ENCODING = 'unicode' /*application='Dummy'*/[0m
|
3041
|
+
[1m[35mSQL (1.7ms)[0m [1m[35mCREATE EXTENSION IF NOT EXISTS "plpgsql" SCHEMA pg_catalog /*application='Dummy'*/[0m
|
3042
|
+
[1m[35m (10.1ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY) /*application='Dummy'*/[0m
|
3043
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
3044
|
+
[1m[35m (0.6ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (0) /*application='Dummy'*/[0m
|
3045
|
+
[1m[35m (1.6ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
3046
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.3ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
3047
|
+
[1m[36mActiveRecord::InternalMetadata Create (0.4ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'development', '2025-03-07 13:38:51.591091', '2025-03-07 13:38:51.591094') RETURNING "key" /*application='Dummy'*/[0m
|
3048
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
3049
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'schema_sha1' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
3050
|
+
[1m[36mActiveRecord::InternalMetadata Create (0.2ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('schema_sha1', '9c6777daaa6ce85cc74b26c38000144a7834a947', '2025-03-07 13:38:51.594216', '2025-03-07 13:38:51.594218') RETURNING "key" /*application='Dummy'*/[0m
|
3051
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_try_advisory_lock(869468062957908540) /*application='Dummy'*/[0m
|
3052
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
3053
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
3054
|
+
Migrating to CreateSnfCoreUsers (20250226042622)
|
3055
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mBEGIN /*application='Dummy'*/[0m
|
3056
|
+
[1m[35m (4.4ms)[0m [1m[35mCREATE 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'*/[0m
|
3057
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ('20250226042622') RETURNING "version" /*application='Dummy'*/[0m
|
3058
|
+
[1m[36mTRANSACTION (0.3ms)[0m [1m[35mCOMMIT /*application='Dummy'*/[0m
|
3059
|
+
Migrating to CreateSnfCoreCategories (20250226064444)
|
3060
|
+
[1m[36mTRANSACTION (0.2ms)[0m [1m[35mBEGIN /*application='Dummy'*/[0m
|
3061
|
+
[1m[35m (4.2ms)[0m [1m[35mCREATE 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"
|
3062
|
+
FOREIGN KEY ("parent_id")
|
3063
|
+
REFERENCES "snf_core_categories" ("id")
|
3064
|
+
) /*application='Dummy'*/[0m
|
3065
|
+
[1m[35m (0.7ms)[0m [1m[35mCREATE INDEX "index_snf_core_categories_on_parent_id" ON "snf_core_categories" ("parent_id") /*application='Dummy'*/[0m
|
3066
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ('20250226064444') RETURNING "version" /*application='Dummy'*/[0m
|
3067
|
+
[1m[36mTRANSACTION (0.3ms)[0m [1m[35mCOMMIT /*application='Dummy'*/[0m
|
3068
|
+
Migrating to CreateSnfCoreBusinesses (20250226080323)
|
3069
|
+
[1m[36mTRANSACTION (0.3ms)[0m [1m[35mBEGIN /*application='Dummy'*/[0m
|
3070
|
+
[1m[35m (1.4ms)[0m [1m[35mCREATE TABLE "snf_core_businesses" ("id" bigserial primary key, "user_id" bigint NOT NULL, "business_name" character varying NOT NULL, "tin_number" character varying NOT NULL, "business_type" integer NOT NULL, "verified_at" timestamp(6), "verification_status" integer DEFAULT 0 NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL, CONSTRAINT "fk_rails_a61edcbd4b"
|
3071
|
+
FOREIGN KEY ("user_id")
|
3072
|
+
REFERENCES "snf_core_users" ("id")
|
3073
|
+
) /*application='Dummy'*/[0m
|
3074
|
+
[1m[35m (0.4ms)[0m [1m[35mCREATE INDEX "index_snf_core_businesses_on_user_id" ON "snf_core_businesses" ("user_id") /*application='Dummy'*/[0m
|
3075
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ('20250226080323') RETURNING "version" /*application='Dummy'*/[0m
|
3076
|
+
[1m[36mTRANSACTION (0.5ms)[0m [1m[35mCOMMIT /*application='Dummy'*/[0m
|
3077
|
+
Migrating to CreateSnfCoreBusinessDocuments (20250226102931)
|
3078
|
+
[1m[36mTRANSACTION (0.2ms)[0m [1m[35mBEGIN /*application='Dummy'*/[0m
|
3079
|
+
[1m[35m (1.6ms)[0m [1m[35mCREATE 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"
|
3080
|
+
FOREIGN KEY ("business_id")
|
3081
|
+
REFERENCES "snf_core_businesses" ("id")
|
3082
|
+
, CONSTRAINT "fk_rails_a6157021cc"
|
3083
|
+
FOREIGN KEY ("verified_by_id")
|
3084
|
+
REFERENCES "snf_core_users" ("id")
|
3085
|
+
) /*application='Dummy'*/[0m
|
3086
|
+
[1m[35m (1.4ms)[0m [1m[35mCREATE INDEX "index_snf_core_business_documents_on_business_id" ON "snf_core_business_documents" ("business_id") /*application='Dummy'*/[0m
|
3087
|
+
[1m[35m (0.4ms)[0m [1m[35mCREATE INDEX "index_snf_core_business_documents_on_verified_by_id" ON "snf_core_business_documents" ("verified_by_id") /*application='Dummy'*/[0m
|
3088
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ('20250226102931') RETURNING "version" /*application='Dummy'*/[0m
|
3089
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mCOMMIT /*application='Dummy'*/[0m
|
3090
|
+
Migrating to CreateSnfCoreAddresses (20250226110217)
|
3091
|
+
[1m[36mTRANSACTION (0.2ms)[0m [1m[35mBEGIN /*application='Dummy'*/[0m
|
3092
|
+
[1m[35m (2.4ms)[0m [1m[35mCREATE 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'*/[0m
|
3093
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ('20250226110217') RETURNING "version" /*application='Dummy'*/[0m
|
3094
|
+
[1m[36mTRANSACTION (1.9ms)[0m [1m[35mCOMMIT /*application='Dummy'*/[0m
|
3095
|
+
Migrating to CreateSnfCoreStores (20250226115215)
|
3096
|
+
[1m[36mTRANSACTION (0.2ms)[0m [1m[35mBEGIN /*application='Dummy'*/[0m
|
3097
|
+
[1m[35m (5.9ms)[0m [1m[35mCREATE 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"
|
3098
|
+
FOREIGN KEY ("business_id")
|
3099
|
+
REFERENCES "snf_core_businesses" ("id")
|
3100
|
+
, CONSTRAINT "fk_rails_421441da8e"
|
3101
|
+
FOREIGN KEY ("address_id")
|
3102
|
+
REFERENCES "snf_core_addresses" ("id")
|
3103
|
+
) /*application='Dummy'*/[0m
|
3104
|
+
[1m[35m (0.5ms)[0m [1m[35mCREATE INDEX "index_snf_core_stores_on_business_id" ON "snf_core_stores" ("business_id") /*application='Dummy'*/[0m
|
3105
|
+
[1m[35m (0.5ms)[0m [1m[35mCREATE INDEX "index_snf_core_stores_on_address_id" ON "snf_core_stores" ("address_id") /*application='Dummy'*/[0m
|
3106
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ('20250226115215') RETURNING "version" /*application='Dummy'*/[0m
|
3107
|
+
[1m[36mTRANSACTION (13.2ms)[0m [1m[35mCOMMIT /*application='Dummy'*/[0m
|
3108
|
+
Migrating to CreateActiveStorageTables (20250226123213)
|
3109
|
+
[1m[36mTRANSACTION (0.3ms)[0m [1m[35mBEGIN /*application='Dummy'*/[0m
|
3110
|
+
[1m[35m (3.0ms)[0m [1m[35mCREATE 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'*/[0m
|
3111
|
+
[1m[35m (0.7ms)[0m [1m[35mCREATE UNIQUE INDEX "index_active_storage_blobs_on_key" ON "active_storage_blobs" ("key") /*application='Dummy'*/[0m
|
3112
|
+
[1m[35m (11.0ms)[0m [1m[35mCREATE 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"
|
3113
|
+
FOREIGN KEY ("blob_id")
|
3114
|
+
REFERENCES "active_storage_blobs" ("id")
|
3115
|
+
) /*application='Dummy'*/[0m
|
3116
|
+
[1m[35m (18.1ms)[0m [1m[35mCREATE INDEX "index_active_storage_attachments_on_blob_id" ON "active_storage_attachments" ("blob_id") /*application='Dummy'*/[0m
|
3117
|
+
[1m[35m (16.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_active_storage_attachments_uniqueness" ON "active_storage_attachments" ("record_type", "record_id", "name", "blob_id") /*application='Dummy'*/[0m
|
3118
|
+
[1m[35m (54.2ms)[0m [1m[35mCREATE TABLE "active_storage_variant_records" ("id" bigserial primary key, "blob_id" bigint NOT NULL, "variation_digest" character varying NOT NULL, CONSTRAINT "fk_rails_993965df05"
|
3119
|
+
FOREIGN KEY ("blob_id")
|
3120
|
+
REFERENCES "active_storage_blobs" ("id")
|
3121
|
+
) /*application='Dummy'*/[0m
|
3122
|
+
[1m[35m (1.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_active_storage_variant_records_uniqueness" ON "active_storage_variant_records" ("blob_id", "variation_digest") /*application='Dummy'*/[0m
|
3123
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ('20250226123213') RETURNING "version" /*application='Dummy'*/[0m
|
3124
|
+
[1m[36mTRANSACTION (22.6ms)[0m [1m[35mCOMMIT /*application='Dummy'*/[0m
|
3125
|
+
Migrating to CreateSnfCoreProducts (20250226181007)
|
3126
|
+
[1m[36mTRANSACTION (0.8ms)[0m [1m[35mBEGIN /*application='Dummy'*/[0m
|
3127
|
+
[1m[35m (6.6ms)[0m [1m[35mCREATE 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"
|
3128
|
+
FOREIGN KEY ("category_id")
|
3129
|
+
REFERENCES "snf_core_categories" ("id")
|
3130
|
+
) /*application='Dummy'*/[0m
|
3131
|
+
[1m[35m (1.3ms)[0m [1m[35mCREATE INDEX "index_snf_core_products_on_category_id" ON "snf_core_products" ("category_id") /*application='Dummy'*/[0m
|
3132
|
+
[1m[36mActiveRecord::SchemaMigration Create (1.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ('20250226181007') RETURNING "version" /*application='Dummy'*/[0m
|
3133
|
+
[1m[36mTRANSACTION (0.4ms)[0m [1m[35mCOMMIT /*application='Dummy'*/[0m
|
3134
|
+
Migrating to CreateSnfCoreStoreInventories (20250226190000)
|
3135
|
+
[1m[36mTRANSACTION (0.6ms)[0m [1m[35mBEGIN /*application='Dummy'*/[0m
|
3136
|
+
[1m[35m (48.4ms)[0m [1m[35mCREATE 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"
|
3137
|
+
FOREIGN KEY ("store_id")
|
3138
|
+
REFERENCES "snf_core_stores" ("id")
|
3139
|
+
, CONSTRAINT "fk_rails_15fb263e75"
|
3140
|
+
FOREIGN KEY ("product_id")
|
3141
|
+
REFERENCES "snf_core_products" ("id")
|
3142
|
+
) /*application='Dummy'*/[0m
|
3143
|
+
[1m[35m (11.6ms)[0m [1m[35mCREATE INDEX "index_snf_core_store_inventories_on_store_id" ON "snf_core_store_inventories" ("store_id") /*application='Dummy'*/[0m
|
3144
|
+
[1m[35m (1.9ms)[0m [1m[35mCREATE INDEX "index_snf_core_store_inventories_on_product_id" ON "snf_core_store_inventories" ("product_id") /*application='Dummy'*/[0m
|
3145
|
+
[1m[35m (0.8ms)[0m [1m[35mCREATE UNIQUE INDEX "index_snf_core_store_inventories_on_store_id_and_product_id" ON "snf_core_store_inventories" ("store_id", "product_id") /*application='Dummy'*/[0m
|
3146
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ('20250226190000') RETURNING "version" /*application='Dummy'*/[0m
|
3147
|
+
[1m[36mTRANSACTION (0.3ms)[0m [1m[35mCOMMIT /*application='Dummy'*/[0m
|
3148
|
+
Migrating to CreateSnfCoreGroups (20250226192104)
|
3149
|
+
[1m[36mTRANSACTION (0.4ms)[0m [1m[35mBEGIN /*application='Dummy'*/[0m
|
3150
|
+
[1m[35m (6.0ms)[0m [1m[35mCREATE 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"
|
3151
|
+
FOREIGN KEY ("business_id")
|
3152
|
+
REFERENCES "snf_core_businesses" ("id")
|
3153
|
+
) /*application='Dummy'*/[0m
|
3154
|
+
[1m[35m (1.1ms)[0m [1m[35mCREATE INDEX "index_snf_core_groups_on_business_id" ON "snf_core_groups" ("business_id") /*application='Dummy'*/[0m
|
3155
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.5ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ('20250226192104') RETURNING "version" /*application='Dummy'*/[0m
|
3156
|
+
[1m[36mTRANSACTION (0.3ms)[0m [1m[35mCOMMIT /*application='Dummy'*/[0m
|
3157
|
+
Migrating to CreateSnfCoreCustomerGroups (20250226193938)
|
3158
|
+
[1m[36mTRANSACTION (0.4ms)[0m [1m[35mBEGIN /*application='Dummy'*/[0m
|
3159
|
+
[1m[35m (5.7ms)[0m [1m[35mCREATE 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"
|
3160
|
+
FOREIGN KEY ("group_id")
|
3161
|
+
REFERENCES "snf_core_groups" ("id")
|
3162
|
+
, CONSTRAINT "fk_rails_792eb3404d"
|
3163
|
+
FOREIGN KEY ("customer_id")
|
3164
|
+
REFERENCES "snf_core_users" ("id")
|
3165
|
+
) /*application='Dummy'*/[0m
|
3166
|
+
[1m[35m (0.8ms)[0m [1m[35mCREATE INDEX "index_snf_core_customer_groups_on_group_id" ON "snf_core_customer_groups" ("group_id") /*application='Dummy'*/[0m
|
3167
|
+
[1m[35m (0.8ms)[0m [1m[35mCREATE INDEX "index_snf_core_customer_groups_on_customer_id" ON "snf_core_customer_groups" ("customer_id") /*application='Dummy'*/[0m
|
3168
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ('20250226193938') RETURNING "version" /*application='Dummy'*/[0m
|
3169
|
+
[1m[36mTRANSACTION (0.2ms)[0m [1m[35mCOMMIT /*application='Dummy'*/[0m
|
3170
|
+
Migrating to CreateSnfCoreWallets (20250227075048)
|
3171
|
+
[1m[36mTRANSACTION (0.3ms)[0m [1m[35mBEGIN /*application='Dummy'*/[0m
|
3172
|
+
[1m[35m (3.4ms)[0m [1m[35mCREATE 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"
|
3173
|
+
FOREIGN KEY ("user_id")
|
3174
|
+
REFERENCES "snf_core_users" ("id")
|
3175
|
+
) /*application='Dummy'*/[0m
|
3176
|
+
[1m[35m (0.8ms)[0m [1m[35mCREATE INDEX "index_snf_core_wallets_on_user_id" ON "snf_core_wallets" ("user_id") /*application='Dummy'*/[0m
|
3177
|
+
[1m[35m (0.7ms)[0m [1m[35mCREATE UNIQUE INDEX "index_snf_core_wallets_on_wallet_number" ON "snf_core_wallets" ("wallet_number") /*application='Dummy'*/[0m
|
3178
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ('20250227075048') RETURNING "version" /*application='Dummy'*/[0m
|
3179
|
+
[1m[36mTRANSACTION (0.4ms)[0m [1m[35mCOMMIT /*application='Dummy'*/[0m
|
3180
|
+
Migrating to ModifyStoreInventories (20250227102833)
|
3181
|
+
[1m[36mTRANSACTION (0.3ms)[0m [1m[35mBEGIN /*application='Dummy'*/[0m
|
3182
|
+
[1m[35m (1.9ms)[0m [1m[35mALTER TABLE "snf_core_store_inventories" DROP COLUMN "stock_quantity" /*application='Dummy'*/[0m
|
3183
|
+
[1m[35m (0.3ms)[0m [1m[35mALTER TABLE "snf_core_store_inventories" ADD "status" integer DEFAULT 0 NOT NULL /*application='Dummy'*/[0m
|
3184
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ('20250227102833') RETURNING "version" /*application='Dummy'*/[0m
|
3185
|
+
[1m[36mTRANSACTION (0.2ms)[0m [1m[35mCOMMIT /*application='Dummy'*/[0m
|
3186
|
+
Migrating to CreateSnfCoreOrders (20250305165926)
|
3187
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mBEGIN /*application='Dummy'*/[0m
|
3188
|
+
[1m[35m (4.9ms)[0m [1m[35mCREATE 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"
|
3189
|
+
FOREIGN KEY ("user_id")
|
3190
|
+
REFERENCES "snf_core_users" ("id")
|
3191
|
+
, CONSTRAINT "fk_rails_400cf2029c"
|
3192
|
+
FOREIGN KEY ("store_id")
|
3193
|
+
REFERENCES "snf_core_stores" ("id")
|
3194
|
+
) /*application='Dummy'*/[0m
|
3195
|
+
[1m[35m (0.7ms)[0m [1m[35mCREATE INDEX "index_snf_core_orders_on_user_id" ON "snf_core_orders" ("user_id") /*application='Dummy'*/[0m
|
3196
|
+
[1m[35m (0.8ms)[0m [1m[35mCREATE INDEX "index_snf_core_orders_on_store_id" ON "snf_core_orders" ("store_id") /*application='Dummy'*/[0m
|
3197
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ('20250305165926') RETURNING "version" /*application='Dummy'*/[0m
|
3198
|
+
[1m[36mTRANSACTION (0.2ms)[0m [1m[35mCOMMIT /*application='Dummy'*/[0m
|
3199
|
+
Migrating to CreateSnfCoreOrderItems (20250305170248)
|
3200
|
+
[1m[36mTRANSACTION (0.3ms)[0m [1m[35mBEGIN /*application='Dummy'*/[0m
|
3201
|
+
[1m[35m (4.4ms)[0m [1m[35mCREATE 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"
|
3202
|
+
FOREIGN KEY ("order_id")
|
3203
|
+
REFERENCES "snf_core_orders" ("id")
|
3204
|
+
, CONSTRAINT "fk_rails_50419437e9"
|
3205
|
+
FOREIGN KEY ("store_inventory_id")
|
3206
|
+
REFERENCES "snf_core_store_inventories" ("id")
|
3207
|
+
) /*application='Dummy'*/[0m
|
3208
|
+
[1m[35m (0.8ms)[0m [1m[35mCREATE INDEX "index_snf_core_order_items_on_order_id" ON "snf_core_order_items" ("order_id") /*application='Dummy'*/[0m
|
3209
|
+
[1m[35m (0.7ms)[0m [1m[35mCREATE INDEX "index_snf_core_order_items_on_store_inventory_id" ON "snf_core_order_items" ("store_inventory_id") /*application='Dummy'*/[0m
|
3210
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ('20250305170248') RETURNING "version" /*application='Dummy'*/[0m
|
3211
|
+
[1m[36mTRANSACTION (0.3ms)[0m [1m[35mCOMMIT /*application='Dummy'*/[0m
|
3212
|
+
Migrating to CreateSnfCoreDeliveryOrders (20250305201008)
|
3213
|
+
[1m[36mTRANSACTION (0.3ms)[0m [1m[35mBEGIN /*application='Dummy'*/[0m
|
3214
|
+
[1m[35m (4.6ms)[0m [1m[35mCREATE 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, CONSTRAINT "fk_rails_450d17b1b2"
|
3215
|
+
FOREIGN KEY ("order_id")
|
3216
|
+
REFERENCES "snf_core_orders" ("id")
|
3217
|
+
) /*application='Dummy'*/[0m
|
3218
|
+
[1m[35m (1.1ms)[0m [1m[35mCREATE INDEX "index_snf_core_delivery_orders_on_order_id" ON "snf_core_delivery_orders" ("order_id") /*application='Dummy'*/[0m
|
3219
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ('20250305201008') RETURNING "version" /*application='Dummy'*/[0m
|
3220
|
+
[1m[36mTRANSACTION (0.2ms)[0m [1m[35mCOMMIT /*application='Dummy'*/[0m
|
3221
|
+
Migrating to CreateSnfCoreRoles (20250305232529)
|
3222
|
+
[1m[36mTRANSACTION (0.5ms)[0m [1m[35mBEGIN /*application='Dummy'*/[0m
|
3223
|
+
[1m[35m (5.0ms)[0m [1m[35mCREATE 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'*/[0m
|
3224
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ('20250305232529') RETURNING "version" /*application='Dummy'*/[0m
|
3225
|
+
[1m[36mTRANSACTION (0.5ms)[0m [1m[35mCOMMIT /*application='Dummy'*/[0m
|
3226
|
+
Migrating to CreateSnfCoreUserRoles (20250305232530)
|
3227
|
+
[1m[36mTRANSACTION (0.4ms)[0m [1m[35mBEGIN /*application='Dummy'*/[0m
|
3228
|
+
[1m[35m (6.1ms)[0m [1m[35mCREATE 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"
|
3229
|
+
FOREIGN KEY ("user_id")
|
3230
|
+
REFERENCES "snf_core_users" ("id")
|
3231
|
+
, CONSTRAINT "fk_rails_0e70d7ce00"
|
3232
|
+
FOREIGN KEY ("role_id")
|
3233
|
+
REFERENCES "snf_core_roles" ("id")
|
3234
|
+
) /*application='Dummy'*/[0m
|
3235
|
+
[1m[35m (1.6ms)[0m [1m[35mCREATE INDEX "index_snf_core_user_roles_on_user_id" ON "snf_core_user_roles" ("user_id") /*application='Dummy'*/[0m
|
3236
|
+
[1m[35m (1.6ms)[0m [1m[35mCREATE INDEX "index_snf_core_user_roles_on_role_id" ON "snf_core_user_roles" ("role_id") /*application='Dummy'*/[0m
|
3237
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ('20250305232530') RETURNING "version" /*application='Dummy'*/[0m
|
3238
|
+
[1m[36mTRANSACTION (0.3ms)[0m [1m[35mCOMMIT /*application='Dummy'*/[0m
|
3239
|
+
Migrating to AddPasswordFieldsToSnfCoreUsers (20250306074713)
|
3240
|
+
[1m[36mTRANSACTION (0.4ms)[0m [1m[35mBEGIN /*application='Dummy'*/[0m
|
3241
|
+
[1m[35m (1.4ms)[0m [1m[35mALTER TABLE "snf_core_users" ADD "password_digest" character varying NOT NULL /*application='Dummy'*/[0m
|
3242
|
+
[1m[35m (0.3ms)[0m [1m[35mALTER TABLE "snf_core_users" ADD "password_changed" boolean DEFAULT FALSE /*application='Dummy'*/[0m
|
3243
|
+
[1m[35m (14.9ms)[0m [1m[35mALTER TABLE "snf_core_users" ADD "reset_password_token" character varying /*application='Dummy'*/[0m
|
3244
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ('20250306074713') RETURNING "version" /*application='Dummy'*/[0m
|
3245
|
+
[1m[36mTRANSACTION (13.9ms)[0m [1m[35mCOMMIT /*application='Dummy'*/[0m
|
3246
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(869468062957908540) /*application='Dummy'*/[0m
|
3247
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
3248
|
+
[1m[36mActiveRecord::SchemaMigration Load (2.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
3249
|
+
[1m[36mActiveRecord::InternalMetadata Load (1.2ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
3250
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
3251
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.3ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
3252
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
3253
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
3254
|
+
[1m[35mSQL (0.1ms)[0m [1m[35mSET search_path TO public /*application='Dummy'*/[0m
|
3255
|
+
[1m[35m (109.2ms)[0m [1m[35mDROP DATABASE IF EXISTS "snf_dev" /*application='Dummy'*/[0m
|
3256
|
+
[1m[35mSQL (0.1ms)[0m [1m[35mSET search_path TO public /*application='Dummy'*/[0m
|
3257
|
+
[1m[35m (46.8ms)[0m [1m[35mDROP DATABASE IF EXISTS "snf_test" /*application='Dummy'*/[0m
|
3258
|
+
[1m[35mSQL (0.1ms)[0m [1m[35mSET search_path TO public /*application='Dummy'*/[0m
|
3259
|
+
[1m[35m (120.9ms)[0m [1m[35mCREATE DATABASE "snf_dev" ENCODING = 'unicode' /*application='Dummy'*/[0m
|
3260
|
+
[1m[35mSQL (0.1ms)[0m [1m[35mSET search_path TO public /*application='Dummy'*/[0m
|
3261
|
+
[1m[35m (65.8ms)[0m [1m[35mCREATE DATABASE "snf_test" ENCODING = 'unicode' /*application='Dummy'*/[0m
|
3262
|
+
[1m[35mSQL (0.2ms)[0m [1m[35mCREATE EXTENSION IF NOT EXISTS "plpgsql" SCHEMA pg_catalog /*application='Dummy'*/[0m
|
3263
|
+
[1m[35m (40.1ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY) /*application='Dummy'*/[0m
|
3264
|
+
[1m[36mActiveRecord::SchemaMigration Load (16.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
3265
|
+
[1m[35m (0.5ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (0) /*application='Dummy'*/[0m
|
3266
|
+
[1m[35m (1.3ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
3267
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
3268
|
+
[1m[36mActiveRecord::InternalMetadata Create (0.4ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'development', '2025-03-07 16:36:09.380541', '2025-03-07 16:36:09.380544') RETURNING "key" /*application='Dummy'*/[0m
|
3269
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
3270
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'schema_sha1' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
3271
|
+
[1m[36mActiveRecord::InternalMetadata Create (0.2ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('schema_sha1', '9c6777daaa6ce85cc74b26c38000144a7834a947', '2025-03-07 16:36:09.408235', '2025-03-07 16:36:09.408238') RETURNING "key" /*application='Dummy'*/[0m
|
3272
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT pg_try_advisory_lock(869468062957908540) /*application='Dummy'*/[0m
|
3273
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
3274
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
3275
|
+
Migrating to CreateSnfCoreUsers (20250226042622)
|
3276
|
+
[1m[36mTRANSACTION (0.2ms)[0m [1m[35mBEGIN /*application='Dummy'*/[0m
|
3277
|
+
[1m[35m (33.3ms)[0m [1m[35mCREATE 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'*/[0m
|
3278
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ('20250226042622') RETURNING "version" /*application='Dummy'*/[0m
|
3279
|
+
[1m[36mTRANSACTION (0.4ms)[0m [1m[35mCOMMIT /*application='Dummy'*/[0m
|
3280
|
+
Migrating to CreateSnfCoreCategories (20250226064444)
|
3281
|
+
[1m[36mTRANSACTION (0.6ms)[0m [1m[35mBEGIN /*application='Dummy'*/[0m
|
3282
|
+
[1m[35m (9.5ms)[0m [1m[35mCREATE 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"
|
3283
|
+
FOREIGN KEY ("parent_id")
|
3284
|
+
REFERENCES "snf_core_categories" ("id")
|
3285
|
+
) /*application='Dummy'*/[0m
|
3286
|
+
[1m[35m (1.5ms)[0m [1m[35mCREATE INDEX "index_snf_core_categories_on_parent_id" ON "snf_core_categories" ("parent_id") /*application='Dummy'*/[0m
|
3287
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ('20250226064444') RETURNING "version" /*application='Dummy'*/[0m
|
3288
|
+
[1m[36mTRANSACTION (0.5ms)[0m [1m[35mCOMMIT /*application='Dummy'*/[0m
|
3289
|
+
Migrating to CreateSnfCoreBusinesses (20250226080323)
|
3290
|
+
[1m[36mTRANSACTION (0.7ms)[0m [1m[35mBEGIN /*application='Dummy'*/[0m
|
3291
|
+
[1m[35m (7.0ms)[0m [1m[35mCREATE TABLE "snf_core_businesses" ("id" bigserial primary key, "user_id" bigint NOT NULL, "business_name" character varying NOT NULL, "tin_number" character varying NOT NULL, "business_type" integer NOT NULL, "verified_at" timestamp(6), "verification_status" integer DEFAULT 0 NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL, CONSTRAINT "fk_rails_a61edcbd4b"
|
3292
|
+
FOREIGN KEY ("user_id")
|
3293
|
+
REFERENCES "snf_core_users" ("id")
|
3294
|
+
) /*application='Dummy'*/[0m
|
3295
|
+
[1m[35m (1.6ms)[0m [1m[35mCREATE INDEX "index_snf_core_businesses_on_user_id" ON "snf_core_businesses" ("user_id") /*application='Dummy'*/[0m
|
3296
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.5ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ('20250226080323') RETURNING "version" /*application='Dummy'*/[0m
|
3297
|
+
[1m[36mTRANSACTION (0.6ms)[0m [1m[35mCOMMIT /*application='Dummy'*/[0m
|
3298
|
+
Migrating to CreateSnfCoreBusinessDocuments (20250226102931)
|
3299
|
+
[1m[36mTRANSACTION (0.7ms)[0m [1m[35mBEGIN /*application='Dummy'*/[0m
|
3300
|
+
[1m[35m (5.6ms)[0m [1m[35mCREATE 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"
|
3301
|
+
FOREIGN KEY ("business_id")
|
3302
|
+
REFERENCES "snf_core_businesses" ("id")
|
3303
|
+
, CONSTRAINT "fk_rails_a6157021cc"
|
3304
|
+
FOREIGN KEY ("verified_by_id")
|
3305
|
+
REFERENCES "snf_core_users" ("id")
|
3306
|
+
) /*application='Dummy'*/[0m
|
3307
|
+
[1m[35m (1.8ms)[0m [1m[35mCREATE INDEX "index_snf_core_business_documents_on_business_id" ON "snf_core_business_documents" ("business_id") /*application='Dummy'*/[0m
|
3308
|
+
[1m[35m (1.8ms)[0m [1m[35mCREATE INDEX "index_snf_core_business_documents_on_verified_by_id" ON "snf_core_business_documents" ("verified_by_id") /*application='Dummy'*/[0m
|
3309
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.5ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ('20250226102931') RETURNING "version" /*application='Dummy'*/[0m
|
3310
|
+
[1m[36mTRANSACTION (0.8ms)[0m [1m[35mCOMMIT /*application='Dummy'*/[0m
|
3311
|
+
Migrating to CreateSnfCoreAddresses (20250226110217)
|
3312
|
+
[1m[36mTRANSACTION (0.8ms)[0m [1m[35mBEGIN /*application='Dummy'*/[0m
|
3313
|
+
[1m[35m (9.8ms)[0m [1m[35mCREATE 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'*/[0m
|
3314
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.5ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ('20250226110217') RETURNING "version" /*application='Dummy'*/[0m
|
3315
|
+
[1m[36mTRANSACTION (0.4ms)[0m [1m[35mCOMMIT /*application='Dummy'*/[0m
|
3316
|
+
Migrating to CreateSnfCoreStores (20250226115215)
|
3317
|
+
[1m[36mTRANSACTION (0.5ms)[0m [1m[35mBEGIN /*application='Dummy'*/[0m
|
3318
|
+
[1m[35m (8.5ms)[0m [1m[35mCREATE 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"
|
3319
|
+
FOREIGN KEY ("business_id")
|
3320
|
+
REFERENCES "snf_core_businesses" ("id")
|
3321
|
+
, CONSTRAINT "fk_rails_421441da8e"
|
3322
|
+
FOREIGN KEY ("address_id")
|
3323
|
+
REFERENCES "snf_core_addresses" ("id")
|
3324
|
+
) /*application='Dummy'*/[0m
|
3325
|
+
[1m[35m (2.0ms)[0m [1m[35mCREATE INDEX "index_snf_core_stores_on_business_id" ON "snf_core_stores" ("business_id") /*application='Dummy'*/[0m
|
3326
|
+
[1m[35m (1.7ms)[0m [1m[35mCREATE INDEX "index_snf_core_stores_on_address_id" ON "snf_core_stores" ("address_id") /*application='Dummy'*/[0m
|
3327
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ('20250226115215') RETURNING "version" /*application='Dummy'*/[0m
|
3328
|
+
[1m[36mTRANSACTION (0.5ms)[0m [1m[35mCOMMIT /*application='Dummy'*/[0m
|
3329
|
+
Migrating to CreateActiveStorageTables (20250226123213)
|
3330
|
+
[1m[36mTRANSACTION (0.6ms)[0m [1m[35mBEGIN /*application='Dummy'*/[0m
|
3331
|
+
[1m[35m (6.7ms)[0m [1m[35mCREATE 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'*/[0m
|
3332
|
+
[1m[35m (1.6ms)[0m [1m[35mCREATE UNIQUE INDEX "index_active_storage_blobs_on_key" ON "active_storage_blobs" ("key") /*application='Dummy'*/[0m
|
3333
|
+
[1m[35m (6.9ms)[0m [1m[35mCREATE 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"
|
3334
|
+
FOREIGN KEY ("blob_id")
|
3335
|
+
REFERENCES "active_storage_blobs" ("id")
|
3336
|
+
) /*application='Dummy'*/[0m
|
3337
|
+
[1m[35m (2.2ms)[0m [1m[35mCREATE INDEX "index_active_storage_attachments_on_blob_id" ON "active_storage_attachments" ("blob_id") /*application='Dummy'*/[0m
|
3338
|
+
[1m[35m (1.9ms)[0m [1m[35mCREATE UNIQUE INDEX "index_active_storage_attachments_uniqueness" ON "active_storage_attachments" ("record_type", "record_id", "name", "blob_id") /*application='Dummy'*/[0m
|
3339
|
+
[1m[35m (4.5ms)[0m [1m[35mCREATE TABLE "active_storage_variant_records" ("id" bigserial primary key, "blob_id" bigint NOT NULL, "variation_digest" character varying NOT NULL, CONSTRAINT "fk_rails_993965df05"
|
3340
|
+
FOREIGN KEY ("blob_id")
|
3341
|
+
REFERENCES "active_storage_blobs" ("id")
|
3342
|
+
) /*application='Dummy'*/[0m
|
3343
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_active_storage_variant_records_uniqueness" ON "active_storage_variant_records" ("blob_id", "variation_digest") /*application='Dummy'*/[0m
|
3344
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ('20250226123213') RETURNING "version" /*application='Dummy'*/[0m
|
3345
|
+
[1m[36mTRANSACTION (0.5ms)[0m [1m[35mCOMMIT /*application='Dummy'*/[0m
|
3346
|
+
Migrating to CreateSnfCoreProducts (20250226181007)
|
3347
|
+
[1m[36mTRANSACTION (0.8ms)[0m [1m[35mBEGIN /*application='Dummy'*/[0m
|
3348
|
+
[1m[35m (9.6ms)[0m [1m[35mCREATE 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"
|
3349
|
+
FOREIGN KEY ("category_id")
|
3350
|
+
REFERENCES "snf_core_categories" ("id")
|
3351
|
+
) /*application='Dummy'*/[0m
|
3352
|
+
[1m[35m (1.4ms)[0m [1m[35mCREATE INDEX "index_snf_core_products_on_category_id" ON "snf_core_products" ("category_id") /*application='Dummy'*/[0m
|
3353
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.6ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ('20250226181007') RETURNING "version" /*application='Dummy'*/[0m
|
3354
|
+
[1m[36mTRANSACTION (0.8ms)[0m [1m[35mCOMMIT /*application='Dummy'*/[0m
|
3355
|
+
Migrating to CreateSnfCoreStoreInventories (20250226190000)
|
3356
|
+
[1m[36mTRANSACTION (0.6ms)[0m [1m[35mBEGIN /*application='Dummy'*/[0m
|
3357
|
+
[1m[35m (4.9ms)[0m [1m[35mCREATE 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"
|
3358
|
+
FOREIGN KEY ("store_id")
|
3359
|
+
REFERENCES "snf_core_stores" ("id")
|
3360
|
+
, CONSTRAINT "fk_rails_15fb263e75"
|
3361
|
+
FOREIGN KEY ("product_id")
|
3362
|
+
REFERENCES "snf_core_products" ("id")
|
3363
|
+
) /*application='Dummy'*/[0m
|
3364
|
+
[1m[35m (1.5ms)[0m [1m[35mCREATE INDEX "index_snf_core_store_inventories_on_store_id" ON "snf_core_store_inventories" ("store_id") /*application='Dummy'*/[0m
|
3365
|
+
[1m[35m (1.9ms)[0m [1m[35mCREATE INDEX "index_snf_core_store_inventories_on_product_id" ON "snf_core_store_inventories" ("product_id") /*application='Dummy'*/[0m
|
3366
|
+
[1m[35m (1.7ms)[0m [1m[35mCREATE UNIQUE INDEX "index_snf_core_store_inventories_on_store_id_and_product_id" ON "snf_core_store_inventories" ("store_id", "product_id") /*application='Dummy'*/[0m
|
3367
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.6ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ('20250226190000') RETURNING "version" /*application='Dummy'*/[0m
|
3368
|
+
[1m[36mTRANSACTION (0.8ms)[0m [1m[35mCOMMIT /*application='Dummy'*/[0m
|
3369
|
+
Migrating to CreateSnfCoreGroups (20250226192104)
|
3370
|
+
[1m[36mTRANSACTION (1.4ms)[0m [1m[35mBEGIN /*application='Dummy'*/[0m
|
3371
|
+
[1m[35m (9.1ms)[0m [1m[35mCREATE 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"
|
3372
|
+
FOREIGN KEY ("business_id")
|
3373
|
+
REFERENCES "snf_core_businesses" ("id")
|
3374
|
+
) /*application='Dummy'*/[0m
|
3375
|
+
[1m[35m (1.4ms)[0m [1m[35mCREATE INDEX "index_snf_core_groups_on_business_id" ON "snf_core_groups" ("business_id") /*application='Dummy'*/[0m
|
3376
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ('20250226192104') RETURNING "version" /*application='Dummy'*/[0m
|
3377
|
+
[1m[36mTRANSACTION (0.7ms)[0m [1m[35mCOMMIT /*application='Dummy'*/[0m
|
3378
|
+
Migrating to CreateSnfCoreCustomerGroups (20250226193938)
|
3379
|
+
[1m[36mTRANSACTION (0.5ms)[0m [1m[35mBEGIN /*application='Dummy'*/[0m
|
3380
|
+
[1m[35m (7.6ms)[0m [1m[35mCREATE 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"
|
3381
|
+
FOREIGN KEY ("group_id")
|
3382
|
+
REFERENCES "snf_core_groups" ("id")
|
3383
|
+
, CONSTRAINT "fk_rails_792eb3404d"
|
3384
|
+
FOREIGN KEY ("customer_id")
|
3385
|
+
REFERENCES "snf_core_users" ("id")
|
3386
|
+
) /*application='Dummy'*/[0m
|
3387
|
+
[1m[35m (2.1ms)[0m [1m[35mCREATE INDEX "index_snf_core_customer_groups_on_group_id" ON "snf_core_customer_groups" ("group_id") /*application='Dummy'*/[0m
|
3388
|
+
[1m[35m (1.5ms)[0m [1m[35mCREATE INDEX "index_snf_core_customer_groups_on_customer_id" ON "snf_core_customer_groups" ("customer_id") /*application='Dummy'*/[0m
|
3389
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.5ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ('20250226193938') RETURNING "version" /*application='Dummy'*/[0m
|
3390
|
+
[1m[36mTRANSACTION (0.8ms)[0m [1m[35mCOMMIT /*application='Dummy'*/[0m
|
3391
|
+
Migrating to CreateSnfCoreWallets (20250227075048)
|
3392
|
+
[1m[36mTRANSACTION (0.6ms)[0m [1m[35mBEGIN /*application='Dummy'*/[0m
|
3393
|
+
[1m[35m (4.6ms)[0m [1m[35mCREATE 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"
|
3394
|
+
FOREIGN KEY ("user_id")
|
3395
|
+
REFERENCES "snf_core_users" ("id")
|
3396
|
+
) /*application='Dummy'*/[0m
|
3397
|
+
[1m[35m (1.7ms)[0m [1m[35mCREATE INDEX "index_snf_core_wallets_on_user_id" ON "snf_core_wallets" ("user_id") /*application='Dummy'*/[0m
|
3398
|
+
[1m[35m (1.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_snf_core_wallets_on_wallet_number" ON "snf_core_wallets" ("wallet_number") /*application='Dummy'*/[0m
|
3399
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ('20250227075048') RETURNING "version" /*application='Dummy'*/[0m
|
3400
|
+
[1m[36mTRANSACTION (0.5ms)[0m [1m[35mCOMMIT /*application='Dummy'*/[0m
|
3401
|
+
Migrating to ModifyStoreInventories (20250227102833)
|
3402
|
+
[1m[36mTRANSACTION (0.8ms)[0m [1m[35mBEGIN /*application='Dummy'*/[0m
|
3403
|
+
[1m[35m (3.7ms)[0m [1m[35mALTER TABLE "snf_core_store_inventories" DROP COLUMN "stock_quantity" /*application='Dummy'*/[0m
|
3404
|
+
[1m[35m (0.7ms)[0m [1m[35mALTER TABLE "snf_core_store_inventories" ADD "status" integer DEFAULT 0 NOT NULL /*application='Dummy'*/[0m
|
3405
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ('20250227102833') RETURNING "version" /*application='Dummy'*/[0m
|
3406
|
+
[1m[36mTRANSACTION (2.3ms)[0m [1m[35mCOMMIT /*application='Dummy'*/[0m
|
3407
|
+
Migrating to CreateSnfCoreOrders (20250305165926)
|
3408
|
+
[1m[36mTRANSACTION (0.2ms)[0m [1m[35mBEGIN /*application='Dummy'*/[0m
|
3409
|
+
[1m[35m (5.2ms)[0m [1m[35mCREATE 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"
|
3410
|
+
FOREIGN KEY ("user_id")
|
3411
|
+
REFERENCES "snf_core_users" ("id")
|
3412
|
+
, CONSTRAINT "fk_rails_400cf2029c"
|
3413
|
+
FOREIGN KEY ("store_id")
|
3414
|
+
REFERENCES "snf_core_stores" ("id")
|
3415
|
+
) /*application='Dummy'*/[0m
|
3416
|
+
[1m[35m (1.3ms)[0m [1m[35mCREATE INDEX "index_snf_core_orders_on_user_id" ON "snf_core_orders" ("user_id") /*application='Dummy'*/[0m
|
3417
|
+
[1m[35m (1.8ms)[0m [1m[35mCREATE INDEX "index_snf_core_orders_on_store_id" ON "snf_core_orders" ("store_id") /*application='Dummy'*/[0m
|
3418
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ('20250305165926') RETURNING "version" /*application='Dummy'*/[0m
|
3419
|
+
[1m[36mTRANSACTION (0.7ms)[0m [1m[35mCOMMIT /*application='Dummy'*/[0m
|
3420
|
+
Migrating to CreateSnfCoreOrderItems (20250305170248)
|
3421
|
+
[1m[36mTRANSACTION (0.7ms)[0m [1m[35mBEGIN /*application='Dummy'*/[0m
|
3422
|
+
[1m[35m (7.6ms)[0m [1m[35mCREATE 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"
|
3423
|
+
FOREIGN KEY ("order_id")
|
3424
|
+
REFERENCES "snf_core_orders" ("id")
|
3425
|
+
, CONSTRAINT "fk_rails_50419437e9"
|
3426
|
+
FOREIGN KEY ("store_inventory_id")
|
3427
|
+
REFERENCES "snf_core_store_inventories" ("id")
|
3428
|
+
) /*application='Dummy'*/[0m
|
3429
|
+
[1m[35m (1.7ms)[0m [1m[35mCREATE INDEX "index_snf_core_order_items_on_order_id" ON "snf_core_order_items" ("order_id") /*application='Dummy'*/[0m
|
3430
|
+
[1m[35m (1.5ms)[0m [1m[35mCREATE INDEX "index_snf_core_order_items_on_store_inventory_id" ON "snf_core_order_items" ("store_inventory_id") /*application='Dummy'*/[0m
|
3431
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ('20250305170248') RETURNING "version" /*application='Dummy'*/[0m
|
3432
|
+
[1m[36mTRANSACTION (0.5ms)[0m [1m[35mCOMMIT /*application='Dummy'*/[0m
|
3433
|
+
Migrating to CreateSnfCoreDeliveryOrders (20250305201008)
|
3434
|
+
[1m[36mTRANSACTION (0.7ms)[0m [1m[35mBEGIN /*application='Dummy'*/[0m
|
3435
|
+
[1m[35m (8.9ms)[0m [1m[35mCREATE 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, CONSTRAINT "fk_rails_450d17b1b2"
|
3436
|
+
FOREIGN KEY ("order_id")
|
3437
|
+
REFERENCES "snf_core_orders" ("id")
|
3438
|
+
) /*application='Dummy'*/[0m
|
3439
|
+
[1m[35m (2.7ms)[0m [1m[35mCREATE INDEX "index_snf_core_delivery_orders_on_order_id" ON "snf_core_delivery_orders" ("order_id") /*application='Dummy'*/[0m
|
3440
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.5ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ('20250305201008') RETURNING "version" /*application='Dummy'*/[0m
|
3441
|
+
[1m[36mTRANSACTION (0.6ms)[0m [1m[35mCOMMIT /*application='Dummy'*/[0m
|
3442
|
+
Migrating to CreateSnfCoreRoles (20250305232529)
|
3443
|
+
[1m[36mTRANSACTION (0.8ms)[0m [1m[35mBEGIN /*application='Dummy'*/[0m
|
3444
|
+
[1m[35m (9.6ms)[0m [1m[35mCREATE 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'*/[0m
|
3445
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.6ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ('20250305232529') RETURNING "version" /*application='Dummy'*/[0m
|
3446
|
+
[1m[36mTRANSACTION (0.5ms)[0m [1m[35mCOMMIT /*application='Dummy'*/[0m
|
3447
|
+
Migrating to CreateSnfCoreUserRoles (20250305232530)
|
3448
|
+
[1m[36mTRANSACTION (0.8ms)[0m [1m[35mBEGIN /*application='Dummy'*/[0m
|
3449
|
+
[1m[35m (9.9ms)[0m [1m[35mCREATE 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"
|
3450
|
+
FOREIGN KEY ("user_id")
|
3451
|
+
REFERENCES "snf_core_users" ("id")
|
3452
|
+
, CONSTRAINT "fk_rails_0e70d7ce00"
|
3453
|
+
FOREIGN KEY ("role_id")
|
3454
|
+
REFERENCES "snf_core_roles" ("id")
|
3455
|
+
) /*application='Dummy'*/[0m
|
3456
|
+
[1m[35m (1.6ms)[0m [1m[35mCREATE INDEX "index_snf_core_user_roles_on_user_id" ON "snf_core_user_roles" ("user_id") /*application='Dummy'*/[0m
|
3457
|
+
[1m[35m (1.3ms)[0m [1m[35mCREATE INDEX "index_snf_core_user_roles_on_role_id" ON "snf_core_user_roles" ("role_id") /*application='Dummy'*/[0m
|
3458
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.5ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ('20250305232530') RETURNING "version" /*application='Dummy'*/[0m
|
3459
|
+
[1m[36mTRANSACTION (0.8ms)[0m [1m[35mCOMMIT /*application='Dummy'*/[0m
|
3460
|
+
Migrating to AddPasswordFieldsToSnfCoreUsers (20250306074713)
|
3461
|
+
[1m[36mTRANSACTION (0.7ms)[0m [1m[35mBEGIN /*application='Dummy'*/[0m
|
3462
|
+
[1m[35m (4.0ms)[0m [1m[35mALTER TABLE "snf_core_users" ADD "password_digest" character varying NOT NULL /*application='Dummy'*/[0m
|
3463
|
+
[1m[35m (0.5ms)[0m [1m[35mALTER TABLE "snf_core_users" ADD "password_changed" boolean DEFAULT FALSE /*application='Dummy'*/[0m
|
3464
|
+
[1m[35m (0.6ms)[0m [1m[35mALTER TABLE "snf_core_users" ADD "reset_password_token" character varying /*application='Dummy'*/[0m
|
3465
|
+
[1m[36mActiveRecord::SchemaMigration Create (1.8ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ('20250306074713') RETURNING "version" /*application='Dummy'*/[0m
|
3466
|
+
[1m[36mTRANSACTION (0.4ms)[0m [1m[35mCOMMIT /*application='Dummy'*/[0m
|
3467
|
+
[1m[35m (1.6ms)[0m [1m[34mSELECT pg_advisory_unlock(869468062957908540) /*application='Dummy'*/[0m
|
3468
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|