Quantcast
Channel: Active questions tagged config - Stack Overflow
Viewing all articles
Browse latest Browse all 5049

Getting config.eager_load is set to nil while trying to run rails c in test

$
0
0

I'm trying to run the rails (4.1.2) console

rails c RAILS_ENV=test

And I'm getting this:

> config.eager_load is set to nil. Please update your> config/environments/*.rb files accordingly:> >   * development - set it to false   * test - set it to false (unless> you use a tool that preloads your test environment)   * production -> set it to true> > /Users/xxxxxx/.rvm/gems/ruby-2.2.2/gems/activerecord-4.1.12/lib/active_record/connection_adapters/connection_specification.rb:257:in> `resolve_symbol_connection': 'RAILS_ENV=test' database is not> configured. Available: ["development", "test", "production"]> (ActiveRecord::AdapterNotSpecified)

Yet in my test.rb I have config.eager_load = false and my database.yml is ok (I ran rake db:schema:load RAILS_ENV=test without issues.

How can I solve this?


Viewing all articles
Browse latest Browse all 5049

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>