In electrolysis, the positive ions produced are attracted towards the negative electrode. Thus positive ions move towards the negative electrode. Whereas, negative ions produced are attracted towards the positive electrode. Hence negative ions move towards the positive electrode.