aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/source/getting_started.textile
diff options
context:
space:
mode:
authorArun Agrawal <arun@fromjaipur.com>2011-06-15 07:38:08 +0530
committerArun Agrawal <arun@fromjaipur.com>2011-06-15 07:38:08 +0530
commit900dbca96536f6036a3621bd01b5c5a94386d51e (patch)
tree0302143c29b4ba16420b92c9db9fc933bc382ef5 /railties/guides/source/getting_started.textile
parentaed85375caad9bbbb3a97aa49cec22c5771d5f8b (diff)
downloadrails-900dbca96536f6036a3621bd01b5c5a94386d51e.tar.gz
rails-900dbca96536f6036a3621bd01b5c5a94386d51e.tar.bz2
rails-900dbca96536f6036a3621bd01b5c5a94386d51e.zip
Added Doc for Postgresql database with Jruby Platform. #jruby
Diffstat (limited to 'railties/guides/source/getting_started.textile')
-rw-r--r--railties/guides/source/getting_started.textile13
1 files changed, 13 insertions, 0 deletions
diff --git a/railties/guides/source/getting_started.textile b/railties/guides/source/getting_started.textile
index 3549dd89ab..459063ad4b 100644
--- a/railties/guides/source/getting_started.textile
+++ b/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