Sha256: ed5d7db7386a1db03788a1fdaa3af06d988e96fb0ae08d3aa62c55bba99d9e3f

Contents?: true

Size: 575 Bytes

Versions: 3

Compression:

Stored size: 575 Bytes

Contents

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

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

      attr_accessor :currently_running_migrations

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
neo4j-8.0.0.rc.3 lib/neo4j/migrations.rb
neo4j-8.0.0.rc.2 lib/neo4j/migrations.rb
neo4j-8.0.0.rc.1 lib/neo4j/migrations.rb