Remove 3.1 rails dependency