Revert "Update rails"

This reverts commit 470c994b65bfd5ba5c09730bd5b79c44fd4c0a29.