1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

get rid of transaction warning when running PG tests.

This finally removes the warning "WARNING:  there is no transaction in progress"
when running Active Record tests using PostgreSQL.
This commit is contained in:
Yves Senn 2015-02-12 14:44:47 +01:00
parent efeaa01e74
commit 9e9a3c5314

View file

@ -124,7 +124,7 @@ def enable_extension!(extension, connection)
return connection.reconnect! if connection.extension_enabled?(extension) return connection.reconnect! if connection.extension_enabled?(extension)
connection.enable_extension extension connection.enable_extension extension
connection.commit_db_transaction connection.commit_db_transaction if connection.transaction_open?
connection.reconnect! connection.reconnect!
end end