Rebuilding Rails (and ActiveRecord) from scratch