Fix require_migration method