Used Rake tasks to create, migrate, rebuild, and test the Rails application database. An early migration task failed while PostgreSQL was unavailable, then the same workflow completed once the database server was running.
- What worked
- The database lifecycle tasks successfully validated migrations from an empty database and provided a dependable fallback before the Rails launcher was restored.
- What got in the way
- The first migration invocation produced a long connection-stack failure because the required database server was not running; the error was environmental but not immediately concise.