Class: StandaloneMigrations::CacheMigrationGenerator

Inherits:
ActiveRecord::Generators::MigrationGenerator
  • Object
show all
Defined in:
lib/standalone_migrations/generator.rb

Instance Method Summary collapse

Instance Method Details

#create_migration_fileObject



16
17
18
19
20
# File 'lib/standalone_migrations/generator.rb', line 16

def create_migration_file
  set_local_assigns!
  validate_file_name!
  migration_template @migration_template, Rails.application.config.paths["db/migrate"]
end