unique constraints and test fixes
I added a migration to put in the unique constraints, then checked that the tests passed. some did not, so I went and fixed then even though they were unrelated to unique constraints.
I added a migration to put in the unique constraints, then checked that the tests passed. some did not, so I went and fixed then even though they were unrelated to unique constraints.