Drop migrations and change entity relationships to avoid cascade deleting.