Several tanker cars carrying ammonia derailed just north of Airdrie on Tuesday, forcing the evacuation of three nearby farms as a precaution.