I want to run the jruby / rails application to use Postgres. But I would like to use H2 in Postgres compatibility mode when working in development and testing.
It has no problems casting the application in H2 or in postgresql, but how do I configure it to run the postgresql adapter using the built-in H2 database?
For example: something like this:
database.yml
development:
Gemfile:
... gem 'activerecord-jdbch2-adapter'
ruby ruby-on-rails jruby h2
drsquidop Mar 18 '13 at 22:03 2013-03-18 22:03
source share