class User < ApplicationRecord define_role_field :role, in: [:guest, :staff, :admin], default: :guest end