Class: Mongoid::Generators::MigrationGenerator

Inherits:
Base
  • Object
show all
Defined in:
lib/rails/generators/mongoid/migration/migration_generator.rb

Instance Method Summary (collapse)

Methods inherited from Base

next_migration_number, source_root

Instance Method Details

- (Object) create_migration_file



7
8
9
# File 'lib/rails/generators/mongoid/migration/migration_generator.rb', line 7

def create_migration_file
  migration_template "migration.rb", "db/migrate/#{file_name}.rb"
end