Class: ActiveGroonga::Generators::Base — activegroonga - ラングバ

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

+ (Object) base_root



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

def base_root
  File.dirname(__FILE__)
end

+ (Object) next_migration_number(dirname)

: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