diff options
| author | mo khan <mo.khan@gmail.com> | 2020-03-15 15:38:46 -0600 |
|---|---|---|
| committer | mo khan <mo.khan@gmail.com> | 2020-03-15 15:38:46 -0600 |
| commit | 290afe2896d96fee632197386ded6dab82918d47 (patch) | |
| tree | a6f89a31a319ef6ff99064b1b88a5e173724b6db /rvh/app | |
| parent | fac25fd9d8220c3aaee2534831e3843a2dd5a706 (diff) | |
Rename employees to staff
Diffstat (limited to 'rvh/app')
| -rw-r--r-- | rvh/app/models/care_centre.rb | 2 | ||||
| -rw-r--r-- | rvh/app/models/consumption.rb | 2 | ||||
| -rw-r--r-- | rvh/app/models/nurse.rb | 2 | ||||
| -rw-r--r-- | rvh/app/models/physician.rb | 2 | ||||
| -rw-r--r-- | rvh/app/models/staff.rb (renamed from rvh/app/models/employee.rb) | 2 | ||||
| -rw-r--r-- | rvh/app/models/technician.rb | 2 | ||||
| -rw-r--r-- | rvh/app/models/volunteer.rb | 3 |
7 files changed, 7 insertions, 8 deletions
diff --git a/rvh/app/models/care_centre.rb b/rvh/app/models/care_centre.rb index 90bd3cc..d014559 100644 --- a/rvh/app/models/care_centre.rb +++ b/rvh/app/models/care_centre.rb @@ -1,4 +1,4 @@ class CareCentre < ApplicationRecord - belongs_to :nurse_in_charge, class_name: Nurse.name, foreign_key: :employee_id + belongs_to :nurse_in_charge, class_name: Nurse.name, foreign_key: :nurse_id has_many :beds end diff --git a/rvh/app/models/consumption.rb b/rvh/app/models/consumption.rb index 61a91dc..47a2e71 100644 --- a/rvh/app/models/consumption.rb +++ b/rvh/app/models/consumption.rb @@ -1,5 +1,5 @@ class Consumption < ApplicationRecord belongs_to :patient belongs_to :item - belongs_to :physician, class_name: Physician.name, foreign_key: :employee_id + belongs_to :physician, class_name: Physician.name, foreign_key: :physician_id end diff --git a/rvh/app/models/nurse.rb b/rvh/app/models/nurse.rb index 0c06dc1..230d82d 100644 --- a/rvh/app/models/nurse.rb +++ b/rvh/app/models/nurse.rb @@ -1,2 +1,2 @@ -class Nurse < Employee +class Nurse < Staff end diff --git a/rvh/app/models/physician.rb b/rvh/app/models/physician.rb index abec287..58c7fdb 100644 --- a/rvh/app/models/physician.rb +++ b/rvh/app/models/physician.rb @@ -1,2 +1,2 @@ -class Physician < Employee +class Physician < Staff end diff --git a/rvh/app/models/employee.rb b/rvh/app/models/staff.rb index 89cba4c..1333cce 100644 --- a/rvh/app/models/employee.rb +++ b/rvh/app/models/staff.rb @@ -1,4 +1,4 @@ -class Employee < ApplicationRecord +class Staff < ApplicationRecord belongs_to :account has_many :treatments serialize :qualifications, Array diff --git a/rvh/app/models/technician.rb b/rvh/app/models/technician.rb index b537f79..8bca1a2 100644 --- a/rvh/app/models/technician.rb +++ b/rvh/app/models/technician.rb @@ -1,2 +1,2 @@ -class Technician < Employee +class Technician < Staff end diff --git a/rvh/app/models/volunteer.rb b/rvh/app/models/volunteer.rb index 3105137..82dd925 100644 --- a/rvh/app/models/volunteer.rb +++ b/rvh/app/models/volunteer.rb @@ -1,3 +1,2 @@ -class Volunteer < ApplicationRecord - belongs_to :account +class Volunteer < Staff end |
