]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/acl.rb
Add explicit primary key declaration for changeset subscriptions
[rails.git] / app / models / acl.rb
index 8bb4ae4b9dd8ebf294419aa141ebeaea5f4d7994..529ccbe3bc26640dfb057674aca5b433ec1582d3 100644 (file)
@@ -1,4 +1,6 @@
 class Acl < ActiveRecord::Base
+  validates :k, :presence => true
+
   def self.match(address, domain = nil)
     if domain
       Acl.where("address >>= ? OR domain = ?", address, domain)