aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrederick Cheung <frederick.cheung@gmail.com>2008-09-09 01:58:54 +0100
committerFrederick Cheung <frederick.cheung@gmail.com>2008-09-09 02:24:13 +0100
commit5e4aa0ca81222826d07ee83b68556289ec8b4b78 (patch)
tree8b615a166d6f36375f3316d817074fc353561dc0
parent14c42b5d12d619fdabba30fc4f2e6b9ac7c07418 (diff)
downloadrails-5e4aa0ca81222826d07ee83b68556289ec8b4b78.tar.gz
rails-5e4aa0ca81222826d07ee83b68556289ec8b4b78.tar.bz2
rails-5e4aa0ca81222826d07ee83b68556289ec8b4b78.zip
make more explicit benefits of migrations and ruby vs mysql
-rw-r--r--railties/doc/guides/migrations/migrations.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/doc/guides/migrations/migrations.txt b/railties/doc/guides/migrations/migrations.txt
index 5af9ea633b..ad20dcdf93 100644
--- a/railties/doc/guides/migrations/migrations.txt
+++ b/railties/doc/guides/migrations/migrations.txt
@@ -1,9 +1,9 @@
Migrations
==========
-Migrations are a convenient way for you to alter your database in a structured and organised manner. Active Record takes care of working out which migrations have already been run so you can just update your source and run the migrations, leaving Active Record to work out the details.
+Migrations are a convenient way for you to alter your database in a structured and organised manner. While you could edit fragments of SQL by hand it would then be up to you to tell other developers that they need to run your scripts when they next pull changes. You'd also have to keep track of which changes need to be run against the production machines next time you deploy. Active Record tracks which migrations have already been run so all you have to do is update your source and run `rake db:migrate`. Active Record will work out which migrations should be run.
-Migrations also allow you to describe these transformation using ruby, in a database independent way (you can drop down to raw SQL for database specific features).
+Migrations also allow you to describe these transformation using ruby. The great thing about this is that (like most of Active Record's functionality) its database independent, you don't need to worry about the precise syntax of CREATE TABLE any more that you worry about variations on SELECT * (you can drop down to raw SQL for database specific features). For example you could use SQLite3 in development, but MySQL in production.
You'll learn all about migrations including: