Class: ActiveGroonga::Generators::Base

Inherits:
Rails::Generators::NamedBase
  • Object
show all
Includes:
Rails::Generators::Migration
Defined in:
lib/rails/generators/active_groonga.rb

Overview

:nodoc:

Direct Known Subclasses

MigrationGenerator, ModelGenerator

Class Method Summary collapse

Class Method Details

.base_rootObject



27
28
29
# File 'lib/rails/generators/active_groonga.rb', line 27

def base_root
  File.dirname(__FILE__)
end

.next_migration_number(dirname) ⇒ Object

:nodoc:



31
32
33
# File 'lib/rails/generators/active_groonga.rb', line 31

def next_migration_number(dirname) #:nodoc:
  Time.now.utc.strftime("%Y%m%d%H%M%S")
end