lib/tasks/db.rake in migrant-1.5.0 vs lib/tasks/db.rake in migrant-2.0.0.pre
- old
+ new
@@ -2,15 +2,9 @@
desc "Generates migrations as per structure design in your models and runs them"
task :upgrade => :environment do
if Migrant::MigrationGenerator.new.run
puts "\nInvoking db:migrate for #{Rails.env} environment."
Rake::Task['db:migrate'].invoke
-
- # If RAILS_ENV is explicitly specified, don't clone out to test
- unless ENV['RAILS_ENV']
- puts "Migrated. Now, cloning out to the test database."
- Rake::Task['db:test:clone'].invoke
- end
end
end
desc "Provides a shortcut to rolling back and discarding the last migration"
task :downgrade => :environment do