conditionally handle running migrations on demand