Search code examples
postgresqlherokurakerails-migrationsdbmigrate

heroku rake db:migrate failing - how to diagnose/fix?


heroku rake db:migrate --trace --app app-name
  !   Internal server error

This was working fine before.

How to diagnose this?

rake db:migrate works fine on my local db. There is no entry in the log. VERSION=xxx did not help either.

Using rake 0.8.7.


Solution

  • Ok heroku support already helped me out!

    Here the workaround

    "try running the migration from a bash dyno?"

    $ heroku run bash
    

    "Then just run your migration command (something like):"

    $ bundle exec rake db:migrate --trace
    

    This was a good work around I could migrate my application.

    Cheers,

    Joel