This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
commit 4879fff861beb43490fb43ba918fde3ef7f9a7ff
tree b4a692d29569f6100acfd4609402a6b6c33b947a
parent 42c9612f1851a2281aeb0b7e4bf2225308dd3e42
tree b4a692d29569f6100acfd4609402a6b6c33b947a
parent 42c9612f1851a2281aeb0b7e4bf2225308dd3e42
| name | age | message | |
|---|---|---|---|
| |
MIT-LICENSE | Sun Mar 02 12:37:29 -0800 2008 | [joshsusser] |
| |
README | Sun Mar 02 12:42:18 -0800 2008 | [joshsusser] |
| |
init.rb | Sun Mar 02 12:37:29 -0800 2008 | [joshsusser] |
| |
install.rb | Sun Mar 02 12:37:29 -0800 2008 | [joshsusser] |
| |
lib/ | Sun Mar 02 12:37:29 -0800 2008 | [joshsusser] |
| |
uninstall.rb | Sun Mar 02 12:37:29 -0800 2008 | [joshsusser] |
README
MigrationConcordance ==================== by Josh Susser <josh@hasmanythrough.com> project page: http://github.com/joshsusser/migration_concordance project repo: git://github.com/joshsusser/migration_concordance.git 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. 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:ignore property or .gitignore file). Putting the snapshot file under version control defeats the whole purpose of this feature. Any time you load your application's environment, it will indicate whether you need to run migrations to bring your schema into concordance with the migration files. This notification will happen when you run script/server, tests, the console, or any rake task that depends on the environment. If you want to check on migration status, you can run "rake environment" to print the notification. Background ========== MigrationConcordance works by taking a snapshot of the state of an appliation's migrations every time you run "rake db:migrate". It creates a file in db/migration_snapshot.yml that holds a list of all current migrations and their SHA-1 hashes. Therefore, if you migrate to a migration that is not the latest (using rake db:migrate VERSION=<version>), you won't get any more notifications even if you aren't on the latest version. It assumes you know what you are doing and won't keep nagging you to migrate after you've migrated somewhere already. Copyright (c) 2008 Josh Susser, released under the MIT license




