Farmbot-Web-App/db/migrate/20180910143055_add_mounted_...

9 lines
228 B
Ruby

class AddMountedToolIdToDevice < ActiveRecord::Migration[5.2]
def change
add_reference :devices,
:mounted_tool,
null: true,
foreign_key: { to_table: :tools }
end
end