Sha256: a9e5b45282b0e9dfb2f49329fcfce48b8e6449155c29e4daef69f741acef388f

Contents?: true

Size: 246 Bytes

Versions: 32

Compression:

Stored size: 246 Bytes

Contents

class Create<%= @migration_class_name.underscore.camelize %> < ActiveGraph::Migrations::Base
  disable_transactions!

  def up
    add_constraint :<%= class_name %>, :uuid
  end

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

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
activegraph-11.0.2-java lib/rails/generators/active_graph/model/templates/migration.erb
activegraph-10.1.1 lib/rails/generators/active_graph/model/templates/migration.erb
activegraph-11.0.1-java lib/rails/generators/active_graph/model/templates/migration.erb
activegraph-11.0.0-java lib/rails/generators/active_graph/model/templates/migration.erb
activegraph-10.1.0 lib/rails/generators/active_graph/model/templates/migration.erb
activegraph-11.0.0.beta.4-java lib/rails/generators/active_graph/model/templates/migration.erb
activegraph-10.0.2 lib/rails/generators/active_graph/model/templates/migration.erb
activegraph-11.0.0.beta.3-java lib/rails/generators/active_graph/model/templates/migration.erb
activegraph-11.0.0.beta.2-java lib/rails/generators/active_graph/model/templates/migration.erb
activegraph-11.0.0.beta.1-java lib/rails/generators/active_graph/model/templates/migration.erb
activegraph-10.0.1 lib/rails/generators/active_graph/model/templates/migration.erb
activegraph-10.0.0 lib/rails/generators/active_graph/model/templates/migration.erb