Add uniqueness constraint on uid
Merge pull request #265 from alphagov/add_uniqueness_constraint_to_uid

Add uniqueness constraint on uid
Public timestamp is first ed. when no major change

When no major changes have been made to an edition public_updated_at
should return the public timestamp of the first edition not the latest
edition.