Sha256: 3376d759f6e6b7460488c3740480998ba2f57b6651b3fd321681812711286f62

Contents?: true

Size: 467 Bytes

Versions: 1

Compression:

Stored size: 467 Bytes

Contents

module Neo4j
  module Migrations
    extend ActiveSupport::Autoload
    autoload :Helpers
    autoload :MigrationFile
    autoload :Base
    autoload :Runner
    autoload :SchemaMigration

    def self.check_for_pending_migrations!
      runner = Neo4j::Migrations::Runner.new
      fail ::Neo4j::PendingMigrationError if runner.pending_migrations?
    end

    def self.maintain_test_schema!
      Neo4j::Migrations::Runner.new(silenced: true).all
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
neo4j-8.0.0.alpha.4 lib/neo4j/migrations.rb