fix error if no migration 

Signed-off-by: sergey@whitediver.com <info@whitediver.com>