Fix most auto-correctable rubocop issues
[rails.git] / db / migrate / 20120208122334_merge_acl_address_and_mask.rb
index 791bf65..9153da1 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}"