Skip to content

Commit 5a7484c

Browse files
committed
chore: prepare db schema
1 parent 8f3dfe8 commit 5a7484c

2 files changed

Lines changed: 4 additions & 6 deletions

File tree

bin/docker-entrypoint

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ if [ -z "${LD_PRELOAD+x}" ]; then
66
export LD_PRELOAD
77
fi
88

9-
# Run DB migrations
10-
./bin/rails db:migrate
9+
# Prepare DB: schema:load on first boot, migrate on subsequent boots
10+
./bin/rails db:prepare
1111

1212
# Populate data on first boot (idempotent — skips if already populated)
1313
./bin/rails leaguepedia:bootstrap 2>/dev/null || true

config/database.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ development:
99
database: storage/development.sqlite3
1010
queue:
1111
<<: *default
12-
database: storage/development_queue.sqlite3
13-
migrations_paths: db/queue_schema.rb
12+
database: storage/development.sqlite3
1413

1514
test:
1615
<<: *default
@@ -22,5 +21,4 @@ production:
2221
database: storage/production.sqlite3
2322
queue:
2423
<<: *default
25-
database: storage/production_queue.sqlite3
26-
migrations_paths: db/queue_schema.rb
24+
database: storage/production.sqlite3

0 commit comments

Comments
 (0)