Class: Merb::Generators::SessionMigrationGenerator

Inherits:
ComponentGenerator show all
Defined in:
lib/merb-gen/session_migration.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Generator

#initialize, #with_modules

Constructor Details

This class inherits a constructor from Merb::Generators::Generator

Class Method Details

.source_rootObject



5
6
7
# File 'lib/merb-gen/session_migration.rb', line 5

def self.source_root
  File.join(super, 'session_migration')
end

Instance Method Details

#versionObject



25
26
27
28
# File 'lib/merb-gen/session_migration.rb', line 25

def version
  # TODO: handle ActiveRecord timestamped migrations
  format("%03d", current_migration_nr + 1)
end