lib/active_wrapper/tasks.rb in winton-active_wrapper-0.1.9 vs lib/active_wrapper/tasks.rb in winton-active_wrapper-0.2.0
- old
+ new
@@ -10,15 +10,15 @@
yield if block
end
namespace :db do
desc "Create the database"
- task :create do
+ task :create => :environment do
$db.create_db
end
desc "Drop the database"
- task :drop do
+ task :drop => :environment do
$db.drop_db
end
desc "Migrate the database with optional VERSION"
task :migrate => :environment do
\ No newline at end of file