Skip to content

Commit

Permalink
Make sure we don't get duplicate devices
Browse files Browse the repository at this point in the history
  • Loading branch information
simoncoles committed Aug 11, 2024
1 parent 4d6f9d9 commit 6a08ce9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions db/migrate/20240811094712_make_ieee_addr_unique_in_devices.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class MakeIeeeAddrUniqueInDevices < ActiveRecord::Migration[7.2]
def change
add_index :devices, :ieee_addr, unique: true
end
end
3 changes: 2 additions & 1 deletion db/schema.rb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6a08ce9

Please sign in to comment.