On Monday, March 13, 2017 at 7:51:03 PM UTC-4, Walter Lee Davis wrote:
>
> There are a number of different ways you can manage this. One popular 
> approach is to use the Apartment gem to create what is known as the 
> "multi-tenant" database pattern. See if that term gets you closer to what 
> your are looking for. 
>
> One database (or at least one schema) per site is the usual method, so 
> maybe say a little more about why you feel that you need to have the same 
> database for multiple sites. What makes these sites special, or what makes 
> the number of databases constrained? 
>
> Walter 
>
> > On Mar 13, 2017, at 6:30 PM, fugee ohu <fuge...@gmail.com <javascript:>> 
> wrote: 
> > 
> > i have the idea to use the same database for multiple sites but i guess 
> each site needs it's own database in addition? Anyone  can guide me? 
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> Groups "Ruby on Rails: Talk" group. 
> > To unsubscribe from this group and stop receiving emails from it, send 
> an email to rubyonrails-ta...@googlegroups.com <javascript:>. 
> > To post to this group, send email to rubyonra...@googlegroups.com 
> <javascript:>. 
> > To view this discussion on the web visit 
> https://groups.google.com/d/msgid/rubyonrails-talk/54a73f7c-f8c5-4474-92b5-80a4ca884146%40googlegroups.com.
>  
>
> > For more options, visit https://groups.google.com/d/optout. 
>
table has
The users "role" is the condition that determines which database the user 
will access  although in this case it's not roles it's just a field in the 
users table that says which database the user will be using

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/8b108fe7-edb8-4728-b302-0ac9725ef522%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to