Class: Hws::PaymentOperationsDemo::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Hws::PaymentOperationsDemo::InstallGenerator
- Includes:
- Rails::Generators::Migration
- Defined in:
- lib/generators/hws/payment_operations_demo/install_generator.rb
Overview
:nodoc:
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.next_migration_number(path) ⇒ Object
10 11 12 |
# File 'lib/generators/hws/payment_operations_demo/install_generator.rb', line 10 def self.next_migration_number(path) ActiveRecord::Generators::Base.next_migration_number(path) end |
Instance Method Details
#copy_migrations ⇒ Object
21 22 23 |
# File 'lib/generators/hws/payment_operations_demo/install_generator.rb', line 21 def copy_migrations migration_template 'migration.rb.erb', 'db/migrate/create_hws_instrument_resource_store_table.rb' end |
#install_dependencies ⇒ Object
14 15 16 17 18 19 |
# File 'lib/generators/hws/payment_operations_demo/install_generator.rb', line 14 def install_dependencies generate 'hws:resources:install' generate 'hws:stores:install' generate 'hws:transactions:install' generate 'hws:instruments:install' end |