Class: ActionLogger::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- ActionLogger::Generators::InstallGenerator
- Includes:
- Rails::Generators::Migration
- Defined in:
- lib/generators/action_logger/install_generator.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.next_migration_number(path) ⇒ Object
12 13 14 |
# File 'lib/generators/action_logger/install_generator.rb', line 12 def self.next_migration_number path Time.now.utc.strftime '%Y%m%d%H%M%S' end |
Instance Method Details
#create_migrations ⇒ Object
16 17 18 |
# File 'lib/generators/action_logger/install_generator.rb', line 16 def create_migrations migration_template 'create_action_logs.rb', 'db/migrate/create_action_logs.rb' end |