title: JRuby / basic PostgreSQL connection
body: <p>So I can use this gem for active record: <a href="https://github.com/jruby/activerecord-jdbc-adapter" rel="nofollow">https://github.com/jruby/activerecord-jdbc-adapter</a></p>
  
  <p>But, I want to use the following code on JRuby to connect to a legacy db and run some manual queries, how do I do using JRuby / Rails 4.0.0?</p>
  
  <pre><code>require 'pg'
  conn = PGconn.connect("192.168.0.2", 5432, '', '', "mydb", "postgres", "password")
  </code></pre>