Class: Auditing::Generators::UpgradeGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Includes:
Rails::Generators::Migration
Defined in:
lib/generators/auditing/upgrade_generator.rb

Instance Method Summary collapse

Instance Method Details

#create_initializerObject



15
16
17
# File 'lib/generators/auditing/upgrade_generator.rb', line 15

def create_initializer
  template 'auditing.rb', 'config/initializers/auditing.rb'
end

#create_migrationObject



11
12
13
# File 'lib/generators/auditing/upgrade_generator.rb', line 11

def create_migration
  migration_template 'update_migration.rb', "db/migrate/update_audits.rb"
end