fix upgdate version rails to 4