playground/app/models/user.rb

7 lines
181 B
Ruby
Raw Normal View History

2026-05-17 03:44:36 +00:00
class User < ApplicationRecord
has_secure_password
has_many :sessions, dependent: :destroy
has_many :updates
normalizes :email_address, with: ->(e) { e.strip.downcase }
end