app/models/hood.rb in geopolitical-0.8.7 vs app/models/hood.rb in geopolitical-0.8.8
- old
+ new
@@ -10,6 +10,7 @@
field :zip, type: Integer
belongs_to :city
validates :city, presence: true
+ validates :name, uniqueness: { scope: :city_id }
end