Revert "Updated rails"

This reverts commit c0a301e915a555f23759f1d962d4c9084a13d518.