Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
f796ce27
Commit
f796ce27
authored
Mar 03, 2017
by
Douglas Barbosa Alexandre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add missing commands to the rake task that handles the Geo DB
parent
6a95e2c6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
lib/tasks/geo.rake
lib/tasks/geo.rake
+9
-1
No files found.
lib/tasks/geo.rake
View file @
f796ce27
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment