]> git.openstreetmap.org Git - rails.git/blobdiff - db/migrate/20120208122334_merge_acl_address_and_mask.rb
Merge remote-tracking branch 'openstreetmap/pull/1401'
[rails.git] / db / migrate / 20120208122334_merge_acl_address_and_mask.rb
index 791bf659a9023ce5da57eb3c0c9a29d0a3c5be52..9153da1e5ab87680765764c0236858cdaf587175 100644 (file)
@@ -19,7 +19,7 @@ class MergeAclAddressAndMask < ActiveRecord::Migration
 
       while netmask != "0.0.0.0"
         netmask = netmask << 1
-        prefix = prefix + 1
+        prefix += 1
       end
 
       acl.address = "#{address.mask(prefix)}/#{prefix}"