]> git.openstreetmap.org Git - rails.git/blobdiff - db/migrate/20120208122334_merge_acl_address_and_mask.rb
Add deactivates_at date to user blocks
[rails.git] / db / migrate / 20120208122334_merge_acl_address_and_mask.rb
index f05cb4f21416216a1d9f2af7a617dd323d3d43b7..5cac1074051770992b7ede7a6c9f35f6e92f65ac 100644 (file)
@@ -11,7 +11,7 @@ class IPAddr
 end
 
 class MergeAclAddressAndMask < ActiveRecord::Migration[4.2]
-  class Acl < ActiveRecord::Base
+  class Acl < ApplicationRecord
   end
 
   def up
@@ -21,7 +21,7 @@ class MergeAclAddressAndMask < ActiveRecord::Migration[4.2]
       prefix = 0
 
       while netmask != "0.0.0.0"
-        netmask = netmask << 1
+        netmask <<= 1
         prefix += 1
       end