Creating Our App Databases
We will learn how to add our database configurations to docker-compose.yml.
When we created our Rails project, we did so with the default settings, which
assumed that we were using sqlite
for our database. Now that we are setting up
Postgres instead, the generated database.yml
file is not correct. We need to change it to something more suitable.
File database.yml
File in config/database.yml looks like this:
Get hands-on with 1400+ tech skills courses.