Module: OnlineMigrations::Migrator
- Defined in:
- lib/online_migrations/migrator.rb
Instance Method Summary collapse
Instance Method Details
#ddl_transaction(migration_or_proxy) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/online_migrations/migrator.rb', line 6 def ddl_transaction(migration_or_proxy) migration = if migration_or_proxy.is_a?(ActiveRecord::MigrationProxy) migration_or_proxy.send(:migration) else migration_or_proxy end if use_transaction?(migration) migration.connection.with_lock_retries do super end else super end end |