Skip to content

Instantly share code, notes, and snippets.

View itzbernoulli's full-sized avatar

Ayodeji Oyinloye itzbernoulli

View GitHub Profile
@itzbernoulli
itzbernoulli / heroku_pg_db_reset.md
Created December 27, 2021 10:01 — forked from zulhfreelancer/heroku_pg_db_reset.md
How to reset PG Database on Heroku (for Rails app)?

It's important to note that running this reset will drop any existing data you have in the application

How to reset PG Database on Heroku?

  • Step 1: heroku restart
  • Step 2: heroku pg:reset DATABASE (no need to change the DATABASE)
  • Step 3: heroku run rake db:migrate
  • Step 4: heroku run rake db:seed (if you have seed)

One liner