diff options
| author | mo khan <mo.khan@gmail.com> | 2020-03-28 14:18:08 -0600 |
|---|---|---|
| committer | mo khan <mo.khan@gmail.com> | 2020-03-28 14:18:08 -0600 |
| commit | 5eb83f62ff2649e0c2b16c1217cd4eb698198a2e (patch) | |
| tree | 2977251dacf2d6980c8ec3edf977959f4f7ec09e /rvh/app/models | |
| parent | d2f5ebf18131058b5f601fe3022f3bde45b4f5f8 (diff) | |
generate seed data
Diffstat (limited to 'rvh/app/models')
| -rw-r--r-- | rvh/app/models/treatment.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rvh/app/models/treatment.rb b/rvh/app/models/treatment.rb index c7f6ea3..4b64de1 100644 --- a/rvh/app/models/treatment.rb +++ b/rvh/app/models/treatment.rb @@ -1,4 +1,4 @@ class Treatment < ApplicationRecord - belongs_to :physician + has_one :physician, through: :patient belongs_to :patient end |
