Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Download with Heroku CLI
- heroku pg:backups:capture
- heroku pg:backups:download
- # Should create a dump file, let's name it 'latest.dump'
- pg_restore --verbose --clean --no-acl --no-owner -h localhost -d MY_APP_development latest.dump
- # Install 'seed_dump' gem
- bundle exec rake db:seed:dump EXCLUDE=encrypted_password,reset_password_token
Add Comment
Please, Sign In to add comment