Destroying a Postgres DB on Heroku

前端 未结 4 745
Happy的楠姐
Happy的楠姐 2020-12-04 09:53

I want to destroy the database but I\'m not sure what the command would be. Does anyone know how to do this?

4条回答
  •  一向
    一向 (楼主)
    2020-12-04 10:28

    Simply follow the steps below. Run

    heroku pg:reset DATABASE

    to recreate the database with nothing in it, then run

    heroku run rake db:migrate

    to initialize the database with the correct schema & data.

    Look at the new heroku documentation it helps ;)

提交回复
热议问题