You can have a separate DB for each model? Cheers, SAzima
On Feb 9, 8:59 am, Klaus Myrseth <[email protected]> wrote: > > How can you as elegantly as the standard database config use multiple > > database sources. > > Seems as I posted this I found the solution within the hour :D > > class SomeTable < ActiveRecord::Base > establish_connection :<some database alias from database.yml> > end > > Enjoy ;) > -- > Posted viahttp://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

