title: Where are rake tasks defined?
body: <p>On a freshly created Rails project (generated by <code>rails someName</code>), one can run some 'default' rake tasks like:</p>
  
  <ul>
  <li><code>rake test</code></li>
  <li><code>rake db:migrate</code></li>
  <li>etc</li>
  </ul>
  
  <p>Question is, where does these tasks get described? The default <code>Rakefile</code> doesn't have all these tasks.</p>
  
  <p>Furthermore, I checked out some project that uses <code>rspec</code> and I am able to run <code>rake spec</code> to run all the tests. Where does the <code>spec</code> target defined?</p>