What you ask is just the way of doing shcemasscheme theory in
Demazure and Gabriel, Introduction to algebraic geometry and algebraic groups. Translated from the French by J. Bell. North-Holland Mathematics Studies, 39. North-Holland Publishing Co., Amsterdam-New York, 1980 (Google Books, MR563524, zbMATH)