Module: Rails::Generators::Migration::ClassMethods

Defined in:
lib/generators/rbac_rls/custom_migration_generator.rb,
lib/generators/rbac_rls/group_permission_generator.rb

Instance Method Summary collapse

Instance Method Details

#next_migration_number(dirname) ⇒ Object



17
18
19
20
# File 'lib/generators/rbac_rls/custom_migration_generator.rb', line 17

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