aboutsummaryrefslogtreecommitdiffstats
path: root/railties/doc/guides/migrations/migrations.txt
blob: 5af9ea633babbf2608484fa550ca1d45f7b41830 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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 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).

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[]