Class: Audited::Generators::UpgradeGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Extended by:
Migration
Includes:
MigrationHelper, Rails::Generators::Migration
Defined in:
lib/generators/audited/upgrade_generator.rb

Instance Method Summary collapse

Methods included from Migration

next_migration_number

Methods included from MigrationHelper

#migration_parent

Instance Method Details

#copy_templatesObject



19
20
21
22
23
# File 'lib/generators/audited/upgrade_generator.rb', line 19

def copy_templates
  migrations_to_be_applied do |m|
    migration_template "#{m}.rb", "db/migrate/#{m}.rb"
  end
end