Override the default Rails model template

activerecord, generator, ruby-on-rails

Solution

Solved: I wanted `lib/templates/active_record/model/model.rb`.

Problem

I want to override the default model file that's generated with `rails generate model`. I've created a template based on this file, but I can't figure out where to put it. Other answers seem to suggest `/lib/templates/rails/model/model.rb` or `/lib/templates/rails/model/model_generator.rb`, but neither of those do anything - I put the template in that location but when I run `rails generate model ModelName` it gets ignored. Am I going about this the right way? Where should I put the template?

Original source