Skip to content

Commit

Permalink
Added TIP box with information about the --database switch for the …
Browse files Browse the repository at this point in the history
…application generator in the "Getting Started" guide
  • Loading branch information
karmi committed Dec 28, 2010
1 parent 8e8c13a commit e2c2c29
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions railties/guides/source/getting_started.textile
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,8 @@ development:

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.

h4. Creating the Database

Now that you have your database configured, it's time to have Rails create an empty database for you. You can do this by running a rake command:
Expand Down

0 comments on commit e2c2c29

Please sign in to comment.