aboutsummaryrefslogtreecommitdiffstats
path: root/railties/doc/guides/migrations/migrations.txt
diff options
context:
space:
mode:
authorPratik Naik <pratiknaik@gmail.com>2008-10-21 15:58:29 +0100
committerPratik Naik <pratiknaik@gmail.com>2008-10-21 16:04:38 +0100
commit5265a8cd40a59ae792da3ed3f2a9648f15ecbd4e (patch)
tree44f66c3d1552e1821454658c653f062baada8668 /railties/doc/guides/migrations/migrations.txt
parentfa09de351c8045c7e7a0f268188ccf80c827b079 (diff)
downloadrails-5265a8cd40a59ae792da3ed3f2a9648f15ecbd4e.tar.gz
rails-5265a8cd40a59ae792da3ed3f2a9648f15ecbd4e.tar.bz2
rails-5265a8cd40a59ae792da3ed3f2a9648f15ecbd4e.zip
Rearrange guides
Diffstat (limited to 'railties/doc/guides/migrations/migrations.txt')
-rw-r--r--railties/doc/guides/migrations/migrations.txt22
1 files changed, 0 insertions, 22 deletions
diff --git a/railties/doc/guides/migrations/migrations.txt b/railties/doc/guides/migrations/migrations.txt
deleted file mode 100644
index be183e8597..0000000000
--- a/railties/doc/guides/migrations/migrations.txt
+++ /dev/null
@@ -1,22 +0,0 @@
-Migrations
-==========
-
-Migrations are a convenient way for you to alter your database in a structured and organised manner. You could edit fragments of SQL by hand but you would then be responsible for telling other developers that they need to go and run it. 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 transformations using Ruby. The great thing about this is that (like most of Active Record's functionality) it is 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:
-
-* The generators you can use to create them
-* The methods Active Record provides to manipulate your database
-* The Rake tasks that manipulate them
-* How they relate to `schema.rb`
-
-include::anatomy_of_a_migration.txt[]
-include::creating_a_migration.txt[]
-include::writing_a_migration.txt[]
-include::rakeing_around.txt[]
-include::using_models_in_migrations.txt[]
-include::scheming.txt[]
-include::foreign_keys.txt[]
-include::changelog.txt[]