use ARel for SQL generation