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

[ci skip] Fix shard docs #49658

Merged
merged 1 commit into from Oct 16, 2023
Merged

[ci skip] Fix shard docs #49658

merged 1 commit into from Oct 16, 2023

Conversation

eileencodes
Copy link
Member

We never explained how migrations paths work for shards. This fixes that and also adds the appropriate class setup. You no longer need to set a default shard as of #48353. In addition, ApplicationRecord should be used for the non-sharded db that also serves as the tenant/shard router. Then shards should get their own connection class since the schema differs.

We never explained how migrations paths work for shards. This fixes that
and also adds the appropriate class setup. You no longer need to set a
`default` shard as of rails#48353. In addition, `ApplicationRecord` should be
used for the non-sharded db that also serves as the tenant/shard router.
Then shards should get their own connection class since the schema
differs.
@rails-bot rails-bot bot added the docs label Oct 16, 2023
@eileencodes eileencodes merged commit 57d82b4 into rails:main Oct 16, 2023
@eileencodes eileencodes deleted the fix-shard-docs branch October 16, 2023 21:04
eileencodes added a commit that referenced this pull request Oct 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants