hubfeenix.fi/app/models/teacher.rb
2023-01-15 14:52:40 +02:00

11 lines
215 B
Ruby

class Teacher < ApplicationRecord
belongs_to :member
validates :name , presence: true
validates :bio , presence: true
validates :picture , presence: true
mount_uploader :picture, PictureUploader
end