Closed zergov closed 1 week ago
Closes: https://github.com/visevol/GihubVisualisation/issues/16
This PR adds a validation that prevents the creation of duplicated Repository on the same domain.
Repository
For example:
# not allowed ❌ Repository.create!(name: "duplicated_repo", domain: "github.com", path: "/example/duplicated_repository") Repository.create!(name: "duplicated_repo", domain: "github.com", path: "/example/duplicated_repository") # allowed ✅ Repository.create!(name: "duplicated_repo", domain: "github.com", path: "/example/duplicated_repository") Repository.create!(name: "duplicated_repo", domain: "gitlab.com", path: "/example/duplicated_repository")
Closes: https://github.com/visevol/GihubVisualisation/issues/16
This PR adds a validation that prevents the creation of duplicated
Repository
on the same domain.For example: