re-add has_many :tools to device.rb
parent
3feae1f3a0
commit
fe06f09792
|
@ -10,6 +10,7 @@ class Device < ActiveRecord::Base
|
|||
has_many :plants, dependent: :destroy
|
||||
has_many :peripherals, dependent: :destroy
|
||||
has_many :tool_bays, dependent: :destroy
|
||||
has_many :tools, dependent: :destroy
|
||||
has_one :planting_area, dependent: :destroy
|
||||
validates :name, uniqueness: true
|
||||
|
||||
|
|
Loading…
Reference in New Issue