Viewing and Applying Migrations

Migrations are a convenient way for you to alter database structure in an orderly and organised manner. Track Magic allows you to view all of the migrations that have been applied to your Rails application, and to "roll back" the application to an earlier version (or "roll forward" to a newer version).

To see all of the Migrations that have been applied to the currently selected Rails application choose Migrations from the Application menu.

001_MigrationDialog

The left side of the dialog lists all of the migrations associated with this application. The circle (•) indicates the current state of your application. You can click on any row in the list to see the Ruby code associated with each migration.

If you want to "roll back" or "roll forward", start by selecting the migration you want apply. Then choose the Rake DB:Migrate button. After a short delay Track Magic will display the shell output of the rake command.

002_MigrationShellLog

To learn more about migrations see http://guides.rails.info/migrations/migrations.html.