discourse/db/migrate/20241115143259_add_index_to_users_ip_address.rb
2024-11-15 11:17:07 -05:00

10 lines
234 B
Ruby

# frozen_string_literal: true
class AddIndexToUsersIpAddress < ActiveRecord::Migration[7.1]
disable_ddl_transaction!
def change
add_index :users, :ip_address, algorithm: :concurrently, name: "idx_users_ip_address"
end
end