class User < ApplicationRecord has_secure_password has_many :sessions, dependent: :destroy has_many :members normalizes :email_address, with: ->(e) { e.strip.downcase } end def build_default_profile create_profile # Creates an empty profile for the new user end