siebertm / ar-dbcopy

small utility to copy data from on dbms to another via active_record

This URL has Read+Write access

siebertm (author)
Sun Oct 04 04:50:31 -0700 2009
commit  54304b4f6d1c3a6ece083b2a016120620303d531
tree    66936fcb656ebd76ca5c6d7fb72c1e2790539480
parent  23d54e84e1f79ae029e1af5c2aaf5087abbb492f
name age message
file LICENSE Sat Oct 03 06:02:08 -0700 2009 initial version. worksforme! [siebertm]
file README Loading commit data...
file database.yml.example Sat Oct 03 06:02:08 -0700 2009 initial version. worksforme! [siebertm]
file dbcopy.rb
README
AR-DBCopy

Simple script to copy data from one database to another.
This script can be used to migrate from one Database system
to another one, e.q. when the SQL dumps are not compatible.
Database agnosticism is achieved by using ActiveRecord.

The script just defines 2 connections, looks at the tables,
creates ActiveRecord model classes on-the-fly and copies over
the data.

Configure the databases using the database.yml.example as a
template (the format is the same as Rails's database.yml)

Then, run the script. The script only copies data, not structure,
so make sure that you created the schema  and all tables in
the destination database already (use rake db:schema:load)


Author: Michael Siebert <siebertm85@googlemail.com>

This software was written in less than an hour. So it may
contain bugs!