Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added Doc for Postgresql database with Jruby Platform. #jruby

  • Loading branch information...
commit 0e1e61508f2ad8cb5b206dba511d19e3cfcbe0c4 1 parent 739f8e9
@arunagw arunagw authored fxn committed
Showing with 13 additions and 0 deletions.
  1. +13 −0 railties/guides/source/getting_started.textile
View
13 railties/guides/source/getting_started.textile
@@ -280,6 +280,19 @@ development:
password:
</yaml>
+h5. Configuring an PostgreSQL Database for Jruby Platform
+
+If you choose to use PostgreSQL and using Jruby, your +config/database.yml+ will look a little different. Here's the development section:
+
+<yaml>
+development:
+ adapter: jdbcpostgresql
+ encoding: unicode
+ database: blog_development
+ username: blog
+ password:
+<yaml>
+
TIP: You don't have to update the database configurations manually. If you had a look at the options of application generator, you have seen that one of them is named <tt>--database</tt>. It lets you choose an adapter for couple of most used relational databases. You can even run the generator repeatedly: <tt>cd .. && rails new blog --database=mysql</tt>. When you confirm the overwriting of the +config/database.yml+ file, your application will be configured for MySQL instead of SQLite.
h4. Creating the Database

0 comments on commit 0e1e615

Please sign in to comment.
Something went wrong with that request. Please try again.