lib/tasks/db.rake in migrant-0.1.0 vs lib/tasks/db.rake in migrant-0.1.1
- old
+ new
@@ -1,10 +1,5 @@
namespace :db do
- desc "Generates migrations as per structure design in your models but does not run them"
- task :update => :environment do
- Migrant::MigrationGenerator.new.run
- end
-
desc "Generates migrations as per structure design in your models and runs them"
task :upgrade => :environment do
Rake::Task['db:migrate'].invoke if Migrant::MigrationGenerator.new.run
end
end