summaryrefslogtreecommitdiff
path: root/rvh/app
diff options
context:
space:
mode:
authormo khan <mo.khan@gmail.com>2020-03-15 13:22:25 -0600
committermo khan <mo.khan@gmail.com>2020-03-15 13:22:25 -0600
commit836fca2a506c8c153c6dd083d66f57a3ce98e057 (patch)
tree163ad95ef2deafd6ba32ae8314ad92e579fd4264 /rvh/app
parent6d24a76ae681de7d8e14fb3dd1334532abdba125 (diff)
Add employee subclasses
Diffstat (limited to 'rvh/app')
-rw-r--r--rvh/app/models/employee.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/rvh/app/models/employee.rb b/rvh/app/models/employee.rb
index b9571d1..ba59c1a 100644
--- a/rvh/app/models/employee.rb
+++ b/rvh/app/models/employee.rb
@@ -2,3 +2,15 @@ class Employee < ApplicationRecord
belongs_to :account
has_many :treatments
end
+
+class Nurse < Employee
+ attribute :certification, :string
+end
+
+class Physician < Employee
+ attribute :specialty, :string
+end
+
+class Technician < Employee
+ attribute :skill, :string
+end