diff options
author | Karel Minarik <karmi@karmi.cz> | 2010-12-28 17:30:13 +0100 |
---|---|---|
committer | Karel Minarik <karmi@karmi.cz> | 2010-12-28 17:30:13 +0100 |
commit | 9f75545e5d0aded71f973edd0e5ff4daf3e7c580 (patch) | |
tree | 149260f0fd026f82e9ab1d2bf94fdd09e23c6388 /railties/guides | |
parent | cb4b5c8ad39e9e7a44ec13ded88083fe76cf8405 (diff) | |
download | rails-9f75545e5d0aded71f973edd0e5ff4daf3e7c580.tar.gz rails-9f75545e5d0aded71f973edd0e5ff4daf3e7c580.tar.bz2 rails-9f75545e5d0aded71f973edd0e5ff4daf3e7c580.zip |
Added information about invoking migrations in non-default environments to NOTE box in the "Getting Started" guide
Reason: When the guide already mentions "default environment", I think it is more then appropriate to tell the whole story.
Diffstat (limited to 'railties/guides')
-rw-r--r-- | railties/guides/source/getting_started.textile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/guides/source/getting_started.textile b/railties/guides/source/getting_started.textile index f45e6cab11..82700532c0 100644 --- a/railties/guides/source/getting_started.textile +++ b/railties/guides/source/getting_started.textile @@ -411,7 +411,7 @@ Rails will execute this migration command and tell you it created the Posts tabl == CreatePosts: migrated (0.0020s) =========================================== </shell> -NOTE. Because you're working in the development environment by default, this command will apply to the database defined in the +development+ section of your +config/database.yml+ file. +NOTE. Because you're working in the development environment by default, this command will apply to the database defined in the +development+ section of your +config/database.yml+ file. If you would like to execute migrations in other environment, for instance in production, you must explicitely pass it when invoking the command: <tt>rake db:migrate RAILS_ENV=production</tt>. h4. Adding a Link |