To better understand Rails' Active Record, I built a "lite" version of it from scratch.