The Artima Developer Community
Sponsored Link

Ruby Buzz Forum
Magic Multi-Connections: Connect across multiple databases in Rails

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Max Zone

Posts: 9170
Nickname: dzone
Registered: Jun, 2006

dzone.com is a link-sharing community where member participation determines what gets published
Magic Multi-Connections: Connect across multiple databases in Rails Posted: Apr 17, 2007 3:18 PM
Reply to this message Reply

This post originated from an RSS feed registered with Ruby Buzz by Max Zone.
Original Post: Magic Multi-Connections: Connect across multiple databases in Rails
Feed Title: dzone.com: ruby
Feed URL: http://feeds.dzone.com/dzone/ruby
Feed Description: dzone.com: fresh ruby and rails links for developers
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by Max Zone
Latest Posts From dzone.com: ruby

Advertisement
What if you want to access two or more databases ��� have 2+ connections open ��� at the same time. ActiveRecord requires that you subclass ActiveRecord::Base. That prevents you doing migrations from one database to another. It prevents you using one set of model classes on two or more databases with the same schema. Magic Multi-Connections allows you to write your models once, and use them for multiple database Rails databases at the same time. How? Using magical namespacing.

Read: Magic Multi-Connections: Connect across multiple databases in Rails

Topic: Automating Word with Ruby: The Application Object Previous Topic   Next Topic Topic: Documenting Ruby In Steel 1.1

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use