Add a before migrate hook for opsworks