Add the option autoMigrate.
Add the support of initOnMigrate option.