Revert "Upgrade rails version."

This reverts commit 83076fcefaa4b75723d2d70993bd117b38d94246.