summaryrefslogtreecommitdiff
path: root/rvh/app/models/bed.rb
diff options
context:
space:
mode:
Diffstat (limited to 'rvh/app/models/bed.rb')
-rw-r--r--rvh/app/models/bed.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/rvh/app/models/bed.rb b/rvh/app/models/bed.rb
index 592bd8d..5ef472e 100644
--- a/rvh/app/models/bed.rb
+++ b/rvh/app/models/bed.rb
@@ -1,6 +1,6 @@
class Bed < ApplicationRecord
belongs_to :care_centre
- belongs_to :patient
+ belongs_to :patient, optional: true
def available?
patient.blank?