Added indexes for posts.user_id and comments.commentable_type
Switch to ruby 2.0