[YMZG-2][Qingsong] Tech: Upgrade rails to 4.0