adding teacher profiles

This commit is contained in:
2023-01-15 14:52:40 +02:00
parent 45f59f174b
commit 750bd76a7e
21 changed files with 288 additions and 32 deletions

10
app/models/teacher.rb Normal file
View File

@ -0,0 +1,10 @@
class Teacher < ApplicationRecord
belongs_to :member
validates :name , presence: true
validates :bio , presence: true
validates :picture , presence: true
mount_uploader :picture, PictureUploader
end