Class: ActiveRecordMigrations::Generators::MigrationGenerator Private
- Inherits:
-
ActiveRecord::Generators::MigrationGenerator
- Object
- ActiveRecord::Generators::MigrationGenerator
- ActiveRecordMigrations::Generators::MigrationGenerator
- Defined in:
- lib/multi_ar/rake/migration_generator.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
- #create_migration_file ⇒ Object private
Instance Method Details
#create_migration_file ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
12 13 14 15 16 17 18 |
# File 'lib/multi_ar/rake/migration_generator.rb', line 12 def create_migration_file set_local_assigns! validate_file_name! dir = ::ActiveRecord::Tasks::DatabaseTasks.migration_dir db_dir = ::ActiveRecord::Tasks::DatabaseTasks.sub_db_dir migration_template @migration_template, "#{dir}/#{db_dir}/#{file_name}.rb" end |