Change the way migrations are registered