Hey there,
Let’s say you have a simple application, that already have a users table
and
you want to re-use that on a different app.
How do you work with that?
[]'s
Rodrigo D.
Hey there,
Let’s say you have a simple application, that already have a users table
and
you want to re-use that on a different app.
How do you work with that?
[]'s
Rodrigo D.
Hi Rodrigo,
On Sun, 2010-01-10 at 18:01 -0200, Rodrigo D. wrote:
Hey there,
Let’s say you have a simple application, that already have a users
table and you want to re-use that on a different app.How do you work with that?
As long as the database is (one of) the ones specified in database.yml,
all you need to do is create the model in your new app.
HTH,
Bill
Hmm… ok.
What about if you want to use multiple databases in your app?
[]'s
Rodrigo D.
On Sun, 2010-01-10 at 19:51 -0200, Rodrigo D. wrote:
Hmm… ok.
What about if you want to use multiple databases in your app?
Google is a Rails developer’s best friend. The solution you’re looking
for depends a lot on how you want to manage your connections.
Googling ‘rails multiple databases in database.yml’
http://www.google.com/search?q=rails+multiple+databases+in
+database.yml&ie=utf-8&oe=utf-8&aq=t&rls=com.ubuntu:en-US:unofficial&client=firefox-a
Googling ‘rails multiple database connections’
3Aen-US%3Aunofficial&hs=uEm&q=rails+multiple+database
+connections&btnG=Search&aq=f&oq=&aqi=
HTH,
Bill
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs