I added a postgres constraint and I got insert to work