Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Rake task to convert a Rails database from one platfrom to another, say Postgres to MySQL and back again. Uses two open db adapters and works with binary data in blobs.

branch: master

Fetching latest commit…


Cannot retrieve the latest commit at this time

Octocat-spinner-32 BSD-LICENSE
Octocat-spinner-32 README.rdoc
Octocat-spinner-32 convert.rake


Rake task to convert and transfer a Rails database from one database platform to another using two open db adapters. For example, from Postgres to MySQL, or the reverse.

The task deletes all data in the development database and then transfers the data from the production database into the development database.


  • Nice to RAM on large data sets

  • Works with blobs


  • No writes are happening to either database for the duration of this task.

  • Both schemas are identical (i.e. migrations are at the same VERSION)

  • The development data can be removed and replaced.


For a detailed example please see:

Place convert.rake in your lib/tasks directory.

rake db:convert:prod2dev
Something went wrong with that request. Please try again.