alphagov/publisher — pull request #195 by alext (2014-04-22 11:52:02+00:00)
Title: Update content models to get version_number uniqueness validation.

This includes a database uniqueness constraint on the version_number field. This can only be created when the existing duplicates have been cleaned up from the db. This therefore includes a migration to fix the existing duplicates in the db.

It was also necessary to fix a couple of the tests that were failing because no users had been setup. (The factories were previously creating this by coincidently).