Skip to content

Instantly share code, notes, and snippets.

@holysugar
Created August 26, 2011 14:18
Show Gist options
  • Save holysugar/1173489 to your computer and use it in GitHub Desktop.
Save holysugar/1173489 to your computer and use it in GitHub Desktop.
auto annotate after db:migrate
# gem 'rake-hooks' # https://github.com/guillermo/rake-hooks
require 'rake/hooks'
after 'db:migrate' do
if Rails.env.development?
puts `annotate`
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment