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.2.3 lib/rails/generators/neo4j/upgrade_v8/templates/migration.erb
neo4j-9.2.2 lib/rails/generators/neo4j/upgrade_v8/templates/migration.erb
neo4j-9.2.1 lib/rails/generators/neo4j/upgrade_v8/templates/migration.erb
neo4j-9.2.0 lib/rails/generators/neo4j/upgrade_v8/templates/migration.erb
neo4j-9.1.8 lib/rails/generators/neo4j/upgrade_v8/templates/migration.erb
neo4j-9.1.7 lib/rails/generators/neo4j/upgrade_v8/templates/migration.erb
neo4j-9.1.6 lib/rails/generators/neo4j/upgrade_v8/templates/migration.erb
neo4j-9.1.5 lib/rails/generators/neo4j/upgrade_v8/templates/migration.erb
neo4j-9.1.4 lib/rails/generators/neo4j/upgrade_v8/templates/migration.erb
neo4j-9.1.3 lib/rails/generators/neo4j/upgrade_v8/templates/migration.erb
neo4j-9.1.2 lib/rails/generators/neo4j/upgrade_v8/templates/migration.erb
neo4j-9.1.1 lib/rails/generators/neo4j/upgrade_v8/templates/migration.erb
neo4j-9.1.0 lib/rails/generators/neo4j/upgrade_v8/templates/migration.erb
neo4j-9.0.7 lib/rails/generators/neo4j/upgrade_v8/templates/migration.erb
neo4j-9.0.6 lib/rails/generators/neo4j/upgrade_v8/templates/migration.erb
neo4j-9.0.5 lib/rails/generators/neo4j/upgrade_v8/templates/migration.erb
neo4j-8.3.4 lib/rails/generators/neo4j/upgrade_v8/templates/migration.erb
neo4j-9.0.4 lib/rails/generators/neo4j/upgrade_v8/templates/migration.erb
neo4j-8.3.3 lib/rails/generators/neo4j/upgrade_v8/templates/migration.erb
neo4j-9.0.3 lib/rails/generators/neo4j/upgrade_v8/templates/migration.erb