Class: Hws::Resources::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Hws::Resources::InstallGenerator
- Includes:
- Rails::Generators::Migration
- Defined in:
- lib/generators/hws/resources/install_generator.rb
Overview
:nodoc:
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.next_migration_number(path) ⇒ Object
12 13 14 |
# File 'lib/generators/hws/resources/install_generator.rb', line 12 def self.next_migration_number(path) ActiveRecord::Generators::Base.next_migration_number(path) end |
Instance Method Details
#copy_migrations ⇒ Object
17 18 19 |
# File 'lib/generators/hws/resources/install_generator.rb', line 17 def copy_migrations migration_template 'migration.rb.erb', 'db/migrate/create_hws_resources_tables.rb' end |