Skip to content

Commit

Permalink
Added information about invoking migrations in non-default environmen…
Browse files Browse the repository at this point in the history
…ts 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.
  • Loading branch information
karmi committed Dec 28, 2010
1 parent cb4b5c8 commit 9f75545
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion railties/guides/source/getting_started.textile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 9f75545

Please sign in to comment.