From 3241d07ed17d11032d6908dde7b8a0d2dc0dcccc Mon Sep 17 00:00:00 2001 From: MDietermann Date: Thu, 13 Aug 2026 13:13:32 +0200 Subject: [PATCH] docs: note automatic migrations in README --- README.md | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index f018d4a..7385c30 100644 --- a/README.md +++ b/README.md @@ -44,23 +44,18 @@ Starts PostgreSQL and the server together: docker compose up --build ``` -The server will be available at `http://localhost:3000`. +The server will be available at `http://localhost:3000`. Migrations run automatically on startup — no manual step needed. ### 2b. Run locally Requires a running PostgreSQL instance matching your `DATABASE_URL`. ```bash -# Install sqlx-cli if needed -cargo install sqlx-cli --no-default-features --features rustls,postgres - -# Run migrations -sqlx migrate run - -# Start the server cargo run ``` +Migrations are embedded in the binary and run automatically when the server starts. + ## Environment variables | Variable | Description | Example |