I want to write script, that will migrate one database (with models) to
another database (with another models) using ActiveRecord and all of its
benefits. It is possible? Please give me any tips.
I am moving database form old app to new one. It would be great to use
ActiveRecord for this complex task.
An important rule of programming is to always be as incremental as
The bigger a change you make, the higher the risks go.
If you want to deliver new features to a client, as soon as possible,
the data in the old database, and hook up to them using ActiveRecord’s
system to set your models’ table names, primary keys, etc.
The book /Rails Recipes/ lists these techniques under “Integrating with
Don’t make the mountain come to Mohammed, if Mohammed can just go to the
Over time, when you need new tables, or if you find occassion to
the existing tables, you can rename them closer to ActiveRecord’s