Rail traffic resumes after grain car derailment