title: Rails 4 how to ignore pending migrations
body: <p>Problem is following:</p>
  
  <ul>
  <li>I have db/seed.rb full of initial data.</li>
  <li>One of migrations depends on data this seed provides.</li>
  <li>I'm trying to deploy my app from empty db.</li>
  </ul>
  
  <p>Result is:</p>
  
  <ul>
  <li>RAILS_ENV=production rake db:migrate - fails due to lack of initial data</li>
  <li>RAILS_ENV=production rake db:seed    - fails due to pending migrations</li>
  </ul>
  
  <p>I wanted to somehow tell rake to ignore pending migrations, but unable to do it so far.</p>
  
  <p><strong>UPDATE (due to additional experience)</strong></p>
  
  <p>Sometimes migrations and model code goes out of sync, so migrations not being run.
  To avoid this problem recently used redefining of model in migrations:</p>
  
  <pre><code># reset all callbacks, hooks, etc for this model
  class MyAwesomeModel &lt; ActiveRecord::Base
  end
  
  class DoSomethingCool &lt; ActiveRecord::Migration
    def change
      ...
    end
  end
  </code></pre>