Class: User
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- User
- Includes:
- Users::PhoneAuthenticate
- Defined in:
- app/models/user.rb
Overview
Schema Information
Table name: users
id :bigint not null, primary key
discarded_at :datetime
email_address :string(255)
name :string(255)
password_digest :string(255)
phone_number :string(255) not null
created_at :datetime not null
updated_at :datetime not null
Indexes
index_users_on_discarded_at (discarded_at)
index_users_on_email_address (email_address) UNIQUE
index_users_on_phone_number (phone_number) UNIQUE
Instance Method Summary collapse
-
#errors ⇒ Object
Remove the password presence validation from the default implementation.
Methods included from Users::PhoneAuthenticate
#authenticate_by_phone, #send_otp
Instance Method Details
#errors ⇒ Object
Remove the password presence validation from the default implementation
31 32 33 |
# File 'app/models/user.rb', line 31 def errors super.tap { |errors| errors.delete(:password, :blank) } end |