Ruby on Rails Monday, March 13, 2017


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> 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.
> To post to this group, send email to rubyonra...@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.

I want each app/site to have it's own database but i also wanna let them update a commonly shared database in addition to each apps own database

--
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+unsubscribe@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/7ec4af7b-2b68-4bf6-aad3-4152d2f42e21%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment