Have you got foreign key constraints set up in your DBs? If not, do so
now (and use Foreigner for your migrations), and make sure cascading
updates are on. That will change the foreign keys when the primary keys
change. Then renumber your primary keys somehow and merge the DBs.
Or at least that's one idea. If it were just one table, I'd advise
doing an SQL dump and insert, but I'm not sure how that would work with
associated records.
>
> Cheers
> George
Best,
--
Marnen Laibow-Koser
http://www.marnen.org
mar...@marnen.org
--
Posted via http://www.ruby-forum.com/.
Right.
> I guess I would then possibly need to reset the sequences on the DB..
Yes.
>
> Whichever way I look has drawbacks!
>
How is resetting the sequences a big drawback? It's easy and you'll
only need to do it once per DB.
> Cheers
> George
Best,
--
Marnen Laibow-Koser
http://www.marnen.org
mar...@marnen.org
Sent from my iPhone