Remove unnecessary rails dependencies