1 class BackfillUserCreationAddress < ActiveRecord::Migration[7.1]
 
   2   class User < ApplicationRecord
 
   7       .where(:creation_address => nil)
 
   8       .where.not(:creation_ip => nil)
 
   9       .in_batches(:of => 1000)
 
  10       .update_all("creation_address = creation_ip::inet")