From 52026ced350f34dc7fa7709826c77898c431b8ee Mon Sep 17 00:00:00 2001 From: Manabu Niseki Date: Sat, 9 May 2020 16:57:45 +0900 Subject: [PATCH] refactor: support "postgres://" URI scheme --- lib/mihari/database.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mihari/database.rb b/lib/mihari/database.rb index 55210e8b..9f719058 100644 --- a/lib/mihari/database.rb +++ b/lib/mihari/database.rb @@ -33,7 +33,7 @@ def change end def adapter - return "postgresql" if Mihari.config.database.start_with?("postgresql://") + return "postgresql" if Mihari.config.database.start_with?("postgresql://", "postgres://") "sqlite3" end