Class: PhoneData

Inherits:
ApplicationRecord show all
Defined in:
app/models/phone_data.rb

Overview

typed: ignore

Schema Information

Table name: phone_data

id                :bigint           not null, primary key
is_verified       :boolean          default(FALSE)
phone             :string(191)
verification_code :string(191)
created_at        :datetime         not null
updated_at        :datetime         not null

Instance Method Summary collapse

Methods inherited from ApplicationRecord

sync_carrierwave_url

Instance Method Details

#verified?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'app/models/phone_data.rb', line 14

def verified?
  is_verified == true
end