lib/strong_migrations/migration.rb in strong_migrations-0.7.2 vs lib/strong_migrations/migration.rb in strong_migrations-0.7.3
- old
+ new
@@ -1,9 +1,10 @@
module StrongMigrations
module Migration
def migrate(direction)
strong_migrations_checker.direction = direction
super
+ connection.begin_db_transaction if strong_migrations_checker.transaction_disabled
end
def method_missing(method, *args)
strong_migrations_checker.perform(method, *args) do
super