Skip to content

Instantly share code, notes, and snippets.

@jondkinney
Created July 24, 2014 14:01
Show Gist options
  • Save jondkinney/812f11dbb72ac3c04076 to your computer and use it in GitHub Desktop.
Save jondkinney/812f11dbb72ac3c04076 to your computer and use it in GitHub Desktop.
# Run annotate task after db:migrate
# and db:rollback tasks
Rake::Task['db:migrate'].enhance do
Rake::Task['annotate'].invoke
Rake::Task['db:test:prepare'].invoke
end
Rake::Task['db:rollback'].enhance do
Rake::Task['annotate'].invoke
Rake::Task['db:test:prepare'].invoke
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment