User model has activated boolean attribute just do @user.toggle :activated to change 'activated' value @user.activated => true @user.toggle :activated @user.save @user.activated => false