Skip to content

Commit

Permalink
Added Doc for Postgresql database with Jruby Platform. #jruby
Browse files Browse the repository at this point in the history
  • Loading branch information
arunagw committed Jun 15, 2011
1 parent aed8537 commit 900dbca
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions railties/guides/source/getting_started.textile
Expand Up @@ -280,6 +280,19 @@ development:
password: password:
</yaml> </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. 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 h4. Creating the Database
Expand Down

0 comments on commit 900dbca

Please sign in to comment.