1 2 3 4 5 6 7 8 9
class AddUsersStateIndex < ActiveRecord::Migration include Gitlab::Database::MigrationHelpers disable_ddl_transaction! def change add_concurrent_index :users, :state end end