namespace :dev do
  desc "Checks to see if the DB is there"
  task :db_missing do
    begin
      Rake::Task['environment'].invoke
      ActiveRecord::Base.connection
    rescue
      exit 1
    else
      exit 0
    end
  end
end
