Prevent execution of migrate before connection is open.