GCSE Chemistry help pleaseWatch
I can't remember the details. But you can always use GCSE Bitesize, they have a revsion section, an activity then a test to see how well you're doing.
As I'm sure you know, the metals form positive ions with ionic bonding and the non-metal forms a negative ion.
Therefore, the positive metal ions of the compound will be attracted to the negative electrode and will gain electrons (we say that the ions are 'reduced') to turn the ions back into atoms.
The negatively charged non-metal ions will be attracted to the positive electrode and lose electrons to become atoms again (the ions have been 'oxidised')