Class: BitcoinPayable::InstallGenerator

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.next_migration_number(dirname) ⇒ Object



18
19
20
# File 'lib/generators/bitcoin_payable/install_generator.rb', line 18

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

Instance Method Details

#create_migration_fileObject



12
13
14
15
16
# File 'lib/generators/bitcoin_payable/install_generator.rb', line 12

def create_migration_file
  migration_template 'create_bitcoin_payments.rb', 'db/migrate/create_bitcoin_payments.rb'
  migration_template 'create_bitcoin_payment_transactions.rb', 'db/migrate/create_bitcoin_payment_transactions.rb'
  migration_template 'create_currency_conversions.rb', 'db/migrate/create_currency_conversions.rb'
end