You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: verify_token.rb
    path of file: ./repos/master_rails_by_actions/app/models
    
    the code of the file until where you have to start completion: class VerifyToken < ApplicationRecord

  validates_presence_of :token
  validates_presence_of :cellphone

  scope :availa
    
  def self.upsert cellphone, token
    cond = { cellphone: cellphone }
    record = self.find_by(cond)
    unless record
      record = self.create cond.merge(token: token, expired_at: Time.now + 10.minutes)
    else
      record.update_attributes token: token, expired_at: Time.now + 10.minutes
    end