Trying to run a rails migration on a running docker compose container throws this error:
$ docker-compose run webapp rails db:migrate
I don't know why this is happening, and I've filed an issue, but in the meantime, here's a workaround:
docker-compose run webapp bundle exec rails db:migrate
Please answer this question with a proper fix, and I'll accept your answer.