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
6d11436b
Commit
6d11436b
authored
Nov 09, 2010
by
Brent Greeff
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rake db:annotate aliases annotate_models. running db:migrate, :reset or :redo will run annotate.
parent
71af5afd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
annotate_old.rake
lib/tasks/annotate_old.rake
+21
-0
No files found.
lib/tasks/annotate_old.rake
0 → 100644
View file @
6d11436b
namespace
:db
do
desc
'Aliases the old db:annotate task name'
task
:annotate
=>
:environment
do
Rake
::
Task
[
"annotate_models"
].
execute
end
task
:migrate
do
Rake
::
Task
[
"annotate_models"
].
invoke
if
Rails
.
env
.
development?
end
# ensures that migrate, reset, redo run annotate.
namespace
:migrate
do
[
:reset
,
:redo
].
each
do
|
t
|
task
t
do
Rake
::
Task
[
"annotate_models"
].
invoke
if
Rails
.
env
.
development?
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