Replace your local development database with a database pulled from the server.
- Add
gem capistrano-db-pullto the :development group in your Gemfile - Add
require 'capistrano/db/pullto your Capfile
- Run
cap <STAGE> db:pull, e.g.cap production db:pullto 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