Class: VestalVersions::Generators::MigrationGenerator

Inherits:
ActiveRecord::Generators::Base
  • Object
show all
Extended by:
Base
Defined in:
lib/generators/vestal_versions/migration/migration_generator.rb

Instance Method Summary (collapse)

Methods included from Base

source_root

Instance Method Details

- (Object) generate_files



11
12
13
14
# File 'lib/generators/vestal_versions/migration/migration_generator.rb', line 11

def generate_files
  migration_template 'migration.rb', "db/migrate/#{name}"
  template 'initializer.rb', 'config/initializers/vestal_versions.rb'
end