Migration: add application level migration logic, which is applied when the master is elected
replaces state style migrations