Thanks for your work in creating and maintaining this gem.
Currently, it only warns for app:
|
if path.starts_with? File.join(Rails.application.root, "app") |
We'd love if this was configurable, or perhaps respected config.autoload_paths. The reasoning is: occasionally in our data migrations, we'll use code in /lib. Some production instances of our app may run the migrations months later, when the underlying code may have changed, and any calls to /lib are therefore potentially unsafe.
Happy to submit a PR here if this sounds appropriate!
Thanks for your work in creating and maintaining this gem.
Currently, it only warns for
app:good-migrations/tasks/good_migrations.rake
Line 10 in 1921d7d
We'd love if this was configurable, or perhaps respected
config.autoload_paths. The reasoning is: occasionally in our data migrations, we'll use code in/lib. Some production instances of our app may run the migrations months later, when the underlying code may have changed, and any calls to/libare therefore potentially unsafe.Happy to submit a PR here if this sounds appropriate!