quantum-ai-v3/docs
Claude c8567e12cc Fix Railway startup errors and add PostgreSQL setup guide
**Fixed Railway Startup Issues:**
- Reorder commands: migrate before backup_users
- Make backup_users handle missing tables gracefully
- Add proper error handling for unmigrated databases
- Check for table existence before querying users

**Added Railway Setup Guide:**
- Complete PostgreSQL configuration instructions
- Environment variables template
- Database verification commands
- Troubleshooting steps for persistent storage

**Key Issue Resolution:**
- Railway using SQLite (ephemeral) instead of PostgreSQL
- Users disappear because SQLite resets on each deployment
- Need to add PostgreSQL database addon in Railway

**Next Steps:**
1. Add PostgreSQL database in Railway dashboard
2. Verify DATABASE_URL environment variable
3. Deploy with persistent database
4. Create admin user via Railway console

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-12 09:16:39 +05:30
..
AGENT_SETUP_CHECKLIST.md Implement wallet deduction after success & fix display issues 2025-07-10 16:34:03 +05:30
CLAUDE.md Update documentation with CSRF token requirements 2025-07-12 08:57:47 +05:30
DJANGO_RECREATION_GUIDE.md Implement individual agent architecture with simplified template structure 2025-07-10 09:01:11 +05:30
MANUAL_AGENT_CREATION_GUIDE.md Implement wallet deduction after success & fix display issues 2025-07-10 16:34:03 +05:30
RAILWAY_SETUP.md Fix Railway startup errors and add PostgreSQL setup guide 2025-07-12 09:16:39 +05:30
STRUCTURE_UPDATES.md Implement individual agent architecture with simplified template structure 2025-07-10 09:01:11 +05:30