Class: Hipaapotamus::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Hipaapotamus::InstallGenerator
- Includes:
- Rails::Generators::Migration
- Defined in:
- lib/generators/hipaapotamus/install_generator.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.next_migration_number(dirname) ⇒ Object
8 9 10 |
# File 'lib/generators/hipaapotamus/install_generator.rb', line 8 def self.next_migration_number(dirname) ::ActiveRecord::Generators::Base.next_migration_number(dirname) end |
Instance Method Details
#create_migration_file ⇒ Object
14 15 16 |
# File 'lib/generators/hipaapotamus/install_generator.rb', line 14 def create_migration_file migration_template 'create_hipaapotamus_actions.rb', 'db/migrate/create_hipaapotamus_actions.rb' end |