Multi-Multi-tenancy?
So my application allows users to create multiple websites, Website model has_many Pages.
Also Website has a domain and subdomain columns - (let's assume subdomain is mirage-ltd) so user can access mirage-ltd.my-jump-start-app.com/control-panel to manage their website.
I'm thinking of two possible solutions:
1) Forget about creating a Website model and just use the Account model which already has a domain and subdomain columns, but I don't want the user to have a separate billing for each account the way Jumpstart setup by default, I would greatly appreciate it if anyone knows how to do that.
2) Make the Website model belongs_to Account and keep domain and subdomain columns in both tables, in another word, adding website_id column to pages and scope to Website and keep all other models not related to website scoped to account, would this work or it's going to mess things up?
Thank you
Also Website has a domain and subdomain columns - (let's assume subdomain is mirage-ltd) so user can access mirage-ltd.my-jump-start-app.com/control-panel to manage their website.
I'm thinking of two possible solutions:
1) Forget about creating a Website model and just use the Account model which already has a domain and subdomain columns, but I don't want the user to have a separate billing for each account the way Jumpstart setup by default, I would greatly appreciate it if anyone knows how to do that.
2) Make the Website model belongs_to Account and keep domain and subdomain columns in both tables, in another word, adding website_id column to pages and scope to Website and keep all other models not related to website scoped to account, would this work or it's going to mess things up?
Thank you
Notifications
You’re not receiving notifications from this thread.