[YMZG-2][Qingsong] Tech: Upgrade rails 4 related stuff