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
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
9 deletions
+11
-9
migrate.rake
lib/tasks/migrate.rake
+11
-9
No files found.
lib/tasks/migrate.rake
View file @
bfc3f780
...
@@ -5,16 +5,18 @@
...
@@ -5,16 +5,18 @@
# run after doing db:migrate.
# run after doing db:migrate.
namespace
:db
do
namespace
:db
do
task
:migrate
do
[
:migrate
,
:rollback
].
each
do
|
cmd
|
Rake
::
Task
[
'set_annotation_options'
].
invoke
task
cmd
do
Annotate
::
Migration
.
update_annotations
Rake
::
Task
[
'set_annotation_options'
].
invoke
end
Annotate
::
Migration
.
update_annotations
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
Annotate
::
Migration
.
update_annotations
Annotate
::
Migration
.
update_annotations
end
end
end
end
end
end
end
...
...
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