ruby-on-rails-3herokuschema-migration

How Do I insert a schema_migration record on Heroku


I was successful in resolviong this issue locally:

I am missing a migration file

but am now trying to duplicate the feat on Heroku and do not know how to access the database there. Can anyone guide me through the process?


Solution

  • You can open a PSQL session and use the same SQL you used locally:

    heroku pg:psql [DATABASE]