aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides
diff options
context:
space:
mode:
authorArun Agrawal <arun@fromjaipur.com>2011-06-15 07:36:04 +0530
committerArun Agrawal <arun@fromjaipur.com>2011-06-15 07:36:04 +0530
commitd5b1cf592b5e9e4363ff6ee87e33850ae7e9c929 (patch)
tree58b90af03c8768bf9d53ef978d59c6a95a0e793e /railties/guides
parentf391f944283909b0416aec907e375543f70f267b (diff)
downloadrails-d5b1cf592b5e9e4363ff6ee87e33850ae7e9c929.tar.gz
rails-d5b1cf592b5e9e4363ff6ee87e33850ae7e9c929.tar.bz2
rails-d5b1cf592b5e9e4363ff6ee87e33850ae7e9c929.zip
Adding doc for Sqlite3 database for Jruby platform #jruby
Diffstat (limited to 'railties/guides')
-rw-r--r--railties/guides/source/getting_started.textile10
1 files changed, 10 insertions, 0 deletions
diff --git a/railties/guides/source/getting_started.textile b/railties/guides/source/getting_started.textile
index 7ae3da560e..a3d8178eac 100644
--- a/railties/guides/source/getting_started.textile
+++ b/railties/guides/source/getting_started.textile
@@ -258,6 +258,16 @@ development:
Change the username and password in the +development+ section as appropriate.
+h5. Configuring an SQLite3 Database for Jruby Platform
+
+If you choose to use SQLite3 and using Jruby, your +config/database.yml+ will look a little different. Here's the development section:
+
+<yaml>
+development:
+ adapter: jdbcsqlite3
+ database: db/development.sqlite3
+</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