]> source.dussan.org Git - sonarqube.git/blob
dc373083a76ed417cf011c108192f99a4bde7d5f
[sonarqube.git] /
1 module ActiveRecord
2   class Base
3     class << self
4       def h2_connection(config)
5         config[:url] ||= "jdbc:h2:#{config[:database]}"
6         config[:driver] ||= "org.h2.Driver"
7         embedded_driver(config)
8       end
9       alias_method :jdbch2_connection, :h2_connection
10     end
11   end
12 end