Sha256: e75828d61bad86a6f3a797bd4748ea9ec390087fc7f13afed2eb80d9903cc663

Contents?: true

Size: 478 Bytes

Versions: 75

Compression:

Stored size: 478 Bytes

Contents

class <%= @migration_class_name.underscore.camelize %> < Neo4j::Migrations::Base
  def up
<% @schema.each do |type, data|
     data.each do |element| %>
    add_<%= type %> <%= element[:label].inspect %>, <%= element[:property_name].inspect %>, force: true
  <% end
   end %>
  end

  def down
<% @schema.each do |type, data|
     data.each do |element| %>
    drop_<%= type %> <%= element[:label].inspect %>, <%= element[:property_name].inspect %>
  <% end
   end %>
  end
end

Version data entries

75 entries across 75 versions & 2 rubygems

Version Path
neo4j-9.6.2 lib/rails/generators/neo4j/upgrade_v8/templates/migration.erb
activegraph-10.0.0.pre.alpha.11 lib/rails/generators/neo4j/upgrade_v8/templates/migration.erb
activegraph-10.0.0.pre.alpha.10 lib/rails/generators/neo4j/upgrade_v8/templates/migration.erb
activegraph-10.0.0.pre.alpha.9 lib/rails/generators/neo4j/upgrade_v8/templates/migration.erb
activegraph-10.0.0.pre.alpha.8 lib/rails/generators/neo4j/upgrade_v8/templates/migration.erb
activegraph-10.0.0.pre.alpha.7 lib/rails/generators/neo4j/upgrade_v8/templates/migration.erb
activegraph-10.0.0.pre.alpha.6 lib/rails/generators/neo4j/upgrade_v8/templates/migration.erb
neo4j-10.0.0.pre.alpha.5 lib/rails/generators/neo4j/upgrade_v8/templates/migration.erb
neo4j-10.0.0.pre.alpha.4 lib/rails/generators/neo4j/upgrade_v8/templates/migration.erb
neo4j-10.0.0.pre.alpha.3 lib/rails/generators/neo4j/upgrade_v8/templates/migration.erb
neo4j-10.0.0.pre.alpha.2 lib/rails/generators/neo4j/upgrade_v8/templates/migration.erb
neo4j-10.0.0.pre.alpha.1 lib/rails/generators/neo4j/upgrade_v8/templates/migration.erb
neo4j-9.6.1 lib/rails/generators/neo4j/upgrade_v8/templates/migration.erb
neo4j-9.6.0 lib/rails/generators/neo4j/upgrade_v8/templates/migration.erb
neo4j-9.5.3 lib/rails/generators/neo4j/upgrade_v8/templates/migration.erb
neo4j-9.5.2 lib/rails/generators/neo4j/upgrade_v8/templates/migration.erb
neo4j-9.5.0 lib/rails/generators/neo4j/upgrade_v8/templates/migration.erb
neo4j-9.4.0 lib/rails/generators/neo4j/upgrade_v8/templates/migration.erb
neo4j-9.3.0 lib/rails/generators/neo4j/upgrade_v8/templates/migration.erb
neo4j-9.2.4 lib/rails/generators/neo4j/upgrade_v8/templates/migration.erb