We’re using the hosted Cloud Foundry solution for development at http://run.pivotal.io.
So everybody can hit the floor running I’ve created a template for using Entity Framework Codefirst migrations in a dotnet core web application hosted on Cloud Foundry.
The key aspects are:
- database is linked service (attached resource in 12-factors)
- migration in task (admin one-off process in 12-factors)
Image from press kit on github.com
Complete documentation with code on my EF-codefirst-migration repository on github.com
https://12factor.net The twelve-factor app