title: How to run only rake task once
body: <p>I am using Ruby on Rails and Heroku.</p>
  
  <p>I would like something like rake db:migrate, where it will only run the parts that have not been run before.</p>
  
  <p>I can set a rake task that can run other rake task, but is there in way to only run those that did not run before?</p>
  
  <p>What are any alternative, if I want rake tasks to be run automatically?</p>