Run migrations on heroku-postgres

Please, how do I run migrations on the remote Heroku Postgres database?
I added a new column to a table but it’s throwing an error;

error: column {column_name} or relation {table_name} does not exists

while trying to enter data into the DB.

Hi @mac09

You can run migrations with heroku console :

Just run :

> node ace migration:run --force

Thank you @CrBast this was very helpful.

1 Like