Class: Auditing::Generators::UpgradeGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Auditing::Generators::UpgradeGenerator
- Includes:
- Rails::Generators::Migration
- Defined in:
- lib/generators/auditing/upgrade_generator.rb
Instance Method Summary collapse
Instance Method Details
#create_initializer ⇒ Object
15 16 17 |
# File 'lib/generators/auditing/upgrade_generator.rb', line 15 def create_initializer template 'auditing.rb', 'config/initializers/auditing.rb' end |
#create_migration ⇒ Object
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 |