ActiveRecord methods not working well on Heroku?
I had trouble with ordering the query in a specified manner. It was working well on development environment, but on the production side with Heroku, ordering wasn’t working at all.
So I just tried…
heroku restart heroku rake db:migrate
And bam! Ordering magically works now.