Edited migration to add unique indexes