Sha256: 967ae4f47e2d22a6fdb78a9c9d5dcf9d2fa026ccfd52c7370946e93dd5928a3e

Contents?: true

Size: 221 Bytes

Versions: 11

Compression:

Stored size: 221 Bytes

Contents

class Create<%= @migration_class_name.underscore.camelize %> < ActiveGraph::Migrations::Base
  def up
    add_constraint :<%= class_name %>, :uuid
  end

  def down
    drop_constraint :<%= class_name %>, :uuid
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
activegraph-10.0.0.pre.beta.11 lib/rails/generators/active_graph/model/templates/migration.erb
activegraph-10.0.0.pre.beta.10 lib/rails/generators/active_graph/model/templates/migration.erb
activegraph-10.0.0.pre.beta.9 lib/rails/generators/active_graph/model/templates/migration.erb
activegraph-10.0.0.pre.beta.8 lib/rails/generators/active_graph/model/templates/migration.erb
activegraph-10.0.0.pre.beta.7 lib/rails/generators/active_graph/model/templates/migration.erb
activegraph-10.0.0.pre.beta.6 lib/rails/generators/active_graph/model/templates/migration.erb
activegraph-10.0.0.pre.beta.5 lib/rails/generators/neo4j/model/templates/migration.erb
activegraph-10.0.0.pre.beta.4 lib/rails/generators/neo4j/model/templates/migration.erb
activegraph-10.0.0.pre.beta.3 lib/rails/generators/neo4j/model/templates/migration.erb
activegraph-10.0.0.pre.beta.2 lib/rails/generators/neo4j/model/templates/migration.erb
activegraph-10.0.0.pre.beta.1 lib/rails/generators/neo4j/model/templates/migration.erb