Commit 6d11436b by Brent Greeff

rake db:annotate aliases annotate_models. running db:migrate, :reset or :redo will run annotate.

parent 71af5afd
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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment