Skip to content

Commit

Permalink
Merge pull request #28 from betadots/add_foreign_key
Browse files Browse the repository at this point in the history
Add foreign key to hdm_proxy_id
  • Loading branch information
tuxmea committed Mar 14, 2024
2 parents 6051a1e + d0edce7 commit 29ad3c8
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 29ad3c8

Please sign in to comment.