Added a check on major Rails version number.