since rails4, mysql is strict mode, so loosen it