Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

heroku postgres reset database

heroku pg:reset DATABASE
heroku run rake db:migrate
# If you have a seed
heroku run rake db:seed
Comment

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

heroku restart; heroku pg:reset DATABASE --confirm APP-NAME; heroku run rake db:migrate
Comment

PREVIOUS NEXT
Code Example
Shell :: aws connect to eks cluster 
Shell :: How to install LAMP in Ubuntu 18.04? 
Shell :: add change to your last commit 
Shell :: reboot pi from command line 
Shell :: IF NOT DIR BASH 
Shell :: disable ssh login only keys 
Shell :: generate keystore on mac 
Shell :: search by commit message 
Shell :: rc.local not running 
Shell :: bash shortcuts 
Shell :: configuration file is group-readable. This is insecure linux 
Shell :: latest gradle version 
Shell :: terraform fmt 
Shell :: windows vpn service 
Shell :: change remote origin to fork 
Shell :: install git on linux 
Shell :: rm multiple folders 
Shell :: dotenv installation 
Shell :: grep nth line after match 
Shell :: add user to sudo 
Shell :: print last terminal commands 
Shell :: Push existing folder ghithub / gitLab 
Shell :: docker run in interactive mode 
Shell :: change password linux 
Shell :: Check for process and kill if running Linux 
Shell :: how to make git commit in the past 
Shell :: clear error log apache2 
Shell :: git merge strategies 
Shell :: rm directory ubuntu 
Shell :: powershell create file and directory 
ADD CONTENT
Topic
Content
Source link
Name
2+9 =