Class: SuningPay::MigrationGenerator

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.next_migration_number(dirname) ⇒ Object



12
13
14
# File 'lib/generators/suning_pay/migration_generator.rb', line 12

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

Instance Method Details

#installObject



8
9
10
# File 'lib/generators/suning_pay/migration_generator.rb', line 8

def install
  migration_template 'migration.rb', 'db/migrate/create_suning_pay_notices.rb'
end