]> source.dussan.org Git - sonarqube.git/blob
ab94a2b649bacc235228351714dbe32f142a11e3
[sonarqube.git] /
1 tried_gem = false
2 begin
3   require "jdbc/postgres"
4 rescue LoadError
5   unless tried_gem
6     require 'rubygems'
7     gem "jdbc-postgres"
8     tried_gem = true
9     retry
10   end
11   # trust that the postgres jar is already present
12 end
13 require 'active_record/connection_adapters/jdbc_adapter'