A Virginia elementary school named for a prominent general of the Confederacy is to be renamed for the United States’ first African-American president.

The Richmond School Board voted 6-1 on Monday night to rename J. E. B. Stuart Elementary School as Barack Obama Elementary School. The vote came after the public weighed in and after students were asked to vote for their top choices out from a list of names that recognized both regional history and civil rights leaders.

Stuart was a U.S. Army officer from Virginia who joined the Confederate Army when Virginia seceded from the Union, and distinguished himself as a bold cavalry commander, reaching the rank of major general.

The student body, which is 95 percent black, actually voted for "Northside Elementary” as their top choice, reflecting geographical location. But “Barack Obama Elementary” came in second place, and the school administration ultimately decided to recommend this option to the school board.

“I think that we are moving forward in the city of Richmond,” Dawn Page, chairwoman of the Richmond School Board, told NBC News on Tuesday. “Our students can take ownership of having had something to do with renaming a school. They had input. Our students can aspire to be a president one day because we want our students to be able to realize their dreams. And I think President Obama is the perfect role model.”

As a capital of the Confederacy, Richmond has a long history of segregation and racial tension. Patrick Sapini, the school board vice chairman, said that the renaming was definitely a step in the right direction, but that if anyone thinks renaming a school will usher in significant social changes, “they are sadly mistaken.”

“Having a name of an African-American on anything, for that matter, is not going to change how we are treated,” said Sapini, who is black.

The renaming of J. E. B. Stuart Elementary School is part of a wider national conversation regarding what to do with monuments and institutions that honor the Confederacy. Most significantly, the decision to remove a statue of Confederate Gen. Robert E. Lee from a park in Charlottesville, Virginia, sparked violent protests last August.

But Sapini said the response in the community has been overwhelmingly positive, with many supporters offering to donate money to remake signs and plaques around the school.

“The biggest thing is providing students in Richmond public schools with opportunities and letting them know that there are infinite possibilities,” Page said. “Having that input and renaming the school is something that they will never forget. They are a part of history.”