If you really want (need) to demagnetize the entire railcar, you should read the article at the following link:
http://www.redlandsfortnightly.org/subm.htm
During WWII, submarines and other ships were actually demagnetized to help them avoid detonating submerged German mines armed with...