A Handbook of Mathematical Discourse
divide
1. Divides for integers An integer $m$ divides an integer $n$ (or: $m$ is a divisor or factor of $n$) if there is an integer $q$ for which $n= qm$. Some authors require that $q$ be uniquely determined, which has the effect of implying that no integer divides 0. (0 does not divide any other integer in any case.) This definition, with or without the requirement for uniqueness, appears to be standard in texts in discrete mathematics and number theory.
Citations: (69), (79).
2. Divides for commutative rings If $a$ and $b$ are elements of a commutative ring $R$, then $a$ divides $b$ if there is an element $c$ of $R$ with the property that $b =ac$. This appears to be the standard definition in texts in abstract algebra. I am not aware of any such text that requires uniqueness of $c$.
Of course, the second meaning is a generalization of the first one. I have known this to cause people to assert that every nonzero integer divides every integer, which of course is true in the second meaning, taking the commutative ring to be the ring of rationals or reals. Citation: (76).
Pages 76–77 of the book (PDF).