Skip to content

how to reproduce this script for tenancy #60

Open
@webalosarema

Description

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:

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions