- Issue
docker-compose down --volume
to remove both db and app containers and the database volume as well. Removing the volume is necessary because we have structural change in the database (i.e. we have added the hours field. - Do
docker-compose build app
to rebuild your app image - Do
docker-compose up -d db app
to start both containers - Run
docker-compose exec app rails db:create
to create the databases - Run
docker-compose exec app rails db:migrate
to run the migrations - Run
docker-compose exec app rails db:seed
to run the seed
docker run -it b8f3669a1919 bash