siebertm / ar-dbcopy
- Source
- Commits
- Network (2)
- Issues (0)
- Downloads (0)
- Wiki (1)
- Graphs
-
Tree:
54304b4
commit 54304b4f6d1c3a6ece083b2a016120620303d531
tree 66936fcb656ebd76ca5c6d7fb72c1e2790539480
parent 23d54e84e1f79ae029e1af5c2aaf5087abbb492f
tree 66936fcb656ebd76ca5c6d7fb72c1e2790539480
parent 23d54e84e1f79ae029e1af5c2aaf5087abbb492f
| name | age | message | |
|---|---|---|---|
| |
LICENSE | Sat Oct 03 06:02:08 -0700 2009 | |
| |
README | ||
| |
database.yml.example | Sat Oct 03 06:02:08 -0700 2009 | |
| |
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!

