title: Rails query, require all conditions in array
body: <p>I have two models, both associated with each other through has_many through.</p>
  
  <p>I can query the model and filter based on its associated records:</p>
  
  <p><code>Car.includes(:equipment).where(equipment: { id: [1, 2, 3] })</code></p>
  
  <p>The problem is that I want to require all of those records, rather than requiring just one of them.</p>
  
  <p>Is there a way to build a query that requires all of the values in the array (the [1, 2, 3] from the above example).  </p>
  
  <p>In other words, I'd like to query for all cars that have all three equipment (ids of 1, 2 and 3).</p>