This is a properly typed and indexed column that is intended to replace creation_ip to allow fast queries.
8 lines
268 B
Ruby
8 lines
268 B
Ruby
class AddUserCreationAddress < ActiveRecord::Migration[7.1]
|
|
disable_ddl_transaction!
|
|
|
|
def change
|
|
add_column :users, :creation_address, :inet
|
|
add_index :users, :creation_address, :using => :gist, :opclass => :inet_ops, :algorithm => :concurrently
|
|
end
|
|
end
|