discourse/db/migrate/20241115143259_add_index_to...

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
234 B
Ruby
Raw Normal View History

2024-11-15 09:42:14 -05:00
# 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