When dumping your Heroku Postgre database (with heroku pg:backups:capture --app my-app and heroku pg:backups:download --app my-app), it will result in a binary dump.
...also a flag to omit the schema and output only the data of the dump: --data-only. This may be useful if you can restore the schema otherwise, e.g. when...
Best results in other decks
...latter is invoked, which performs the actual migrations. Knowing this, it is easy to dump the db only if migrations will run. First, enable conditional migrations: # config/deploy.rb set :conditionally_migrate...
...migrating runs them before 'deploy:migrating', 'db:dump' Background In case you haven't employed dump-creation on deploy before, you can do it like this: Install geordi on your...
It sometimes happen that a database dump, that would want to insert into your development database, does not match the current schema of the database. This often happens when you...
...have an old dump, but your current setup is up to date with the the master. Hint: In most cases it is sufficient to delete and recreate the local database...