Class: Neo4j::Generators::UpgradeV8Generator

Inherits:
Rails::Generators::Base
  • Object
show all
Includes:
MigrationHelper, SourcePathHelper
Defined in:
lib/rails/generators/neo4j/upgrade_v8/upgrade_v8_generator.rb

Instance Method Summary collapse

Methods included from MigrationHelper

#base_migration_file_name, #existing_migration, #migration_file_name, #migration_lookup_at, #migration_template

Instance Method Details

#create_upgrade_v8_fileObject



9
10
11
12
# File 'lib/rails/generators/neo4j/upgrade_v8/upgrade_v8_generator.rb', line 9

def create_upgrade_v8_file
  @schema = load_all_models_schema!
  migration_template 'migration.erb'
end

#file_nameObject



14
15
16
# File 'lib/rails/generators/neo4j/upgrade_v8/upgrade_v8_generator.rb', line 14

def file_name
  'upgrate_to_v8'
end