I’d like to add Rails 3 compatible generator to acts_as_taggable_on
gem (all it does is call “migration_template” method) and got a
problem with “next_migration_number” method not being implemented.
For ActiveRecord this method is defined in
ActiveRecord::Generators::Base class, which inherits from NamedBase
class. How can I use it inside my generator, which inherits from
Rails::Generators::Base? How to use “hook_for :orm” here, so that the
proper “next_migration_number” method definition is be used?