Module: ActiveRecord::Generators::Migration::ClassMethods
- Defined in:
- lib/rails/generators/active_record/migration.rb
Instance Method Summary collapse
-
#next_migration_number(dirname) ⇒ Object
Implement the required interface for Rails::Generators::Migration.
Instance Method Details
#next_migration_number(dirname) ⇒ Object
Implement the required interface for Rails::Generators::Migration.
13 14 15 16 |
# File 'lib/rails/generators/active_record/migration.rb', line 13 def next_migration_number(dirname) next_migration_number = current_migration_number(dirname) + 1 ActiveRecord::Migration.next_migration_number(next_migration_number) end |