- Step 1:
heroku restart -a app_name
- Step 2:
heroku pg:reset DATABASE -a app_name
(no need to change theDATABASE
) - Step 3:
heroku run rake db:migrate -a app_name
- Step 4:
heroku run rake db:seed -a app_name
(if you have seed)
One liner
heroku restart -a app_name; heroku pg:reset DATABASE -a app_name --confirm APP-NAME; heroku run rake db:migrate -a app_name