Skip to content

Rake tasks to migrate a Rails DB from MySQL to PostgreSQL via YAML

Notifications You must be signed in to change notification settings

jmoses/rails-db-migrate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

= rails-db-migrate

This is just a set of rake tasks to migrate (or backup and restore) a DB vai YAML files.

This version came from http://ducktyped.com/2007/6/12/how-to-change-databases-using-ruby-on-rails initially.

= Changes

* Be nicer on RAM and the DB.  Don't fetch all records at once.  If the table has an id field, fetch 1000 at a time.  If not, fall back to just fetching all of the (for m2m xref tables).

* Removed dependency on Dr. Nic's Magic Models

= Credits

Initial version: http://blog.leetsoft.com/2006/5/29/easy-migration-between-databases
set_sequences added: http://ducktyped.com/2007/6/12/how-to-change-databases-using-ruby-on-rails

About

Rake tasks to migrate a Rails DB from MySQL to PostgreSQL via YAML

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages