Ruby implementation of Rails' ActiveRecord