Class: Hws::Transactions::Generators::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Includes:
Rails::Generators::Migration
Defined in:
lib/generators/hws/transactions/install_generator.rb

Overview

:nodoc:

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.next_migration_number(path) ⇒ Object



13
14
15
# File 'lib/generators/hws/transactions/install_generator.rb', line 13

def self.next_migration_number(path)
  ActiveRecord::Generators::Base.next_migration_number(path)
end

Instance Method Details

#copy_migrationsObject



18
19
20
21
# File 'lib/generators/hws/transactions/install_generator.rb', line 18

def copy_migrations
  migration_template 'create_transaction_group_and_entries.rb.erb',
                     'db/migrate/create_hws_transaction_tables.rb'
end