Topic: Rake Task works in development but doesn't oin production
For debugging I reduced the code of the task to to the following:
puts User.exists? -> true
puts Agent.exists? -> true in development but "uninitialized constant Object::Agent" in production
Code was deployed before, rake RAILS_ENV=production db:migrate' and even rake RAILS_ENV=production db:schema:load was executed
The application works fine, the problem only appears with the rake task.
class User < ActiveRecord::Base
class Agent < ActiveRecord::Base
Can this be a Cache issue?
Thanks in advance