Class: Pilipinas::MigrationGenerator

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.next_migration_number(_dir) ⇒ Object



14
15
16
# File 'lib/generators/pilipinas/migration_generator.rb', line 14

def self.next_migration_number(_dir)
  Time.now.utc.strftime('%Y%m%d%H%M%S')
end

Instance Method Details

#generate_migrationObject



10
11
12
# File 'lib/generators/pilipinas/migration_generator.rb', line 10

def generate_migration
  generate_block_migration
end