rails/rails — pull request #5139 by mhfs (2012-02-23 12:12:01+00:00)
Title: Remove unused implementation of next_migration_number

ActiveRecord::Generators::Base already have a better implementation of such method [1] that overrides the one I'm removing.

The removed one duplicates some logic of ActiveRecord::Migration.next_migration_number [2].

Please let me know if I'm missing something.

Cheers!

[1] https://github.com/rails/rails/blob/master/activerecord/lib/rails/generators/active_record.rb#L19
[2] https://github.com/rails/rails/blob/master/activerecord/lib/active_record/migration.rb#L507