title: How to override Rails' default migration generator template
body: <p>I need to override these migration templates:</p>
  
  <p><a href="https://github.com/rails/rails/blob/e20dd73df42d63b206d221e2258cc6dc7b1e6068/activerecord/lib/rails/generators/active_record/migration/templates/migration.rb" rel="noreferrer">https://github.com/rails/rails/blob/e20dd73df42d63b206d221e2258cc6dc7b1e6068/activerecord/lib/rails/generators/active_record/migration/templates/migration.rb</a>
   and <a href="https://github.com/rails/rails/blob/e20dd73df42d63b206d221e2258cc6dc7b1e6068/activerecord/lib/rails/generators/active_record/migration/templates/create_table_migration.rb" rel="noreferrer">https://github.com/rails/rails/blob/e20dd73df42d63b206d221e2258cc6dc7b1e6068/activerecord/lib/rails/generators/active_record/migration/templates/create_table_migration.rb</a></p>
  
  <p>inside my rails application so that they pick up the template from rails application instead of the gem itself. I've tried all possible combinations so far but no luck.</p>
  
  <p>What I've tried: </p>
  
  <pre><code>- Rails.root/lib/templates/rails/migration/migration.rb
  - Rails.root/lib/templates/rails/migration_generator/migration.rb
  - Rails.root/lib/rails/templates/rails/migration/migration.rb
  - Rails.root/lib/rails/templates/rails/migration_generator/migration.rb
  - Rails.root/lib/rails/generators/templates/rails/migration/migration.rb
  - Rails.root/lib/rails/generators/templates/rails/migration_generator/migration.rb
  - Rails.root/lib/rails/templates/generators/rails/migration/migration.rb
  - Rails.root/lib/rails/templates/generators/rails/migration_generator/migration.rb
  - Rails.root/lib/rails/generators/active_record/migration/templates/migration.rb
  - Rails.root/lib/rails/generators/active_record/migration_generator/templates/migration.rb
  - Rails.root/lib/rails/generators/active_record/templates/migration.rb
  - Rails.root/lib/rails/generators/active_record/templates/migration.rb
  </code></pre>
  
  <p>Can anyone point me into the right direction?</p>