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

#==, all, #attributes, #attributes=, configure, context, count, create, custom_reference_class, database, database_path=, define_column_accessors, define_method_attribute, define_method_attribute=, encoding=, exists?, find, #hash, #have_column?, i18n_scope, #id, #inspect, inspect, instantiate, #key, #key=, #read_attribute, #record_id, #record_raw_id, reference_class, #score, #score=, select, #table, table, table_name, table_name=, #to_key, #write_attribute

Methods included from Callbacks

#destroy

Methods included from Validations

#save, #save!, #valid?

Methods included from Persistence

#becomes, #delete, #destroy, #destroyed?, #new_record?, #persisted?, #reload, #save, #save!, #update_attribute, #update_attributes, #update_attributes!

Constructor Details

- (MigrationGenerator) initialize(args, *options)

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