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

GoodJob has pending database migrations after v2 -> v3 #920

Closed
stephenhuey opened this issue Apr 11, 2023 · 2 comments
Closed

GoodJob has pending database migrations after v2 -> v3 #920

stephenhuey opened this issue Apr 11, 2023 · 2 comments

Comments

@stephenhuey
Copy link

Just upgraded from 2.15.1 to 2.99.0 and ran rails g good_job:update and rails db:migrate and then changed Gemfile to 3.15.0 but the Batches view tells me "GoodJob has pending database migrations." Not sure I need the Batches view right now so I might not be too worried. :)

@bensheldon
Copy link
Owner

@stephenhuey thanks for opening this issue! I think everything is working as intended, but always good to doublecheck 😄

Batches were introduced in v3.10.0. The migration message would be because you upgraded past that version from v2.99 to v3.15.0. No problem, you can run rails g good_job:update

My interpretation of semver for GoodJob is that if a new feature requires a database migration, I'll leave the migration optional (and show that "pending database migrations") message until the next major release.

@stephenhuey
Copy link
Author

Much obliged @bensheldon! I didn't think to run update again. But nice to know it was optional--I think your interpretation makes sense. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

2 participants