Add support for active_record.