What is "double history"?

Solution 1:

This refers to having a "double period" of history, or two periods in a row.

When I went to high school in Australia in the '80s a period was typically 40 mins, with 8 per day. Double, and occasionally triple, periods were scheduled to allow for a longer uninterrupted block of teaching time.

The reason for using the phrase "double history" in the context you describe may be nothing to do with history per se. It's more likely used to suggest to the audience that the student in question considers a double period to be an excruciating length of time to have to sit next to your ex-girlfriend.