I notice that:
In fulton's book "Intersection Theory", $r$-cycles are defined in any algebraic scheme (see page 10). In particular, Weil divisors (i.e. cycles of codimension 1) are well defined. But In Hartshorne's book "Algebraic Geometry" says that Weil divisors are defined only over some noetherian integral schemes (see page 129). In fact Hartshorne define Weil divisors only on a noetherian integral separated scheme which is regular in codimension 1 (see page 130).
Which is correct?
Let's examine the definitions first. Here's Fulton's definitions:
And here's Hartshorne's:
As you can see, the definitions are relatively close:
The elements they have in common are some of the key features: working in a noetherian integral scheme and considering formal sums of integral closed subschemes.
If you compare the definitions to other sources like the Stacks Project or Vakil, you can see that these key features are basically present in everyone's definition (Stacks generalizes a little to the locally noetherian situation, but adds the requirement that the sums be locally finite). The general idea remains the same, but some of the implementation details are a little different - that doesn't make any one of the definitions correct or wrong, just slightly better suited for different work.