lib/ring/sqa/database.rb in ring-sqa-0.0.20 vs lib/ring/sqa/database.rb in ring-sqa-0.0.21

- old
+ new

@@ -41,10 +41,10 @@ Sequel::Model.plugin :schema sequel_opts = { max_connections: 3, pool_timout: 60 } if CFG.ram_database? @db = Sequel.sqlite sequel_opts else - file = CFG.ipv6? ? 'ipv6.db' : 'ipv4.db' + file = '%s.db' % CFG.afi file = File.join CFG.directory, file File.unlink file rescue nil # delete old database @db = Sequel.sqlite file, sequel_opts end require_relative 'database/model.rb'