Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 8382

Show
Ignore:
Timestamp:
12/14/07 17:47:56 (10 months ago)
Author:
david
Message:

Added db:migrate:redo for rerunning existing migrations (closes #10431) [matt]

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/activesupport/MIT-LICENSE

    r5120 r8382  
    1 Copyright (c) 2005-2006 David Heinemeier Hansson 
     1Copyright (c) 2005-2007 David Heinemeier Hansson 
    22 
    33Permission is hereby granted, free of charge, to any person obtaining 
  • trunk/railties/CHANGELOG

    r8360 r8382  
    11*SVN* 
     2 
     3* Added db:migrate:redo for rerunning existing migrations #10431 [matt] 
    24 
    35* RAILS_GEM_VERSION may be double-quoted also.  #10443 [James Cox] 
  • trunk/railties/lib/tasks/databases.rake

    r8338 r8382  
    8585    ActiveRecord::Migrator.migrate("db/migrate/", ENV["VERSION"] ? ENV["VERSION"].to_i : nil) 
    8686    Rake::Task["db:schema:dump"].invoke if ActiveRecord::Base.schema_format == :ruby 
     87  end 
     88 
     89  namespace :migrate do 
     90    desc  'Rollbacks the database one migration and re migrate up. If you want to rollback more than one step, define STEP=x' 
     91    task :redo => [ 'db:rollback', 'db:migrate' ] 
    8792  end 
    8893