backend: add unique index on connections.name&path
This commit is contained in:
parent
ae4e61abbf
commit
bbdc8ff395
1 changed files with 9 additions and 0 deletions
|
@ -0,0 +1,9 @@
|
|||
class AddUniqueIndexToConnections < ActiveRecord::Migration[7.1]
|
||||
def up
|
||||
add_index :connections, [:name, :path], unique: true
|
||||
end
|
||||
|
||||
def down
|
||||
remove_index :connections, [:name, :path], unique: true
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue