Class: User

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/user.rb

Overview

The information all Users of the system have, such as name and email.

Schema Information

Table name: users

id                                :integer          not null, primary key
email                             :string           default(""), not null
encrypted_password                :string           default(""), not null
reset_password_token              :string
reset_password_sent_at            :datetime
remember_created_at               :datetime
sign_in_count                     :integer          default("0"), not null
current_sign_in_at                :datetime
last_sign_in_at                   :datetime
current_sign_in_ip                :inet
last_sign_in_ip                   :inet
created_at                        :datetime
updated_at                        :datetime
name                              :string           not null
type                              :string           not null
business_id                       :integer
provider_privacy_configuration_id :integer

Indexes

index_users_on_business_id                        (business_id) UNIQUE
index_users_on_email                              (email) UNIQUE
index_users_on_provider_privacy_configuration_id  (provider_privacy_configuration_id) UNIQUE
index_users_on_reset_password_token               (reset_password_token) UNIQUE

Direct Known Subclasses

Customer, Provider

Defined Under Namespace

Classes: RegistrationsController