title: Find records where an attribute is present
body: <p>I have a <code>User</code> model with the attributes <code>username</code>, <code>email</code> and <code>name</code>.</p>
  
  <p><code>username</code> and <code>email</code> are required upon signup, but not <code>name</code>.</p>
  
  <p>What would be the query to find all users that have filled out <code>name</code> (i.e. it is no nil)?</p>
  
  <p>The query should be at least Rails 3.2 and 4.0 compatible.</p>
  
  <p>I'm thinking something in the lines of:  </p>
  
  <pre><code>User.where(name: present?)
  </code></pre>