namespace :db do
  task :compile => 'environment' do
    require 'dbcompile'
    DbCompile.build_transaction
  end
end

namespace :db do
  desc "compile based on the contents of #{RAILS_ROOT}/db/compile.yml"
  task :compile => 'environment' do
    require 'dbcompile'
    DbCompile.build_transaction
  end
end

Add in a task description so the db:compile task shows in rake -T
Add in a task description so the db:compile task shows in rake -T
