lib/pliny/db_support.rb in pliny-0.15.1 vs lib/pliny/db_support.rb in pliny-0.16.0
- old
+ new
@@ -22,9 +22,10 @@
def self.run(url, sequel_log_io=StringIO.new)
logger = Logger.new(sequel_log_io)
instance = new(url, logger)
yield instance
instance.disconnect
+ Sequel::DATABASES.delete(instance)
end
attr_accessor :db
def initialize(url, sequel_logger)