title: Is there a way to combine where and where.not into one condition in Rails?
body: <p>I have an <code>Event</code> model, that has <code>user_id</code> inside it. I want to select all objects of this model, with specified <code>user_id</code> but not including specific events. So I can do it with a query like that:</p>
  
  <pre><code>Event.where(user_id: user.id).where.not(id: id)
  </code></pre>
  
  <p>But can I combine these 2 <code>where</code> functions into one?</p>
  
  <p>I know that if I need to find, for example, events with specified <code>id</code>s and <code>user_id</code>s, I can do it this way:</p>
  
  <pre><code>Event.where(user_id: user_id).where(id: id)
  </code></pre>
  
  <p>and I can compact it using one <code>where</code> call instead of two:</p>
  
  <pre><code>Event.where(user_id: user_id, id: id)
  </code></pre>
  
  <p>but can I do the same thing if I am using <code>where</code> and <code>where.not</code>?</p>