aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorKarel Minarik <karmi@karmi.cz>2010-12-28 09:24:49 +0100
committerKarel Minarik <karmi@karmi.cz>2010-12-28 09:25:18 +0100
commite2c2c2983a83ed53e2287a936a0ab59080be16f6 (patch)
tree17bbadc5ddfd3470940775204b9c86602135db26 /railties
parent8e8c13ab1ed1140f708c8af74f386a3f6dec6e0a (diff)
downloadrails-e2c2c2983a83ed53e2287a936a0ab59080be16f6.tar.gz
rails-e2c2c2983a83ed53e2287a936a0ab59080be16f6.tar.bz2
rails-e2c2c2983a83ed53e2287a936a0ab59080be16f6.zip
Added TIP box with information about the `--database` switch for the application generator in the "Getting Started" guide
Diffstat (limited to 'railties')
-rw-r--r--railties/guides/source/getting_started.textile2
1 files changed, 2 insertions, 0 deletions
diff --git a/railties/guides/source/getting_started.textile b/railties/guides/source/getting_started.textile
index 43525d7a57..97c050ded3 100644
--- a/railties/guides/source/getting_started.textile
+++ b/railties/guides/source/getting_started.textile
@@ -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: