tracks/tracks/lib/tasks/migrate.rake
bsag 9867ca01ad Updated to work with Rails 0.14.1 (1.0 Release candidate) - fixes #145.
The bug where project associations didn't seem to be immediately displayed when next actions were added from the Context page is magically fixed! Fixes #142.



git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@156 a4c988fc-2ded-0310-b66e-134b36920a42
2005-10-30 12:21:50 +00:00

4 lines
No EOL
310 B
Ruby

desc "Migrate the database according to the migrate scripts in db/migrate (only supported on PG/MySQL). A specific version can be targetted with VERSION=x"
task :migrate => :environment do
ActiveRecord::Migrator.migrate(File.dirname(__FILE__) + '/db/migrate/', ENV["VERSION"] ? ENV["VERSION"].to_i : nil)
end