Sha256: c13b55b389e326ba852135b43e026a7eadc0869564ba3e80ba51d32a495df083
Contents?: true
Size: 607 Bytes
Versions: 1
Compression:
Stored size: 607 Bytes
Contents
require File.join(File.dirname(__FILE__), '..', '..', '..', '..', 'neo4j.rb') module Neo4j module Generators class Migration < ::Neo4j::Generators::Base def create_migration_file real_file_name = "#{Time.zone.now.strftime('%Y%m%d%H%M%S')}_#{file_name.parameterize}" @migration_class_name = file_name.camelize if args[0] == 'force_add_index' @content = "force_add_index #{args[1].to_s.classify.to_sym.inspect}, #{args[2].to_sym.inspect}" end template 'migration.erb', File.join('db/neo4j/migrate', real_file_name) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
neo4j-7.0.13 | lib/rails/generators/neo4j/migration/migration_generator.rb |