add rails mysql2 error fix method