You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 5, 2023. It is now read-only.
I've tried building something like that before. I think it was a bit slow to run as part of db migration. It is an incomplete solution, since it doesn't cover RBI changes when someone update a model.
An alternative is to enforce that generated files don't change in CI. We've done that in our team and it can help making sure gem RBI, model rbi & everything up-to-date before a PR is merged. Have you considered doing something like that instead?
It would be nice if the RBIs were auto-updated as a hook when db:migrate is run. Here's an example of how another project does that: https://github.com/ctran/annotate_models/blob/develop/lib/tasks/annotate_models_migrate.rake
The text was updated successfully, but these errors were encountered: