diff options
Diffstat (limited to 'app/models/bed.rb')
-rw-r--r-- | app/models/bed.rb | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/app/models/bed.rb b/app/models/bed.rb deleted file mode 100644 index d41afe6..0000000 --- a/app/models/bed.rb +++ /dev/null @@ -1,5 +0,0 @@ -class Bed < ApplicationRecord - has_many :rafts, -> { order(:location) }, dependent: :destroy - accepts_nested_attributes_for :rafts - validates :location, presence: true, uniqueness: true -end |