residency/app/models/member.rb

14 lines
349 B
Ruby
Raw Normal View History

2022-12-20 16:05:26 +01:00
class Member < ApplicationRecord
2022-12-20 16:29:05 +01:00
# Include default devise modules. Others available are:
# , :lockable, :timeoutable, :trackable and :omniauthable
devise :database_authenticatable, :registerable,:confirmable,
:recoverable, :rememberable, :validatable
2022-12-22 15:45:55 +01:00
has_rich_text :bio
2022-12-24 14:07:25 +01:00
has_one_attached :picture
2022-12-22 15:45:55 +01:00
def admin?
true
end
2022-12-20 16:05:26 +01:00
end