Module: SafePgMigrations::Migration
- Includes:
- StrongMigrationsIntegration
- Defined in:
- lib/safe-pg-migrations/base.rb
Defined Under Namespace
Modules: ClassMethods
Constant Summary
Constants included from StrongMigrationsIntegration
StrongMigrationsIntegration::SAFE_METHODS
Instance Method Summary collapse
Methods included from StrongMigrationsIntegration
Instance Method Details
#disable_ddl_transaction ⇒ Object
112 113 114 115 116 117 118 |
# File 'lib/safe-pg-migrations/base.rb', line 112 def disable_ddl_transaction SafePgMigrations.with_current_migration(self) do UselessStatementsLogger.warn_useless '`disable_ddl_transaction`' if super true end end |
#exec_migration(connection, direction) ⇒ Object
106 107 108 109 110 |
# File 'lib/safe-pg-migrations/base.rb', line 106 def exec_migration(connection, direction) SafePgMigrations.setup_and_teardown(self, connection) do super(connection, direction) end end |