Set migrations depends_on methods more accurately