Skip to content

Commit

Permalink
Moving hint down. As required after all database examples.
Browse files Browse the repository at this point in the history
  • Loading branch information
arunagw authored and fxn committed Jun 18, 2011
1 parent cf2818a commit 05648ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions railties/guides/source/getting_started.textile
Expand Up @@ -256,8 +256,6 @@ development:
password: password:
</yaml> </yaml>


Change the username and password in the +development+ section as appropriate.

h5. Configuring an SQLite3 Database for Jruby Platform 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: If you choose to use SQLite3 and using Jruby, your +config/database.yml+ will look a little different. Here's the development section:
Expand Down Expand Up @@ -293,6 +291,8 @@ development:
password: password:
<yaml> <yaml>


Change the username and password in the +development+ section as appropriate.

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 05648ea

Please sign in to comment.