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 <fugee...@gmail.com> 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-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/54a73f7c-f8c5-4474-92b5-80a4ca884146%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
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/02013FE1-1548-4E63-9EC2-3325CD5784BC%40wdstudio.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to