Class: PaperTrail::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- PaperTrail::InstallGenerator
- Extended by:
- ActiveRecord::Generators::Migration
- Includes:
- Rails::Generators::Migration
- Defined in:
- lib/generators/paper_trail/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#create_migration_file ⇒ Object
15 16 17 18 |
# File 'lib/generators/paper_trail/install_generator.rb', line 15 def create_migration_file migration_template 'create_versions.rb', 'db/migrate/create_versions.rb' migration_template 'add_object_changes_column_to_versions.rb', 'db/migrate/add_object_changes_column_to_versions.rb' if .with_changes? end |