title: Ruby: Find an SQL record and update a boolean field
body: <p>I'm using Sinatra and the <a href="https://github.com/brianmario/mysql2" rel="nofollow">mysql2</a> gem.</p>
  
  <p>I'm trying to do a simple update of a field called "process_complete", which is a boolean.</p>
  
  <p>My code is:</p>
  
  <pre><code>    user = User.first!(email: user_email)
      user.update(:process_complete =&gt; true)
  </code></pre>
  
  <p>I get the error:</p>
  
  <pre><code>19:30:05 web.1  |    INFO -  (0.000603s) SELECT * FROM `users` WHERE (`email` = 'user@email.com') LIMIT 1
  19:30:05 web.1  | 2015-10-18 19:30:05 - Sequel::MassAssignmentRestriction - method process_complete= doesn't exist:
  </code></pre>
  
  <p>Am I doing something wrong here? When I look up <code>SELECT * FROM</code>users<code>WHERE (</code>email<code>= 'user@email.com') LIMIT 1</code> in mysql I see my user, and "process_complete" is set as <code>0</code>.</p>
  
  <p>What am I doing wrong here?</p>