Made the migration detector use meta.local_fields instead of meta.fields.

Refs #21010.
Added missing deconstruct() methods.