Sunday, October 26, 2008

Multiple database handling with Rails

What happen if your chief ask you to write an application that use more than one database? Wow… sound scaring, how to tell ActiveRecord that some models belong to a database and others to another? You’ll be surprised ‘cause it is quite easy.

http://www.railsonwave.it/railsonwave/2006/12/11/multiple-database-handlng-with-rails
http://www.robbyonrails.com/articles/2007/10/05/multiple-database-connections-in-ruby-on-rails
http://magicmodels.rubyforge.org/magic_multi_connections/

No comments: