Class: ActiveGroonga::Generators::MigrationGenerator
- Inherits:
-
Base
- Object
- Rails::Generators::NamedBase
- Base
- ActiveGroonga::Generators::MigrationGenerator
- Defined in:
- lib/rails/generators/active_groonga/migration/migration_generator.rb
Overview
:nodoc:
Instance Method Summary (collapse)
- - (Object) create_migration_file
-
- (MigrationGenerator) initialize(args, *options)
constructor
A new instance of MigrationGenerator.
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, *) 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 |