Fix sql authenticator for latest rails version.