In the past, the city had a significant proportion of ethnic Germans, who had formed the majority since medieval times.
The city had a significant proportion of ethnic Germans. This was in the past. Ethnic Germans had formed the majority since medieval times.