proper model for a multi site rails app
- by JeffTaggarty
Hi Guys, I am not sure if this is correct place to ask this question. My apologies if it is not.
I need to create a web app where people will sign up, call it main-app.com, when they sign up my code will generate a usersite.my-app.com, they will login and only be able to manage their mini site. My question is, is it correct to model this out by creating a table for site, a table for user, users belong to site and site has many users. Then I should create a content table that belongs to user AND site?
is that right?
Thanks
Jeff