Add unique index on parks#code

This commit is contained in:
2025-10-07 23:45:25 -07:00
parent ac8338ee90
commit b9c2683d13
2 changed files with 3 additions and 0 deletions

View File

@@ -8,5 +8,7 @@ class CreateParks < ActiveRecord::Migration[8.0]
t.timestamps
end
add_index :parks, :code, unique: true
end
end