aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorJason Noble <github+jasonn@jasonnoble.org>2011-11-13 10:20:03 -0700
committerJason Noble <github+jasonn@jasonnoble.org>2011-11-13 10:20:03 -0700
commit8971cca7d0cef3ce452bf44fb09ae628419d8ea1 (patch)
tree95829a2118db2fe0306d3116ea3098359089f03d /railties
parente0efe48c45cb02494b88636a4eefc6b37e419101 (diff)
downloadrails-8971cca7d0cef3ce452bf44fb09ae628419d8ea1.tar.gz
rails-8971cca7d0cef3ce452bf44fb09ae628419d8ea1.tar.bz2
rails-8971cca7d0cef3ce452bf44fb09ae628419d8ea1.zip
Move tooltip on re-running rails new with a different --database option
Diffstat (limited to 'railties')
-rw-r--r--railties/guides/source/getting_started.textile16
1 files changed, 8 insertions, 8 deletions
diff --git a/railties/guides/source/getting_started.textile b/railties/guides/source/getting_started.textile
index 8a0a70efad..fde83ae730 100644
--- a/railties/guides/source/getting_started.textile
+++ b/railties/guides/source/getting_started.textile
@@ -308,6 +308,14 @@ manually with the application.
* The +test+ environment is used when running automated tests.
* The +production+ environment is used when you deploy your application for the world to use.
+TIP: You don't have to update the database configurations manually. If you look at the
+options of the application generator, you will see that one of the options
+is named <tt>--database</tt>. This option allows you to choose an adapter from a
+list of the 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. Detailed examples of the common database connections are below.
+
h5. Configuring an SQLite3 Database
Rails comes with built-in support for "SQLite3":http://www.sqlite.org, which is
@@ -411,14 +419,6 @@ 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 look at the
-options of the application generator, you will see that one of the options
-is named <tt>--database</tt>. This option allows you to choose an adapter from a
-list of the 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