scope enum in active_record adapter