mirror of
https://github.com/czhu12/canine.git
synced 2025-12-21 10:49:49 -06:00
29 lines
1.1 KiB
Ruby
29 lines
1.1 KiB
Ruby
# == Schema Information
|
|
#
|
|
# Table name: users
|
|
#
|
|
# id :bigint not null, primary key
|
|
# admin :boolean default(FALSE)
|
|
# announcements_last_read_at :datetime
|
|
# email :string default(""), not null
|
|
# encrypted_password :string default(""), not null
|
|
# first_name :string
|
|
# last_name :string
|
|
# remember_created_at :datetime
|
|
# reset_password_sent_at :datetime
|
|
# reset_password_token :string
|
|
# created_at :datetime not null
|
|
# updated_at :datetime not null
|
|
#
|
|
# Indexes
|
|
#
|
|
# index_users_on_email (email) UNIQUE
|
|
# index_users_on_reset_password_token (reset_password_token) UNIQUE
|
|
#
|
|
class User < ApplicationRecord
|
|
# Include default devise modules. Others available are:
|
|
# :confirmable, :lockable, :timeoutable, :trackable and :omniauthable
|
|
devise :omniauthable, :database_authenticatable, :registerable,
|
|
:recoverable, :rememberable, :validatable
|
|
end
|