residency/app/models/member.rb
2022-12-24 15:07:25 +02:00

14 lines
349 B
Ruby

class Member < ApplicationRecord
# Include default devise modules. Others available are:
# , :lockable, :timeoutable, :trackable and :omniauthable
devise :database_authenticatable, :registerable,:confirmable,
:recoverable, :rememberable, :validatable
has_rich_text :bio
has_one_attached :picture
def admin?
true
end
end