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
d878a5b7
Commit
d878a5b7
authored
Jun 16, 2015
by
Cuong Tran
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #259 from ctran/revert-249-run-on-rollback
Revert "Runs annotate on 'rake db:rollback' too"
parents
1ee47e53
8f3aeb10
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
migrate.rake
lib/tasks/migrate.rake
+2
-4
No files found.
lib/tasks/migrate.rake
View file @
d878a5b7
...
@@ -6,19 +6,17 @@
...
@@ -6,19 +6,17 @@
# Unfortunately it relies on ENV for options; it'd be nice to be able to set options
# Unfortunately it relies on ENV for options; it'd be nice to be able to set options
# in a per-project config file so this task can read them.
# in a per-project config file so this task can read them.
namespace
:db
do
namespace
:db
do
[
:migrate
,
:rollback
].
each
do
|
cmd
|
task
:migrate
do
task
cmd
do
Annotate
::
Migration
.
update_annotations
Annotate
::
Migration
.
update_annotations
end
end
namespace
cmd
do
namespace
:migrate
do
[
:change
,
:up
,
:down
,
:reset
,
:redo
].
each
do
|
t
|
[
:change
,
:up
,
:down
,
:reset
,
:redo
].
each
do
|
t
|
task
t
do
task
t
do
Annotate
::
Migration
.
update_annotations
Annotate
::
Migration
.
update_annotations
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