Farmbot-Web-App/db/migrate/20180910143055_add_mounted_tool_id_to_device.rb

9 lines
228 B
Ruby
Raw Normal View History

2018-09-10 08:46:47 -06:00
class AddMountedToolIdToDevice < ActiveRecord::Migration[5.2]
def change
add_reference :devices,
:mounted_tool,
null: true,
foreign_key: { to_table: :tools }
end
end