Class: Merb::Generators::SessionMigrationGenerator
- Inherits:
-
ComponentGenerator
- Object
- Templater::Generator
- Generator
- ComponentGenerator
- Merb::Generators::SessionMigrationGenerator
- Defined in:
- lib/merb-gen/session_migration.rb
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Generator
Constructor Details
This class inherits a constructor from Merb::Generators::Generator
Class Method Details
.source_root ⇒ Object
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
#version ⇒ Object
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 |