[Ruby] Converting mysql to postgres

Ryan Davis ryand-ruby at zenspider.com
Sat Aug 12 18:48:44 PDT 2006


On Aug 6, 2006, at 9:56 PM, Corey Jewett wrote:
> On Aug 6, 2006, at 3:19 PM, Ryan Davis wrote:
>> Easier would also be to use rails... Why would Og be a good idea for
>> this? I've not used it so maybe I'm missing something.
> Because you can't have the same set of models simultaneously point at
> 2 different databases with Rails. Otherwise, yeah ActiveRecord would
> solve the problem better.

Hrm... I'm not convinced. Simultaneous connections is a false  
requirement. I think you could migrate via active record directly  
just fine. You just have to call establish_connection to switch dbs.  
Either that, or you use YAML to dump your data as fixtures and load  
them into the new environment.



More information about the Ruby mailing list