adapt to OR mapper: ActiveRecord