method

ddl_transaction

rails latest stable - Class: ActiveRecord::Migrator
ddl_transaction(migration, &block)
private

Wrap the migration in a transaction only if supported by the adapter.