Execute the following command to execute migration on heroku.
heroku run rails db:migrate
Then
bash: heroku: command not found
I can't use the heroku command ...
After investigating, it is said that it will be fixed if you reinstall heroku.
Reinstall with the following command.
source <(curl -sL https://cdn.learnenough.com/heroku_install)
Check the version with the heroku command.
heroku -v
heroku/7.39.3 linux-x64 node-v12.16.2
The command has passed!
Recommended Posts