Class: DataMigrate::Generators::DataMigrationGenerator
- Inherits:
-
Rails::Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- DataMigrate::Generators::DataMigrationGenerator
- 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_root ⇒ Object
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_migration ⇒ Object
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 |