RAILS_ENV needs to be set for rake task to succeed