Fixes issue with automigrate when no records are present (really a problem with createEach)