X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/b606acba0c28652fa6f066c2b5d989ceae41c194..2dd7a5edb2572bcd952b4d1ebd9baac32db9dfa5:/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 48cdbbc2a..09b0ae3b0 100644 --- a/db/migrate/20120208122334_merge_acl_address_and_mask.rb +++ b/db/migrate/20120208122334_merge_acl_address_and_mask.rb @@ -11,6 +11,9 @@ class IPAddr end class MergeAclAddressAndMask < ActiveRecord::Migration[4.2] + class Acl < ApplicationRecord + end + def up Acl.find_each do |acl| address = IPAddr.new(acl.address)