summaryrefslogtreecommitdiff
path: root/rvh/app
diff options
context:
space:
mode:
authormo khan <mo.khan@gmail.com>2020-03-15 13:39:35 -0600
committermo khan <mo.khan@gmail.com>2020-03-15 13:39:35 -0600
commit390bf52d92216af1538f1a0ea2c2fe4615f53c97 (patch)
treeb632e2ad43d3495004c47b68230713a0cc03a09f /rvh/app
parent836fca2a506c8c153c6dd083d66f57a3ce98e057 (diff)
Combine unique attributes in subclasses into array of qualifications
Diffstat (limited to 'rvh/app')
-rw-r--r--rvh/app/models/employee.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/rvh/app/models/employee.rb b/rvh/app/models/employee.rb
index ba59c1a..3a31c17 100644
--- a/rvh/app/models/employee.rb
+++ b/rvh/app/models/employee.rb
@@ -1,16 +1,14 @@
class Employee < ApplicationRecord
belongs_to :account
has_many :treatments
+ attribute :qualifications, :string, array: true
end
class Nurse < Employee
- attribute :certification, :string
end
class Physician < Employee
- attribute :specialty, :string
end
class Technician < Employee
- attribute :skill, :string
end