user.rb 372 B

12345678910
  1. class User < ApplicationRecord
  2. # Include default devise modules. Others available are:
  3. # :confirmable, :lockable, :timeoutable and :omniauthable
  4. devise :masqueradable, :database_authenticatable, :registerable, :recoverable, :rememberable, :validatable, :omniauthable
  5. has_person_name
  6. has_many :notifications, foreign_key: :recipient_id
  7. has_many :services
  8. end