blob: 71b49f6a8f3f251539bf66b7a516e0ad07b4dc8c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
Migrations
==========
Migrations are a convenient way for you to alter your database in a structured and organised manner. ActiveRecord takes care of working out which migrations have already been run so you can just update your source and run the migrations, leaving ActiveRecord 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).
Rails packages a number of rake tasks and generators for working with migrations and you'll learn about those too.
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[]
|