hmans / schnitzely_remigrate

Adds a rake task to your Rails project that recreates your entire database from scratch (using all migrations, fixtures etc.)

This URL has Read+Write access

name age message
file MIT-LICENSE Loading commit data...
file README
file init.rb
directory tasks/
README
Schnitzely Remigrate
====================

Adds a rake task called db:remigrate to your Rails project that will recreate your database from scratch,
migrating all the way up using all existing database migrations, and then fills your database with your
project's fixtures. It is equivalent to running the rake tasks db:migrate:reset and db:fixtures:load.

Usage:

  rake db:remigrate
  
You can, of course, specify a specific environment manually:

  rake RAILS_ENV=staging db:remigrate
  
Please note that this plugin has a failsafe mechanism to not run in the production environment.


Copyright (c) 2008 Hendrik Mans, released under the MIT license