Add a migration for the unique constraint on images