Build ActiveRecord from scratch