gregnavis / active_record_doctor

Identify database issues before they hit production.
MIT License
1.72k stars 56 forks source link

Will not run when RAILS_ENV=test #147

Closed dogweather closed 11 months ago

dogweather commented 1 year ago

Hi,

I'm trying to use A_R_D in CI, with a test database, and the test environment. It works fine when in development mode.

But this fails with Don't know how to build task 'active_record_doctor':

Gemfile

group :development, :test do
  gem 'active_record_doctor'
end

Command Line

env RAILS_ENV=test rake active_record_doctor

Don't know how to build task 'active_record_doctor'...

I've tried a few variations of setting the Rails env. There seems to be something weird going on when RAILS_ENV is set to test.

fatkodima commented 1 year ago

Can not reproduce. Can you reproduce with the latest changes from master? If so, it would be helpful if you provide us a sample rails app that demonstrates an issue.

dogweather commented 1 year ago

Thank you! I'll look into it. Please assume it's user error for now. I appreciate your time.

jasonkarns commented 11 months ago

@dogweather can this be closed?

dogweather commented 11 months ago

Yes! Thank you.