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

Wrap db:setup with Chewy.strategy(:mastodon) #24302

Merged
merged 1 commit into from
Mar 29, 2023

Conversation

rrgeorge
Copy link
Contributor

RAILS_ENV=development ./bin/rails db:setup fails with the error:

Chewy::UndefinedUpdateStrategy:   Index update strategy is undefined for current context.
  Please wrap your code with `Chewy.strategy(:strategy_name) block.`

This wraps it in Chewy.strategy(:mastodon) to fix the error.
Fixes #24255

Copy link
Contributor

@ClearlyClaire ClearlyClaire left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems good, but I'm starting to think we may want to use the urgent strategy when it's not explicitly wrapped…

@ClearlyClaire ClearlyClaire merged commit 782669a into mastodon:main Mar 29, 2023
@rrgeorge rrgeorge deleted the rrgeorge/wrap-db-setup branch March 29, 2023 14:13
ClearlyClaire pushed a commit to ClearlyClaire/mastodon that referenced this pull request Mar 31, 2023
ClearlyClaire pushed a commit to ClearlyClaire/mastodon that referenced this pull request Mar 31, 2023
ClearlyClaire pushed a commit to ClearlyClaire/mastodon that referenced this pull request Mar 31, 2023
arachnist pushed a commit to arachnist/mastodon that referenced this pull request Apr 4, 2023
Lastorder-DC pushed a commit to Lastorder-DC/mastodon that referenced this pull request Apr 5, 2023
Roboron3042 pushed a commit to Roboron3042/mastodon that referenced this pull request Apr 16, 2023
skerit pushed a commit to 11ways/mastodon that referenced this pull request Jul 7, 2023
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

Successfully merging this pull request may close these issues.

mastodon codespace error
2 participants