add ability to set migration dir within function for future tests