title: heroku run rake db:migrate ... rake aborted! No Rakefile found
body: <p>When I run <code>heroku run rake db:migrate</code>, I receive the following error:</p>
  
  <pre><code>$ heroku run rake db:migrate
  Running `rake db:migrate` attached to terminal... up, run.8507
  rake aborted!
  No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb)
  /usr/local/lib/ruby/1.9.1/rake.rb:2367:in `raw_load_rakefile'
  /usr/local/lib/ruby/1.9.1/rake.rb:2007:in `block in load_rakefile'
  /usr/local/lib/ruby/1.9.1/rake.rb:2058:in `standard_exception_handling'
  /usr/local/lib/ruby/1.9.1/rake.rb:2006:in `load_rakefile'
  /usr/local/lib/ruby/1.9.1/rake.rb:1991:in `run'
  /usr/local/bin/rake:31:in `&lt;main&gt;'
  </code></pre>
  
  <p>Other users have posted identical errors, but in their case they actually didn't have a Rakefile and it worked for them once they created one, or they were in the wrong directory. My app does have a Rakefile, in the correct directory and with all the proper text in it, and I am in my app's root directory.</p>
  
  <p>This is what my Rakefile  looks like:</p>
  
  <pre><code>    # Add your own tasks in files placed in lib/tasks ending in .rake,
      # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
  
      require File.expand_path('../config/application', __FILE__)
  
      Rails.application.load_tasks
  </code></pre>
  
  <p>This is what "heroku run cat Rakefile" does:</p>
  
  <pre><code>    $ heroku run cat Rakefile
      Running `cat Rakefile` attached to terminal... up, run.9132
      cat: Rakefile: No such file or directory
  </code></pre>