The backend failure ("SQL, Ruby, Go not working") is likely caused by missing database migrations.
The Docker configuration does not appear to automatically run rail db:migrate upon startup.
Without the works table, the Go worker crashes immediately when trying to insert data, and the API returns 500 errors.
- Update
apps/api/Dockerfileordocker-compose.ymlto include a startup script that runs migrations. - Ensure
DATABASE_URLis correctly propagated.
- Rails
database.ymlis expectingfurukawa_api_developmentbut Docker is creatingfurukawa_archive_production. - We will standardize the database name to
furukawa_archive_productionin all configs to avoid confusion.
- Rebuild containers.
- Check if
workstable exists. - Verify API health endpoint (if not exists, create one).
Current Issue:
- Worker puts:
INSERT INTO works...-> Error:relation "works" does not exist. - API gets:
SELECT * FROM works...-> Error:relation "works" does not exist.
Resolution:
Add bin/rails db:prepare to the Docker command.