Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
annotate
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open-source
annotate
Commits
bfc3f780
Commit
bfc3f780
authored
Jun 19, 2015
by
Andrew Goodnough
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Runs annotate on 'rake db:rollback' too
parent
396db8df
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
migrate.rake
lib/tasks/migrate.rake
+4
-2
No files found.
lib/tasks/migrate.rake
View file @
bfc3f780
...
@@ -5,12 +5,13 @@
...
@@ -5,12 +5,13 @@
# run after doing db:migrate.
# run after doing db:migrate.
namespace
:db
do
namespace
:db
do
task
:migrate
do
[
:migrate
,
:rollback
].
each
do
|
cmd
|
task
cmd
do
Rake
::
Task
[
'set_annotation_options'
].
invoke
Rake
::
Task
[
'set_annotation_options'
].
invoke
Annotate
::
Migration
.
update_annotations
Annotate
::
Migration
.
update_annotations
end
end
namespace
:migrate
do
namespace
cmd
do
[
:change
,
:up
,
:down
,
:reset
,
:redo
].
each
do
|
t
|
[
:change
,
:up
,
:down
,
:reset
,
:redo
].
each
do
|
t
|
task
t
do
task
t
do
Rake
::
Task
[
'set_annotation_options'
].
invoke
Rake
::
Task
[
'set_annotation_options'
].
invoke
...
@@ -18,6 +19,7 @@ namespace :db do
...
@@ -18,6 +19,7 @@ namespace :db do
end
end
end
end
end
end
end
end
end
module
Annotate
module
Annotate
...
...
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