title: Forcing override of file with template() in Rails generator?
body: <p>I have myself a generator that, as part of a set of other operations, needs to set up a model class with a bunch of mixins, defaults, comments, etc.</p>
  
  <p>I want to be using the same <code>rails g model ...</code> code (I'm calling <code>invoke</code> from my generator), but the problem is that there's a conflict because my template and the model generator's template are trying to splat each other:</p>
  
  <p><pre><code>
  $ be rails g entry_form karaoke events full_name:string group_name:string
        create  app/controllers/karaokes_controller.rb
        create  app/views/karaokes/show.html.erb
        create  app/views/karaokes/thanks.html.erb
         route  resource :karaoke
        create  app/models/karaoke_entry.rb
        invoke  active_record
        create    db/migrate/20111004004008_create_karaoke_entries.rb
      conflict    app/models/karaoke_entry.rb
    Overwrite app/models/karaoke_entry.rb?
    (enter "h" for help) [Ynaqdh]
  </pre></code></p>
  
  <p>Any recommendations how to get around this?</p>
  
  <p>(The best I've come up with is to maybe move my model file creation to the bottom, and find some way to force <code>template</code> / <code>copy_file</code> to go ahead and overwrite the file without bothering the user, but I can't see any pre-existing way of doing this.)</p>