1 # frozen_string_literal: true
3 class BackfillUserCreationAddress < ActiveRecord::Migration[7.1]
4 class User < ApplicationRecord
9 .where(:creation_address => nil)
10 .where.not(:creation_ip => nil)
11 .in_batches(:of => 1000)
12 .update_all("creation_address = creation_ip::inet")