X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/9c0d5277adfde9f7daee0b0c83d4e68dd331e905..ab12b6161aa61463d7fbb0a9c77ae1d9ae14082a:/db/migrate/20120208122334_merge_acl_address_and_mask.rb diff --git a/db/migrate/20120208122334_merge_acl_address_and_mask.rb b/db/migrate/20120208122334_merge_acl_address_and_mask.rb index 791bf659a..9153da1e5 100644 --- a/db/migrate/20120208122334_merge_acl_address_and_mask.rb +++ b/db/migrate/20120208122334_merge_acl_address_and_mask.rb @@ -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}"