title: how can I set one column in database when one user sign_out with devise
body: <p>I set one column called <code>if_login</code> in one table called <code>users</code>. When I execute <code>sign_in</code> path, I use the method <code>user_sign_in?</code> to set the column <code>if_login</code> value to 1. And how can I modify the codes in <code>devise</code> to set the column <code>if_login</code> to 0?</p>
  
  here is when excute 'sign_in' path ,the method will set the user's 'if_login' value=1
  
  <pre class="lang-rb prettyprint-override"><code>if user_signed_in?
      @user.update(if_login:1)
  end
  @user.save
  </code></pre>