That's not the move they made; they moved to Scala. Their original Rails app couldn't scale. They now use Rails on the front end, but the real data isn't Rails. This has been written about extensively:
http://highscalability.com/blog/2013/7/8/the-architecture-tw...
http://highscalability.com/scaling-twitter-making-twitter-10...