Class: DataMigrate::Generators::DataMigrationGenerator

Inherits:
Rails::Generators::NamedBase
  • Object
show all
Includes:
ActiveRecord::Generators::Migration
Defined in:
lib/generators/data_migrate.rb,
lib/generators/data_migration/data_migration_generator.rb

Overview

:nodoc:

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.source_rootObject



7
8
9
# File 'lib/generators/data_migrate.rb', line 7

def source_root
  build_data_migrate_source_root
end

Instance Method Details

#create_data_migrationObject



15
16
17
18
# File 'lib/generators/data_migration/data_migration_generator.rb', line 15

def create_data_migration
  set_local_assigns!
  migration_template template_path, data_migrations_file_path
end