Class: Merb::Generators::SessionMigrationGenerator

Inherits:
Generator
  • Object
show all
Defined in:
lib/generators/session_migration.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Generator

#go_up, #initialize, #with_modules

Methods included from ColorfulMessages

#error, #success, #warning

Constructor Details

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

Class Method Details

.source_rootObject



5
6
7
# File 'lib/generators/session_migration.rb', line 5

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

Instance Method Details

#versionObject



15
16
17
18
# File 'lib/generators/session_migration.rb', line 15

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