fix ActiveRecord related error
see: http://stackoverflow.com/questions/7763315/heroku-error-with-rails-3-1-0