Skip to content

Support for the solid gems? #229

@leoncruz

Description

@leoncruz

Hey Mike! Thanks for the incredible work!

I would like to know if there are plans to support the solid gems too. All three have support to use multiple database, but the tenant creation is not supported yet.

I'm thinking something like:

# database.yml
production:
  primary:
    <<: *default
    database: storage/production/%{tenant}/main.sqlite3
    tenanted: true
  cache:
    <<: *default
    database: storage/production/%{tenant}/cache.sqlite3
    migrations_paths: db/cache_migrate
    tenanted: true
  queue:
    <<: *default
    database: storage/production/%{tenant}/queue.sqlite3
    migrations_paths: db/queue_migrate
    tenanted: true
  cable:
    <<: *default
    database: storage/production/%{tenant}/cable.sqlite3
    migrations_paths: db/cable_migrate
    tenanted: true

And then ApplicationRecord.create_tenant("mike") create the databases and migrate all then.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions