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:
parent
efeaa01e74
commit
9e9a3c5314
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue