Skip to content

Commit

Permalink
Merge pull request #154 from ninoseki/update-pg-support
Browse files Browse the repository at this point in the history
refactor: support "postgres://" URI scheme
  • Loading branch information
ninoseki committed May 9, 2020
2 parents 3c277f2 + 52026ce commit f650d57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mihari/database.rb
Expand Up @@ -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
Expand Down

0 comments on commit f650d57

Please sign in to comment.