Database connection error
astrodad opened this issue · 1 comments
astrodad commented
Hello,
Trying to use workless in dev at the moment and have the following in my config:
Delayed::Job.scaler = :null
I am getting the following:
activerecord-4.0.1/lib/active_record/dynamic_matchers.rb:22:in method_missing': undefined method
scaler=' for Delayed::Backend::ActiveRecord::Job(no database connection):Class (NoMethodError)
Everything was working well until I added the workless gem. DelayedJob seems to work fine. I'm using Postgres. The database is running just fine. Turning off workless, going into the console:
> Delayed::Job.all
Delayed::Backend::ActiveRecord::Job Load (2.2ms) SELECT "delayed_jobs".* FROM "delayed_jobs"
=> #<ActiveRecord::Relation
Any ideas? Thanks for looking.
astrodad commented
Ok never mind. I am an idiot. I had to read up on how the environment configurations work. All is well.