Best practice for building migration generator

I often see different ways how migration generators are implemented
and I wonder what the recommended one at the moment is.

Currently I directly call:


But it seems that this method is now depreciated (
rails/ActiveRecord/Generators/Base/next_migration_number/class) even
if it was just introduced as class method (https://

Is it now recommended to build the migration number manually again
(like here

For my full generator please see (also see for the full generator

Best regards,

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs