Fixed autoloading not working for migrations