Class: Gitlab::Database::Migrations::PreparedAsyncDmlOperationsTesting::AsyncOperationsRunner

Inherits:
Object
  • Object
show all
Defined in:
lib/gitlab/database/migrations/prepared_async_dml_operations_testing/async_operations_runner.rb

Class Method Summary collapse

Class Method Details

.execute!Object



33
34
35
36
37
# File 'lib/gitlab/database/migrations/prepared_async_dml_operations_testing/async_operations_runner.rb', line 33

def execute!
  indexes_to_create.each do |async_index|
    PreparedAsyncDmlOperationsTesting::IndexCreator.new(async_index).perform
  end
end

.install!Object



29
30
31
# File 'lib/gitlab/database/migrations/prepared_async_dml_operations_testing/async_operations_runner.rb', line 29

def install!
  Gitlab::Database::AsyncIndexes::MigrationHelpers.prepend(AsyncIndexMixin)
end