title: Rails - Writing a Where Query With an Or Clause
body: <p>I'm having trouble figuring out how to combine to queries into one with my Rails 5 app (mySQL).  I want <code>@activities</code> to return the Activity records that meet the criteria for Query 1 or 2.</p>
  
  <p>Can someone please help me?  Thank you!</p>
  
  <p>Query 1</p>
  
  <pre><code>@activities = Activity.where(owner_id: current_user.friend_ids, owner_type: "User")
  </code></pre>
  
  <p>Query 2</p>
  
  <pre><code>@activities = Activity.where(recipient_id: current_user.id)
  </code></pre>