title: Heroku run rake db:migrate not working
body: <p>Help!!</p>
  
  <p>I am trying to push my production code to heroku but for some reason heroku run rake db:migrate command doesn't work. It gives me this error:</p>
  
  <pre><code>Migrating to RemoveMealPlanFromOrders (20150125085531)
  == 20150125085531 RemoveMealPlanFromOrders: migrating =========================
  -- remove_reference(:orders, :mealplan, {:index=&gt;true})
  PG::Error: ERROR:  column "mealplan_id" of relation "orders" does not exist
  : ALTER TABLE "orders" DROP "mealplan_id"
  rake aborted!
  StandardError: An error has occurred, this and all later migrations canceled:
  
  PG::Error: ERROR:  column "mealplan_id" of relation "orders" does not exist
  : ALTER TABLE "orders" DROP "mealplan_id"/app/vendor/bundle/ruby/2.0.0/gems/activerecord-4.0.8/lib/active_record/connection_adapters/postgresql/database_statements.rb:128:in `exec'
  ...
  </code></pre>
  
  <p>I have desperately tried everything including manually deleting the migration file the error references, running <code>rake db:reset</code>, and resetting heroku's database and even restarting the heroku app, but to no avail. I would infinitely appreciate if anyone could offer a solution to this error. I need to meet a deadline to submit this production code.</p>
  
  <p>Thanks in advance!!!</p>