Cast login_failures to integer

For some reason this wasn't necessary from the devbox, which also uses
postgres. Only when deploying is this required.