Class: MongoidMigrationGenerator

Inherits:
Rails::Generators::NamedBase
  • Object
show all
Extended by:
MongoidMigration::Generators::Migration
Includes:
Rails::Generators::Migration
Defined in:
lib/generators/mongoid_migration/mongoid_migration_generator.rb

Instance Method Summary collapse

Methods included from MongoidMigration::Generators::Migration

next_migration_number

Instance Method Details

#create_migration_fileObject



10
11
12
# File 'lib/generators/mongoid_migration/mongoid_migration_generator.rb', line 10

def create_migration_file
  migration_template "mongoid_migration.rb", "mongodb/migrate/#{file_name}.rb"
end