Guest User

Untitled

a guest
Jan 19th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. # Download with Heroku CLI
  2. heroku pg:backups:capture
  3. heroku pg:backups:download
  4.  
  5. # Should create a dump file, let's name it 'latest.dump'
  6. pg_restore --verbose --clean --no-acl --no-owner -h localhost -d MY_APP_development latest.dump
  7.  
  8. # Install 'seed_dump' gem
  9. bundle exec rake db:seed:dump EXCLUDE=encrypted_password,reset_password_token
Add Comment
Please, Sign In to add comment