rails-guide-store/app/models/user.rb
Bill Niblock ef378a1f59
Some checks failed
CI / scan_ruby (push) Has been cancelled
CI / scan_js (push) Has been cancelled
CI / lint (push) Has been cancelled
CI / test (push) Has been cancelled
Dump
2025-01-24 12:32:29 -05:00

6 lines
162 B
Ruby

class User < ApplicationRecord
has_secure_password
has_many :sessions, dependent: :destroy
normalizes :email_address, with: ->(e) { e.strip.downcase }
end