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
- #create_migration_file ⇒ Object
-
#initialize(args, *options) ⇒ MigrationGenerator
constructor
A new instance of MigrationGenerator.
Methods inherited from Base
base_root, next_migration_number
Constructor Details
#initialize(args, *options) ⇒ MigrationGenerator
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
#create_migration_file ⇒ Object
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 |