title: Rake tasks work locally but not on Heroku
body: <p>I have a rake task that loads data into tables of my database. I made changes recently to my schema, and migrating them to heroku appears to have worked fine. However, when I run my rake task, I get the following error message: 
  <code>Don't know how to build task 'import_foursquare_response:create_records'</code></p>
  
  <p>and a less than helpful stack trace:</p>
  
  <pre><code>heroku run rake import_foursquare_response:create_records --trace
  Your version of git is 2.2.0. Which has serious security vulnerabilities.
  More information here: https://blog.heroku.com/archives/2014/12/23/update_your_git_clients_on_windows_and_os_x
  Running `rake import_foursquare_response:create_records --trace` attached to terminal... up, run.5353
  rake aborted!
  Don't know how to build task 'import_foursquare_response:create_records'
  /app/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/task_manager.rb:62:in `[]'
  /app/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:149:in `invoke_task'
  /app/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:106:in `block (2 levels) in top_level'
  /app/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:106:in `each'
  /app/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:106:in `block in top_level'
  /app/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:115:in `run_with_threads'
  /app/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:100:in `top_level'
  /app/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:78:in `block in run'
  /app/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:176:in `standard_exception_handling'
  /app/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:75:in `run'
  /app/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/bin/rake:33:in `&lt;top (required)&gt;'
  /app/vendor/bundle/ruby/2.0.0/bin/rake:23:in `load'
  /app/vendor/bundle/ruby/2.0.0/bin/rake:23:in `&lt;main&gt;'
  </code></pre>
  
  <p>Most of the questions I've seen have pointed to syntax errors in the way people had written the actual rake task, but I can't see any problems there. </p>
  
  <pre><code>require 'four_square'
  
  namespace :import_foursquare_response do
    include FourSquare
  
    desc "Load database with results of API calls"
    task :create_records =&gt; :environment do
      puts "Loading database..."
  </code></pre>
  
  <p>Any help is much appreciated. No data makes my app useless.</p>