migrator should be injected directly.