Replace your local development database with a database pulled from the server.
- Add
gem capistrano-db-pull
to the :development group in your Gemfile - Add
require 'capistrano/db/pull
to your Capfile
- Run
cap <STAGE> db:pull
, e.g.cap production db:pull
to pull your production database
- Make sure a .my.cnf file is available in your home directory with your MySQL default login settings:
[client]
user=root
password=root