lib/ring/sqa/database.rb in ring-sqa-0.4.2 vs lib/ring/sqa/database.rb in ring-sqa-0.4.3
- old
+ new
@@ -38,9 +38,13 @@
def id_range first, last
Ping.distinct.where(:id=>first..last)
end
+ def table_exists?
+ @db.table_exists?(:pings)
+ end
+
private
def initialize
sequel_opts = { max_connections: 1, pool_timout: 60 }
if CFG.ram_database?