Class: ActiveGroonga::Generators::MigrationGenerator — activegroonga - Ranguba

Class: ActiveGroonga::Generators::MigrationGenerator

Inherits:
Base
  • Object
show all
Defined in:
lib/rails/generators/active_groonga/migration/migration_generator.rb

Overview

:nodoc:

Instance Method Summary (collapse)

Methods inherited from Base

base_root, next_migration_number

Constructor Details

- (MigrationGenerator) initialize(args, *options)

Returns a new instance of MigrationGenerator



25
26
27
28
# File 'lib/rails/generators/active_groonga/migration/migration_generator.rb', line 25

def initialize(args, *options)
  super
  parse_columns!
end

Instance Method Details

- (Object) create_migration_file



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

def create_migration_file
  set_local_assigns!
  migration_template "migration.rb", "db/groonga/migrate/#{file_name}.rb"
end