Skip to content

Commit

Permalink
Add foreign key to hdm_proxy_id
Browse files Browse the repository at this point in the history
See suggestion in #27
  • Loading branch information
oneiros committed Feb 28, 2024
1 parent 01454d0 commit d0edce7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions db/migrate/20240228114101_add_foreign_key_to_hdm_proxy_id.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class AddForeignKeyToHdmProxyId < ActiveRecord::Migration[6.1]
def change
add_foreign_key :hosts, :smart_proxies, column: :hdm_proxy_id, on_delete: :nullify
end
end

0 comments on commit d0edce7

Please sign in to comment.