123456789_123456789_123456789_123456789_123456789_

Module: ActiveRecord::Generators::Migration::ClassMethods

Relationships & Source Files
Defined in: activerecord/lib/rails/generators/active_record/migration.rb

Instance Method Summary

Instance Method Details

#next_migration_number(dirname)

Implement the required interface for ::Rails::Generators::Migration.

[ GitHub ]

  
# File 'activerecord/lib/rails/generators/active_record/migration.rb', line 11

def next_migration_number(dirname)
  next_migration_number = current_migration_number(dirname) + 1
  ActiveRecord::Migration.next_migration_number(next_migration_number)
end