You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update the command to create the database only if it does not already exist. This can be achieved by checking the existence of the database before attempting to create it.
currently db:create fails on restart.
change will be allong those lines. if ! bundle exec rails db:version > /dev/null 2>&1; then bundle exec rails db:create; fi && bundle exec rails db:migrate
The text was updated successfully, but these errors were encountered:
husseljoo
changed the title
Make docker-compose restart works as expected
Make docker-compose restart work as expected
May 14, 2024
Update the command to create the database only if it does not already exist. This can be achieved by checking the existence of the database before attempting to create it.
currently db:create fails on restart.
change will be allong those lines.
if ! bundle exec rails db:version > /dev/null 2>&1; then bundle exec rails db:create; fi && bundle exec rails db:migrate
The text was updated successfully, but these errors were encountered: