Skip to content

Commit

Permalink
Merge pull request #16731 from carbonin/validate_zone_name_within_region
Browse files Browse the repository at this point in the history
Ensure that the zone name is unique only within the current region
(cherry picked from commit 1bf5290)

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1530820
  • Loading branch information
Fryguy authored and simaishi committed Jan 3, 2018
1 parent a51d550 commit ee61a82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/zone.rb
@@ -1,6 +1,6 @@
class Zone < ApplicationRecord
validates_presence_of :name, :description
validates_uniqueness_of :name
validates :name, :unique_within_region => true

serialize :settings, Hash

Expand Down

0 comments on commit ee61a82

Please sign in to comment.