It actually wouldn't work. Magnetic fields can attract or repel things that have an electrical charge, but if you've played with magnets before, you know that no matter what pole of the magnet you're using, it will only attract metal, never repel it...
Lucasestevescosta