Added unique index and foreign key index to migration