X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/15b104f4ff4614aa78c01180b6a9b89dd5a1400f..57c73a25bd0258c57f8315435ae05998ac3a2b36:/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 1e67f46dd..f05cb4f21 100644 --- a/db/migrate/20120208122334_merge_acl_address_and_mask.rb +++ b/db/migrate/20120208122334_merge_acl_address_and_mask.rb @@ -10,7 +10,10 @@ class IPAddr end end -class MergeAclAddressAndMask < ActiveRecord::Migration[5.0] +class MergeAclAddressAndMask < ActiveRecord::Migration[4.2] + class Acl < ActiveRecord::Base + end + def up Acl.find_each do |acl| address = IPAddr.new(acl.address)