Add missing commands to the rake task that handles the Geo DB

parent 6a95e2c6
...@@ -2,7 +2,7 @@ task spec: ['geo:db:test:prepare'] ...@@ -2,7 +2,7 @@ task spec: ['geo:db:test:prepare']
namespace :geo do namespace :geo do
namespace :db do |ns| namespace :db do |ns|
%i(drop create setup migrate rollback seed version).each do |task_name| %i(drop create setup migrate rollback seed version reset).each do |task_name|
task task_name do task task_name do
Rake::Task["db:#{task_name}"].invoke Rake::Task["db:#{task_name}"].invoke
end end
...@@ -16,6 +16,14 @@ namespace :geo do ...@@ -16,6 +16,14 @@ namespace :geo do
end end
end end
namespace :migrate do
%i(up down redo).each do |task_name|
task task_name do
Rake::Task["db:migrate:#{task_name}"].invoke
end
end
end
namespace :test do namespace :test do
task :prepare do task :prepare do
Rake::Task['db:test:prepare'].invoke Rake::Task['db:test:prepare'].invoke
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment