Migration Concordance plugin

Plugin details

This plugin extends Rails migrations to provide notification when you need to run migrations. It will detect both new migrations and modifications to previously run migrations. It is primarily of use for team development, but is also useful when deploying a release to a new environment to determine when migrations need to be run. This plugin does not run migrations automatically, but will notify you whenever you need to run them.

Websitehttp://blog.hasmanythrough.com/2008/3/2/migration-concordance Repositorygit://github.com/joshsusser/migration_concordance.git Author Josh Susser Tags migration LicenseMIT

Documentation

Install the plugin:
ruby script/plugin install git://github.com/joshsusser/migration_concordance.git

To integrate with your application:

1) Add the following line to the end of your config/environment.rb file:

puts ActiveRecord::Migrator.check_concordance 


2) Add the file db/migration_snapshot.yml to your SCM ignore list (for example, the svn:ignoreproperty or .gitignore file). Putting the snapshot file under version control defeats the wholepurpose of this feature.

Any time you load your application's environment, it will indicate whether you need to runmigrations to bring your schema into concordance with the migration files. This notification willhappen when you run script/server, tests, the console, or any rake task that depends on theenvironment. If you want to check on migration status, you can run "rake environment" to print thenotification.

Further Documentation

There is currently no advanced documentation for this plugin.

New documentation

Edit plugin | (0 older versions) | Last edited by: hardway, 2 months ago