Fix typo in upper rails version constraint

[#50752269]