Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to reproduce this script for tenancy #60

Open
webalosarema opened this issue Mar 29, 2019 · 0 comments
Open

how to reproduce this script for tenancy #60

webalosarema opened this issue Mar 29, 2019 · 0 comments

Comments

@webalosarema
Copy link

webalosarema commented Mar 29, 2019

i use this script in a rails application , but at this time the application is getting multitenant and i have to create folders for each tenant , i will trigger the script with a rake task with whenever gem ...
What is the query of mongodb that will take the datas in each model (with a tenant_id) and store it in a folder with the name or id of tenant ... at this time there is no need to store tenant model. Just for the models data belongs to tenants.

Your Environment

  • Version used:
  • Server type and version:
  • Operating System and version:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant