Flatten migration