diff options
| author | mo khan <mo.khan@gmail.com> | 2020-03-15 13:39:35 -0600 |
|---|---|---|
| committer | mo khan <mo.khan@gmail.com> | 2020-03-15 13:39:35 -0600 |
| commit | 390bf52d92216af1538f1a0ea2c2fe4615f53c97 (patch) | |
| tree | b632e2ad43d3495004c47b68230713a0cc03a09f /rvh/app | |
| parent | 836fca2a506c8c153c6dd083d66f57a3ce98e057 (diff) | |
Combine unique attributes in subclasses into array of qualifications
Diffstat (limited to 'rvh/app')
| -rw-r--r-- | rvh/app/models/employee.rb | 4 |
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 |
